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

Uploaded Python 3

File details

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

File metadata

  • Download URL: teamlead_pw_ecoflow-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 beddca3539465b6e96cd67dd9b4169710a6f8bed0398d20e7f929bb7bf6b4818
MD5 d9bafba2db0ce772bae4b1b6c3b78806
BLAKE2b-256 2a85b3be864512532424f2f72521ea2b98cab05bd93e6b1cc42508c85ce7e258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for teamlead_pw_ecoflow-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 afe41898011ab62d92e4a86c6934aa9ccd43a9a7dfb9f300feecd4e688acd2e2
MD5 bcc64324b7803ade01a9d5958749ab31
BLAKE2b-256 de59abadf6d5328b4b1197607f151acf52290eb072c96876651b7581fe4f36a6

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