Advent of Code CLI with leaderboard integration and code quality grading
Project description
AOC CLI
Advent of Code CLI with leaderboard integration.
Installation
cd packages/cli-py
pip install -e .
Usage
Initialize configuration
aoc init
You'll be prompted for:
- Email, display name, AoC session token
- Language (press Enter for Python, the only built-in template)
This creates:
~/.aocconfig- Your configurationaoc/templates/python.py- Customizable solution templateaoc/<year>/- Directory for your solutions
Note: Only Python is supported out of the box. For other languages, create your own template at aoc/templates/<language>.<ext>.
Get puzzle input
aoc get 2024/1
This will:
- Download your puzzle input to
in.txt - Copy your template to
solution.* - Extract a test case to
test.txt(auto-parsed—verify manually) - Register start time with the server
- Open the puzzle in your browser
Note: Only one test case is extracted. The expected answer is auto-parsed and may be incorrect.
Run solution with real input
aoc run
# or
aoc run -p 2024/1
Run solution against test cases
aoc test
# or
aoc test -p 2024/1
The expected output shown is auto-parsed from the problem page—always verify it's correct.
Submit answer
aoc submit
# or
aoc submit -a 12345
# or
aoc submit -p 2024/1 -a 12345
The answer is parsed from the last line of your solution's stdout. The CLI will show you what it parsed—verify it's correct before submission.
Solution Requirements
Your solution must:
- Read input from
in.txt - Print the final answer as the last line to stdout
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anindit_aoc_cli-1.0.2.tar.gz.
File metadata
- Download URL: anindit_aoc_cli-1.0.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0988e633b6d1ed3200b7ccb264adee21bf5f5deacc052ae81f3c062509ffab
|
|
| MD5 |
397bcd6f9442dfdad132ee6918f404a0
|
|
| BLAKE2b-256 |
a49afcaa84d58f6ba4635519288f3e06323a5aac7e762d5b2692bfa4a28f5c89
|
File details
Details for the file anindit_aoc_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: anindit_aoc_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b2942deb951002fe961fa58b8decad201241f502d68fc7dd012458294691ba
|
|
| MD5 |
842530cac3ad12d3c79317916001e19e
|
|
| BLAKE2b-256 |
9be8b6bb5f4f893512338e731b9a67befa408ab80501f47eea035d75951faf53
|