Skip to main content

A useful module

Project description

关于 pypi-demo

这是统一制品库 pypi 协议的测试工程,大家可以使用这个工程体验 Python 制品构建、上传和下载。

声明

社区在 2022年 1 月 1 日 已不再支持 Python2,这里使用 Python3 演示。

使用方法

配置

在本地 ~/.pypirc 文件中写入

[pypi]
repository: http://localhost:8888/artifact/repositories/simple/
username: admin
password: adminTest2022

本地启动 artifacts 应用后默认监听 8888 端口,默认使用 simple 库。如测试联调环境,请将 localhost 替换成联调环境 ip 即可(下载时命令行参加追加 --trusted-host [联调环境ip])。

构建

python3 -m build

上传

python3 -m twine upload dist/*

下载

python3 -m pip download example-pypi-package==0.0.1 -i http://localhost:8888/artifact/repositories/simple/

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

example-package-pypi-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

example_package_pypi-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file example-package-pypi-1.0.0.tar.gz.

File metadata

  • Download URL: example-package-pypi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.4

File hashes

Hashes for example-package-pypi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 094b39c9fd70f4c335ed912ba0a06a4023dc195824f94aed2fbe6f276602783d
MD5 e1cd691ce7f594cefc7e4945949de9ea
BLAKE2b-256 a7edca9ffeb456f2f38fb92b3e9e76f2485f0a2503012c2fd5346302c7206d64

See more details on using hashes here.

File details

Details for the file example_package_pypi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: example_package_pypi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.4

File hashes

Hashes for example_package_pypi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a18baf66cc7d27fddf373ce0c9ebcd3e0df67c540b6fd323e9e9e90c41e361b
MD5 994d07b248c0fa8b7c101a73c9ac5195
BLAKE2b-256 6b81a3e4a928da1a702152ccfe9b7845dc6bda80343571d4b2cb4472040e0659

See more details on using hashes here.

Supported by

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