Skip to content

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

Adding REST API to Python App

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

Currently, the app will exit once a POST request is sent to the web server on port 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 HTTP requests.

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy