Skip to main content

Interactive CLI for Infinite Craft — combine elements from the terminal

Project description

infinite-craft-cli

PyPI Downloads License Python Tests Publish Chrome Web Store

Interactive CLI for Infinite Craft — combine elements from the terminal. Also available as a browser extension and web trainer.

Originally built on infinite-craft by @sqdnoises. As of v1.0, uses curl_cffi directly.

Installation

pip install infinite-craft-cli

Browser extension

Install the Infinite Craft Trainer from the Chrome Web Store — it loads automatically on neal.fun/infinite-craft. Works in Edge, Brave, and other Chromium browsers.

For other install methods (console snippet, userscript), see the web trainer page.

Usage

Interactive mode

infinite-craft

This opens a REPL where you can combine elements, search discoveries, and more:

craft> Water + Fire
  💨 Water + 🔥 Fire = 💨 Steam

craft> /search steam
  💨 Steam

craft> /help

Non-interactive mode

All commands are available as subcommands:

infinite-craft combine "Water" "Fire"
infinite-craft search "steam"
infinite-craft list
infinite-craft recipe "Steam"
infinite-craft import "Steam"
infinite-craft export
infinite-craft fill
infinite-craft unfilled
infinite-craft exhaust "Water"
infinite-craft crawl "Water" "Fire"
infinite-craft permute "w*"
infinite-craft cross "fire*" "water*"
infinite-craft --version

Commands

Command Description
<element> + <element> Combine two elements
<element> ++ <element> Combine & crawl: iterate until no new discoveries
<element> + | <query> Combine element with all matching discoveries
<query> * <query> Cross-combine all matches from both queries
/search <query> Search discoveries (supports * ? wildcards, ^ for first discoveries)
/recipe <element> Show shortest recipe from base elements
/list List all discovered elements
/exhaust <element> Combine element with all discoveries
/crawl <el> + <el> Same as ++ (alternate syntax)
/permute <query> Combine all matching elements with each other
/import <element|file.ic> Import from Infinibrowser or .ic save file
/fill Fetch missing recipes from Infinibrowser
/unfilled List elements without recipes
/prune Remove orphan elements Infinibrowser can't fill
/export [path] Export discoveries as .ic save file
/history Show combinations tried this session
/help Show help
/quit Exit

Data storage

Discoveries and recipes are stored in ~/.infinite-craft-cli/:

  • discoveries.json -- all discovered elements
  • recipes.json -- known element combinations
  • export.ic -- default export location

Development

Run unit tests:

bazel test //tests/...

Run integration tests (hits the real API):

bazel test //tests:test_integration --test_env=INTEGRATION_TESTS=1

License

MIT

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

infinite_craft_cli-1.2.8.tar.gz (66.8 kB view details)

Uploaded Source

Built Distribution

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

infinite_craft_cli-1.2.8-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file infinite_craft_cli-1.2.8.tar.gz.

File metadata

  • Download URL: infinite_craft_cli-1.2.8.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for infinite_craft_cli-1.2.8.tar.gz
Algorithm Hash digest
SHA256 6ad24c32e7a166c26d1b7e5c5ff5c28fd3838d4b74ec2e9cc81aa3aa89ccc8d1
MD5 3d3c608b9d3db64efda1be3312dc5901
BLAKE2b-256 36a12bf078f7dd6bac5e7da6e5b26b36337eea68734695d994716ae5be6c4100

See more details on using hashes here.

Provenance

The following attestation bundles were made for infinite_craft_cli-1.2.8.tar.gz:

Publisher: publish.yml on hacker6284/infinite-craft-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infinite_craft_cli-1.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for infinite_craft_cli-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d9fab25644211507a2ed7cd38a863edc2c836573c30e8c97842a4e7d991e3ddc
MD5 f5fea10b1fc78a455a4304a04a5cefbf
BLAKE2b-256 2a710186b9e03e4267c0e53bf5bee7c3d1539f803c0e3133c7d08eb9f6cd0e0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for infinite_craft_cli-1.2.8-py3-none-any.whl:

Publisher: publish.yml on hacker6284/infinite-craft-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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