Skip to main content

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

lockss_pybasic-0.2.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lockss_pybasic-0.2.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

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

Hashes for lockss_pybasic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1b864c7e7ce069a43d2880fa5c15aef2cc66ac1d51fc2118644ba2aa5e9b513b
MD5 aa92e397a780ef2485d9d855adb93d6d
BLAKE2b-256 240102b3f1972a469867622c93d2d15692fee56d3ee57c396fe7699f6779f9ec

See more details on using hashes here.

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

Hashes for lockss_pybasic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9268c01a481d11a0e65d1372fe9ad15e6a412d73d3035742b21eba71b0b54359
MD5 9cc18855b4207e9a1bacd72c4bb6a3a8
BLAKE2b-256 7582805aa684e7ae001d32c83ef8d0f09a0661f4288b995e70223ceb4faf744d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page