Giter Site home page Giter Site logo

15d23 / selfrestraint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parkerk/selfrestraint

0.0 2.0 0.0 44.02 MB

Are certain websites a distraction? SelfRestraint is a cross platform application which blocks access to websites for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.

Python 100.00%

selfrestraint's Introduction

SelfRestraint

About

SelfRestraint is a cross platform version of Steve Lambert's SelfControl, written in Python. It allows you to block distracting sites for a set amount of time, so you can use your computer and access the internet without having to worry about distracting sites.

Credits

SelfRestraint was developed by Parker Kuivila The UI and features were inspired by Steve Lambert

License

SelfRestraint is Free Software under the GPL. You are free to share, modify, and add to the code as you wish.

Installation

If you simply want to use the program, just run the included .exe (Windows) or .app (Mac OS X) (Coming Soon!).

Building

If you want to help with the project and build it yourself here's how:

  1. Download the dependancies

  2. For Windows:

    • In the PyInstaller directory run python pyinstaller.py -F -w --icon=<Path_To_Selfrestraint.ico> \path\to\SelfRestraint.py
  3. If you're on OS X:

    • Navigate to SelfRestraint.app/Contents/Resources and open boot.py
    • Add sys.path = [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.7', 'lib-dynload')] + sys.path above sys.frozen = 'macosx_app'

Known Bugs

  • Mac version requires password, messy workaround
  • Does not work on OS X
  • Quitting means you have to re run the app, and let is finish the countdown
  • Sometimes the timer doesn't end and the block lasts forever (until hosts file is changed)

To Do

  • Add compiled .app
  • Integrate better to use Admin privileges on OSX
  • Increase robustness, and make workarounds harder
  • Add site/config file to prevent constant reentering of sites

selfrestraint's People

Contributors

cstigler avatar dflock avatar parkerk avatar toyg avatar

Watchers

 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.