Skip to main content

EDH deck builder & analyzer with CLI, shell, and web editor

Project description

edhelper

A command-line deck builder, analyzer, and management tool for Magic: The Gathering — focused on the Commander (EDH) format.

edhelper allows you to create, modify, validate, analyze, import, export, and manage Commander decks entirely from the terminal, shell, or web editor.


📦 Installation

Full Installation

pip install edhelper

or with pipx:

pipx install edhelper

Modular Installation

You can install only the components you need:

# Only shell (interactive REPL)
pip install edhelper[shell]

# Only GUI editor
pip install edhelper[editor]

# Full installation (CLI + Shell + Editor)
pip install edhelper[all]

🚀 Quick Start

Using the CLI

# Create or open a deck
edhelper deck create MyDeck

# Add cards to a deck
edhelper deck add MyDeck "Lightning Bolt" 1

# List all decks
edhelper deck list

# Search for cards
edhelper card search "lightning"

# Get top commanders
edhelper card top-commanders

Using the Shell (Interactive REPL)

# Start interactive shell
edhelper shell

# In the shell:
[ 1 ] > select MyDeck
[ 2 ] : [ MyDeck ] > add "Lightning Bolt" 1
[ 3 ] : [ MyDeck ] > list

Using the Web Editor

# Start the web editor
edhelper start-editor

# Opens browser at http://0.0.0.0:3839

📖 Features

Deck Management

  • Create, delete, rename, and copy decks
  • Import decks from .txt files
  • Export decks to .txt, .csv, or .json
  • Set and manage commanders

Card Operations

  • Search cards by name or partial match
  • Get top 100 commanders
  • Get meta cards for commanders from EDHREC
  • View card details and statistics

Interactive Shell

  • Full-featured REPL with autocomplete
  • Context-aware commands (root vs deck mode)
  • Command history and suggestions

Web Editor

  • Modern web interface for deck building
  • RESTful API backend
  • Real-time updates

📚 Documentation

For detailed documentation on each component:


🔧 Configuration

Authentication

Before using the tool, you need to authenticate:

edhelper --get-key

This will prompt you for your API key and client ID.

Version and Info

# Show version
edhelper --version

# Show metadata
edhelper --info

🧰 Examples

Create a deck with commander

edhelper deck create Atraxa "Atraxa, Praetors' Voice"

Import deck from file

edhelper deck import-txt decklist.txt MyDeck

Get meta cards for a commander

edhelper deck meta "Atraxa, Praetors' Voice" "Top Cards"

Export deck

edhelper export txt MyDeck /path/to/export/

Search and add cards

# Search for cards
edhelper card search "lightning"

# Add to deck
edhelper deck add MyDeck "Lightning Bolt" 1

🏗️ Architecture

The project is organized into modular components:

  • cli/ - CLI commands (can be installed separately)
  • shell/ - Interactive REPL shell
  • editor/ - Web editor (frontend + backend)
  • domain/ - Business logic and services
  • commom/ - Shared utilities and commands
  • external/ - External API integrations

📝 License

[Add your license here]


🤝 Contributing

[Add contributing guidelines here]


📧 Support

[Add support information here]

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

edhelper-0.2.0.tar.gz (136.8 kB view details)

Uploaded Source

Built Distribution

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

edhelper-0.2.0-py3-none-any.whl (156.1 kB view details)

Uploaded Python 3

File details

Details for the file edhelper-0.2.0.tar.gz.

File metadata

  • Download URL: edhelper-0.2.0.tar.gz
  • Upload date:
  • Size: 136.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for edhelper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5d84faad8f272c6879faf24154aa6163e709df751d0ea836bdf9bef60be00cf3
MD5 5dba9bf0763d88b7ff4643280f646c34
BLAKE2b-256 facecbbb88c3a268b54d9d5036ced6716631ceea9ed68fd9b10e8eef3cc4412b

See more details on using hashes here.

File details

Details for the file edhelper-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: edhelper-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 156.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for edhelper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71c19c6fcf5f43d1fbc3f5ebc17d86c7f70647bd5572b770d8bc7d346f24e0f6
MD5 7fcd277d3a7861851ff9ac00c2aa4722
BLAKE2b-256 77e49897ab75afbaded49caabb850ae7140c82cc3cb769e6a768a6811aea8428

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