Python CLI for Everybody Codes
Project description
✨ A Python CLI tool for managing Everybody Codes puzzles ✨
📋 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
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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
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 python_ecd-0.1.4.tar.gz.
File metadata
- Download URL: python_ecd-0.1.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e162008fb4a14ad93b836408a72d286bb8d4aff12845dd1c19de1ae278f5b940
|
|
| MD5 |
efd3bf54bcfff67f447cc82543ba4f99
|
|
| BLAKE2b-256 |
1bd8db068113ed02712c766272c73c27e9f0d89ac53ac6d91ae7fe7e340e4b9a
|
File details
Details for the file python_ecd-0.1.4-py3-none-any.whl.
File metadata
- Download URL: python_ecd-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e1770a0c77736ee50dab0fdcf9e9dc5f2580f3c24ed7339577e48a91033b496
|
|
| MD5 |
93c95227018d53021be0f2b8c8b39630
|
|
| BLAKE2b-256 |
587d88d8141f7d1671ad12071f42d338d13721efb6327adec95937f972e67f49
|