Skip to content

sy-hnmr/easy_to_paste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paste to Pastebin

License 
This script may provide you to easily way to paste your text/log etc. to Pastebin.com.

Important

Before using this script, you've got to change dev_key to your unique developer API key. See https://pastebin.com/api.

Requirement

Python 3 or higher.

Usage


    pastebin.py 
    pastebin.py [-f | --file] [-t | --title] [-s | --syntax] [-e | --expire] [-l | --login] [-p | --private]
    pastebin.py [-h | --help]

Options:


    -f --file         Your paste file.
    -t --title      The name or title of your paste
    -s --syntax     Your paste format.
    -e --expire     The expiration date of your paste.
                            N = Never, 10M = 10 mins, 1H = 1 hour, 1D = 1 day, 2W = 2 weeks,
                            1M = 1 month, 6M = 6 months, 1Y = 1 year.
    -l --login              Your paste will belong to your account.
    -p --private       1 -> Private, 2 -> Unlisted, 0 -> Public. (Default:0)

Examples:


    $ python pastebin.py ~/paste.py
      https://pastebin.com/hKDj1gPu
      
    $ python pastebin.py ~/paste.py -t paste.py -s python -l -p 2
      https://pastebin.com/VWFTMg2u

About

Provide easily way to paste to pastebin from CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages