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.2.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: teamlead_pw_ecoflow-0.2.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for teamlead_pw_ecoflow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3dddb3d6d51405c1c539e187851908bc4be9bbb2dae27457afaf23a808fcb268
MD5 91c4722f738ece0067f4085a6f4a5e41
BLAKE2b-256 49bd56a2a43c8e3da8f45ff614c91fc3b00cfb22ed99993676a01fb051d3946b

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