SIRI Profile France Parser
A Python library for parsing SIRI (Service Interface for Real-time Information) messages according to the French national profile specification (SIRI Profile France).
Overview
This library implements the French national adaptation of the SIRI standard, which is used for real-time public transport information exchange in France. It provides tools for parsing and working with SIRI messages that conform to the French profile specifications.
Key Features
Full support for SIRI Profile France v2.0 XML parsing Type-safe data structures Support for all SIRI France service types:
- Stop Monitoring
- Estimated Timetable
- General Message
- Situation Exchange
- Production Timetable
- Facility Monitoring
- Connection Monitoring
- Vehicle Monitoring
Siri interpretation notice et folders structures.
SIRI (Service Interface for Real-time Information) defines
- Services (services available)
- Structures (data class/ structures for every object found in the specficication)
- Enums
Sometimes you will find ::: in the specification, ex:
| LEADER | ::: | 1:1 | xxx-Delivery | voir xxxDelivery |
|---|---|---|---|---|
For us, it means single or multiples members of xxx-Delivery/LEADER can be found flattened into the structures where xxx-Delivery/LEADER is implemented.
We have therefore decide to flatten XxxDelivery rust struct each time we found ::: or LEADER defined into a response data structure and we build a custom deserializer for it.
We have done so everytime we found that a data structure needed to be flattened
Installation
The parser can be installed using pypi, it requires python to be at version >=3.7
pip install siri-parser
an then it can be used like this:
import siri_parser as siri
siri_parser = siri.SIRI()
data = """SIRI XML"""
parsed_data = siri_parser.parse(data)
print(str(parsed_data))
if parsed_data.body().notify_production_timetable():
print("production_timetable")
elif parsed_data.body().notify_estimated_timetable():
print("estimated_timetable")
else:
print("other services")
License
MIT license
Release files for siri-parser 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| siri_parser-0.1.8.tar.gz | 40.8 kB | Details |
Built distributions (wheels)
Total release size:12.2 MB
Release files / siri_parser-0.1.8.tar.gz
| Download URL | siri_parser-0.1.8.tar.gz |
|---|---|
| Size | 40.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
978d31e046ee2e92966587e5501e09f7e175e82dd1ec1f4a704e8eaa48d29f30
|
|
BLAKE2b-256 checksum How to use checksums |
fc302f76b834a52a38ce31d9e7162d9ae0e8f74f4f8c0c708207cad23e8fd947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-win_amd64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 612.9 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2779302f73eb957add247503982499cc0ceb0909bb552a57c75232a764796987
|
|
BLAKE2b-256 checksum How to use checksums |
d324b82ddc681422bf6266df1f47acc53518a93274f480e5ab93039fb6fe7310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-win32.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-win32.whl |
|---|---|
| Size | 556.7 kB |
| Tags | CPython 3.7 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
47e036028ed714c6dc2a43e114a292616ded72cf5abe9c8f6a684b8f93bac39a
|
|
BLAKE2b-256 checksum How to use checksums |
9f199dc640b2f2b2b903e5df1897fadd336da72c357b785b5d75150f39bc9c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-musllinux_1_2_x86_64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.7 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
773ee042a2c9110d821df0c0cc9a0237783a694ebb34cd8eca575a4f30d22ade
|
|
BLAKE2b-256 checksum How to use checksums |
2366de356a71ea7653ca086fbd23d355ae8135727713152f09ab8213422eb831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-musllinux_1_2_i686.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-musllinux_1_2_i686.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.7 Linux musl 1.2+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
cfa32e1bbe865717ae4d68ade083cb2c1c7d853110fdab36b8a001fe44ed6d2e
|
|
BLAKE2b-256 checksum How to use checksums |
fc3dedfde0b764bc00e86e71dd7ac96225205c6abbd7047c1051fc8071e6160d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-musllinux_1_2_armv7l.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 Linux musl 1.2+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
2a9dc37275819cc2f12321fc7759533fbf74b7f1a96b40f33c363c2bfa9e98a9
|
|
BLAKE2b-256 checksum How to use checksums |
20993d274c4cb3314e78435d4b1072a02294613b7d877f8d29324630210da20b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-musllinux_1_2_aarch64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.7 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b31a164c3a31b18d204033af38f3804245dab32f54bda3e4947b79a4d75ab608
|
|
BLAKE2b-256 checksum How to use checksums |
b9e9168e87d892f7475c47c55d54b1dc69e362fcc40a5f9ec9c189407f623c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 851.9 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5ff41c8a30adcf491f4c2ab28a45d528cf8eb3efe7daa007c63940c7e945f03f
|
|
BLAKE2b-256 checksum How to use checksums |
89ac5f0555fd5da9b2514928685b38e3ec2463fa2b297b4614fa3f8ca8c70095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 966.4 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
5a7f16c1a32e4aed352da638889df53764942620617be7edb2e5b56816eea532
|
|
BLAKE2b-256 checksum How to use checksums |
cec5a75336bffa5b2002c7b1840ca22149c1873482479f1a07d8f9b73d53b28f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 899.7 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
ccddba482ddb3ee97d0b7b50d25a5e433a34163144ced5f912f3f55bdde6eb3b
|
|
BLAKE2b-256 checksum How to use checksums |
ab43ad6ff9c2c5090bca85196ea6de4b20fa05b55fd38f29c6fc81e975a565c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 834.2 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
a04e64edd1bb63c09cbdefbd1217f5eb88cfe9bbe98c1ff80e983bc94dad01a0
|
|
BLAKE2b-256 checksum How to use checksums |
3874cabdf01912bac0b4c9995e036700a5ff43dd1a9498f22ed3731b4cc2a05f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 846.3 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
84f4ab3ca918505f43e3df264f22a922d9e36904685435fd0f7573410c10d95f
|
|
BLAKE2b-256 checksum How to use checksums |
eff769b29ada6f622eb7093c31c8e40ce8bc1b4114a4e454fe8bce704a7dc947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 899.1 kB |
| Tags | CPython 3.7 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
816ee94292c0480b23d8f9665c5605fb8fdb0e5df21f5055632fb0faa8393856
|
|
BLAKE2b-256 checksum How to use checksums |
58ad64626ea39044247aa83bbdbe22630e920ae8dc3a4cc4668e0123ec3bc418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-macosx_11_0_arm64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 759.6 kB |
| Tags | CPython 3.7 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67f07b65e104a1269c264c7b3046922b15b203954618a858871a646804e2311e
|
|
BLAKE2b-256 checksum How to use checksums |
1052c841523a7bb315983baae287d5108589dfa4489e1e59f4325814aa2d1956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|
Release files / siri_parser-0.1.8-cp37-abi3-macosx_10_12_x86_64.whl
| Download URL | siri_parser-0.1.8-cp37-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 779.7 kB |
| Tags | CPython 3.7 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6ba5a8140b02f77913c4bf3bca031805c9d5321d3bc7889dcf31ca67e4f62e6e
|
|
BLAKE2b-256 checksum How to use checksums |
aac760a1722cbbf616fb3addfbab2203b5bdb941a75a0e2549b1c88ce6808e74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.7.4
|