New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add JSONTransformer #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool!
let's perhaps try to make a bit clearer how this could be used as part of a pipeline written in a different programming language (see comment)
README.md
Outdated
@@ -127,6 +127,46 @@ print(query) | |||
{'$and': [{'_mp_bandgap': {'$gt': 5.0}}, {'_cod_molecular_weight': {'$lt': 350.0}}]} | |||
``` | |||
|
|||
There is also a basic JSON transformer (`optimade.filtertransformers.json.JSONTransformer`) you can use as an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also a basic JSON transformer (`optimade.filtertransformers.json.JSONTransformer`) you can use as an | |
There is also a [basic JSON transformer](optimade/filtertransformers/json.py) (`optimade.filtertransformers.json.JSONTransformer`) you can use as a simple example for developing your own transformer. | |
You can also use the JSON output it produces as easy-to-parse input for a "transformer" in your programming language of choice. |
I'll do the fix myself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, let's merge this!
Closes #26.
Example in:
"a<3 and b>4"
Example out: