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.9 -u -p

New Way to publish

docker run --rm --platform linux/amd64 -v $(pwd):/io ghcr.io/pyo3/maturin build -i python3.9

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

em_fares_to_xml-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

File details

Details for the file em_fares_to_xml-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for em_fares_to_xml-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eef9a1e154b5a60edd711601cfbd9effb8bc608e6e2fdca3d1cd653c6c2223f0
MD5 5e0f1fe3d6518ad4c7824c8a9e87e07e
BLAKE2b-256 27f8399d8f1d44f4a4d6f47eccf5e8065744ca86b9f416742978ad1cba2d5690

See more details on using hashes here.

Supported by

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