Skip to main content

plib3.stdlib

The PLIB3.STDLIB package contains a number of useful packages and modules that extend the Python 3 standard library. The latest official release is available on PyPI at https://pypi.org/project/plib3.stdlib/ and the latest source code is available on Gitlab at https://gitlab.com/pdonis/plib3-stdlib.

PLIB3.STDLIB is built using the build PEP 517 build tool with the setuputils_build backend, which uses the setuputils helper module to build the setup.cfg file that is included with the distribution. This module and build backend are available at https://gitlab.com/pdonis/setuputils3.

The PLIB3.STDLIB Packages and Modules

The following modules or sub-packages are available in the plib.stdlib namespace:

  • The builtins module contains some funtions that should be Python builtins, but aren’t. :) Importing the module adds those functions to the built-in namespace; this is mostly useful for interactive shells. The functions can also be imported directly from plib.stdlib.builtins, to make it easier to understand where the functions are coming from in module code.

  • The classtools module provides some utilities for working with classes and class attributes.

  • The cmdline module provides utilities useful for command line programs and interactive shells.

  • The coll sub-package provides various collection classes, including abstract collections built on the collections ABCs from the standard library.

  • The copytools module provides functions to copy function and code objects, which copy.copy in the Python standard library just returns unchanged. This allows copies of such objects to be made with selected attributes changed.

  • The csvtools module provides useful functions for working with CSV files.

  • The decotools module provides functions and factories for working with decorators.

  • The examples module contains entry point functions for the example programs shipped with plib3.stdlib.

  • The fdtools module provides utilities for working with file descriptors.

  • The imp module provides the import_from_module function, which should be in the standard library importlib module but isn’t. :)

  • The ini sub-package implements an abstract ‘INI file’ API that uses ConfigParser on POSIX systems, and the Windows registry on Windows systems. This API allows the configuration file structure to be declared using Python lists and dicts.

  • The iters module provides various functions dealing with or returning iterables.

  • The jsontools module provides convenience functions for loading and saving JSON files, and for “extended” JSON that allows “literal” Python types like tuples that standard JSON does not support.

  • The localize module provides useful functions for getting locale-specific information.

  • The mail module provides a useful shortcut function for sending email from programs.

  • The mathlib module provides some additional math functions to supplement those in the standard library.

  • The net sub-package provides simple network socket client and transport objects, and utilities for getting information about networks.

  • The options module provides an easier-to-use overlay for the argparse module which allows you to express your option configuration in the form of Python lists, tuples, and dicts.

  • The ostools module provides utilities for working with the operating system.

  • The postinstall module provides utilities to obtain information about the installation of a project and to run scripts from the shared data directory tree installed for the project, such as example programs.

  • The proc module provides two shortcut functions for getting the output of a subprocess.

  • The sigs module provides a context manager for installing signal handlers.

  • The strings module provides functions and constants for working with strings.

  • The systools module provides a context manager for temporarily changing sys.path.

  • The timer module provides functions for timing code, with an alternate API to the standard library’s timeit module that is easier to use when timing functions that you already have as objects, instead of source code strings.

  • The tztools module provides some useful tzinfo subclasses based on those in the Python docs for the datetime module, and a function to return the local system timezone name.

Installation

The simplest way to install PLIB3.STDLIB is by using pip:

$ python3 -m pip install plib3.stdlib

This will download the latest release from PyPI and install it on your system. If you already have a downloaded source tarball or wheel, you can have pip install it directly by giving its filename in place of “plib3.stdlib” in the above command line.

Example Programs

PLIB3.STDLIB comes with example programs that illustrate key features of some sub-packages. After installation, these can be found in the $PREFIX/share/plib3.stdlib/examples directory. If you have a POSIX system (Linux or Mac OSX), script wrappers to run these programs will be installed into the $PREFIX/bin directory.

The Zen of PLIB3

There is no single unifying purpose or theme to PLIB3, but like Python itself, it does have a ‘Zen’ of sorts:

  • Express everything possible in terms of built-in Python data structures.

  • Once you’ve expressed it that way, what the code is going to do with it should be obvious.

  • Avoid boilerplate code, and boilerplate data. Every piece of data your program needs should have one and only one source.

Release files for plib3.stdlib 2.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plib3.stdlib 2.4.2
File Size Uploaded
plib3_stdlib-2.4.2.tar.gz 133.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plib3.stdlib 2.4.2
File Interpreter ABI Platform
plib3_stdlib-2.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 277.9 kB

Release files / plib3_stdlib-2.4.2.tar.gz

Download URL plib3_stdlib-2.4.2.tar.gz
Size 133.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45f0a5f1483f8f185cc24c2a973a09fd9c3c10f279808c543bdb1671bff1e657
BLAKE2b-256 checksum
How to use checksums
289feb4bfc1dd335f0c9225e20a51949b8fc67db847edeb2dc5b29622a552bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / plib3_stdlib-2.4.2-py3-none-any.whl

Download URL plib3_stdlib-2.4.2-py3-none-any.whl
Size 144.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc68a48b82d3383da4e8d1f3fcf99d141268e857a8fdaeff4ad730f5047eabf2
BLAKE2b-256 checksum
How to use checksums
b9bd1a0d2a13cab397c052ed33a72da83c0148086bfc98412d09b5fab187526f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2.4.2 This release

2 release files

2.4.1

2 release files

2.4

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3

2 release files

2.2

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1

2 release files

2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

0.9.27

1 release file

0.9.26

0.9.25

1 release file

0.9.24

1 release file

0.9.23

1 release file

0.9.22

1 release file

0.9.21

1 release file

0.9.20

1 release file

0.9.19

1 release file

0.9.18

1 release file

0.9.17

1 release file

0.9.16

1 release file

0.9.15

1 release file

0.9.14

1 release file

0.9.13

1 release file

0.9.12

1 release file

0.9.11

1 release file

0.9.10

1 release file

0.9.9

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page