We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The client must be able to use the new mongo support on the API. An interface should be drafted and proposed to the team.
from alerce.core import Alerce alerce = Alerce() query = Alerce.mongoquery(collection='detections') query = query.find({'oid' : 'ZTF1'}) query = query.sort('mjd') query = query.limit(10) detections = query.execute() for detection in detections: print(detection)
The text was updated successfully, but these errors were encountered:
For the interface, I think it's a good idea to just use the same JSON you would use for a curl request for simplicity:
from alerce.core import Alerce alerce = Alerce() query = { "collection": "detections", "filter": { "oid": "ZTF1" }, "sort": { "mjd": 1 }, "limit": 10 } detections = Alerce.mongo_find(query, pandas=True)
Sorry, something went wrong.
The client must be able to send queries to this API following these steps
Should we validate the input in every verb or just let the program fail?
AlxEnashi
ASHuenchuleo
Successfully merging a pull request may close this issue.
The client must be able to use the new mongo support on the API. An interface should be drafted and proposed to the team.
Interface proposals
1
The text was updated successfully, but these errors were encountered: