Giter Site home page Giter Site logo

beemill / teblr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvjkmr/teblr

0.0 1.0 0.0 51 KB

Tumblr on command line for Terminal and Linux lovers written in Python

Home Page: http://nvijaykumar.me/teblr/

License: Apache License 2.0

Python 100.00%

teblr's Introduction

teblr

Tumblr on Termanal

Have you ever asked, how do I use tumblr on terminal? So here we are with teblr, a terminal based tool written in Python. We all know that how much pathetic is Tumblr's OAuth, but we tried our best to get you comfort. Now post text, photo, quote, link, audio or video with just a single command from your terminal. Also edit and delete posts at breeze.

We give you three basic features with three sub-commands:

tumblr set
tumblr post
tumblr edit
tumblr delete

##tumblr set usage:

usage: tumblr set [-h] (-db | -su)

optional arguments:
  -h, --help           show this help message and exit
  -db, --default-blog  Set default blog for your actions
  -su, --setup         Use this to run fresh setup

##tumblr post usage:

usage: tumblr post [-h]
                   (--photo | --text | --quote | --link | --audio | --video)
                   [-u URL | -f FILE] [--private | --draft | --queue]
                   [-d DATE] [-c CAPTION] [-e] [-s SOURCE] [-q QUOTE_TEXT]
                   [-b BLOG]

optional arguments:
  -h, --help            show this help message and exit
  --photo               Post a photo to your blog
  --text                Post text to your blog
  --quote               Post a quote to your blog
  --link                Post a link to your blog
  --audio               Post an audio to your blog
  --video               Post a video to your blog
  -u URL, --url URL     URL of the data, if any. Available for: photo, audio,
                        video, link posts
  -f FILE, --file FILE  Path to the file, if any. Available for: photo, audio,
                        video posts
  --private             Set post visibility to only you
  --draft               Add post to drafts
  --queue               Add post to queue
  -d DATE, --date DATE  Custom post date: dd-mm-yyyy
  -c CAPTION, --caption CAPTION
                        Post caption, if any Available for: photo, audio,
                        video posts
  -e, --editor          Open default editor for writing your post. Available
                        for: text posts
  -s SOURCE, --source SOURCE
                        Source of the post, if any. Available for: quote posts
  -q QUOTE_TEXT, --quote-text QUOTE_TEXT
                        Add quote text as argument. Available for: quote posts
  -b BLOG, --blog BLOG  Mention blog to post content.

##tumblr edit usage:

usage: tumblr edit [-h] (-u PID | -p PID) [-e] [-b BLOG]

optional arguments:
  -h, --help            show this help message and exit
  -u PID, --url PID     URL of the post that has to be edited
  -p PID, --post-id PID
                        ID of the post that has to be edited
  -e, --editor          Open default editor for editing your post. Available
                        for: text posts
  -b BLOG, --blog BLOG  Mention blog to edit content.

##tumblr delete usage:

usage: tumblr delete [-h] (-u PID | -p PID) [-b BLOG]

optional arguments:
  -h, --help            show this help message and exit
  -u PID, --url PID     URL of the post that has to be edited
  -p PID, --post-id PID
                        ID of the post that has to be edited
  -b BLOG, --blog BLOG  Mention blog to delete content.

NOTE: Editor support (-e) is available for posting and editing text posts only.

Installation

Install pip using the following commands:

$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip 
$ sudo pip install --upgrade virtualenv 

Install teblr using pip:

$ sudo pip install -e git+https://github.com/VijayKumarHackr/teblr.git#egg=teblr

Setting up teblr:

$ tumblr set --setup

Contribution

Contributions to this project are very much welcome. Please fork the code!

License

Copyright 2016 Vijay Kumar.

The file /teblr/console.py is taken from here. Licensed under the Apache License, Version 2.0. More at: http://www.apache.org/licenses/LICENSE-2.0

teblr's People

Watchers

 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.