Skip to main content

Common utilities for Python packages

Project description

Package Utils

PyPI version PyPI downloads Python version Operating system Coverage

Usage

from dataclasses import dataclass, field
from pathlib import Path

from package_utils.cli.entry_point import create_entry_point


@dataclass
class Options:
    debug: bool = False
    output_path: Path = field(default_factory=Path.cwd)


def main(options: Options):
    ...


entry_point = create_entry_point(main)


if __name__ == "__main__":
    entry_point()

see examples in tests and python-package-template

Installation

pip install package-utils

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

package_utils-0.8.3.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

package_utils-0.8.3-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file package_utils-0.8.3.tar.gz.

File metadata

  • Download URL: package_utils-0.8.3.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for package_utils-0.8.3.tar.gz
Algorithm Hash digest
SHA256 d2b19c2ed099400b4481c2e7a79f1d0bc19797d16fb1c239d0c272b985c43cb1
MD5 9609757748e13c8a580ae204b98367c2
BLAKE2b-256 ac3ecf1ed14f9cdcceba09e5eba85346b0c277c6fc860a972a7b284013f46578

See more details on using hashes here.

File details

Details for the file package_utils-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: package_utils-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for package_utils-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7bdb93de70b7e321fd97611a410ee8b8f39035d0f29f252177c7b44cadc92738
MD5 1523e8070471182bee8c6121a5af41b5
BLAKE2b-256 eaa0df0d4b49dd45721aeaafa452468db4cf3fa802afc5edce9e719329969efc

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