Skip to main content

Unofficial Earth2 API wrapper with CLI (Python). Includes comprehensive safeguards to protect Earth2's bandwidth.

Project description

earth2-api-wrapper (Python)

Unofficial Earth2 API wrapper with CLI. Read-only operations. Excludes raiding/dispensing/charging/jewel/civilian automation.

Dev install:

pip install -e .
python -m earth2_api_wrapper.cli trending

Environment variables when needed:

  • E2_COOKIE
  • E2_CSRF

Examples:

# Trending
python -m earth2_api_wrapper.cli trending

# Property
python -m earth2_api_wrapper.cli property <uuid>

# Market search
python -m earth2_api_wrapper.cli market --country AU --tier 1 --tile-count 5-50 --items 100

# Leaderboard
python -m earth2_api_wrapper.cli leaderboard --type players --sort-by tiles_count --country AU

# Resources
python -m earth2_api_wrapper.cli resources <uuid>

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

earth2_api_wrapper-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

earth2_api_wrapper-0.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: earth2_api_wrapper-0.2.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for earth2_api_wrapper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 110d1614ce575e76ebd42f1d93786092faa76c78391d8c5e0e03c2f6bc3bb08d
MD5 381939d5613ee16d01d3b130ae76c08b
BLAKE2b-256 81956b2a03c35d0266cfbb2d807c2419727782e491ff24be33b48801ec73a975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for earth2_api_wrapper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40817126c55f8a3e816c986ac3f11693d34d414e16313624295eb222bcf11dd9
MD5 f4d05d6ab05d313e800ef9599730f6c8
BLAKE2b-256 eef7041fd16e8583a4c198789a4d5b1dbd77248c273f251239a418edb177a633

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