7 releases

0.1.1 Jan 20, 2025
0.1.0 Jan 18, 2024
0.0.5 Mar 12, 2023

#57 in Internationalization (i18n)

Download history 3/week @ 2024-12-09 95/week @ 2025-01-20

95 downloads per month

MIT license

245KB
6.5K SLoC

Rust 5K SLoC // 0.0% comments PO File 1K SLoC // 0.2% comments Modelica 25 SLoC

rspolib

crates.io PyPI docs.rs Bindings docs

Port to Rust of the Python library polib.

Install

cargo add rspolib

Usage

use rspolib::{pofile, prelude::*};

let po = pofile("./tests-data/flags.po").unwrap();

for entry in &po.entries {
    println!("{}", entry.msgid);
}

po.save("./file.po");

See the documentation at docs.rs/rspolib

Python bindings

Python versions

Usage

import polib
import rspolib

rspo = rspolib.pofile(f"{tests_dir}/django-complete.po")
pypo = polib.pofile(f"{tests_dir}/django-complete.po")

Dependencies

~2.5MB
~41K SLoC