Skip to main content

Dogbin API Wrapper

Project description

Dogbin-API-Wrapper

del.dog asynchronous / synchronous API

you can to use with this library:

  • paste text to dogbin
  • get paste from dogbin
  • working with asynchronous / synchronous

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

This version

0.1

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 hashes)

Uploaded Source

Built Distribution

dogbin-0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page