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-dev21 (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.dev21.tar.gz (11.2 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.dev21-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lockss_pybasic-0.3.0.dev21.tar.gz
  • Upload date:
  • Size: 11.2 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.dev21.tar.gz
Algorithm Hash digest
SHA256 8649bf501112b387b9f145f770b3a25495e046ab45a7c888cb30b15459e74934
MD5 0580dabc4b3a425593a5f79d9203a9e4
BLAKE2b-256 fe0522ec30b2f3806f1e342ae55c805bf449dc5d7bcfd10f8d3ac7015930b6b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lockss_pybasic-0.3.0.dev21-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • 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.dev21-py3-none-any.whl
Algorithm Hash digest
SHA256 4b95740390797a400e582132eb2e21a54d44cd28f336d74d5f649b75db52454c
MD5 398f3eefdc6e0ab06e77b38e8a852a46
BLAKE2b-256 672a9bb9ec75c20d876803b05cef4b0bb35188710e8bb30a88edad529ea983ea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0.dev21 This release

2 files

0.2.0

2 files

0.2.0.dev16

2 files

0.2.0.dev15

2 files

0.2.0.dev14

2 files

0.2.0.dev13

2 files

0.2.0.dev12

2 files

0.2.0.dev11

2 files

0.2.0.dev10

2 files

0.2.0.dev9

2 files

0.2.0.dev8

2 files

0.2.0.dev7

2 files

0.2.0.dev6

2 files

0.2.0.dev5

2 files

0.2.0.dev4

2 files

0.2.0.dev3

2 files

0.2.0.dev2

2 files

0.2.0.dev1

2 files

0.1.1

2 files

0.1.0

2 files

0.1.0.dev23

2 files

0.1.0.dev22

2 files

0.1.0.dev21

2 files

0.1.0.dev20

2 files

0.1.0.dev19

2 files

0.1.0.dev18

2 files

0.1.0.dev17

2 files

0.1.0.dev16

2 files

0.1.0.dev15

2 files

0.1.0.dev14

2 files

0.1.0.dev13

2 files

0.1.0.dev12

2 files

0.1.0.dev11

2 files

0.1.0.dev10

2 files

0.1.0.dev9

2 files

0.1.0.dev8

2 files

0.1.0.dev7

2 files

0.1.0.dev6

2 files

0.1.0.dev5

2 files

0.1.0.dev4

2 files

0.1.0.dev3

2 files

0.1.0.dev2

2 files

0.1.0.dev1

2 files

Supported by

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