Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danhalligan/aoc2019
🎄 Advent of Code 2019 solutions in python3
https://github.com/danhalligan/aoc2019
advent-of-code advent-of-code-2019 advent-of-code-2019-python python3
Last synced: about 1 month ago
JSON representation
🎄 Advent of Code 2019 solutions in python3
- Host: GitHub
- URL: https://github.com/danhalligan/aoc2019
- Owner: danhalligan
- License: mit
- Created: 2023-08-27T13:31:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-31T16:35:55.000Z (over 1 year ago)
- Last Synced: 2023-09-01T11:35:43.156Z (over 1 year ago)
- Topics: advent-of-code, advent-of-code-2019, advent-of-code-2019-python, python3
- Language: Python
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AoC2019
![CI workflow](https://github.com/danhalligan/AoC2019/actions/workflows/ci.yaml/badge.svg)
![License](https://img.shields.io/github/license/danhalligan/AoC2019)
![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)`AoC2019` is a python package implementing solutions python solutions for the
[Advent of Code 2019] 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 aoc2019 solve inputs/day01.txt
```Or pass in multiple days to solve multiple inputs.
``` bash
poetry run aoc2019 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 aoc2019 input
```[Advent of Code 2019]: https://adventofcode.com/2019
[session cookie]: https://www.reddit.com/r/adventofcode/comments/a2vonl/how_to_download_inputs_with_a_script/