dogbin-0.1
توضیحات
Dogbin API Wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dogbin-0.1 |
| نام | dogbin |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DeletedAccounts |
| ایمیل نویسنده | deletedaccuonts@hi2.in |
| آدرس صفحه اصلی | https://github.com/Deleted-accounts/Dogbin-API-Wrapper |
| آدرس اینترنتی | https://pypi.org/project/dogbin/ |
| مجوز | GNU Lesser General Public License v3 (LGPLv3) |
# Dogbin-API-Wrapper
## del.dog asynchronous / synchronous API
### you can to use with this library:
- paste text to [dogbin](https://del.dog/)
- get paste from [dogbin](https://del.dog/)
- working with asynchronous / synchronous
Getting started
===============
```
pip install dogbin
```
paste to [dogbin](https://del.dog/)
-----------------
```python
from dogbin import Dogbin
import asyncio
deldog = Dogbin()
url = deldog.paste("some text...") # sync
print(url)
Aync = asyncio.run(deldog.Async_paste("some text...")) # async
print(Aync)
```
get paste from [dogbin](https://del.dog/)
-----------------------
```python
from dogbin import Dogbin
import asyncio
deldog = Dogbin()
by_url = deldog.get_paste('https://del.dog/atacopegno') # sync
by_key = deldog.get_paste('atacopegno', save_to_file=True) # sync
print(f'getting this paste by url {by_url}\n\ngetting this paste by key {by_key}')
async_url = asyncio.run(deldog.Async_getpaste('https://del.dog/atacopegno', save_to_file=True)) # async
async_key = asyncio.run(deldog.Async_getpaste("atacopegno")) # async
print(f'getting this paste by url:\t {async_url}\n\ngetting this paste by key:\t {async_key}')
```
نیازمندی
| مقدار | نام |
|---|---|
| ==3.7.4.post0 | aiohttp |
| ==2.25.1 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl dogbin-0.1:
pip install dogbin-0.1.whl
نصب پکیج tar.gz dogbin-0.1:
pip install dogbin-0.1.tar.gz