Skip to main content

Collect POST requests easily

Project description


All Contributors

succulent - Collect POST requests easily


PyPI Version PyPI - Downloads Downloads GitHub repo size GitHub license GitHub commit activity Average time to resolve an issue Percentage of issues still open

About

Sending sensor measurements, data, or GPS positions from embedded devices, microcontrollers, and smartwatches to the central server is sometimes complicated and tricky. Setting up the primary data collection scripts can be time-consuming (selecting a protocol, framework, API, testing it, etc.). Usually, scripts are written for a specific task; thus, they are not easily adaptive to other tasks. succulent is a pure Python framework that simplifies the configuration, management, collection, and preprocessing of data collected via POST requests. The inspiration for the framework comes from the practical data collection challenges in smart agriculture. The main idea of the framework was to speed up the process of configuring different collected parameters and providing several useful functions for data transformations. The framework allows users to configure the whole endpoint for data collection in several minutes and thus not spend time on server-side scripts.

Detailed insights

The current version includes (but is not limited to) the following functions:

  • Request URL generation for data collection
  • Data collection from POST requests
  • Storing data in different formats (CSV, JSON, SQLite)

Installation

pip

Install succulent with pip:

pip install succulent

Alpine Linux

To install succulent on Alpine Linux, please use:

$ apk add py3-succulent

Container

Basic container for succulent

Usage

Example

from succulent.api import SucculentAPI
api = SucculentAPI(host='0.0.0.0', port=8080, config='configuration.yml', format='csv')
api.start()

Configuration

In the root directory, create a file named configuration.yml and define the following:

data:
  - name: # Measure name
    min: # Minimum value (optional)
    max: # Maximum value (optional)

License

This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.

Disclaimer

This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Tadej Lahovnik
Tadej Lahovnik

💻 🐛 🤔 📖
Ayan Das
Ayan Das

💻 ⚠️
Iztok Fister Jr.
Iztok Fister Jr.

💻 🤔 🧑‍🏫

This project follows the all-contributors specification. Contributions of any kind welcome!

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

succulent-0.1.4.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

succulent-0.1.4-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

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