Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a command line tool to put codes on pastebins on the fly
Python Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
modules
AUTHORS
README
install.sh
pypaste.conf
pypaste.py
pypaste_includes.py

README

                                                    Sun Aug  2 18:52:09 IST 2009
                                            __   ______ 
                              _            /  | / __   |
 ____  _   _ ____   ____  ___| |_  ____   /_/ || | //| |
|  _ \| | | |  _ \ / _  |/___)  _)/ _  )    | || |// | |
| | | | |_| | | | ( ( | |___ | |_( (/ /     | ||  /__| |
| ||_/ \__  | ||_/ \_||_(___/ \___)____)    |_(_)_____/ 
|_|   (____/|_|                                         


README
======

pypaste.py is a python script that helps you in pasting your code on pastebin
websites without having to open a new browser window and browse for your file
or copy-paste your file.

It is as easy as this when installed -

$ pypaste index.html
http://paste.pocoo.org/show/132171/
$

Where "http://paste.pocoo.org/show/132171/" is an example output.
Which is automatically formatted for HTML syntax by PyPaste!

You'll notice that pypaste tries to do automatic syntax highlighting based on 
file extensions and highlighting supported by the service.

To hack and add more support, you should have a look at

    ./pypaste_includes.py
    ./modules/*                 --> these are service specific modules
    


INSTALL
=======

Run the install.sh script in project's root.
after that you should be able to run it easily from anywhere

$ chmod +x ./install.sh
$ sudo ./install.sh

or

$ sudo sh ./install.sh



USAGE
=====

usage: pypaste OPTION [file-to-paste]

    --config
        select and configure a pastebin provider from supported list.
    
    --use pastebin_id
        uses a particular available pastebin provider from the list:

            1   http://paste.ubuntu.com
            2   http://paste.pocoo.org
            3   http://dpaste.com
            4   http://nopaste.com
            
        currently using 1

Something went wrong with that request. Please try again.