A simple package to help with Advent of Code input downloads and result posting.
Project description
AOCUtil
Input downloader for Advent of Code
Usage
Session cookie to fetch inputs and submit answers
- Get your session cookie from Advent of Code and save it in ./data/.secret_session_cookie
- Inputs are cached to ./inputs, a session cookie lasts for a month, and that's how long the inputs are valid.
- Inputs and answers are fetched and submitted by parsing the folder structure and filenames, so make sure they are named correctly.
20\d{2}
for the year. Yes, you can break this. Do you have to?[^0-9]
for the day from the filename.666_superclever_day01
is not the intended usage <3aoc2022/day01.py
,aoc/python/2022/day01.py
etc.
To generate the puzzle .py files for every day:
python -m AOCRla.aoc
To run a specific day's puzzle:
python ./dayXX.py
To open a web browser with the correct puzzle selected, add anything after the python file:
python ./day01.py asdf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aocrla-0.1.0.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file aocrla-0.1.0.tar.gz
.
File metadata
- Download URL: aocrla-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61568ba56c4c95b87a59661650306f32a9eb28363fd71822c95abe975885267a |
|
MD5 | 7143f4d60405fc4e471a36faf7e2b7e6 |
|
BLAKE2b-256 | 257b9d3170c54dea849bffdd299bcbd39d9b0454b5d380205de714eaeba3116b |
File details
Details for the file aocrla-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aocrla-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285736c482205f5c140b2a777239d53bf82ebdc1b5790442a16db1a410c9c49c |
|
MD5 | b7c932ca727ba5d0fccd722a8c55c853 |
|
BLAKE2b-256 | d50f7a713c3de5ccf99af8100bc9163cf29c79692ad29c025f6a197caa298fe5 |