Skip to main content

Human-friendly Amazon glacier API

Project description

ThinIce - friendly client for Amazon Glacier

Thinice is a user-friendly client for AWS Glacier that features a local inventory. This local inventory allows you to instantly list uploaded archives, as retrieving inventory from Glacier can take several hours.

With the local inventory, you can quickly list archives by filename (ArchiveDescription), size, and upload age.

Install

pipx method is recommended (pipx is easy to install).

pipx install thinice

or (better if in virtualenv):

pip3 install thinice

Configuration

Create the config directory using the command mkdir ~/.config/thinice, and then create the config file at ~/.config/thinice/thinice.env. Here’s an example:

AWS_ACCESS_KEY_ID = AK...
AWS_SECRET_ACCESS_KEY = FN...
AWS_REGION = eu-south-1
AWS_GLACIER_VAULT = mytest

Alternatively, you can supply this information via options: --key-id, --secret-key, --region, and --vault.

Basic commands

Inventory

First, you need to initialize the local inventory:

# Request inventory
thinice inventory

# Monitor when the job is complete (this may take a few hours)
thinice job

# Accept the inventory with the same command
thinice inventory

# Now you can list files
thinice ls

Upload

Thinice supports multipart uploads and can handle upload of very large files

# No description explicitly given, description will be myarchive.zip
thinice upload /path/to/myarchive.zip

# Upload with description
thinice upload /path/to/myarchive.zip "My archive from 01/02/2003"

Download

# To download, we should *warm* the file by transitioning it from cold to warm storage
# Here we use expedited retrieval tier to get file very fast.
thinice request myarchive.zip -t expedited

# Or by the first part of the ArchiveId (default: standard tier)
thinice request S39to

# Monitor the list to see when it becomes warm (this will take a few hours)
thinice ls


# Finally, download it
# A file with the description MyServer.tar.gz will be saved as MyServer.tar.gz (only if the description is a filename)
thinice download myarchive.zip

# Download a file with an ArchiveId starting with these characters
thinice download S39to myarchive.zip

Delete

# delete archive with this ArchiveId
thinice delete S39to

# delete all archives with this ArchiveDescription
thinice delete myarchive.zip

Other commands

# help
thinice -h
thinice download -h

# list vaults
thinice vaults

# list jobs
thinice jobs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thinice-1.0.19.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thinice-1.0.19-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file thinice-1.0.19.tar.gz.

File metadata

  • Download URL: thinice-1.0.19.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for thinice-1.0.19.tar.gz
Algorithm Hash digest
SHA256 72842ff0e7e1a50bc44405bf8be5a50e1c258347043f6aa882c1641aa4502387
MD5 f349022bed3c57f96350cd4a3af013b6
BLAKE2b-256 01ecf8be08799bf75e57159d3d2d296a3e724e472f4103e593a37e4cfbb70bf0

See more details on using hashes here.

File details

Details for the file thinice-1.0.19-py3-none-any.whl.

File metadata

  • Download URL: thinice-1.0.19-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for thinice-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 2139f8ad669d41489cb6b66bab8e0a2d6ed5df349d6f614472fc221fd7aa60f5
MD5 0fa3439707a6535716cd800e72d38741
BLAKE2b-256 a15a8fd1b1b5ed5eab5c7c88de6526d0abb450067f6b0281ce9e4280c98a9135

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page