Metadata-Version: 2.1
Name: aoc_lube
Version: 1.2.0
Summary: Proper Advent of Code lubricant.
Author-email: salt-die <salt-die@protonmail.com>
License: Unlicense
Project-URL: repository, https://github.com/salt-die/aoc_lube
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4>=4.12.2
Requires-Dist: requests>=2.31.0
Requires-Dist: tomlkit>=0.12.3
Provides-Extra: utils
Requires-Dist: networkx>=3.2.1; extra == "utils"
Requires-Dist: numpy>=1.26.0; extra == "utils"

# aoc_lube - Proper *Advent of Code* lubricant.

Setting up aoc_lube
---------------------
* `pip install aoc-lube` for just `fetch` and `submit` functions or `pip install aoc-lube[utils]` for optional dependencies (networkx, numpy) for utility functions.
* Save your user token to `~/.aoc_lube/.token`.
* [Optional] Create a new directory for your solutions. In this directory, run the function `aoc_lube.setup_dir()` or from the command line, `python -m aoc_lube [-y YEAR] [-t TEMPLATE]`. (If no year is given, the current year will be used.)

Getting your user token
-----------------------
* Navigate to https://adventofcode.com/. Make sure you are logged in.
* Right-click the page and click `Inspect`.
* Click on the `Network` tab.
* Reload the page.
* The token will be the session cookie in the request header to the page. It's a long hex string.

![User Token](token.png)
