Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Latest release: 0.3.0-dev18 (NOT YET RELEASED)

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.

Unit Tests

Run python -m unittest discover tests at the root of the project tree (where there is a directory called tests).

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.3.0.dev18.tar.gz (11.1 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.3.0.dev18-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file lockss_pybasic-0.3.0.dev18.tar.gz.

File metadata

  • Download URL: lockss_pybasic-0.3.0.dev18.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/7.0.10-arch1-1

File hashes

Hashes for lockss_pybasic-0.3.0.dev18.tar.gz
Algorithm Hash digest
SHA256 0874cdbc7a81929178b0919401f328e423ca2b383e54ed3a9ba9579d86d428f4
MD5 3cd50290ad8ea15470e84574bd2a6f57
BLAKE2b-256 590896f86688b4a4c6fc3cb85f6456d97f0797033cdf490c4ec8bfddef643e14

See more details on using hashes here.

File details

Details for the file lockss_pybasic-0.3.0.dev18-py3-none-any.whl.

File metadata

File hashes

Hashes for lockss_pybasic-0.3.0.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 e6820a7f10af6d7a7bdf4c9566c7d93cf18a7b474d8b094e41338bb053c279bd
MD5 e1aab5cb9977a58b6a38c5d78fb68572
BLAKE2b-256 38db7d54164bd34cc430c94195c599fd174776fe5618203f2983162675ba0160

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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