The project uses Python 3.12
and pdm as Python package manager.
To install all the packages, use:
pdm install
pdm run main.py -d <day: int> -y <year: int> -i <input_filepath>
If day
is not given, current day
will be used. Same for year
.
If input_filepath
is not given, the input.txt
file in the year/day folder will be used (it is the default file created when automatically creating a new day folder)
This will automatically create a new folder for the day.
If ADVENT_SESSION_ID
and ADVENT_USER_AGENT
are set up, it will also fetch the input for the day and add it to input.txt
pdm run main.py new
pdm run main.py new -d <day: int> -y <year: int>
pdm run pytest