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

io [SOON]

from backlib.py313 import io

...

json

from backlib.py313 import json

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

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

ntpath [SOON]

from backlib.py313 import ntpath

...

os [SOON]

from backlib.py313 import os

...

os.path [SOON]

from backlib.py313 import ospath

...

pathlib [SOON]

from backlib.py313 import pathlib

...

posixpath [SOON]

from backlib.py313 import posixpath

...

shutil [SOON]

from backlib.py313 import shutil

...

stat

from backlib.py313 import stat

assert stat.SF_SYNTHETIC == 0xC0000000

tarfile [SOON]

from backlib.py313 import tarfile

...

tomllib

from backlib.py313 import tomllib

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

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

zipfile [SOON]

from backlib.py313 import zipfile

...

Documentation

The backlib API is the same as the standard library, so you can refer to the official documentation:

License

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