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.2.tar.gz (10.8 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.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: package_utils-0.8.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.tar.gz
Algorithm Hash digest
SHA256 0c778decba1464427ab7c176bdaddb7649f8f0fc23cc8bcf541d0e035f9717bf
MD5 e976c1dee6e6cf399fd79ce7ead03b3e
BLAKE2b-256 f408d32410a3ad73fee60306b00491c052a4a04fe67c5237b044b098b9736bb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: package_utils-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b74a309efc530448137e98e5b0652aa1522aa0dc7836f7344d7dcec001105d04
MD5 1047bc1778d10b257630353e6521b831
BLAKE2b-256 8dd43e0aa0871a8bcc1ca7aa2b4b0fd490c828f660b8474a5e3bcec2bbcdbbbc

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