Skip to content

rtk-rnjn/hastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Ritik Ranjan
May 11, 2022
20d0723 · May 11, 2022

History

11 Commits
Aug 13, 2021
Jun 24, 2021
Aug 22, 2021
May 11, 2022
Feb 28, 2022

Repository files navigation

hastebin.py

A simple Hastebin Python wrapper. This is kinda useless but its important.

Its super easy to use, supports both aiohttp and requests module.

from hastebin import Paste

def main():
    text = input("Enter your text: ")
    # This is sample text
    data = Paste(text, 'txt')
    print(data)

if __name__ == '__main__':
    main()
import asyncio
from hastebin import AsyncPaste

async def main():
    text = input("Enter your text: ")
    # This is sample text
    data = await AsyncPaste(text, 'txt')
    print(data)

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Found Error? Have Suggestion? Consider opening up an issue!

About

A simple Hastebin Python wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages