Warning
The library is in the pre-alpha stage.
- Provides backports for the standard library;
- Compatible with Python 3.9+;
- Almost dependency-free.
The library is available as backlib
on PyPI:
pip install backlib
from backlib.py313 import io
...
from backlib.py313 import json
data = json.loads("{\"backlib\": \"pypi\"}")
assert data == {"backlib": "pypi"}
from backlib.py313 import ntpath
...
from backlib.py313 import os
...
from backlib.py313 import ospath
...
from backlib.py313 import pathlib
...
from backlib.py313 import posixpath
...
from backlib.py313 import shutil
...
from backlib.py313 import stat
assert stat.SF_SYNTHETIC == 0xC0000000
from backlib.py313 import tarfile
...
from backlib.py313 import tomllib
data = tomllib.loads("\"backlib\" = \"pypi\"")
assert data == {"backlib": "pypi"}
from backlib.py313 import zipfile
...
The backlib
API is the same as the standard library, so you can refer to the official documentation:
MIT License, Copyright (c) 2025 Sergei Bogdanov. See LICENSE file.