Registry / devops / curatorbin

curatorbin

JSON →
library1.2.4pypypi✓ verified 25d ago

curatorbin is a Python package that simplifies the installation and execution of the Elasticsearch Curator command-line interface. It downloads the `curator` binary during package installation and provides a Python interface to run its commands. The current version is 1.2.4, with releases typically aligned with updates of the underlying Curator binary or specific wrapper improvements.

pip install curatorbin
INSTALL
IMPORT
SIG · CURATORBIN
C
curatorbin
devopspythonv1.2.4
Install
2.9s avg
Import
20ms
Disk
198MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.020s · 200MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.9s · import 0.020s · 201MB
198MB installed
● package 198MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_curator
from curatorbin import run_curator
from curatorbin import run_curator_command
OSPlatform
from curatorbin import OSPlatform
get_curator_path
from curatorbin import get_curator_path

Demonstrates how to import and use `run_curator_command` to execute arbitrary Curator CLI commands. This function returns the stdout, stderr, and exit code from the underlying binary execution.

from curatorbin import run_curator_command # Example 1: Check the version of the underlying Curator binary try: stdout, stderr, exit_code = run_curator_command('--version') print(f"Curator Version (stdout):\n{stdout.strip()}") if stderr: print(f"Curator Version (stderr):\n{stderr.strip()}") if exit_code != 0: print(f"Command '--version' failed with exit code {exit_code}") # Example 2: Display Curator's help message (first few lines) stdout, stderr, exit_code = run_curator_command('--help') print("\nCurator Help (first 10 lines):\n" + "\n".join(stdout.splitlines()[:10])) except Exception as e: print(f"An error occurred during Curator command execution: {e}")
curator --version
Debug
Known issues
gotchacuratorbin is a Python wrapper for the external `curator` command-line interface, not a pure Python client library for interacting with Elasticsearch. If you need to manage Elasticsearch indices programmatically with Python objects, consider using the `elasticsearch-py` library directly.
fix
Understand that `curatorbin` primarily executes `curator` CLI commands. Use `run_curator_command` to pass arguments as strings, similar to how you'd use the command line.
affects: All
gotchaDuring `pip install curatorbin`, the package attempts to download the `curator` binary from `https://download.elastic.co`. This process requires network access and appropriate file system permissions. Installation may fail or be slow if these conditions are not met.
fix
Ensure the system has stable internet connectivity and the user executing `pip install` has permissions to download and create executable files. Check the installation logs for specific error messages.
affects: All
gotchaIf another `curator` executable is already present in your system's PATH, there's a potential for conflict. `curatorbin` aims to use its managed binary, but relying on global PATH settings can lead to unexpected behavior if not carefully managed.
fix
When using `curatorbin` programmatically, always use `curatorbin.run_curator_command()` or the specific `curator` entry point installed by the package to ensure the correct binary is invoked. Avoid relying on simply calling `curator` if your PATH might contain other versions.
affects: All
Upgrade
Version history
1.2.4latest on PyPI · released Jan 28, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
curatorbin — pip install curatorbin · libregistry