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.6.5.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for package_utils-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42fcd156d58a8d233f0055ae6a178b1b63d4f9eb86b962dcf3f8e90a353fb50 |
|
MD5 | 9b0429c9aa09bfdb2d7056d47eb5cc32 |
|
BLAKE2b-256 | 11e80202f9165fbd31c9493697eb6e351dd29321bc7c2f2bf17b02bd76b583e3 |