Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/