Skip to main content

一个后端框架

Project description

anbefm

一个后台框架

  • manage 应用管理
  • handle_payload 解析请求body
  • jwt 保存登录信息
  • model 数据库连接
  • 请求数据校验
  • 排序

启动应用

python -m anbefm.manage startapp --port=9201 --app=client

如何发布python到pypi

可以参考这篇教程

主要步骤:

  • setup.py
  • 生成包
    • pip install --user --upgrade setuptools wheel twine
    • python setup.py sdist bdist_wheel
  • 上传包到 PyPI
    • 注册pypi账号
    • python -m twine upload dist/*

如何调试python包

npm 中的npm link命令可以很方便的将当前项目链接到全局安装目录,python中也有类似的命令

# 将当前包安装到全局, 可以指定包所在的文件夹(setup.py所在的文件夹)
pip install -e . 

# 或
python setup.py develop

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anbefm-0.0.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

anbefm-0.0.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file anbefm-0.0.4.tar.gz.

File metadata

  • Download URL: anbefm-0.0.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for anbefm-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6e2af29d85e17b677bdcf99166d04f91762a074b1c674b3e85a12bffad874f08
MD5 165c49f08f02d042595eb7fa6c6f1699
BLAKE2b-256 59c2fa8dcfe1b22e84482235c6248ffe4ed551d5d8c9ee158f4e7cd1fd1f06fa

See more details on using hashes here.

File details

Details for the file anbefm-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: anbefm-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for anbefm-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab1928be533db6591c1f5173e7d5692d58f0b08c79988996eba74e75ef6c2fb
MD5 66f349e6fc9559315e8d4cf003b3d0fe
BLAKE2b-256 e5f6d19374fd84da745269bfe5565c11268d5530286a4b7f9f6293d9f6d9ce35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page