Giter VIP home page Giter VIP logo

tasklib's Introduction

tasklib

https://travis-ci.org/robgolding63/tasklib.png?branch=develop https://coveralls.io/repos/robgolding63/tasklib/badge.png?branch=develop

tasklib is a Python library for interacting with taskwarrior databases, using a queryset API similar to that of Django's ORM.

Supports Python 3.5 and above, with taskwarrior 2.1.x and above. Older versions of taskwarrior are untested and may not work.

Requirements

Installation

Install via pip:

pip install tasklib

Usage

tasklib has a similar API to that of Django's ORM:

>>> from tasklib import TaskWarrior

>>> tw = TaskWarrior('/home/rob/.task')
>>> tasks = tw.tasks.pending()
>>> tasks
['Tidy the house', 'Learn German']
>>> tasks.filter(tags__contain='chores')
['Tidy the house']
>>> type(tasks[0])
<class 'tasklib.task.Task'>
>>> tasks[0].done()
>>> tasks = tw.tasks.pending()
>>> tasks
['Learn German']
>>> tasks[0]['tags'] = ['languages']
>>> tasks[0].save()

For more advanced usage, see the documentation.

tasklib's People

Contributors

tbabej avatar robgolding avatar lyz-code avatar huntrar avatar nesaro avatar sarg avatar ahkneipp avatar nikoskoukis-slamcore avatar

Watchers

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