Skip to main content

Cached file system for online resources

Project description

Minato

Actions Status Python version License pypi version

Cache & file system for online resources in Python

Features

Minato enables you to:

  • Download & cache online recsources
    • minato supports the following protocols: HTTP(S) / AWS S3 / Google Cloud Storage
    • You can manage cached files via command line interface
  • Automatically update cached files based on ETag
    • minato downloads new versions if available when you access cached files
  • Open online files super easily
    • By using minato.open, you can read/write online resources like the built-in open method

Installation

pip install minato[all]

Usage

Python

import minato

# Read / write files on online storage
with minato.open("s3://your_bucket/path/to/file", "w") as f:
    f.write("Create a new file on AWS S3!")

# Cache & manage online resources in local storage
local_filename = minato.cached_path("http://example.com/path/to/archive.zip!inner/path/to/file")

CLI

❯ poetry run minato --help
usage: minato

positional arguments:
  {cache,list,remove,update}
    cache               cache remote file and return cached local file path
    list                show list of cached files
    remove              remove cached files
    update              update cached files

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

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

minato-0.8.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

minato-0.8.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file minato-0.8.1.tar.gz.

File metadata

  • Download URL: minato-0.8.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.2 Linux/5.11.0-1028-azure

File hashes

Hashes for minato-0.8.1.tar.gz
Algorithm Hash digest
SHA256 ae00f0323df55bc20a839627c8c9f3c3f37b367e34e3042596ba50d87ef8c6de
MD5 609a99ecd62a9cd9bbef83585628f096
BLAKE2b-256 e578c0cc53e237fac797df6ebedf66ab338f54d1579dd4a68a9db14d4ef299ec

See more details on using hashes here.

File details

Details for the file minato-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: minato-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.2 Linux/5.11.0-1028-azure

File hashes

Hashes for minato-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7c9a1f25fae2ab1c7bf4bae34847abea8ef2bcac11eac324f257321ca55e03
MD5 ce18c93f3bdc4c12e1849dfe0f3432dd
BLAKE2b-256 eb8be1c5caf83ffd906177dc124674e3763ba29f8facfd781984bf644b27b94d

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