Skip to main content

pyprote: A Python package for creating Templates for python projects

Installation from PyPi

pip install pyprote

For test-PyPi dev version:

pip install -i https://test.pypi.org/simple/ pyprote

Usage

Create a new project

Get default template:

pyprote

You will have to replace all instances of PY_PRO_TE_FILL_ME_IN with your own project name, email etc..

Fill the template cli arguments:

pyprote --package_name my_cool_package_name \
        --package_version 0.1.0 \
        --package_description 'My cool package description' \
        --package_author_name 'John Doe' \
        --package_author_email john@doe \
        --package_link https://cool.package \
        --out_dir pyprote_output_dir

Installation - development

Create a virtual environment.

Poetry:

poetry install

Testing

Running the tests requires to run the following command in the root folder (of course in the virtual environment):

poetry run pytest

CLI app

pyprote --help

Formatting

poetry run black . && \
poetry run isort . && \
poetry run flake8 . && \
poetry run mypy .

Versioning

Update (calendar) version with bumpver:

poetry run bumpver update --dry --patch

--dry just shows how the version WOULD change.

poetry run bumpver update --patch

How to build a Python package?

To build the package, you need to go to the root folder of the package and run the following command:

poetry build

The built package is now located in the dist/ folder.

Publishing your package in PyPi

Publishing is done automatically using GitHub actions.

Commit to master creates test-pypi release.

Tagged Commit creates real pypi release.

Metadata

Release files for pyprote 2022.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyprote 2022.8.4
File Size Uploaded Provenance Actions
pyprote-2022.8.4.tar.gz 9.2 kB Without provenance Details for pyprote-2022.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyprote 2022.8.4
File Interpreter ABI Platform Actions
pyprote-2022.8.4-py3-none-any.whl Python 3 none any Details for pyprote-2022.8.4-py3-none-any.whl

Total release size: 23.4 kB

Release files / pyprote-2022.8.4.tar.gz

Download URL pyprote-2022.8.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4da40e8668711f72b080bbb122aa03eedf6d41d405e734073c2bae314f312b03
BLAKE2b-256 checksum
How to use checksums
cbd9d10913fe8310a0c7858e06ff75103d8405e8ed3080a26ea93308b78f96cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / pyprote-2022.8.4-py3-none-any.whl

Download URL pyprote-2022.8.4-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51435ada262497a83b10dfdbdbd4dc46fd7f5db42683a7e096184144f7f2d35a
BLAKE2b-256 checksum
How to use checksums
aff37cddf7f59dc3fc063f1e8e9a4fd55bffa5774515681cc1af920e1a2af3fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for pyprote 2022.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2022.8.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page