directoryhash-0.1.1
توضیحات
DirectoryHash is a library for Python. It gives an opportunity to get a hash of the destination folder. You can choose file types, which will participate in the calculations.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | directoryhash-0.1.1 |
| نام | directoryhash |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexander Yudkin |
| ایمیل نویسنده | alexander@yudkin.com.ua |
| آدرس صفحه اصلی | http://yudkin.com.ua |
| آدرس اینترنتی | https://pypi.org/project/directoryhash/ |
| مجوز | The MIT License (MIT) |
*************
DirectoryHash
*************
DirectoryHash is a library for Python. It gives an opportunity to get a hash of the destination folder. You can choose file types, which will participate in the calculations.
`Github repo <https://github.com/san4ezy/directoryhash>`_
Installation
============
Install using pip::
pip install directoryhash
...or clone the project from github::
https://github.com/san4ezy/directoryhash.git
How to use?
===========
Getting hash for whole directory::
from directoryhash import md5, sha1
md5_hash = md5("path_to_directory")
sha1_hash = sha1("path_to_directory")
Getting hash for directory including html and css only::
from directoryhash import md5, sha1
filetypes = ('.html', '.css',)
md5_hash = md5("path_to_directory", filetypes)
sha1_hash = sha1("path_to_directory", filetypes)
Catching exceptions::
from directoryhash import md5, HashedDirectoryDoesNotExist
directory_path = "path_to_destination_folder"
try:
md5(directory_path)
except HashedDirectoryDoesNotExist as e:
print(e)
نحوه نصب
نصب پکیج whl directoryhash-0.1.1:
pip install directoryhash-0.1.1.whl
نصب پکیج tar.gz directoryhash-0.1.1:
pip install directoryhash-0.1.1.tar.gz