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.1.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.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: earth2_api_wrapper-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1ec363e7552bae964cd223a6a2e524f2e09ca53ba5bcec06f3ad7fb413652733
MD5 12b0d1634f4d1840d14e717bf026ccf1
BLAKE2b-256 5cb82cb1cfa9da16abdb1824702ca49a648d2fa7da40d310369d319c88749680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for earth2_api_wrapper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50952949eea53124ac886c2a2a92408a111c4111dc7c87f6ce84fa28cce89d1d
MD5 8d43e87102cec3c45a63b7cc4b3554df
BLAKE2b-256 45c053440a3645c1473603b4e7a6e342d51897d84b629e13e3ea5f6b450931ce

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