Skip to main content

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 configuration
  • aoc/templates/python.py - Customizable solution template
  • aoc/<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:

  1. Read input from in.txt
  2. 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

anindit_aoc_cli-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anindit_aoc_cli-1.0.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file anindit_aoc_cli-1.0.0.tar.gz.

File metadata

  • Download URL: anindit_aoc_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for anindit_aoc_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 50a238a211b675ea34a1acc1bbfd02d8274321a11ce85263757bf69745e53063
MD5 56a235b4e37470dbd5e0b8c912a84f7b
BLAKE2b-256 177e57893145258b10d38010f7769b24e1853f038898b7b1fa7f3b6575756919

See more details on using hashes here.

File details

Details for the file anindit_aoc_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for anindit_aoc_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41e9db8fdb2b89e2ccd1c5df6081f74cc283c791e1fa49645c3ba3582d46f91f
MD5 744044aaac3c70e69c2e8b50168fc2ea
BLAKE2b-256 363da0b5bf659bce17d35c21d7479b438df6e75acdc4db0e62d7f96902189724

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page