Skip to main content

Sourcebin API wrapper for Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sourcebin-1.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file sourcebin-1.0.1.tar.gz.

File metadata

  • Download URL: sourcebin-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for sourcebin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cfc4ad80f168b335b4f646da47632e6d5878f1befaebf6bbcd61ce37375934cf
MD5 6ea69ce793d4494f962c898e5403174b
BLAKE2b-256 e58193407368b861427f525191522dff2e01971f9f8b116f62c4f9ea68274931

See more details on using hashes here.

Supported by

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