Skip to main content

A sample Python project

Project description

PyKitReWi

Python Logo

A sample project that exists as an aid to the Python Packaging User Guide's Tutorial on Packaging and Distributing Projects.

This project does not aim to cover best practices for Python project development as a whole. For example, it does not provide guidance or tool recommendations for version control, documentation, or testing.

The source for this project is available here.

Most of the configuration for a Python project is done in the setup.py file, an example of which is included in this project. You should edit this file accordingly to adapt this sample project to your needs.


This is the README file for the project.

The file should use UTF-8 encoding and can be written using reStructuredText or markdown with the appropriate key set. It will be used to generate the project webpage on PyPI and will be displayed as the project homepage on common code-hosting services, and should be written for that purpose.

Typical contents for this file would include an overview of the project, basic usage examples, etc. Generally, including the project changelog in here is not a good idea, although a simple “What's New” section for the most recent version may be appropriate.

Packaging your project

Before you can build wheels and sdists for your project, you’ll need to install the build package:

py -m pip install build

Source distributions Minimally, you should create a Source Distribution:

py -m build --sdist

Wheels

Pure Python Wheels

Pure Python Wheels contain no compiled extensions, and therefore only require a single Python wheel.

To build the wheel:

py -m build --wheel

Platform Wheels

Platform Wheels are wheels that are specific to a certain platform like Linux, macOS, or Windows, usually due to containing compiled extensions.

py -m build --wheel

上传

上传到TestPyPI

py -m twine upload --repository testpypi dist/*

上传到PyPI

py -m twine upload dist/*

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

pykitrewi-0.0.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

PyKitReWi-0.0.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file pykitrewi-0.0.0.tar.gz.

File metadata

  • Download URL: pykitrewi-0.0.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.0

File hashes

Hashes for pykitrewi-0.0.0.tar.gz
Algorithm Hash digest
SHA256 dac0ea96af126ca61aa26304ee26998fb79b9813f9876a37338bffa186195748
MD5 c109739e168b44b926929c02deed705c
BLAKE2b-256 321aba29ffab06fb994db2ac427ebf3884686518fa59635d832087dd675fe8f4

See more details on using hashes here.

File details

Details for the file PyKitReWi-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyKitReWi-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.0

File hashes

Hashes for PyKitReWi-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6701e1b2797bd0155a18cfd8b2f27c1aadd31f59d5696f30f6d84a5b95f7b42b
MD5 0bc397f79974e0d0ad1fc6dee7c9a4a3
BLAKE2b-256 8991f98500e135a660a76bb76a314f15204fcf07e959df58422c7f5abdafd2b0

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