Python bindings for the Rust crate rspolib.
Project description
rspolib
Python bindings for the Rust crate rspolib. Check the reference for more information.
Install
pip install rspolib
Usage
Read and save a PO file
import rspolib
try:
po = rspolib.pofile("path/to/file.po")
except rspolib.SyntaxError as e:
print(e)
exit(1)
for entry in po:
print(entry.msgid)
po.save("path/to/other/file.po")
Read and save a MO file
import rspolib
try:
mo = rspolib.mofile("path/to/file.mo")
except rspolib.IOError as e:
print(e)
exit(1)
for entry in mo:
print(entry.msgid)
mo.save("path/to/other/file.mo")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for rspolib-0.1.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f54cbaa81e728fffa5b6afe496a1110c85e6ed0b2e619953e590a579849a813 |
|
MD5 | 9e38dff15b2e89a019b2396b6da97575 |
|
BLAKE2b-256 | 88f144bb6b48b0b3ec6cd545e9a7520a264f21ce48505cd9c7073ae6987d9983 |
Close
Hashes for rspolib-0.1.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605ec145e882f0b7fc629e7c835ba375628f2dbb86ef46b69d0375244ce5c454 |
|
MD5 | 5d61fd36163b5a4474feab1f726d15e5 |
|
BLAKE2b-256 | 14e31497bfd36fe8a93897b0f471c08018125010c05c0db8bfa8f049e5bbde21 |
Close
Hashes for rspolib-0.1.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0eec3944df2a2a4df4df29b0a1aaf81c53c01771f83ea53e6673dcc0ef2cbb9 |
|
MD5 | 8d88e4a9f1e64077af493ab0cfdee3e9 |
|
BLAKE2b-256 | d13300e9bc4758ab03fbe8dee332ff0ecc243f9b4aa93d34c20486ec2fa3c6e9 |
Close
Hashes for rspolib-0.1.0-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0ded03ef11c12aad6a77f8f57e578d486714b8dba3e9905633e5c5df1796c1 |
|
MD5 | 8cf59930dbea7d2c07ff09026e9f522f |
|
BLAKE2b-256 | 1f00f56a3a90a76b85eae16377118952eb7eb97fab7467965cfd56dd9de6ce86 |
Close
Hashes for rspolib-0.1.0-cp38-cp38-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92458aa9c6c1b0f846c809d072c19d57a3a00888819999554ca126d63bbf8cf5 |
|
MD5 | 9757bd7473fae30c536b81d2c315800c |
|
BLAKE2b-256 | 80ddfc2c2eb948964283be4e7e1fbedd5d264574ff77a3099fe25048961d6174 |