Metadata-Version: 2.1
Name: rspolib
Version: 0.0.1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Summary: Python bindings for the Rust crate rspolib.
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# rspolib

[![pypi](https://img.shields.io/pypi/v/rspolib?logo=pypi&logoColor=white)](https://pypi.org/project/rspolib/) [![pyversions](https://img.shields.io/pypi/pyversions/rspolib?logo=python&logoColor=white)](https://pypi.org/project/rspolib/)

Python bindings for the Rust crate [rspolib].

## Install

```bash
pip install rspolib
```

## Usage

```python
import rspolib

po = rspolib.pofile("path/to/file.po")

for entry in po:
    print(entry.msgid)

po.save("path/to/other/file.po")
```

## Benchmarks

You can run some guidance benchmarks to compare with [polib] with:

```bash
pip install -r dev-requirements.txt
pytest -svv
```

[rspolib]: https://github.com/mondeja/rspolib
[polib]: https://github.com/izimobil/polib

