Modern throwbin.io API wrapper.
Just write into your console this:
python -m pip install throwbin
There is some methods of using throwbin API.
from throwbin import ThrowBin
tb = ThrowBin()
my_paste = tb.post(
title="My title",
text="My text",
syntax="text"
)
print(f"Status {my_paste.status} | Link: {my_paste.link}")