Skip to main content

No project description provided

Project description

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

Find the Python module here

How to test with cargo on docker

  1. first time

docker build -t farelib .

  1. 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"

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 Distribution

If you're not sure about the file name format, learn more about wheel file names.

em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

File details

Details for the file em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for em_fares_to_xml-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 600511309ebb7f503dcc0aa54ea9340a6f1c8bbb5b608d174f0fc4048ea7a0e2
MD5 10857d8628af926a2324a09d56624c21
BLAKE2b-256 65831c5e5340b70eaa3b9f2f0f12311aaf608f3432712e15731e3259923c3d3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page