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.1.tar.gz
(10.7 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.1.tar.gz.
File metadata
- Download URL: package_utils-0.8.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a00f4e4153811cde582310cd0eaca0cad85099475e97d3880ed73ae143e1fd7
|
|
| MD5 |
626b17da7008d3062c761bc0f4ffa552
|
|
| BLAKE2b-256 |
1e4eb805ef4ef0753c43765cffab639d1b97173b1043d17fa2bbad922dc99720
|
File details
Details for the file package_utils-0.8.1-py3-none-any.whl.
File metadata
- Download URL: package_utils-0.8.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
491650c1d54ebbc01b13e14fe40d149cf20524a7cbaa942d7cdc5baea491cb79
|
|
| MD5 |
b934d3422adc8c15fb3513b6c549920b
|
|
| BLAKE2b-256 |
f0c0b9d1a9be85014adb46b78ccacfabb954baa5aaf3f786e98860f440a7dc0c
|