Skip to main content

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"

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)

Table of built distributions (wheels) for em-fares-to-xml 2.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.3.1 This release

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page