Skip to main content

logo

Metlo API Security

Secure Your API.

Installation

Currently Metlo's Python Agent supports 2 servers:

  • Django
  • Flask

It can be installed from pypi by running :

pip install metlo

Configuration

Django

Once installed, Metlo's middleware can be added by modifying middlewares list (in the projects settings.py) like so:

MIDDLEWARE = [
    ...,
    "metlo.django.MetloDjango",
] 

and configuring a METLO_CONFIG attribute in the projects settings.py like this :

METLO_CONFIG = {
    "API_KEY": "<YOUR_METLO_API_KEY>",
    "METLO_HOST": "<YOUR_METLO_COLLECTOR_URL>"
}

METLO_CONFIG can take an optional key-value pair representing the max number of workers for communicating with Metlo.

Flask

Once installed, Metlo middleware can be added simply like:

from flask import Flask

...
from metlo.flask import MetloFlask

app = Flask(__name__)
MetloFlask(app, "<YOUR_METLO_COLLECTOR_URL>", "<YOUR_METLO_API_KEY>")

The Flask Middleware takes the flask app, Metlo collector url, and the Metlo API Key as parameters. As an optional parameter, a named value can be passed for max number of workers for communicating with Metlo.

MetloFlask(app, "<YOUR_METLO_COLLECTOR_URL>", "<YOUR_METLO_API_KEY>", workers="<WORKER-COUNT>")

Metadata

Release files for metlo 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metlo 0.1.5
File Size Uploaded Provenance Actions
metlo-0.1.5.tar.gz 9.4 kB Without provenance Details for metlo-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metlo 0.1.5
File Interpreter ABI Platform Actions
metlo-0.1.5-py3-none-any.whl Python 3 none any Details for metlo-0.1.5-py3-none-any.whl

Total release size: 20.7 kB

Release files / metlo-0.1.5.tar.gz

Download URL metlo-0.1.5.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b7063c3093fe0b331c0c22f09e10a5251cca3e3852b85a564b6eab961a5219d
BLAKE2b-256 checksum
How to use checksums
3578f3f1a37ecec00a550ecca769816c3e08a65b55cb8a3e7a1b4a0f3ffb178c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / metlo-0.1.5-py3-none-any.whl

Download URL metlo-0.1.5-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9247c24ee7a8e50e2f91a3bb27e9f80423a91cc4019df3df3330a607d578087
BLAKE2b-256 checksum
How to use checksums
609ae8657fa35c0ff6427b23d40f4ec379f3fb9e950393619b9af0125c2292c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Security for metlo 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page