Skip to content

rtk-rnjn/hastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

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