skillfed

humiolib

Python SDK for connecting to Humio

humiolib v0.2.6 397.3K downloads/30d#6,962 on PyPI28
Permissive license Apache-2.0 DORMANT released

What it is and what it does

humiolib is a Python wrapper around Humio's web API designed to simplify log ingestion and querying workflows. It provides two main client classes: HumioClient for performing queries and managing Humio instances, and HumioIngestClient for sending both unstructured and structured log data into Humio. The library abstracts away HTTP details and provides higher-level interfaces like streaming queries, query jobs with polling, and batch ingestion methods.

The package depends on requests for HTTP communication, pytest for testing, and vcrpy for mocking API calls in tests. It supports Python 3.5 and later across Windows, POSIX, and Unix systems. Development is dormant but the codebase is marked as production-stable; it is suitable for teams already committed to Humio who need a Python-native way to interact with the platform.

Use it for:

  • Ingest application logs and system events into Humio from Python services or batch jobs.
  • Query Humio logs programmatically within Python scripts or notebooks for analysis and alerting.
  • Build streaming log processors that consume live Humio query results in real time.
  • Automate log management tasks like file uploads or saved query management via Python.
  • Integrate Humio log access into Python-based monitoring or observability pipelines.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python SDK that wraps Humio's web API to enable log ingestion and querying directly from Python code.

Yes, if you are already using Humio and need Python-native API access. The package is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, dormant maintenance means you should verify compatibility with your Humio instance and Python environment before relying on it for critical workflows. Not suitable if you need active development or frequent updates.

Install

humiolib on PyPI

pip

pip install humiolib

uv

uv add humiolib

poetry

poetry add humiolib

Installing humiolib

Before you install

Low install friction with a pure-wheel distribution. Maintenance is dormant—last release was 2023-10-05, though the repository remains active with a recent commit on 2024-06-05. Suitable for stable use cases but expect no active development.

License in practice

Licensed under Apache-2.0 (permissive), which allows commercial and private use with minimal restrictions. No licensing barrier to adoption.

Quickstart

pip install humiolib

from humiolib.HumioClient import HumioClient

client = HumioClient(
    base_url="https://cloud.humio.com",
    repository="sandbox",
    user_token="your_token")

webStream = client.streaming_query("Login Attempt Failed", is_live=True)
for event in webStream:
    print(event)

Requires a valid Humio account and authentication token; base_url and repository must be configured for your Humio instance.

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.8 despite classifiers claiming support through 3.8.
  • Current state of compatibility with modern versions of requests, pytest, and vcrpy dependencies.
  • Whether dormant maintenance status poses a risk for bug fixes if issues arise with Humio API changes.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.5)
Install friction low — pure-Python wheel
Runtime dependencies 3 — requests, pytest, vcrpy
Maintenance dormant — 1,044 days since the last release
Last repo commit
First released
Downloads 397,308/month — #6,962 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: humiolib-0.2.6-py2.py3-none-any.whl

Keywords: humio, log management

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: System :: LoggingTopic :: System :: Monitoring

Tags

humio python clientlog ingestion sdkhumio api wrapperlog query pythonhumio streaming queriesstructured log ingesthumio rest client
log-managementhumio-integrationapi-wrapper

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

openmeter

OpenMeter Python SDK provides a client library…

permissive · top 15,000 on PyPI

azure-kusto-ingest

Ingest data into Azure Kusto clusters from…

permissive · top 5,000 on PyPI

sonic-client

Python client library for the Sonic search…

permissive · top 15,000 on PyPI

axiom-py

axiom-py provides a Python client for ingesting…

permissive · top 5,000 on PyPI

openmetadata-ingestion

OpenMetadata Ingestion is a framework for…

unclear · top 15,000 on PyPI

unstructured-ingest

Unstructured Ingest is a local ETL pipeline…

permissive · top 15,000 on PyPI

graphqlclient

A lightweight GraphQL client that sends queries…

permissive · top 15,000 on PyPI

aliyun-log-python-sdk

Python SDK for Alibaba Cloud Log Service that…

permissive · top 15,000 on PyPI

azure-monitor-ingestion

Sends custom logs and structured data to Azure…

permissive · top 5,000 on PyPI

tinybird-python-sdk

Ingest NDJSON data into Tinybird Data Sources…

unclear · top 15,000 on PyPI