{"id":15898716,"url":"https://github.com/dylanljones/adventofcode","last_synced_at":"2025-10-29T15:41:35.362Z","repository":{"id":64108350,"uuid":"573083648","full_name":"dylanljones/AdventOfCode","owner":"dylanljones","description":"🎄 My solutions for Advent of Code (https://adventofcode.com)","archived":false,"fork":false,"pushed_at":"2025-09-22T19:31:58.000Z","size":583,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T21:22:42.956Z","etag":null,"topics":[],"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/dylanljones.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-01T16:59:11.000Z","updated_at":"2022-12-01T17:10:37.000Z","dependencies_parsed_at":"2023-12-01T13:41:06.805Z","dependency_job_id":"ab8d1684-d09e-4913-b6bd-ada4532fd78f","html_url":"https://github.com/dylanljones/AdventOfCode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylanljones/AdventOfCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanljones%2FAdventOfCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanljones%2FAdventOfCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanljones%2FAdventOfCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanljones%2FAdventOfCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanljones","download_url":"https://codeload.github.com/dylanljones/AdventOfCode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanljones%2FAdventOfCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281650117,"owners_count":26537952,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-06T10:07:55.135Z","updated_at":"2025-10-29T15:41:35.329Z","avatar_url":"https://github.com/dylanljones.png","language":"Python","readme":"Advent of Code\n=================\n\n[![AoC 2021](https://img.shields.io/badge/⭐_2021-34-yellow)](https://adventofcode.com/2021)\n[![AoC 2022](https://img.shields.io/badge/⭐_2022-50-yellow)](https://adventofcode.com/2022)\n[![AoC 2023](https://img.shields.io/badge/⭐_2023-50-yellow)](https://adventofcode.com/2023)\n\n\n🎄 My solutions for [Advent of Code]\n\n## Python interface\n\nThe solutions in Python all use the included Python interface\n\n\n### Advent of Code Client\n\nThis project includes a client for scraping data from [Advent of Code] and\nsubmitting answers.\n\n\u003e Please do not spam the servers and cache the data!\n\u003e Caching is handled by the ``Puzzle`` object, not the client.\n\nSince the puzzle inputs differ by user, a session token has to be supplied.\nIt can be either passed as argument to the client or stored in a file called\n``token.txt``, located in the project root or the individual directories.\n\nExample usage:\n````python\nfrom aoc import Client\n\nclient = Client()\n# Load puzzle data\ninfo = client.get_puzzle(year=2015, day=1)\ninput_data = client.get_input(year=2015, day=1)\nuser_stats = client.get_user_stats(year=2015)\n# Compute your answers\n...\n# Submit your answers\nclient.submit(year=2015, day=1, part=1, answer=anser_part_1)\nclient.submit(year=2015, day=1, part=2, answer=anser_part_2)\n````\n\n\n### Advent of Code Puzzles\n\nYou can use the included ``Puzzle`` object to automatically download and cache the\npuzzle data and can be used to supply and submit answers.\n\n````python\nfrom aoc import Puzzle\n\n\nclass Solution(Puzzle):\n    year = 2015\n    day = 1\n\n    def solution_1(self, data: str):\n        ...\n        return answer\n\n    def solution_2(self, data: str):\n        ...\n        return answer\n````\n\nThe puzzle can then be run. Before submitting the answer to [Advent of Code], the solution\nis checked against the example input and solution:\n````python\nsol = Solution()\nsol.run(test_only=False, text=True)\n````\n\nIf the first solution was correct, the ``Puzzle`` object will update the puzzle info\nbefore running the second part.\n\nYou can initialize a solution directory with the included CLI script:\n```bash\npython -m aoc -d 1 -y 2015\n```\n\n[Advent of Code]: https://adventofcode.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanljones%2Fadventofcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanljones%2Fadventofcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanljones%2Fadventofcode/lists"}