Skip to content

elijahgives/sourcebin.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sourcebin.py

Sourcebin.py is a simple Python API wrapper for https://sourceb.in/.

Installation

pip install sourcebin

Examples

Creating a paste

import asyncio
import sourcebin

async def main():
    code = "console.log('Hello World')"
    paste = await sourcebin.create(
        name="example.js", 
        code=code, 
        title="Example Paste"
    )
    print(paste)  # https://sourceb.in/ooPp0TSrpv

asyncio.run(main())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages