Skip to main content

Ecoflow API Library

Project description

teamlead.pw.ecoflow

Versions

teamlead.pw.ecoflow uses a modified version of Semantic Versioning for all changes.

Supported Python Versions

This library supports the following Python implementations:

  • Python 3.10
  • Python 3.11

Installation

Install from PyPi using pip, a package manager for Python.

pip3 install teamlead.pw.ecoflow
# or
poetry add git+https://github.com/antongorodezkiy/ecoflow-api

Usage

API Credentials

The Ecoflow client needs your Ecoflow API credentials. You can obtain access_key and secret_key on the page https://developer-eu.ecoflow.com/us/security and then pass these directly to the constructor.

Make a Call

from teamlead.pw.ecoflow.api import EcoflowApi

access_key = '123'
secret_key  = '456'
api = EcoflowApi(access_key = access_key, secret_key = secret_key)
api.set_logger(log)
response = api.get_mqtt_certification()
print(response)

Enable Debug Logging

Log the API request and response data to the default or custom logger:

api.debug_requests_on()

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

teamlead_pw_ecoflow-0.3.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

teamlead_pw_ecoflow-0.3.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file teamlead_pw_ecoflow-0.3.0.tar.gz.

File metadata

  • Download URL: teamlead_pw_ecoflow-0.3.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for teamlead_pw_ecoflow-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0affbff925222f11161cb6e026a3d243e31be5b9a96c9a8a81ca6a2b8f9d2d74
MD5 7edcb9705815ce877f00ac20dc518876
BLAKE2b-256 8321734b17b1f7fd11e0dd5d678ed48630fb458ee5c7ae4bd16d62eb82cb7c2b

See more details on using hashes here.

File details

Details for the file teamlead_pw_ecoflow-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teamlead_pw_ecoflow-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 419d1ad1716b7345cadd5b426cd0b2afc97a30763601b46d430c00ba6f58e93e
MD5 9d35d4f10d91931a8c0e4d1acbba7cc1
BLAKE2b-256 61992e52e50f136a2124cf9f6d3bc75ae822e418a2beb9f4429f9ed20ec5745c

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