Tree
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
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
Metadata
Release files for tree-storage 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree-storage-0.1.11.tar.gz | 4.0 kB | Without provenance | Details for tree-storage-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tree_storage-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for tree_storage-0.1.11-py3-none-any.whl |
Total release size: 10.9 kB
Release files / tree-storage-0.1.11.tar.gz
| Download URL | tree-storage-0.1.11.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4e624bec3bcf9f7366aab78f3a80222a93f12d12798718ff03755463613a440
|
|
BLAKE2b-256 checksum How to use checksums |
f02c56c07a8edb193c3da1fbf242e81bbac8263dca5c94c9fc33e41d7b4f45f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tree_storage-0.1.11-py3-none-any.whl
| Download URL | tree_storage-0.1.11-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d99bf12a6fb60f9e1d48063ef3e9a688bef6a06c6d96649d7494a9b5401b58e2
|
|
BLAKE2b-256 checksum How to use checksums |
3e32773690b426cc6602fa474ed8ce3757fdabc47212613b8fc90be34078af98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for tree-storage 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.