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.8.2.tar.gz
(10.8 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.2.tar.gz.
File metadata
- Download URL: package_utils-0.8.2.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 |
0c778decba1464427ab7c176bdaddb7649f8f0fc23cc8bcf541d0e035f9717bf
|
|
| MD5 |
e976c1dee6e6cf399fd79ce7ead03b3e
|
|
| BLAKE2b-256 |
f408d32410a3ad73fee60306b00491c052a4a04fe67c5237b044b098b9736bb9
|
File details
Details for the file package_utils-0.8.2-py3-none-any.whl.
File metadata
- Download URL: package_utils-0.8.2-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 |
b74a309efc530448137e98e5b0652aa1522aa0dc7836f7344d7dcec001105d04
|
|
| MD5 |
1047bc1778d10b257630353e6521b831
|
|
| BLAKE2b-256 |
8dd43e0aa0871a8bcc1ca7aa2b4b0fd490c828f660b8474a5e3bcec2bbcdbbbc
|