Basic Python utilities
Project description
Latest release: 0.2.0 (2026-03-18)
lockss-pybasic provides basic utilities for various LOCKSS projects written in Python.
Modules
- lockss.pybasic.cliutil
Command line utilities based on Click Extra, Cloup and Click.
click_path(): a click.Path utility.
PositiveInt, NonNegativeInt, NegativeInt, NonPositiveInt, UInt16: click.ParamType integer types.
compose_decorators(): a decorator utility.
make_table_format_option(): a remix of click_extra.table_format_option that is not attached to the top-level command.
make_extra_context_settings(): a custom click_extra.ExtraContext.
- lockss.pybasic.errorutil
Error and exception utilities.
InternalError is a no-arg subclass of RuntimeError.
- lockss.pybasic.fileutil
File and path utilities.
file_lines returns the non-empty lines of a file stripped of comments that begin with # and run to the end of a line.
path takes a string or PurePath and returns a Path for which Path.expanduser() and Path.resolve() have been called.
Release Notes
See CHANGELOG.rst.
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
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 lockss_pybasic-0.2.0.tar.gz.
File metadata
- Download URL: lockss_pybasic-0.2.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b864c7e7ce069a43d2880fa5c15aef2cc66ac1d51fc2118644ba2aa5e9b513b
|
|
| MD5 |
aa92e397a780ef2485d9d855adb93d6d
|
|
| BLAKE2b-256 |
240102b3f1972a469867622c93d2d15692fee56d3ee57c396fe7699f6779f9ec
|
File details
Details for the file lockss_pybasic-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lockss_pybasic-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9268c01a481d11a0e65d1372fe9ad15e6a412d73d3035742b21eba71b0b54359
|
|
| MD5 |
9cc18855b4207e9a1bacd72c4bb6a3a8
|
|
| BLAKE2b-256 |
7582805aa684e7ae001d32c83ef8d0f09a0661f4288b995e70223ceb4faf744d
|