Common utilities for Python packages
Project description
Package Utils
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
Release history Release notifications | RSS feed
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.5.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for package_utils-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23232b13f56244350f8539fc8fb8662fc347a14097eda340d4aa8c6a9bd8b9ef |
|
MD5 | ba721af4e6d0c9f9be16b41f809f9ed1 |
|
BLAKE2b-256 | 32f41710e8ca2d327bcc1da1bcbdb3957faa6601e01f34195043a0ef170488de |