-
Notifications
You must be signed in to change notification settings - Fork 3
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 a flask support query nft via flask #21
Comments
python scheduler servicwith flask You can create a simple Python scheduler service using Flask, a popular web framework, combined with the Advanced Python Scheduler (APScheduler) library to handle scheduling tasks. Here's a basic example to get you started:
In this example, we have a simple Flask application with a single route that returns a "Hello from Flask scheduler service!" message. We've also created a background scheduler using the APScheduler library and added a job that executes the scheduled_task function every 10 seconds.
In your terminal or console, you should see the output of the scheduled_task function every 10 seconds, indicating that the task is running as scheduled. |
Thanks for the info, just to clarify some things:
Please confirm |
sample query
@datanft_bp.route('/nfs/string:name', methods=['Get'])
def get_datanft_detail(dataset_name):
nft = Nft.query.filter_by(name=name).first()
The text was updated successfully, but these errors were encountered: