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.2.tar.gz (6.1 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.2.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teamlead_pw_ecoflow-0.2.2.tar.gz
  • Upload date:
  • Size: 6.1 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.2.tar.gz
Algorithm Hash digest
SHA256 23e1ee9a92502843bc96d59dc76e9823a636d7648066b7c8f90af1f0075ded3e
MD5 da25c0be7571a515d62f06c57bb87a6b
BLAKE2b-256 439c4810011ae58a646894a7cbe6cb3270d4a5c474e8c9fa1d981d8aa2f92578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for teamlead_pw_ecoflow-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b209032a6bdbf5955f28b7476672d4a701bb5ba15759a85938baa1f1053ffda2
MD5 0d57e16ac275dba42bac1a38c1a8cca8
BLAKE2b-256 7b9089fc32d5e885ea0c52ee476c00ae8f58b4bf2bd7c12641ddba7cafa14247

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