Dogbin API Wrapper
Project description
Dogbin-API-Wrapper
del.dog asynchronous / synchronous API
you can to use with this library:
Getting started
pip install dogbin
paste to dogbin
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
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}')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dogbin-0.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dogbin-0.1-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file dogbin-0.1.tar.gz.
File metadata
- Download URL: dogbin-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50a2c47c2803372af0f6afc16a076e283862a143cd13e07d54ee7f52394a14ff
|
|
| MD5 |
a7353aeb19a7b44373056194eda53b2e
|
|
| BLAKE2b-256 |
10d1d84e1bf7248a3dec90ae286f767929d3dfa6fc218a69ca9cee28b06987c5
|
File details
Details for the file dogbin-0.1-py3-none-any.whl.
File metadata
- Download URL: dogbin-0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16ed70206ceb03e4a240a3a85e135ca27cb131d6217f83d30bb52c390bc66dc4
|
|
| MD5 |
b67efb50202b1a2343b95124330d4e20
|
|
| BLAKE2b-256 |
283f4abfbaa336afd6a504df2a7b45ce7b8f3d58b59c7a9d815050b8499c1eea
|