{"id":19874221,"url":"https://github.com/pythoninthegrass/airline_delays","last_synced_at":"2025-03-01T01:23:24.761Z","repository":{"id":233389452,"uuid":"656949822","full_name":"pythoninthegrass/airline_delays","owner":"pythoninthegrass","description":"Calculate the percentage of security-caused flight delays for the United States by calendar year (e.g., 2004).","archived":false,"fork":false,"pushed_at":"2023-09-16T15:45:20.000Z","size":460,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T16:50:29.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythoninthegrass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["pythoninthegrass"]}},"created_at":"2023-06-22T01:49:19.000Z","updated_at":"2023-06-22T01:49:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ea786b2-c634-45b3-bb95-abeca346f24f","html_url":"https://github.com/pythoninthegrass/airline_delays","commit_stats":null,"previous_names":["pythoninthegrass/airline_delays"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fairline_delays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fairline_delays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fairline_delays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fairline_delays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/airline_delays/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241301944,"owners_count":19940738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T16:22:21.469Z","updated_at":"2025-03-01T01:23:24.743Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Python","readme":"# airline_delays\n\nCalculate the percentage of security-caused flight delays for the United States by calendar year (e.g., 2004).\n\n## Setup\n### asdf\n* Install [asdf](https://asdf-vm.com/guide/getting-started.html)\n* Install python plugin for asdf\n  * `asdf plugin add python`\n* Install poetry plugin for asdf\n  * `asdf plugin add poetry`\n\n### poetry\n* Install poetry\n  * `asdf install poetry 1.4.2`\n\n### python\n* Install python 3.11.4\n  * `asdf install python 3.11.4`\n* Install virtual environment\n    ```bash\n    # virtual environment in the project directory\n    poetry config virtualenvs.in-project true\n\n    # create virtual environment\n    poetry install\n    ```\n\n## Quickstart\n```bash\n# activate virtual environment\npoetry shell\n\n# run script\nλ python main.py \nairlines.json already exists\nAvailable years:\n2003\n2004\n2005\n2006\n2007\n2008\n2009\n2010\n2011\n2012\n2013\n2014\n2015\n2016\nEnter a year: 2004\nAverage percentage of delayed flights: 7.93%\nAverage minutes delayed: 42.59 minutes\n\n# force quit script if necessary\nctrl-c              # ^C\n\n# deactivate virtual environment\ndeactivate\n```\n\n## Further Reading\n[Airline Dataset](https://think.cs.vt.edu/corgis/datasets/json/airlines/airlines.json)\n","funding_links":["https://github.com/sponsors/pythoninthegrass"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fairline_delays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fairline_delays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fairline_delays/lists"}