Humioapi

Latest version: v0.11.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.11.0

Added

- Add `ingest_csv` API for ingesting CSV files through Humio's structured data endpoint
- Add `graphql` API for executing user provided graphql for convenience

Changed

- `HumioAPI.repositories` now accepts a `fast=False` parameter. When set to True, only basic information is returned for each repository/view. This helps in environments with thousands of repositories which would otherwise take a long time to fetch.
- Changed graphql queries for repositories and parsers to be in line with Humio version 1.42.1 graphql endpoints
- Replaced pendulum to native datetime helper with C-optimized version available since Python 3.7

Fixed

- `parse_ts` would throw deprecation warnings related to `pytz` when `tzlocal` v4 was used. Supporessed these warnings since v4 added a shim providing backwards compatability for now.

Deprecated

Removed

0.10.0

This version bumps the minimum Python version to 3.8, as 3.6 is EOL. Also relaxes dependency version to allow any version greater than what has been tested.

This might cause problems if a library introduces breaking changes in the future, but should allow more flexibility for the end user to specify version constraints, as this is a library.

0.9.0

Added

- Add optional progress bars (from tqdm) to QueryJob polling. These can be disabled by setting `progress=False` when polling.

Changed

- Changed the QueryJob `poll()` function to be a generator, yielding the current query result until done. The previous version was the original from `humiolib`, which continously polled internally and returned the final result on completion.
- Changed the QueryJob `poll_until_done()` function to access the final result of a QueryJob, similar to the original `poll()`. The original was disabled, due to a bug with infinite polling in the original from `humiolib`.
- The `raise_warnings` parameter when polling QueryJobs was renamed to to `warn`, and available in `poll()` and `poll_until_done()`.

Removed

- Removed `QueryJob.poll_safe()` in favor of the `poll()` and `poll_until_done()` functions. These should make it easier to access the current result, including progress information before the query completes.

0.8.2

Fixed

- Add back `dry` and `soft_limit` to `ingest_unstructured()`

0.8.1

Fixed

- Add humiolib dependency to pyproject.toml.

0.8.0

From this release, this is merely a wrapper around the official humiolib to provide some opiniated helpers and APIs,
mainly improved timestamp parsing and `env` based config.

This also means all HTTP requests are now done through `requests` rather than `httpx`, since thats what `humiolib` uses.

Changed

- Renamed `loadenv` to `humio_loadenv`, and added a more general `humio_loadenv`.
- `loadenv` and `humio_loadenv` can now accept multiple prefixes and config files.
- Streaming search now only allows one repo. Use `humio-search-all` or a `view` if you need more repos at once.

Removed

- Asyncronous APIs, since `requests` only has syncronous support.
- All timeout options for all APIs, but you can pass stuff to `requests` directly through `kwargs`.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.