Skip to main content

Python CLI for Everybody Codes

Project description

python-ecd logo

✨ A Python CLI tool for managing Everybody Codes puzzles ✨

Code Quality Release PyPI Latest Release PyPI Downloads versions


📋 Features

  • Initialize workspace for Everybody Codes puzzles
  • Download puzzle inputs automatically
  • Manage session tokens securely
  • Run solutions with both test and real input data
  • Automatic project structure creation

📦 Installation

The package can be installed using uv, which is recommended for better dependency management and faster installations:

# Install it as a system tool
uv tool install python-ecd

# Otherwise use:
uvx python-ecd

The tool will be available as both 'python-ecd' and 'ecd'

💻 Usage

Initialize a Workspace

Create a new workspace for your puzzles solutions:

It can be done in the current directory:

ecd init

Or in a specified path:

ecd init everybody-codes-solutions

Note that if the directory does not exist, it will be created.

Set Session Token

Configure your session token for accessing puzzle inputs:

ecd set-token <TOKEN>

Note that is not necessary if you set it during initialization.

Download Puzzle Input

Get the input for a specific puzzle:

ecd get <QUEST_NUMBER> [OPTIONS]

Options:

  • --year, -y: Event year (default: actual)
  • --part, -p: Puzzle part (default: 1)
  • --force, -f: Overwrite existing files

Run Solutions

Execute your solution for a specific puzzle:

ecd run <QUEST_NUMBER> [OPTIONS]

Options:

  • --year: Event year (default: actual)
  • --part: Part number to execute (default: 1)

Test Solutions

Run your solution using test data:

ecd test <QUEST_NUMBER> [OPTIONS]

Options:

  • --year: Event year (default: actual)
  • --part: Part number to test (default: 1)

Display Version

Show the current version of the tool:

ecd --version

©️ License

MIT License

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

python_ecd-0.1.8.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

python_ecd-0.1.8-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file python_ecd-0.1.8.tar.gz.

File metadata

  • Download URL: python_ecd-0.1.8.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for python_ecd-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0f44db0ca8063ad44edff31d1b6a2b8b08bb31b25b99528111eb7cb297fe89bf
MD5 7d1fdca43fb2d632e0b9d19d1bb9d904
BLAKE2b-256 c78e790a1f059d9ed687925e74324c97ebe7567d5e93a0a36f1281ed6722b72a

See more details on using hashes here.

File details

Details for the file python_ecd-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for python_ecd-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 924a8e9edf8aef9f7bb2eb5d41dd22d8161e8109ac3dc4e22e6a2dd82c51ef30
MD5 6fe93484c97c49b098ac5c167f131cd7
BLAKE2b-256 2449116050cee0cfb86d5c21ccb8ceb8cf4d040f9cbe85635d3822520dc63ab8

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