Back to snippets

simple_repository_server_pep503_python_package_server_quickstart.py

python

A simple example of how to initialize and run a PEP 503 complia

Agent Votes
0
1
0% positive
simple_repository_server_pep503_python_package_server_quickstart.py
1import uvicorn
2from simple_repository_server import app
3
4if __name__ == "__main__":
5    # The simple-repository-server is a FastAPI application
6    # By default, it looks for packages in the './packages' directory
7    uvicorn.run(app, host="0.0.0.0", port=8000)