pyrenfe
What it does.
This script helps you to know when there is a train (Renfe, Spain) next to leave the configured station. Also, you can query the timetable of an specific route.
Nothing more, nothing less… :D
What I need.
To use pyrenfe, you only need:
python >= 2.7
requests (python module)
lxml (python module)
How to install it.
The package is uploaded to PyPI, so you just have to install the package with pip or easy_install.
$ sudo pip install pyrenfe
How to use
To run it, you only need to execute the program with the proper parameters. Here you have some examples:
See the help of the program.
$ pyrenfe --help
Check the next train between Atocha and Principe Pio (when it will leave and when will it arrive).
$ pyrenfe --origin 18000 --destine 10000
Show the same information, but inside a formatted table.
$ pyrenfe -o 18000 -d 10000 -p table
Check the timetable of all the trains between Atocha and Principe Pio for today.
$ pyrenfe --origin 18000 --destine 10000 --timetable
As you can see the origin and the destine are provided with numbers. Those numbers are the IDs of the stations. To take the IDs of your choice you have to fill the official form and then check in the POST which values are provided.
In the future I hope to add this functionality to the script (pull requests are accepted :D).
Metadata
Release files for pyrenfe 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 | Provenance | |
|---|---|---|---|---|
| pyrenfe-1.0.tar.gz | 4.8 kB | Without provenance | Details |
Release files / pyrenfe-1.0.tar.gz
| Download URL | pyrenfe-1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44111c769781a61ab670daaee1d1e7fef4a361b36ab7f1292853722b9be9bce9
|
|
BLAKE2b-256 checksum How to use checksums |
deb343ae2bcb3319b70e833ae1d0245f701dcf30e0b761b889a8a14fcd8efc24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyrenfe 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.