Skip to main content

Common utilities for Python packages

Project description

Package Utils

PyPI version 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.6.7.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

package_utils-0.6.7-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: package_utils-0.6.7.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for package_utils-0.6.7.tar.gz
Algorithm Hash digest
SHA256 ec47a77ef69cd75b368470566a26612fdb5c821efefe8c1888dfb061c8857e86
MD5 0e712dcf4746ab2df65f155c040c3f59
BLAKE2b-256 8fcb711a4cc7a6e547b4fa0a3ef92d3585ee33f7425e74a7778470d6a17096ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for package_utils-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 22ed09f84f8d7d7b2cf731f2e895d5cbf3cfe46af2dac2bd673c44aa958925d6
MD5 5619ce536d1251da311914dfb9ee2ce6
BLAKE2b-256 3b1fd19261f710f2b164b3dc68441483d78d49e1b5f45ccbd91ec960a78c2049

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page