Skip to main content

Collection of scripts to analyze the results of the Empire State Run Up race

Project description

Empire State Run Up

Downloads

empire_state_runup.png

ESRU browser

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

empirestaterunup-0.1.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

EmpireStateRunUp-0.1.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file empirestaterunup-0.1.0.tar.gz.

File metadata

  • Download URL: empirestaterunup-0.1.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for empirestaterunup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 095ce462adbf3cc392770864851a96181f67247afe50e062e8cd96846d49c17a
MD5 d012a54b3238a503ae40524f8e64b076
BLAKE2b-256 ad231e0bea03fc5021d696a90e6f95c4de6f859fc9f2ce82ae22cffed59ccd9f

See more details on using hashes here.

File details

Details for the file EmpireStateRunUp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for EmpireStateRunUp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88daebdafef6caa5ad09f7a2345114460f88d2b8496fdafa30256d02f1b1bd05
MD5 a1b8add36d6714c34e006c02fe652bc2
BLAKE2b-256 1e7c954d239ee9e9eaa6df593ada8b7e90053944c1cab8e028f0c3177660b867

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page