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.1.tar.gz (10.7 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.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: package_utils-0.8.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for package_utils-0.8.1.tar.gz
Algorithm Hash digest
SHA256 4a00f4e4153811cde582310cd0eaca0cad85099475e97d3880ed73ae143e1fd7
MD5 626b17da7008d3062c761bc0f4ffa552
BLAKE2b-256 1e4eb805ef4ef0753c43765cffab639d1b97173b1043d17fa2bbad922dc99720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for package_utils-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 491650c1d54ebbc01b13e14fe40d149cf20524a7cbaa942d7cdc5baea491cb79
MD5 b934d3422adc8c15fb3513b6c549920b
BLAKE2b-256 f0c0b9d1a9be85014adb46b78ccacfabb954baa5aaf3f786e98860f440a7dc0c

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