JOML
A markup language for describing journeys (Journey Markup Language).
Installation
$ pip install joml
Usage
import joml
journeys = joml.loads("""
From heathrow on 2020-01-01 to gatwick by plane
To stansted on 2020-01-02 by train
""")
for journey in journeys:
for leg in journey.legs:
print(leg)
For more examples, including multiple journeys, comments, and parsing low-level tokens, see the documentation.
Development
Tests
$ uv run pytest
Linting
$ uv run ruff format
$ uv run ruff check
$ uv run ty check
Metadata
Release files for joml 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| joml-0.2.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| joml-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / joml-0.2.0.tar.gz
| Download URL | joml-0.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
488c594d2f985287a48f5cc91c944b9c61daa0377a313fd160a01c3f8f12c459
|
|
BLAKE2b-256 checksum How to use checksums |
20f23d6fc0e2015cf404678b1c4a6db3eeb753cb14755bade1821592ded71284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / joml-0.2.0-py3-none-any.whl
| Download URL | joml-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dee27108e779672cc909fb841464a9f38a52e708cc07acec16dc76b9a136b76
|
|
BLAKE2b-256 checksum How to use checksums |
81438949215962f5636ffec016be904ca67059fa702c61abec4a761e7ff7b254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|