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"
Metadata
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 | Actions 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 for em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
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
|
Security for em-fares-to-xml 2.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.