tarsafe-0.0.5
توضیحات
A safe subclass of the TarFile class for interacting with tar files. Can be used as a direct drop-in replacement for safe usage of extractall()
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | tarsafe-0.0.5 |
| نام | tarsafe |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrew Scott |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/beatsbears/tarsafe |
| آدرس اینترنتی | https://pypi.org/project/tarsafe/ |
| مجوز | MIT License |
# Tarsafe

Tarsafe is a drop-in replacement for the tarfile module from the standard library to safely handle the vulnerable `extractall()` method. Inspired by a [6 year old security bug](https://bugs.python.org/issue21109).
## Installation
```
$ pip install tarsafe
```
## Usage
```
from tarsafe import TarSafe
tar = TarSafe.open("example.tar", "r")
tar.extractall()
tar.close()
# OR
with TarSafe.open("example.tar", "r") as tar:
tar.extractall()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl tarsafe-0.0.5:
pip install tarsafe-0.0.5.whl
نصب پکیج tar.gz tarsafe-0.0.5:
pip install tarsafe-0.0.5.tar.gz