文件名称:falcon-sqlalchemy-demo:一个使用Python的falcon Web框架的演示应用程序,使用sqlalchemy进行持久化,使用Alembic进行迁移
文件大小:9.3MB
文件格式:ZIP
更新时间:2024-06-03 06:52:07
Python
Falcon-SQLAlchemy演示 运行开发服务器 ./run_dev_server.sh 运行测试 ./test.sh 使用curl手动测试应用程序 curl -X POST "http://localhost:8000/people" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"name": "Lionel Messi"}' -w "\n" curl "http://localhost:8000/people" -H 'Accept: application/json' -w "\n" curl -X GET "http://localhost:8000/people/1" -H 'Accept: application/json' -w "\n" curl -X DELETE
【文件预览】:
falcon-sqlalchemy-demo-master
----alembic.ini(1KB)
----falcon_web_demo()
--------postgres_people_repository.py(2KB)
--------migrations()
--------application_routes.py(818B)
--------__init__.py(0B)
--------person_resources.py(3KB)
--------persistence.py(774B)
--------wsgi.py(72B)
----requirements-dev.txt(224B)
----requirements.txt(198B)
----vendor-dev()
--------WebTest-2.0.23-py2.py3-none-any.whl(33KB)
--------waitress-1.4.3.tar.gz(170KB)
--------py-1.4.31-py2.py3-none-any.whl(80KB)
--------pytest-3.0.3-py2.py3-none-any.whl(166KB)
--------coverage-4.4.1.tar.gz(361KB)
--------WebOb-1.6.1-py2.py3-none-any.whl(76KB)
--------pytest_cov-2.4.0-py2.py3-none-any.whl(20KB)
--------beautifulsoup4-4.5.1-py3-none-any.whl(82KB)
--------six-1.10.0-py2.py3-none-any.whl(10KB)
--------pyflakes-1.2.3-py2.py3-none-any.whl(205KB)
--------pycodestyle-2.0.0-py2.py3-none-any.whl(41KB)
--------flake8-3.0.4-py2.py3-none-any.whl(63KB)
--------coverage-5.1.tar.gz(671KB)
--------mccabe-0.5.2-py2.py3-none-any.whl(8KB)
----LICENSE(1KB)
----test()
--------test_people_POST.py(996B)
--------utils()
--------test_people_DELETE.py(1KB)
--------__init__.py(0B)
--------test_wsgi.py(112B)
--------conftest.py(1KB)
--------test_person_GET.py(760B)
--------test_postgres_people_repository.py(455B)
--------test_people_GET.py(1KB)
----test.sh(556B)
----README.md(616B)
----run_dev_server.sh(150B)
----.gitignore(50B)
----setup.sh(518B)
----vendor()
--------people-0.0.1.tar.gz(3KB)
--------SQLAlchemy-1.3.16.tar.gz(5.8MB)
--------falcon-1.0.0-py2.py3-none-any.whl(105KB)
--------python-mimeparse-1.5.2.tar.gz(6KB)
--------Mako-1.0.4.tar.gz(561KB)
--------alembic-0.8.8.tar.gz(947KB)
--------six-1.10.0-py2.py3-none-any.whl(10KB)
--------python-editor-1.0.1.tar.gz(7KB)
--------gunicorn-19.6.0-py2.py3-none-any.whl(112KB)
--------MarkupSafe-0.23.tar.gz(13KB)