Metadata-Version: 2.1
Name: backlib
Version: 0.0.0
Summary: Backports for the Python standard library.
Home-page: https://github.com/syubogdanov/backlib
License: MIT
Keywords: python,backport,stdlib,json,tomllib
Author: Sergei Bogdanov
Author-email: syubogdanov@outlook.com
Maintainer: Sergei Bogdanov
Maintainer-email: syubogdanov@outlook.com
Requires-Python: >=3.9,<3.14
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: typing-extensions (>=4.12,<5.0) ; python_version < "3.11"
Project-URL: Documentation, https://github.com/syubogdanov/backlib/tree/main/docs/
Project-URL: Repository, https://github.com/syubogdanov/backlib
Description-Content-Type: text/markdown

# backlib

[![PyPI Version][shields/pypi/version]][pypi/homepage]
[![PyPI Downloads][shields/pypi/downloads]][pypi/homepage]
[![License][shields/pypi/license]][github/license]
[![Python Version][shields/python/version]][pypi/homepage]

> [!WARNING]
> The library is in the planning 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`][pypi/homepage] on PyPI:

```shell
pip install backlib
```

### Usage

#### json

```python
from backlib.py313 import json

with open("./backlib.json", mode="w") as file:
    json.dump(["backlib"], file)
```

#### tomllib

```python
from backlib.py313 import tomllib

with open("./backlib.toml", mode="rb") as file:
    data = tomllib.load(file)
```

## Documentation

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

* [Python 3.13][docs/3.13]

## License

MIT License, Copyright (c) 2025 Sergei Bogdanov. See [LICENSE][github/license] file.

<!-- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- -->

[docs/3.13]: https://docs.python.org/3.13/library/index.html

[github/license]: https://github.com/syubogdanov/backlib/tree/main/LICENSE

[pypi/homepage]: https://pypi.org/project/backlib/

[shields/pypi/downloads]: https://img.shields.io/pypi/dm/backlib.svg?color=green
[shields/pypi/license]: https://img.shields.io/pypi/l/backlib.svg?color=green
[shields/pypi/version]: https://img.shields.io/pypi/v/backlib.svg?color=green
[shields/python/version]: https://img.shields.io/pypi/pyversions/backlib.svg?color=green

