Skip to main content

this project consists of creating a middleware to transmit the data collected on an Object Request to a MongoDB Database for later analysis

Project description

CollectMiddleware

The objective of this project is to develop a middleware that can efficiently transmit the data gathered from an Object Request to a MongoDB Database. The middleware will play a crucial role in the overall process of collecting and analyzing data. It will act as a bridge between the Object Request and the database, ensuring that the data is transmitted accurately and securely. Once the data is collected in the database, it can be further analyzed and used to gain valuable insights that can help in making informed decisions. In short, the middleware will enable seamless and efficient data transmission, making the process of data analysis more effective and reliable.

how to install

pip3 install collectmiddleware

How to use it

from fastapi import FastAPI
from collectmiddleware import CollectMiddleware

app = FastAPI()

app.add_middleware(CollectMiddleware, mongodb_uri="mongodb://localhost:27017/")


@app.get("/")
async def main():
    return {"message": "Hello World"}

Example

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

collectmiddleware-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collectmiddleware-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file collectmiddleware-0.1.0.tar.gz.

File metadata

  • Download URL: collectmiddleware-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for collectmiddleware-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4eee4a3123691e9e49fa1145fff346d84667e14e1e075fde30c0452952f61013
MD5 373fabde5d600380b80ea031e3e17a3a
BLAKE2b-256 8b5c254154fe5a656dbd9e0b325c06fa1fbbd0b6c47aaad36ef2e6b2b0d0c47b

See more details on using hashes here.

File details

Details for the file collectmiddleware-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: collectmiddleware-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for collectmiddleware-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb6680c81f7cf85d25d8feca9fbf76feedfb22057e9c32edd9c75a9b4a5d13b
MD5 2a1ed30922c7fb7948c560a818e6753e
BLAKE2b-256 41ca6e28bd17de9a9f844d5ac19605f97d1bd7ced3e00f8c248c4b1ca4b9bf08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page