This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Please install deepfreeze-core instead
Elastic Deepfreeze Core
Core library for Elasticsearch S3 Glacier archival operations.
Overview
This package provides the shared functionality for deepfreeze operations, used by both:
- elastic-deepfreeze-cli: Standalone CLI tool
- elasticsearch-curator: Full Curator with deepfreeze support
Installation
pip install elastic-deepfreeze-core
Or from source:
pip install git+https://github.com/elastic/deepfreeze.git#subdirectory=packages/elastic-deepfreeze-core
Usage
This package is typically used as a dependency by other packages. For direct usage:
from elastic_deepfreeze_core import (
Setup, Status, Rotate, Thaw, Refreeze, Cleanup, RepairMetadata,
s3_client_factory, create_es_client
)
# Create ES client
client = create_es_client(hosts=["https://localhost:9200"], username="elastic", password="changeme")
# Create and run an action
status = Status(client=client)
status.do_action()
Components
Actions
Setup- Initialize deepfreeze environmentStatus- Display status of repositories and thaw requestsRotate- Create new repository, archive old ones to GlacierThaw- Restore data from Glacier storageRefreeze- Return thawed data to GlacierCleanup- Remove expired repositories and requestsRepairMetadata- Fix metadata discrepancies
Utilities
s3_client_factory- Create S3 client for AWScreate_es_client- Create Elasticsearch client- Repository and Settings management functions
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black elastic_deepfreeze_core/
ruff check elastic_deepfreeze_core/
Why "elastic-deepfreeze-core"?
The package name includes the elastic- prefix to prevent dependency confusion attacks. See the main README for details.
Metadata
Release files for elastic-deepfreeze-core 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elastic_deepfreeze_core-1.0.0.tar.gz | 55.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elastic_deepfreeze_core-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 123.8 kB
Release files / elastic_deepfreeze_core-1.0.0.tar.gz
| Download URL | elastic_deepfreeze_core-1.0.0.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b771d55217bae67a226c2cdb190285f5597b11736e423ccd80b72ef813fd0d0
|
|
BLAKE2b-256 checksum How to use checksums |
e7f0b398a2039dcb6de05ac3ccfbce2009402b2d64481558a4e5fe715e5067ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / elastic_deepfreeze_core-1.0.0-py3-none-any.whl
| Download URL | elastic_deepfreeze_core-1.0.0-py3-none-any.whl |
|---|---|
| Size | 68.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f562b5bd8acb429cfeb4e1b752b4983ddef9ccfe41fa0005d8f32af3290c6f95
|
|
BLAKE2b-256 checksum How to use checksums |
a9055a51ee058f87a53e8761c07e64e1b3ed9fa6e2165e190a027a7cfdf3e17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|