Skip to content

Repository files navigation

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")

About

Rust port of polib Python library

Topics

Resources

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages