Skip to main content

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.

Installation

To install from PyPI, use pip:

pip install bakeit

For development, clone the repository and use uv:

git clone https://github.com/skorokithakis/bakeit.git
cd bakeit
uv sync
uv run bakeit

You are done!

Usage

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

[pastery]
api_key = eisha8ahqui7Aesh0fasyu8HFsdo

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

$ bakeit myfile.txt
Paste URL: https://www.pastery.net/oniasd/

You can also pipe stuff to it:

$ cat myfile.txt | grep hello | bakeit
Paste URL: https://www.pastery.net/oxczvs/

The config file

A full config file can look like this:

[pastery]
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")
"https://www.pastery.net/pabtus/"

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!

Metadata

Release files for bakeit 0.2.4

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

Source distribution (sdist)

Source distribution for bakeit 0.2.4
File Size Uploaded
bakeit-0.2.4.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bakeit 0.2.4
File Interpreter ABI Platform
bakeit-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / bakeit-0.2.4.tar.gz

Download URL bakeit-0.2.4.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6c64b0dc4a6d8b148ae6c6fac93006fd47ad40e2306701eda3d8b8fdc9e9250e
BLAKE2b-256 checksum
How to use checksums
6dc162e742bb1a6fe4b9b878f147826abb3a8323f2c1cb0fa1ed4e28f6799d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2025.

Transparency log

Release files / bakeit-0.2.4-py3-none-any.whl

Download URL bakeit-0.2.4-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35f0da9487c306f9d5c0119113d2dd0012f816e521193618bb4f67076f377d01
BLAKE2b-256 checksum
How to use checksums
8a4b4d79df94e13097efa15f88ca85af6270b6cf611ce37e8620bb2adebc2e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

3 release files

0.2.1

3 release files

0.2.0

2 release files

0.1.9

3 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

4 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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