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.10.0.tar.gz (21.6 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.10.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minato-0.10.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.2 Linux/5.15.0-1014-azure

File hashes

Hashes for minato-0.10.0.tar.gz
Algorithm Hash digest
SHA256 e59d02a248256e56b4782c0bfb3d77be7538577b4579cd5acc9e9a87be283ae1
MD5 c6d1f5cf1509ace02bfafefcf36131a2
BLAKE2b-256 add2dbd30b7c5d82a0577cef5203f311eff70b8da3c4ed45d479513e1a81bc52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minato-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.2 Linux/5.15.0-1014-azure

File hashes

Hashes for minato-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2413abad8712cc1399b832de6c7cdfc348574428a1d97e6794e9912c97ab85b5
MD5 bcc49261dc9c686a36112f880ea56d9e
BLAKE2b-256 799ffe668442f6e8d58f4ff9addc085b6cc221293073daef2c3bd1502f840a45

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