Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page