Skip to main content

Mystbin.py!

Documentation Status Linting status Build status

A small simple wrapper around the Mystb.in API. API docs can be found here.

Documentation for this wrapper can be found here. If you want the docs for the main branch, those can be found here.


Features

  • - Creating pastes.
  • - Deleting pastes.
  • - Getting pastes.
  • - Sync client.
    • This one will take some time as I have no motivation to do it, but PRs are welcome if others want to do it.

Installation

This project will be on PyPI as a stable release, you can always find that there.

Installing via pip:

python -m pip install -U mystbin.py

Installing from source:

python -m pip install git+https://github.com/PythonistaGuild/mystbin.py.git

Usage examples

# async example - it will default to async
import mystbin

client = mystbin.Client()

file = mystbin.File(filename="File1.txt", content="Hello there!")
file2 = mystbin.File(filename="test.py", content="print('hello!')")

paste = await client.create_paste(files=[file, file2])

str(paste)
>>> 'https://mystb.in/<your generated ID>'

get_paste = await client.get_paste("<your generated ID>")
get_paste.files[0].content
>>> "Hello there!"

get_paste.created_at
>>> datetime.datetime(2020, 10, 6, 10, 53, 57, 556741)

If you have any question please feel free to join the Pythonista Discord server:

Metadata

Release files for mystbin-py 7.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mystbin-py 7.1.1
File Size Uploaded
mystbin_py-7.1.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mystbin-py 7.1.1
File Interpreter ABI Platform
mystbin_py-7.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / mystbin_py-7.1.1.tar.gz

Download URL mystbin_py-7.1.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
611f60868e331ed4bb46ca3de3ee6e61895a11d0021987f3cb994aba9a876d5b
BLAKE2b-256 checksum
How to use checksums
ac5294c40ea0348fa4f2f44dbaee75130674108b05206841dfbfa1adc05e2fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.20.1 CPython/3.8.18 Linux/6.5.0-1025-azure

Release files / mystbin_py-7.1.1-py3-none-any.whl

Download URL mystbin_py-7.1.1-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef15e5dd61da0ec630436b2046bcac53e4b98412b934ccd60a50280a2a0b61a4
BLAKE2b-256 checksum
How to use checksums
9874a702b11f2ff6daea4a2a6a4fe6535567da27b5670dd4ac9a2277090bdf76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.20.1 CPython/3.8.18 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

7.1.1 This release

2 release files

7.1.0

2 release files

7.0.2

2 release files

7.0.1

2 release files

7.0.0

2 release files

6.1.0

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.1.0

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.1

2 release files

2.2.0

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.0

2 release files

2.0.2

2 release files

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