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 hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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