Skip to main content

A template for a private Python package

Project description

Public Python Package Template

Using This Template for Your Own Package (e.g., "my_package")

To adapt this template for your new package (let's call it "my_package"):

  1. Copy or Template the Repository:

    • Click the "Use this template" button on GitHub to create a new repository from this template.
  2. Rename the Package Directory:

    • Rename the main package directory in src dir
  3. Update pyproject.toml:

    • [project].name: Change from "public_package_template" to "my_package".
    • [project].urls: Update Homepage and Repository URLs to point to your new repository.
  4. Set up bump version:

    1. Go to: https://github.com/settings/personal-access-tokens/new?type=beta
    2. Set permission "Contents" to Read & Write
    3. Create a repository secret with the name BUMPVERSION_TOKEN
    4. It is recommended to make the main branch protected as every push/merge/commit to it will trigger a bump version.
  5. Set up PyPI

    1. Go to: https://pypi.org/manage/account/token/
    2. Click "Add API token", set the scope for your package
    3. Create a repository secret with the name PYPI_PUBLISH_TOKEN
  6. Once you push anything to main, a new tag will be created, built, and published to PyPI

Installing Your Published Public Package

Then you can just pip install your package.

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

yid_public_package_template-0.1.14.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

yid_public_package_template-0.1.14-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file yid_public_package_template-0.1.14.tar.gz.

File metadata

File hashes

Hashes for yid_public_package_template-0.1.14.tar.gz
Algorithm Hash digest
SHA256 ae0f9b802343b7b28a9a5abeb2ec0ce03d78b819add0223db1a697fdd9802abf
MD5 37fe16be9b530fae10b2e44826918ca2
BLAKE2b-256 67115ac218430792b6579245bd7f51ed884572c1c7b2b33ca681ee22584787e9

See more details on using hashes here.

File details

Details for the file yid_public_package_template-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for yid_public_package_template-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 78958dc9e52bbc3b4259364a7a508832c647435f6f643f5837431bc6a01480fe
MD5 9d37cd80387cc2eef3914029e867b93d
BLAKE2b-256 afe9752c3edba61cf2a9a483c76df3ca454026f7162856c06b2595d64efc4b36

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