Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A command-line interface for Pastery, the best pastebin in the world.

Project Description

BakeIt is a command line utility (and Python library) to Pastery, the best pastebin in the world. BakeIt aims to be simple to use and unobtrusive.


To install, use pip:

pip install bakeit

You are done!


Using BakeIt is similarly easy. First, create a file with your Pastery API key in ~/.config/bakeit.cfg, like so:

api_key = eisha8ahqui7Aesh0fasyu8HFsdo

Then, just pass the file you want to upload to the bakeit command:

$ bakeit myfile.txt
Paste URL:

You can also pipe stuff to it:

$ cat myfile.txt | grep hello | bakeit
Paste URL:

The config file

A full config file can look like this:

api_key = eisha8ahqui7Aesh0fasyu8HFsdo
duration = 2880

The api_key parameter, as explained above, is mandatory. You can find it at the bottom of your Pastery account page.

The duration parameter is optional. If set, it will be used as the default duration for every new paste. The command-line argument takes precedence over this parameter, though, so you can change it per-paste when invoking bakeit.

Usage as a Python library

BakeIt provides the PasteryUploader class:

>>> from bakeit import PasteryUploader
>>> pu = PasteryUploader("your API key")
>>> pu.upload("this is the text to upload")

PasteryUploader accepts the following arguments:

  • body - The body of the paste.
  • title (optional) - The title to give the paste.
  • language (optional) - The language the paste is in. Pastery will attempt to autodetect this if omitted.
  • duration (optional) - The number of minutes to keep this paste for.
  • max_views (optional) - The number of views to keep this paste for.

Happy pasting!

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.2 kB) Copy SHA256 Hash SHA256
Wheel py2 Apr 27, 2016
(4.6 kB) Copy SHA256 Hash SHA256
Source None Apr 27, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting