GithubHelp home page GithubHelp logo

pasteman's Introduction

Pasteman

A Python based CLI Utility built around Pastebin's API

Pasteman Banner

Requirements

  • Python3 and pip
  • A Pastebin Account

Register for a Pastebin Account. Copy your Unique Developer API Key from API Docs. Try out the features so as to have a better understanding of this Program.

Installation and Config

# Pull the Repository
git clone https://github.com/zrqx/Pasteman.git

# Install the Dependencies
cd Pasteman
pip3 install -r requirements.txt

# Configure Pasteman
python3 pasteman.py configure --username "Pastebin Username" --password "Pastebin Password" --devkey "API Dev Key"
  # Creates `credentials.json` with the data.

Usage

Pastebin's API currently supports these opearations

  • Create New Paste
  • List all Private Pastes
  • Retrieve Raw content of a Paste
  • Delete a Paste
$ python3 pasteman.py COMMAND {Optional Arguments}

Create New Paste

python3 pasteman.py create --message "Your Message"

     Optional Arguments:
     --title "Title for the Paste"  # Default "Untitled"
     --type "public/private"        # Default "private"
     --expires "option"             # Options - {N,10M,1H,1D,1W,2W,1M,6M,1Y}, Default "10M"

List All Private Pastes

python3 pasteman.py list

Returns 2 lists, containing paste_keys and paste_titles respectively

Retrieve Raw Contents of a Paste

python3 pasteman.py retrieve --key "paste_key"

Delete a Private Paste

python3 pasteman.py delete --key "paste_key"

Returns "Paste Deleted" on Successful operation

pasteman's People

Watchers

Ajith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.