Fing Agent local API library.
Project description
Fing Agent API
FingAgent is a Python library for interfacing with the local APIs of the Fingbox. It allows you to easily interact with the devices and contacts managed by your Fingbox.
Requirements
- Python 3.11.1 or higher
- httpx (for asynchronous HTTP requests)
Example
Here is a complete example of using the library:
from fing_agent_api import FingAgent
import asyncio
async def main():
# Configure the Fing agent
agent = FingAgent(ip='your_agent_ip', port=49090, key='your_api_key')
# Get and print devices
devices = await agent.get_devices()
print("Devices:", devices)
# Get and print contacts
contacts = await agent.get_contacts()
print("Contacts:", contacts)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fing_agent_api-1.0.1.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file fing_agent_api-1.0.1.tar.gz
.
File metadata
- Download URL: fing_agent_api-1.0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d974298521b652fae0d90b26a8c64cb598b742f7f6eaac95409f95a803018ba0 |
|
MD5 | 74791e6efc910301f6df15c5e68a6ed4 |
|
BLAKE2b-256 | 65d629e8a32a2ebd016a077e176b5ce1fb9bc4fa999753cd70d146f3ab6e6f04 |
File details
Details for the file fing_agent_api-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: fing_agent_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a150264bc97e474a40b60624688c25bfc30ea532724c9c68edbf297fe90f8b2 |
|
MD5 | e9328297825000fa879e9a41ca749a46 |
|
BLAKE2b-256 | 703bb23fa448677ed42a6df28670b2636f34dc7997327cbf1560db76eefc91fa |