Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danhalligan/aoc2022
🎄 Advent of Code 2022 solutions in python3
https://github.com/danhalligan/aoc2022
advent-of-code advent-of-code-2022 advent-of-code-2022-python python3
Last synced: 12 days ago
JSON representation
🎄 Advent of Code 2022 solutions in python3
- Host: GitHub
- URL: https://github.com/danhalligan/aoc2022
- Owner: danhalligan
- License: mit
- Created: 2022-11-30T17:40:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-25T06:29:44.000Z (about 2 years ago)
- Last Synced: 2023-02-28T17:01:50.008Z (almost 2 years ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2022-python, python3
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AoC2022
![CI workflow](https://github.com/danhalligan/AoC2022/actions/workflows/ci.yaml/badge.svg)
![License](https://img.shields.io/github/license/danhalligan/AoC2022)
![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)`AoC2022` is a python package implementing solutions python solutions for the
[Advent of Code 2022] problems.## Example
To solve a specific day, you can use `solve`, passing in the input file for
the current day using poetry.``` bash
poetry run aoc2022 solve inputs/day01.txt
```Or pass in multiple days to solve multiple inputs.
``` bash
poetry run aoc2022 solve inputs/*
```You can automatically download the input for a given day by setting your
[session cookie] in an environment variable (or in a `.session.txt` text file
in the working directory).``` bash
export AOC_SESSION=[your session]
```Then using the input command to get today's input:
```python
poetry run aoc2022 input
```[Advent of Code 2022]: https://adventofcode.com/2022
[session cookie]: https://www.reddit.com/r/adventofcode/comments/a2vonl/how_to_download_inputs_with_a_script/