Code Monkey home page Code Monkey logo

thesis_progress's Introduction

Thesis Progress

A script that makes progress bar from the number of PDFs.

Requirement

  • PyPDF2
  • requests
  • requests-oauthlib
pip3 install pypdf2 requests requests-oauthlib

USAGE

If you want to tweet or update your profile, edit CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN and ACCESS_TOKEN_SECRET in config.py. Just print progress bar, you don't need edit config.py.

thesis_progress.py [-h] {tweet,print,update_profile} ...

tweet command usage

thesis_progress.py tweet [-h] [-c CUSTOMIZE] [-f FILE] [-g GOAL]

optional arguments:
  -h, --help            show this help message and exit
  -c CUSTOMIZE, --customize CUSTOMIZE
                        customize tweet. put `%BAR%` where you want to put the progress bar.
  -f FILE, --file FILE  file name
  -g GOAL, --goal GOAL  goal page

print command usage

thesis_progress.py print [-h] [-c CUSTOMIZE] [-f FILE] [-g GOAL]

optional arguments:
  -h, --help            show this help message and exit
  -c CUSTOMIZE, --customize CUSTOMIZE
                        customize text. put `%BAR%` where you want to put the progress bar.
  -f FILE, --file FILE  file name
  -g GOAL, --goal GOAL  goal page
  

update_profile command usage

thesis_progress.py update_profile [-h] [-c CUSTOMIZE] [-f FILE] [-g GOAL]

optional arguments:
  -h, --help            show this help message and exit
  -c CUSTOMIZE, --customize CUSTOMIZE
                        customize profile description. put `%BAR%` where you want to put the progress bar.
  -f FILE, --file FILE  file name
  -g GOAL, --goal GOAL  goal page

input example

./thesis_progress.py print -f /Users/jau5/Documents/workspace/修論/main.pdf -c "修論進捗 %BAR%" -g 50

output example

修論進捗 | ##############------ | 74.0%

thesis_progress's People

Contributors

jaus14 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.