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.4.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for package_utils-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba06b59683632fcd1fb8c35af68b53d8a747dd4b1f74ffbf2728bca9e4b3273 |
|
MD5 | 86e44bee88c912aa13cfb4ffa68b9572 |
|
BLAKE2b-256 | fe0e0a60eb066fbf82010391bf3b98c8885b59b39b4322854eca537fc02ecb20 |