Skip to main content
Yanked

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 environment
  • Status - Display status of repositories and thaw requests
  • Rotate - Create new repository, archive old ones to Glacier
  • Thaw - Restore data from Glacier storage
  • Refreeze - Return thawed data to Glacier
  • Cleanup - Remove expired repositories and requests
  • RepairMetadata - Fix metadata discrepancies

Utilities

  • s3_client_factory - Create S3 client for AWS
  • create_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)

Source distribution for elastic-deepfreeze-core 1.0.0
File Size Uploaded
elastic_deepfreeze_core-1.0.0.tar.gz 55.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elastic-deepfreeze-core 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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