Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding REST API to Python App

License

NotificationsYou must be signed in to change notification settings

sduff/adding_rest_api_to_python_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Just some example code using timeouts in BaseHTTPServer to add a REST API to aPython app.

Currently, the app will exit once a POST request is sent to the web server onport 1024. There is no additional processing being done, but whatever it is,should be done fairly quickly to allow the app to check for any pending HTTPrequests.

No authentication enabled, no SSL. Not Production ready!

References

https://docs.python.org/3/library/http.server.html#http.server.BaseHTTPRequestHandler

About

Adding REST API to Python App

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp