Code Monkey home page Code Monkey logo

bacnet-device-registry's Introduction

BACnet Device Manager

This is a simple FastAPI application for managing BACnet device IDs and network addresses. It provides CRUD (create, read, update, delete) endpoints for managing devices and network numbers.

The application uses SQLite for storing and managing the devices' IDs, network addresses, and network numbers.

Requirements

  • Python 3.7+
  • FastAPI
  • Uvicorn
  • SQLite

Installation

  1. Clone the repository:

bashCopy code

git clone https://github.com/your-username/bacnet-device-manager.git

  1. Install the requirements:

cssCopy code

pip install fastapi uvicorn[standard] bac0

  1. Start the application:

cssCopy code

uvicorn main:app --reload

The application will be available at http://localhost:8000.

Usage

The following endpoints are available:

  • POST /devices/: Create a new device with the specified ID, network address, and network number.
  • GET /devices/: Get a list of all devices.
  • GET /devices/{device_id}: Get a device with the specified ID.
  • PUT /devices/{device_id}: Update the network address and network number of an existing device with the specified ID.
  • DELETE /devices/{device_id}: Delete an existing device with the specified ID.
  • GET /networks/: Get a list of all unique network numbers from the devices table.
  • GET /networks/{network_number}: Get a list of all devices on the specified network.

To use the endpoints, you can use a tool like curl or httpie, or use the interactive API documentation that is automatically generated by FastAPI at http://localhost:8000/docs.

Contributing

Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.

bacnet-device-registry's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.