Skip to content

A Python library for interacting with the Fingbox local APIs to manage devices and contacts.

License

Notifications You must be signed in to change notification settings

fingltd/fing-agent-pyapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())