Skip to main content

一个hi问候包

Project description

开源pypi包制作

1.注册账号
https://pypi.org
2.添加许可证
https://choosealicense.com/licenses/
3.定义项目包结构
hi2020
├── LICENSE
├── MANIFEST.in
├── README.md
├── setup.py
├── src
│ └── hi2020
│     ├── __init__.py
│     ├── bin
│     │ ├── __init__.py
│     │ └── cli.py
│     ├── calculate.py
│     ├── say.py
│     └── static
│         └── hi.js
└── tests
    └── index.py
4.安装打包工具
# 安装依赖
pip install setuptools
pip install wheel

# 更新依赖
python -m pip install --upgrade setuptools wheel
5.打包代码
python setup.py sdist bdist_wheel
6.安装上传工具
python -m pip install --upgrade twine
或
pip install --upgrade twine
7.发布模块
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
或
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
8.使用模块
# 安装模块
pip install hi2020

# 导入模块
from hi2020 import say

# 执行函数
say.hi()
9.使用命令行
hi -h

hi hello

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

hi2020-1.0.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

hi2020-1.0.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file hi2020-1.0.4.tar.gz.

File metadata

  • Download URL: hi2020-1.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for hi2020-1.0.4.tar.gz
Algorithm Hash digest
SHA256 111497e60099a2a98badb182d581f2648f79df545e07279de12841e2c7c26835
MD5 4ab78ce4fe913b5a32f2ca94aa78c2ac
BLAKE2b-256 42331551c2870a858a3e6ae56c386e882d74c92f57ac945030d059109c3ec47a

See more details on using hashes here.

File details

Details for the file hi2020-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: hi2020-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for hi2020-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 691c9386ee3c4f1b460d38fd49820eacd0d307af0aacc347710883a53793ab71
MD5 cc059d0eb9ba965feee2a782ce64ea2f
BLAKE2b-256 608c5484b6d663632e41f3cfe9ff15e85777f71069457574a15f340b50078aa2

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