Git Product home page Git Product logo

class-8-json-todo's Introduction

Python / JSON TODOs

Install

$ mkvirtualenv todos -p /usr/bin/python3
$ pip install -r requirements.txt

Change branches to students-tasks

$ git checkout -b students-tasks origin/students-tasks

Usage

General:

$ python main.py --help
$ python main.py --debug

List todos

$ python main.py list
$ python main.py list -s pending
$ python main.py list -s done
$ python main.py list -s all

Create todos

$ python main.py create "My TODO Task"
$ python main.py create "My TODO Task" -d "Much description, wow"
$ python main.py create "My TODO Task" -d "Much description, wow" -p "2018-03-05"
$ python main.py create "My TODO Task" -d "Much description, wow" -p "2018-03-05 19:25:33"

Complete task

$ python main.py complete "My TODO Task"
$ python main.py complete 1  # by order/id

Student's Tasks

The branch students-tasks contains some unsolved pieces of the code. Don't worry that your instructor is supposed to go over all this during class. But as a extra reference, here's what you'll find:

Main tests

There are 5 tests that need fixing. You can find them in tests.py with comments similar to # FIXME: Test. To run those tests you can use some make commands that we've created. For example:

$ make test_1
$ make test_2
$ make test_3 #... etc

There are also two more tasks that show extra info

$ make test  # Runs ALL the tests
$ make test_summary # Just prints a quick summary of the tests that are failing
Optional exercises

There are two optional tests that can be run with:

$ make optional_test_1
$ make optional_test_2

class-8-json-todo's People

Contributors

santiagobasulto avatar jasonmeeks avatar

Watchers

Blake 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.