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

Uploaded Python 3

File details

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

File metadata

  • Download URL: teamlead_pw_ecoflow-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2c08e68bb9e06658908dce106b0f79fa1b9e9b47104fb57ecdbd784521c8d2dc
MD5 63964679d72d36378611ddcd8ab6fcbc
BLAKE2b-256 9c450067c605c1c70c7e78b0192af8715a5ec4bb083b6b0854c1451911016035

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for teamlead_pw_ecoflow-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7f067ad061b10c98226b109dc239090e33b6d3617349d2569a331abe12e711
MD5 9606f7bca7cfd48844ef64d5069f531c
BLAKE2b-256 17f45b0a9ca5cb14d39befeb009a3c2e993dc364dc7f126fcac7acca32585e18

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