Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A tool for uploading to codepad.org

Project description

codepadr is an interface to upload things to codepad.org.

Installation & Requirements

To install codepadr, simply:

$ pip install codepadr

or, if you must:

$ easy_install codepadr

codepadr requires:

  • python 2.6+
  • requests

Example usage

codepadr is quite flexible in how you pass it code to upload:

$ codepad file.txt
$ codepad < file.txt
$ cat file.txt | codepad

You can specify that the paste should be private:

$ echo "psst, this is private" | codepad -p

You can specify the language of the paste (defaults to plain text):

$ echo "print 'hello world'" | codepad -l py

If you pass in a file, the language will be inferred from the file extension:

$ codepad script.rb

You can ask codepad the run the code:

$ codepad script.py -r

And if you pass in -, it will read from stdin:

$ codepad -l py -r -
for i in xrange(25):
    print i**i
^D

Credits

This project was inspired by Dalton Barreto’s codepad.

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

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

Files for codepadr, version 0.9
Filename, size File type Python version Upload date Hashes
Filename, size codepadr-0.9.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page