Skip to content

syubogdanov/backlib

Repository files navigation

backlib

PyPI Version PyPI Downloads License Python Version

Warning

The library is in the pre-alpha stage.

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

errno [UNRELEASED]

For more, see the documentation.

from backlib.py313 import errno

assert errno.ENOTCAPABLE == 93

io [SOON]

For more, see the documentation.

from backlib.py313 import io

...

json

For more, see the documentation.

from backlib.py313 import json

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

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

ntpath [UNRELEASED]

For more, see the documentation.

from backlib.py313 import ntpath

is_reserved = ntpath.isreserved("./backlib")

assert not is_reserved

os [UNRELEASED]

For more, see the documentation.

from backlib.py313 import os

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

assert st.st_birthtime_ns > 0

os.path [UNRELEASED]

For more, see the documentation.

from backlib.py313 import ospath

is_reserved = ospath.isreserved("./backlib")

assert not is_reserved

posixpath [UNRELEASED]

For more, see the documentation.

from backlib.py313 import posixpath

is_reserved = posixpath.isreserved("./backlib")

assert not is_reserved

shutil [SOON]

For more, see the documentation.

from backlib.py313 import shutil

...

stat

For more, see the documentation.

from backlib.py313 import stat

assert stat.SF_SYNTHETIC == 0xC0000000

tarfile [SOON]

For more, see the documentation.

from backlib.py313 import tarfile

...

tomllib

For more, see the documentation.

from backlib.py313 import tomllib

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

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

zipfile [SOON]

For more, see the documentation.

from backlib.py313 import zipfile

...

License

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

Releases

No releases published

Packages

No packages published

Languages