Python bindings for the Rust crate rspolib.
Project description
rspolib
Python bindings for the Rust crate rspolib.
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")
Benchmarks
You can run some guidance benchmarks to compare with polib with:
pip install -r dev-requirements.txt
pytest -svv
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rspolib-0.0.2.tar.gz
(58.2 kB
view hashes)
Built Distributions
rspolib-0.0.2-cp39-none-win_amd64.whl
(301.6 kB
view hashes)
rspolib-0.0.2-cp38-none-win_amd64.whl
(301.3 kB
view hashes)
rspolib-0.0.2-cp37-none-win_amd64.whl
(301.3 kB
view hashes)
Close
Hashes for rspolib-0.0.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08bda2be3ca70648128e288dfd29807235ff2b209bdd92b998b38ba4f67f53aa |
|
MD5 | 6441f356fd24ddbb0d28ada12668d269 |
|
BLAKE2b-256 | 21f89cf55c6ff892e90706e620d6398c9c615c1a6a2f579dd32114f653970843 |
Close
Hashes for rspolib-0.0.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cadd39d0b1cbc0af2979a4d3d4a3ac05fe9b0133382123f90e145580d338a3 |
|
MD5 | 933a6076577beee6b3f1e37b7ac2efec |
|
BLAKE2b-256 | 5e52a52d07be6d77911ff2d23a0824c416a033002ac15d8ab6f7ef8060da1c6c |
Close
Hashes for rspolib-0.0.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74733977e0bc842cb8386f960f4a5a9b454268a69d9f7d7304b7391ede3c8a2a |
|
MD5 | 32f38d4f3f25f34b55501fc8ba932ae6 |
|
BLAKE2b-256 | 95334c77d9e9aea2e4b2d3182221c11d6352f2e2b2e81b173bf5e15ee1652dbc |
Close
Hashes for rspolib-0.0.2-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea454c8c198b5275fa86d3186beb8f0d1a58be9809e569dee1dcabf56002464 |
|
MD5 | 11de98c5bf3d3ffac37573465eb549a2 |
|
BLAKE2b-256 | 4c067089920f630beee8722318ba0090069d9c66638b4724dfd59ecec87877cc |
Close
Hashes for rspolib-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76cdf4749d188d9bf6cdfec0276a5e575c22651e7fa53b8127f20f80d6484cd9 |
|
MD5 | 6da7a6b0f9dfdbdd8918ea7b6f2c2199 |
|
BLAKE2b-256 | 4430a6c8aa4484cfdb0a6128f34efd7447db9892ab5ff5f390adce6edd61d19e |
Close
Hashes for rspolib-0.0.2-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5e84348843fbb242b22ffef1860ca107ed7a72f647ca77b1e0a630c88aa713 |
|
MD5 | 96b22475f54896ceb8b28da962c379f7 |
|
BLAKE2b-256 | 47a802d6163ace07e06ee1a679a32abf753b31031124bc2b2259a1d2529d347e |
Close
Hashes for rspolib-0.0.2-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79a9e2cd5a9adf16f05ac54162c8bdcffde40c9234e236a0801cbce9dcd366f1 |
|
MD5 | 392c56a50edb1e1a13e44a764c1d64d6 |
|
BLAKE2b-256 | 2fc30e05eb3f1fa0727af66889a75501856132e7c9974acda82fe4ceacfa7d75 |
Close
Hashes for rspolib-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92fbbe8aacd8c4d7a343602f6af639e9dade9eb66b3d016ad506b5b325bd014c |
|
MD5 | 778a9a57f3d1b9b12b84b76c353b3ec7 |
|
BLAKE2b-256 | 36b6f981059f90b81378d60b37083e61c33ecb2ff6bb31b0278b81232ee0751e |
Close
Hashes for rspolib-0.0.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa6dc823ef8e84997bf905c8adc409be03403a9cb5136d673e0ab6b12e644b8 |
|
MD5 | 119065728939f525fd46e3f1f342b052 |
|
BLAKE2b-256 | b3d738d98a47b52e1ae5c2a1bf1083d80a1d444bae527baf197566d141903906 |
Close
Hashes for rspolib-0.0.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077343fa92d8f9a05aedfe32bc704dc212a86caed83f6fedc45126709607f374 |
|
MD5 | 7f795c62738ab142a04f04b362968370 |
|
BLAKE2b-256 | 865a825fddc61fb487439f417eee58ea65981b84deb6c21e2019d532fbfb0b0a |
Close
Hashes for rspolib-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24fc2623ab7ff960005deacb482f771991a1252ba7913262fe75e418bb8730a3 |
|
MD5 | 980e79d58c0677edbb12f81772a96946 |
|
BLAKE2b-256 | 49435a36b6d763034c134eb2b743c28054460c2999f9899ae0109be407a8de93 |
Close
Hashes for rspolib-0.0.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f75c6aa0803cef056a7aaf2a89e8474157be36ea72dc59c06f94334a9577683 |
|
MD5 | feaf66944a968421e54c4d786cbbf15b |
|
BLAKE2b-256 | 648a25294fbc31c0ec3499da44989668789754ba702ea20e420aedc988563aa8 |
Close
Hashes for rspolib-0.0.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab4d20e8fc91a1c14b79795842313b0ec81bf8169364b198e054a59b8833ba1 |
|
MD5 | 69c8ef2c349afb32ff046f3aff583db0 |
|
BLAKE2b-256 | 3d8a0cc72c027a8e168c04997bea438ff87ffe4c46dabb5368e6bcde88954860 |
Close
Hashes for rspolib-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41546806926f4f1355f3a19a5129c68d8637a2bc98adc9ca4aa227d8101e00f |
|
MD5 | 1974075297ebeab54128a24293ca1f8d |
|
BLAKE2b-256 | 67e4f550fe259ede7bdb2a8bf8e902eb9c343f799fc7d08ca277d0a1af15b1a0 |
Close
Hashes for rspolib-0.0.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129c627a558c90e58b6019a52787f9b59c73d8faee48101800677c6a516a7ba6 |
|
MD5 | 32e9520994b1e4780d02cbdac3d114fc |
|
BLAKE2b-256 | 097689ffd9ffd23b43290e4399e55e57d1afc8ea041dbcce708c717ff89e2361 |
Close
Hashes for rspolib-0.0.2-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d918dcb687e481657fefde7f2e7bd3ceef9f5a172c30f9475ed11f830aea1c |
|
MD5 | 8ac696ae51688697de0037a45d87acf9 |
|
BLAKE2b-256 | bf4e8493a8793483a5346852118503e31c4db02d4edd1e07843f83d1b1cfcab0 |
Close
Hashes for rspolib-0.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c806e292baa44c2840e28720f98c1fd882f241edda711e3f80178dfbc93ec48 |
|
MD5 | ffd8cd06b28a2995732971fc91028ce3 |
|
BLAKE2b-256 | 1e5799f9cee2f17a705b08636dc230148d7ed4b34efe2e3c939aebfdec2ac54f |
Close
Hashes for rspolib-0.0.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30cfaa826364e09ac303011a0f53f17de377416485dcf8c57814d4796b81e491 |
|
MD5 | 4050ac429067a4b84feca2c3c09fda97 |
|
BLAKE2b-256 | 50812ae6882305c430786d9ceab5e22b9e8c3cf49c20733c5e8dd079d31a2919 |