em_fares_to_xml
Rust powered Python module for converting fare objects coming from the batch fare service into xml Facebook feed items objects.
Testing and benchmarking.
In order to run tests type in the project root:
$ cargo test --no-default-features
For run benchmarking:
$ cargo bench --no-default-features
Dependencies:
python3-dev package is required to bi installed to be able to compile.
Building the python module.
Use maturin for create/publish python module.
Compile
cargo build
Publish
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin publish -i python3.12 -u -p
New Way to publish
docker run --rm --platform linux/amd64 -v $(pwd):/io ghcr.io/pyo3/maturin build -i python3.12
twine upload target\wheels\em_fares_to_xml--cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
this will ask the token from pypi
How to test with cargo on docker
- first time
docker build -t farelib .
- when running tests, examples:
docker run --rm -v $(pwd):/app farelib sh -c "cargo test --no-default-features"
docker run --rm -v $(pwd):/app farelib sh -c "cargo test --test test_parse_json"
Release files for em-fares-to-xml 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
Release files / em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
600511309ebb7f503dcc0aa54ea9340a6f1c8bbb5b608d174f0fc4048ea7a0e2
|
|
BLAKE2b-256 checksum How to use checksums |
65831c5e5340b70eaa3b9f2f0f12311aaf608f3432712e15731e3259923c3d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|