Skip to main content

Basic Python utilities

Project description

Latest release: 0.3.0-dev3 (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.

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.3.0.dev3.tar.gz (10.3 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.dev3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lockss_pybasic-0.3.0.dev3.tar.gz
Algorithm Hash digest
SHA256 2f3e6e13889a19ebc929d529255ee62814f1eea7a9a1c3e95dd71a9e0472bcd3
MD5 1b40a8b3964f45d60dc79ec0d034e5f8
BLAKE2b-256 fb4b9fbfb637f3c78d4d83e243be2dbf22c79fae51d40388bf371677b9190f35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lockss_pybasic-0.3.0.dev3-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/7.0.9-arch1-1

File hashes

Hashes for lockss_pybasic-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 495242d3480559098ba3796d28b2359b2e8901c1674a89b7d75f4e822dd1180b
MD5 75798e06d11e54be9366beec91044bb0
BLAKE2b-256 c913d7992fbc5390621718d8079e3b385946fdd6ae0f2b72f822e77e8e9291e2

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