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
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.8.4.tar.gz
(11.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file package_utils-0.8.4.tar.gz.
File metadata
- Download URL: package_utils-0.8.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b9aa7fc2801a550b3f1b9a9c7834bc845e3134b7070b901a930fb8d5ff67e5b
|
|
| MD5 |
5332ec40be488974bddf1b587a02d6ec
|
|
| BLAKE2b-256 |
d33c04defd46d89db2d77f387e12a82a455157ef21a1d539adaa9a939175e869
|
File details
Details for the file package_utils-0.8.4-py3-none-any.whl.
File metadata
- Download URL: package_utils-0.8.4-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
825c89df60a246dc8b65fd497abb270fbb977963b95b8317a4a9768645c562d7
|
|
| MD5 |
83147e54a629c1990c5995d0b2fac730
|
|
| BLAKE2b-256 |
2b6e18446da7c70fd8bc3527e8d1547a533247d83308b2cabfb461c95985ee12
|