Skip to main content

Fluss API Client

A Python client for the Fluss REST API — control gates, doors, and access devices programmatically.

Installation

pip install fluss_api

Usage

import asyncio
from fluss_api import FlussApiClient

async def main():
    client = FlussApiClient(api_key="your-api-key")

    # List all devices
    devices = await client.async_get_devices()

    # Get device status
    status = await client.async_get_device_status("device-id")

    # Trigger a device
    await client.async_trigger_device("device-id")

    # Trigger with optional parameters
    await client.async_trigger_device("device-id", action="pulse", duration=3)

    # Open a device
    await client.async_open_device("device-id")

    # Close a device
    await client.async_close_device("device-id")

    await client.close()

asyncio.run(main())

Custom Session

You can pass your own aiohttp.ClientSession if needed:

from aiohttp import ClientSession
from fluss_api import FlussApiClient

async with ClientSession() as session:
    client = FlussApiClient(api_key="your-api-key", session=session)
    devices = await client.async_get_devices()

API Methods

Method Description
async_get_devices() List all devices on your account
async_get_device_status(device_id) Get current status of a device
async_trigger_device(device_id, **kwargs) Trigger a device
async_open_device(device_id, **kwargs) Open a gate/door
async_close_device(device_id, **kwargs) Close a gate/door
close() Close the HTTP session

Building from Source

python -m pip install --upgrade build
python -m build

License

MIT

Metadata

Release files for fluss-api 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluss-api 0.2.5
File Size Uploaded Provenance Actions
fluss_api-0.2.5.tar.gz 4.4 kB With provenance Details for fluss_api-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fluss-api 0.2.5
File Interpreter ABI Platform Actions
fluss_api-0.2.5-py3-none-any.whl Python 3 none any Details for fluss_api-0.2.5-py3-none-any.whl

Total release size: 9.3 kB

Release files / fluss_api-0.2.5.tar.gz

Download URL fluss_api-0.2.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
55ed0102b4eeca86af8b31428358a25bff0c27573be5596a5a27e67f3fbf0025
BLAKE2b-256 checksum
How to use checksums
5ba9e5190b6f8c117340b4a8425d54f6b78a60eaf5074bcbe09de2261c67c56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / fluss_api-0.2.5-py3-none-any.whl

Download URL fluss_api-0.2.5-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5809baea4b0c1b5b34fa5864f101871ef69067dc112ad7f810bf93c95294bbeb
BLAKE2b-256 checksum
How to use checksums
c79122429db3e4558bcbb951d8c357593fc6e7665935efdd38f02e37f34b511d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Security for fluss-api 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fluss_api-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page