Collection of scripts to analyze the results of the Empire State Run Up race
Project description
Empire State Run Up
Hello. I wrote an application to analyse the results of the 'Empire State Run Up', 2013 edition, after I ran the race.
Here you will find my code.
If you just want to install it
See the previous section called 'Packaging', and then install it on your virtual environment:
python3 -m venv ~/virtualenv/EmpireStateRunUp
. ~/virtualenv/EmpireStateRunUp/bin/activate
pip install --upgrade pip
python -m build .
pip install --upgrade dist/EmpireStateRunUp-0.0.1-py3-none-any.whl
There are 4 scripts that you can run:
- esru_numbers
- esru_outlier
- esru_browser
- esru_plot
If you want to learn more about these programs, please grab a cup of coffe and read the TUTORIAL
If you are a developer
Running the code in developer mode
python3 -m venv ~/virtualenv/EmpireStateRunUp
. ~/virtualenv/EmpireStateRunUp/bin/activate
pip install --upgrade pip
pip install --editable .[dev,lint]
Modifying the layout without restarting the apps
For example, playing with the 'esru_outlier' application:
. ~/virtualenv/EmpireStateRunUp/bin/activate
pip install textual-dev
# On another terminal: . ~/virtualenv/EmpireStateRunUp/bin/activate && textual console
textual run --dev empirestaterunup.apps:run_outlier
Packaging
python3 -m venv ~/virtualenv/EmpireStateRunUp
. ~/virtualenv/EmpireStateRunUp/bin/activate
pip install --upgrade pip
pip install --upgrade build
pip install --upgrade wheel
python -m build .
Installation from PiPy
For your user:
pip install --user EmpireStateRunUp
Or using a virtual environment:
python -m venv ~/virtualenv/EmpireStateRunUp && \
. ~/virtualenv/EmpireStateRunUp/bin/acvtivate && \
pip install EmpireStateRunUp
Country codes
I used the files generated by the ISO-3166-Countries-with-Regional-Codes for the flag lookup, using Regional indicator symbol.
Tutorial
Make sure you check the tutorial. It explains how this project got started, as well showcases features of the applications.
Spin off this as a separate project?
If there is enough interest I may spin this off a separate project. Also, if you see a bug please open an Issue and I will work on a fix.
Running in server mode
The applications now support running in web server mode. To enable:
(EmpireStateRunUp) [josevnz@dmaf5 EmpireStateRunUp]$ esru_server --help
usage: esru_server [-h] --application {esru_numbers,esru_outlier,esru_browser} [--port PORT] [--debug] [results ...]
Browse user results
positional arguments:
results Race results.
options:
-h, --help show this help message and exit
--application {esru_numbers,esru_outlier,esru_browser}
Applications that can run in server mode: ['esru_numbers', 'esru_outlier', 'esru_browser']
--port PORT Default port (8000)
--debug Enable debug mode
esru_server --application esru_numbers
# Or if you have an external results file:
sru_server --application esru_browser empirestaterunup/results-full-level-2023.csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for EmpireStateRunUp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88daebdafef6caa5ad09f7a2345114460f88d2b8496fdafa30256d02f1b1bd05 |
|
MD5 | a1b8add36d6714c34e006c02fe652bc2 |
|
BLAKE2b-256 | 1e7c954d239ee9e9eaa6df593ada8b7e90053944c1cab8e028f0c3177660b867 |