Skip to main content

A template for creating a Python package and publishing it to PyPI

Project description

SWECC pypi template

Get up and running quickly with a new python package.

  1. Rename ./swecc_pypi_template to whatever your package is named
  2. Find and replace ./swecc_pypi_template and swecc-pypi-template
  3. Optionally change the python versions in ./pyproject.toml and .github/workflows/ci.yml

Dev Setup

python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pre-commit install

Commands

# lint
ruff check swecc_pypi_template

# format
black swecc_pypi_template

# type check
mypy swecc_pypi_template

# test
pytest

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

swecc_pypi_template-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

swecc_pypi_template-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file swecc_pypi_template-0.1.1.tar.gz.

File metadata

  • Download URL: swecc_pypi_template-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for swecc_pypi_template-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3462ce8520931ffd2e0ddcda9660c87759c557c5182910dfa9cb6861ea16fe13
MD5 6004f9a842612a4e2d7bb6590535e1ee
BLAKE2b-256 790e18e52a3a503db3a43195f4767b15d2a6dce2a6cefbea21bc52b6f410c30a

See more details on using hashes here.

File details

Details for the file swecc_pypi_template-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for swecc_pypi_template-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4c2dfd69fd173233b15b553d801bcddb907dd2862689b0d42e8367ddeb4367a
MD5 7957f9c5bbeda0a5c366b482c1870cf1
BLAKE2b-256 2bf394bc421dee4534e0cfe40f0e364742e1cbb4054e5402fef78c2e8de8985e

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