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.2.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for package_utils-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61aa66f270d89ffe0021f757f5f813179bc8997c57b5f719b4c62752795c2b8 |
|
MD5 | e48b13fc1579b22dcd04550c3cc79519 |
|
BLAKE2b-256 | d91010aef3ef14c21bf3aaa2be7aeede5234629dfba2895b9e3b9233281049c1 |