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.1.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.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| joml-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / joml-0.1.0.tar.gz
| Download URL | joml-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51cc79b072dbbe7b79e05c58adc751e89357b7bbef61b4234761f909ab51017d
|
|
BLAKE2b-256 checksum How to use checksums |
20fa9f09c836739ec1d927f38e1e653c5f781fd850eb740b30fe39b4c617901a
|
| 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.1.0-py3-none-any.whl
| Download URL | joml-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8cf9a37e4daba3554b10fe809fdc77c673f4b34efdcd6fa46b1a677a266539a
|
|
BLAKE2b-256 checksum How to use checksums |
a5c493079cab738a98d3be89419f7b5673503cd0652751bbcbe7bfe3c13be9ae
|
| 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}
|