pytodotxt


Namepytodotxt JSON
Version 1.0.6 PyPI version JSON
download
home_pagehttps://git.spacepanda.se/bold-kitty/pytodotxt
SummaryLibrary to access todo.txt like task lists
upload_time2020-11-21 20:01:01
maintainer
docs_urlNone
authorR
requires_python>=3.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pytodotxt

A tiny library to access todo.txt-like task lists.


## Installation

To install pytodotxt, you can follow these steps to clone the repository,
and install the program.

    pip install pytodotxt

That’s all there is to do.


## Example usage

Here’s an example how to open a todo.txt file and print the description of all
tasks that are not marked as completed:

    import pytodotxt


    todotxt = pytodotxt.TodoTxt('todo.txt')
    todotxt.parse()

    for task in todotxt.tasks:
        if not task.is_completed:
            print(task.description)


Here is how you add a new task to an existing todo.txt file:

    import datetime

    import pytodotxt

    todotxt = pytodotxt.TodoTxt('todo.txt')
    todotxt.parse()

    task = pytodotxt.Task()
    task.parse('This is a new task')
    task.creation_date = datetime.date.today()

    todotxt.tasks.append(task)

    todotxt.save()




            

Raw data

            {
    "_id": null,
    "home_page": "https://git.spacepanda.se/bold-kitty/pytodotxt",
    "name": "pytodotxt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "R",
    "author_email": "devel+pytodotxt@kakaomilchkuh.de",
    "download_url": "https://files.pythonhosted.org/packages/a7/81/f2f9d9afb994d3d342f6251af77876200a378da37202a70b78aa8f473184/pytodotxt-1.0.6.tar.gz",
    "platform": "",
    "description": "# pytodotxt\n\nA tiny library to access todo.txt-like task lists.\n\n\n## Installation\n\nTo install pytodotxt, you can follow these steps to clone the repository,\nand install the program.\n\n    pip install pytodotxt\n\nThat\u2019s all there is to do.\n\n\n## Example usage\n\nHere\u2019s an example how to open a todo.txt file and print the description of all\ntasks that are not marked as completed:\n\n    import pytodotxt\n\n\n    todotxt = pytodotxt.TodoTxt('todo.txt')\n    todotxt.parse()\n\n    for task in todotxt.tasks:\n        if not task.is_completed:\n            print(task.description)\n\n\nHere is how you add a new task to an existing todo.txt file:\n\n    import datetime\n\n    import pytodotxt\n\n    todotxt = pytodotxt.TodoTxt('todo.txt')\n    todotxt.parse()\n\n    task = pytodotxt.Task()\n    task.parse('This is a new task')\n    task.creation_date = datetime.date.today()\n\n    todotxt.tasks.append(task)\n\n    todotxt.save()\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Library to access todo.txt like task lists",
    "version": "1.0.6",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "1dbcc2e7e7f8d8491cd3d79529b764f6",
                "sha256": "58e1fe3d9cced33c9dc41542c9a7633fd314e43255aeb3030f0f52b0db5c26af"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.0.6-py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "1dbcc2e7e7f8d8491cd3d79529b764f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 5108,
            "upload_time": "2020-11-21T20:01:00",
            "upload_time_iso_8601": "2020-11-21T20:01:00.338145Z",
            "url": "https://files.pythonhosted.org/packages/31/77/cc29bb43c7b01e68cdd2eb87d5b2fd41802614a2d1ce8c6f34c69e67ab85/pytodotxt-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "c41197bfb9b053edc3bf89ca861b0658",
                "sha256": "1aa66ad3cadb4e4e08f3172a50d803c92ff163e60c433c84c699e873bdb206ed"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.0.6.tar.gz",
            "has_sig": true,
            "md5_digest": "c41197bfb9b053edc3bf89ca861b0658",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 5183,
            "upload_time": "2020-11-21T20:01:01",
            "upload_time_iso_8601": "2020-11-21T20:01:01.565040Z",
            "url": "https://files.pythonhosted.org/packages/a7/81/f2f9d9afb994d3d342f6251af77876200a378da37202a70b78aa8f473184/pytodotxt-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-21 20:01:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pytodotxt"
}
        
R
Elapsed time: 0.17401s