Skip to main content

intelmq-api

Tests Status Package Status

intelmq-api is a FastAPI based API for the intelmq project.

Extensive documentation regarding the installation, configuration and usage of the intelmq-api can be found in the intelmq documentation.

Development usage

You could create a preferred virtual environment, and then install the package using:

pip install -e .

For development purposes, you can run the API using the scripts/run_dev.sh script. It serves the API on the local 8000 port and watches for file changes, with the automated reloading on change.

The interactive documentation is served on the /docs endpoint.

To set the API configuration, please export the INTELMQ_API_CONFIG environment variable with path to the JSON config file in the shell you want to use. For the config reference, please check the intelmq_api/config.py and the example from contrib/api-config.json.

If you configured the session store, you will need to authorize every request. The /v1/login returns the authorization token. You can use the following command to register the user:

./scripts/intelmq-api-adduser --user UserName

Security note

Please be careful when deploying the API. At the current stage, it is not designed to run on publicly exposed endpoints without additional pre-cautions.

Type checking

The code can be typechecked with mypy. To run the type checker, use:

mypy intelmq_api/

Metadata

Release files for intelmq-api 3.2.0

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

Built distribution (wheel)

Table of built distributions (wheels) for intelmq-api 3.2.0
File Interpreter ABI Platform
intelmq_api-3.2.0-py3-none-any.whl Python 3 none any Details

Release files / intelmq_api-3.2.0-py3-none-any.whl

Download URL intelmq_api-3.2.0-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f284162f7cc6f2c426e3e6bf13607763a7aedfa34d0180d63fb1cea5d58c24d
BLAKE2b-256 checksum
How to use checksums
84ef5e3087a30a69aed1bf52dfb63a7e97d3ab4720b7efb7508d20e8890e4049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for intelmq-api 3.2.0

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.

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