Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pgebert/advent-of-code-2022
Solutions for advent of code 2022 written in python.
https://github.com/pgebert/advent-of-code-2022
advent-of-code python
Last synced: 1 day ago
JSON representation
Solutions for advent of code 2022 written in python.
- Host: GitHub
- URL: https://github.com/pgebert/advent-of-code-2022
- Owner: pgebert
- Created: 2022-11-30T23:06:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T12:46:09.000Z (about 2 years ago)
- Last Synced: 2025-01-18T08:09:56.316Z (11 days ago)
- Topics: advent-of-code, python
- Language: Python
- Homepage: https://adventofcode.com/2022
- Size: 344 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2022
[Advent of Code 2022](https://adventofcode.com/2022) solutions written in Python. 🚀
## Structure
The file structure is follows:
```
advent-of-code-2022
├── data # Contains the input files for each day
│ ├── day01
│ ├── day02
│ └── ...
├── problems # Implemented solutions for each day
│ ├── day01
│ ├── day02
│ └── ...
├── tests # Tests for each day
│ ├── day01
│ ├── day02
│ └── ...
├── utils # Utility methods to read in files and examples
├── setup.py # Package information
└── README.md
```## Getting started
(Optional) Create a conda environment:
```console
foo@bar:~$ conda create -n adventOfCode2022
foo@bar:~$ conda activate adventOfCode2022
```Install local package in editable mode:
```console
foo@bar:~$ cd advent-of-code-2022
foo@bar:~$ pip install -e .
```Run tests:
```console
foo@bar:~$ python -m pytest .\tests\
```Happy coding 🥳
![undraw_Santa_visit_re_oiwr](https://user-images.githubusercontent.com/6838540/145730655-94757ce0-4c98-4d60-ade5-fefd8590ecc3.png)