Skip to main content

PyRCS

An open-source tool for collecting railway codes used in different UK rail industry systems.

Python Version License ReadTheDocs Documentation GitHub Actions Workflow Status Codacy - Code Quality Codecov - Test Coverage DOI

PyRCS is an open-source Python package that simplifies the collection and management of railway codes used across different systems in the UK rail industry. It provides a practical toolkit for researchers, practitioners and frequent users of the Railway Codes website who work extensively with railway codes in the UK. By leveraging Python's capabilities, PyRCS enables efficient access, retrieval and manipulation of railway code data, enhancing productivity and effectiveness in working with these codes.

During installation, PyRCS includes a set of pre-packaged data. When users request data from a specific category on the Railway Codes website, PyRCS loads the corresponding pre-packaged data for that category by default. Additionally, it provides functionality for direct access to the latest data from the source website, ensuring users stay up to date. Users can also update the pre-packaged data as needed, keeping their resources synchronised with the latest developments.

With PyRCS, users can leverage Python's power to streamline workflows and enhance productivity when working with railway codes in the UK rail industry.

Installation

PyRCS can be installed using uv (recommended) or pip.

Using uv (Recommended)

To add PyRCS to an existing project:

uv add pyrcs

If you are working in an activated virtual environment:

uv pip install --upgrade pyrcs
Using pip

If you prefer standard Python packaging tools, ensure your virtual environment_ is activated:

pip install --upgrade pyrcs

For detailed options, development setup and Windows troubleshooting (e.g. installing C-extension wheels), see the full Installation Guide.

Quick start

For a concise guide on how to use PyRCS, check out the Quick Start tutorial, which includes illustrative examples for three frequently-used code categories in the UK railway system:

Documentation

The complete PyRCS Documentation is available in HTML and PDF formats.

It is hosted on Read the Docs, and the HTML version is also accessible via GitHub Pages. The documentation includes detailed examples, tutorials and comprehensive references to help users get the most out of PyRCS.

Cite as

Fu, Q. (2020). PyRCS: an open-source tool for collecting railway codes used in different UK rail industry systems. Zenodo. doi:10.5281/zenodo.4026744

@software{Fu_PyRCS_2020,
    author = {Fu, Qian},
    title = {{PyRCS: An open-source tool for collecting railway codes used in different UK rail industry systems}},
    year = 2020,
    publisher = {Zenodo},
    doi = {10.5281/zenodo.4026744},
    license = {MIT},
    url = {https://github.com/mikeqfu/pyrcs}
}

For specific version references, please refer to Zenodo.

License

PyRCS is licensed under the MIT License.

Please note that this project was initially licensed under the GPLv3+ up to version 0.3.7. Starting with version 1.0.0, it has been re-licensed under the MIT License.

Acknowledgement

PyRCS uses data available from the Railway Codes website. The time and effort that the website's editor and all contributors put in making the site and data available are fully credited.

Release files for pyrcs 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrcs 1.2.1
File Size Uploaded
pyrcs-1.2.1.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrcs 1.2.1
File Interpreter ABI Platform
pyrcs-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.0 MB

Release files / pyrcs-1.2.1.tar.gz

Download URL pyrcs-1.2.1.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
e6ff05c228a5e8f543581259f0e7ea52003aab206e053697f34db40db6d4e4ac
BLAKE2b-256 checksum
How to use checksums
bdf8be9bea24a0264e2f27d173c69aa1fe6a1f1cf838723ab29d84f970f35dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyrcs-1.2.1-py3-none-any.whl

Download URL pyrcs-1.2.1-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
68952954b81b11eb9d6847480ad433ea9eb6d4a980e1a5d8272ebab11ac5e0d4
BLAKE2b-256 checksum
How to use checksums
782f6b66f3d4bba25308b99e3cace7d0ed18a7480aa8cf23dd69185bf581cc3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.15

2 release files

0.2.14

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.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