Skip to main content

Tree hash-storage files

Project description

Build status Documentation

Overview

Tree the library for saving many files by they hash. For preservation it is enough to you to transfer a binary code of the file and the Tree will keep him.

Example

Superficial uses in the tree hash storage

from tree_storage import TreeStorage

tree = TreeStorage(path="/path/to/storage")

# If you want add file to the Tree Storage
with open("/path/to/file", "rb") as file:
    tree.breed(file_byte=file.read(), mode='wb')
# after add file, method return status of writing.
# If add file status is success, tree save last
# hash of the file in the attribute file_hash_name

# For remove file from the Tree Storage
# you can call cut method and past
# to him hash name of file which you have delete
tree.cut(file_hash_name=tree.file_hash_name, greedy=True)

Installing

Python Version Project Version

Download and install the latest released version from PyPI:

pip install tree-storage

Download and install the development version from GitHub:

pip install git+https://github.com/valeriiduz/Tree

Installing from source (installs the version in the current working directory):

python setup.py install

(In all cases, add –user to the install command to install in the current user’s home directory.) Install and Update Tree library using pip:

Documentation

Read full documentation on https://tree.readthedocs.io/.

License

This repository is distributed under The MIT license

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

tree-storage-0.1.11.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

tree_storage-0.1.11-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file tree-storage-0.1.11.tar.gz.

File metadata

  • Download URL: tree-storage-0.1.11.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for tree-storage-0.1.11.tar.gz
Algorithm Hash digest
SHA256 d4e624bec3bcf9f7366aab78f3a80222a93f12d12798718ff03755463613a440
MD5 f6393bc4023001c9e131206daa63746a
BLAKE2b-256 f02c56c07a8edb193c3da1fbf242e81bbac8263dca5c94c9fc33e41d7b4f45f9

See more details on using hashes here.

File details

Details for the file tree_storage-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: tree_storage-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for tree_storage-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d99bf12a6fb60f9e1d48063ef3e9a688bef6a06c6d96649d7494a9b5401b58e2
MD5 faa169b73a0621cd52814d2e03717449
BLAKE2b-256 3e32773690b426cc6602fa474ed8ce3757fdabc47212613b8fc90be34078af98

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