Skip to main content

A small package to create pastes on Pastebin with the Pastebin API

Project description

Pastebin

Create a Paste as a guest.

get your api_dev_key from here

    paste = pb.Paste("<your api_dev_key>")
    paste.create_paste(title="test",
        text="test",
        format=pb.code_formats.PYTHON,
        expire=pb.expire_type.ONE_DAY,
        paste_type=pb.paste_type.PUBLIC)

Get your user key:

    import pastebin as pb

    api_user_key = pb.Login("username","password","api_dev_key").get_user_key()

Create Paste as a registered user.

    paste = pb.Paste("<your api_dev_key>",user_key="<your user_key>")
    paste.create_paste(title="test",
        text="test",
        format=pb.code_formats.PYTHON,
        expire=pb.expire_type.ONE_DAY,
        paste_type=pb.paste_type.PUBLIC)

get the paste url.

    paste.get_paste()

list all pastes.

    paste.list_pastes()

delete a paste.

    paste.delete_paste(paste_key="<paste_key>")

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

NaNbin-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NaNbin-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file NaNbin-0.0.1.tar.gz.

File metadata

  • Download URL: NaNbin-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for NaNbin-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d846b939cd5c105915d89d404193ba9bd0c10a0566d4d25644b928bf52b13a3d
MD5 98cc78180888ea072feef339e35f1926
BLAKE2b-256 fcdd9df875e5176eba08baa31202eccc93f70c885ecb2908b45a07a771fddad6

See more details on using hashes here.

File details

Details for the file NaNbin-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: NaNbin-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for NaNbin-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e41ee15085de10b51a52f7642c74ce8f2eb5165639e544933a57e8423f9cafd1
MD5 fbfcf6335a1e03f4b6cd11831bacae99
BLAKE2b-256 25bae5929ec844d61563beb53d08850562838bdc6f20937edcc506abd69200b9

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