Skip to main content

backlib

PyPI Version PyPI Downloads License Python Version

Key Features

  • Provides backports for the standard library;
  • Compatible with Python 3.9+;
  • Almost dependency-free.

Getting Started

Installation

The library is available as backlib on PyPI:

pip install backlib

Usage

builtins

For more, see the documentation.

from backlib.py310 import builtins

assert issubclass(builtins.EncodingWarning, Warning)

errno

For more, see the documentation.

from backlib.py311 import errno

assert errno.ENOTCAPABLE == 93

io [SOON]

For more, see the documentation.

from backlib.py311 import io

encoding = io.text_encoding(None)

assert encoding == "utf-8"

json

For more, see the documentation.

from backlib.py310 import json

data = json.loads("{\"backlib\": \"pypi\"}")

assert data == {"backlib": "pypi"}

operator

For more, see the documentation.

from backlib.py311 import operator

value = operator.call(abs, -42)

assert value == 42

os

For more, see the documentation.

from backlib.py312 import os

st = os.stat("pyproject.toml")

assert st.st_birthtime_ns > 0

os.path

For more, see the documentation.

from backlib.py313 import os

assert os.path.isreserved("NUL")

stat

For more, see the documentation.

from backlib.py313 import stat

assert stat.SF_SYNTHETIC == 0xC0000000

tomllib

For more, see the documentation.

from backlib.py311 import tomllib

data = tomllib.loads("\"backlib\" = \"pypi\"")

assert data == {"backlib": "pypi"}

License

MIT License, Copyright (c) 2025 Sergei Y. Bogdanov. See LICENSE file.

Metadata

Release files for backlib 0.2.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 backlib 0.2.2
File Size Uploaded Provenance Actions
backlib-0.2.2.tar.gz 59.8 kB Without provenance Details for backlib-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for backlib 0.2.2
File Interpreter ABI Platform Actions
backlib-0.2.2-py3-none-any.whl Python 3 none any Details for backlib-0.2.2-py3-none-any.whl

Total release size: 166.4 kB

Release files / backlib-0.2.2.tar.gz

Download URL backlib-0.2.2.tar.gz
Size 59.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c9e09049b351b0535ffc8c8bf95e2f03b5ba50571ca63b9b6723da123c855d85
BLAKE2b-256 checksum
How to use checksums
896b4e5c7d7d5759dd0afc360f45fa69af6000ff743333e1fd82c9301e86a5d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.3 Windows/10

Release files / backlib-0.2.2-py3-none-any.whl

Download URL backlib-0.2.2-py3-none-any.whl
Size 106.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6851ca98df9eb7010fa3e7112a7cd99d74e369be7fee710314c40b2a0c5de50a
BLAKE2b-256 checksum
How to use checksums
694c5e25c68653624019b008dcd0bf6863639cac81204481ece6e15737abaf5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.3 Windows/10

Security for backlib 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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