= PyPastebin =

Through this application you can simply send a command output or a file content to paste it on a pastebin service.

PyPastebin is an open source project, so if you notice some errors, you're pleased
to open an [http://code.google.com/p/pypastebin/issues/list issue]


== Main features ==

 * Lose less time

 * Send a command output to paste it

 * Send a read-file to paste it

 * Set the nickname, description, language to use (on the paste service)

 * Show the command output in the shell

 * Receive ONLY the URL generated by the paste service


== Installation ==

At the moment I've not provided an installation tool (If you've suggestions, tell me, please)

But you can simply launch the script just running a python command.
Enter the PyPastebin directory.
Run:
{{{
$ python pypastebin.py
}}}

It will show how you can use it.

== Requirements == 

To run PyPastebin you need Python >= 2.0.

To download it, go here: http://www.python.org/download


== Running the application ==

PyPastebin supports some options at the command line:

{{{
$ python pypastebin.py -h
}}}
or simply:
{{{
$ python pypastebin.py
}}}

to see the usage help.

If you want to paste the output of a shell command on to a paste service (as rafb.net) you've to run:
{{{
$ python pypastebin.py -c "shell command"
}}}
So you can notice that the command must be inserted between two double quotes or two apexes

If you want to paste the content of a file on to a paste service:
{{{
$ python pypastebin.py -f "/path/to/file.txt"
}}}

You can also paste the output of a shell command adding the content of a file:

{{{
$ python pypastebin.py -c "shell command" -f "/path/to/file.txt"
}}}

You may want to set the nickname, the description and the language (it's not needed by the paste service: it will use the default options):

{{{
$ python pypastebin.pyy -c "shell command" -n "Mark" -d "This is my description" -l "Python"
}}}

However, you must know what language the paste service provides.

PyPastebin can also show you the output of the command (or the file content) you chose:
{{{
$ python pypastebin.py -c "shell command" -v
}}} 
You've to use the "-v" option

To know what version you're using:
{{{
$ python pypastebin.py --version
}}}

== Troubleshooting ==

If you experience some problems, please, open an [http://code.google.com/p/pypastebin/issues/list issue]

== Developers ==

You may want to read the [http://code.google.com/p/pypastebin/wiki/Developers Developer's page].


== Changelog ==

If you want to see the changelog, please look at the ChangeLog page
