{"id":22763273,"url":"https://github.com/marty777/adventofcode2024","last_synced_at":"2025-03-30T09:41:40.592Z","repository":{"id":265836127,"uuid":"896711757","full_name":"marty777/adventofcode2024","owner":"marty777","description":"Advent of Code 2024 in Python","archived":false,"fork":false,"pushed_at":"2024-12-25T07:36:13.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T11:44:50.662Z","etag":null,"topics":["advent-of-code","advent-of-code-2024","advent-of-code-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marty777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-12-01T05:10:01.000Z","updated_at":"2024-12-25T07:36:16.000Z","dependencies_parsed_at":"2024-12-01T06:32:48.935Z","dependency_job_id":"6aa469fb-180c-4dd4-9e42-637727184992","html_url":"https://github.com/marty777/adventofcode2024","commit_stats":null,"previous_names":["marty777/adventofcode2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty777%2Fadventofcode2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty777%2Fadventofcode2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty777%2Fadventofcode2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty777%2Fadventofcode2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marty777","download_url":"https://codeload.github.com/marty777/adventofcode2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301961,"owners_count":20755512,"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":["advent-of-code","advent-of-code-2024","advent-of-code-python"],"created_at":"2024-12-11T11:07:54.441Z","updated_at":"2025-03-30T09:41:40.570Z","avatar_url":"https://github.com/marty777.png","language":"Python","readme":"# adventofcode2024\n[Advent of Code 2024](https://adventofcode.com/2024) in Python.\n\n![AoC 2024 - all stars collected](complete.png)\n\nHats off to **Eric Wastl** for an incredible 25 days of puzzles!\n\n## Setup\n\n```console\n$ git clone https://github.com/marty777/adventofcode2024\n$ cd adventofcode2024\n$ pip install requests\n$ pip install argparse\n$ python adventofcode2024.py\nSetting up configuration...\nEnter an Advent of Code session key (optional):\n```\n\nIf an active session key for the Advent of Code website is entered it will be stored in `./config.json` and input files can be automatically downloaded and saved when a puzzle solution is run. Press enter to skip. **If a session key is entered, please make sure not to share your config file with others**.\n\n```console\nA configuration file has been created at ./config.json\nusage: adventofcode2024 [-h] [-f FILE] day\nadventofcode2024: error: the following arguments are required: day\n```\n\n## Usage\n\n```console\n$ python adventofcode2024.py [-h] [-f FILE] day\n\npositional arguments:\nday                   The Advent of Code day # to run\n\noptions:\n-h, --help            show this help message and exit\n-f FILE, --file FILE  Input file. If not specified the file ./data/day#/input.txt will be run\n```\n\nAny input file can be passed in with the `-f` option. By default, the script expects the main input file for a puzzle day to be at the path `./data/day#/input.txt` (e.g. `./data/day1/input.txt` for day 1) and will attempt to load the input file corresponding to the day if no file is otherwise specified. The path for the default data directory can be modified in `./config.json`. If an Advent of Code session key has been configured, the input file for the day will be automatically downloaded to the default input file location if not already present.\n\n## Example\n\nTo run day 1:\n\n```console\n$ python adventofcode2024.py -f data/day1/input.txt 1 \n```\n\nWith the default data directory config setting, this is equivalent to\n\n```console\n$ python adventofcode2024.py 1\n```\n\nIf an Advent of Code session key has been configured, the input file for the specified day will be automatically downloaded and saved to the expected location. If not, the `input.txt` file for the intended day should be manually saved first.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty777%2Fadventofcode2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarty777%2Fadventofcode2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty777%2Fadventofcode2024/lists"}