Skip to main content

Flespi REST API for Python

Project description

Flespi REST API wrapper for Python

pypi version

Installation

Use the package manager pip to install flespi

$ pip3 install flespi

Usage

from flespi import FlespiClient
# Or
from flespi.rest import FlespiClient

token = 'your_token' # Without "FlespiToken"
# Initialize Flespi instance
flespi = FlespiClient(token)

response = flespi.get('/gw/devices/all')

print(response)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

flespi-1.2.2.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

flespi-1.2.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page