pytodotxt


Namepytodotxt JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://git.spacepanda.se/bold-kitty/pytodotxt
SummaryLibrary to access todo.txt like task lists
upload_time2021-01-09 12:48:06
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/6b/be/be04fd8c1fc703e3287e9312b8d68dfd31220a03f6050a55e730811ffa06/pytodotxt-1.0.7.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.7",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "06061cc29865ede2f5ad6a4ae269b1bc",
                "sha256": "b60a66c4f4bbc2a9d05b7244d5b6fb707e7a4159ff3181da76c4d23f9d7f8710"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.0.7-py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "06061cc29865ede2f5ad6a4ae269b1bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 5477,
            "upload_time": "2021-01-09T12:48:05",
            "upload_time_iso_8601": "2021-01-09T12:48:05.097410Z",
            "url": "https://files.pythonhosted.org/packages/08/bf/25de15835d19d551dd8a9e9149432e12b6ac46e41924f4ffd1c7fbb9f164/pytodotxt-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "65720e96e984136050c23208b7f9ffb0",
                "sha256": "2a06875049b932de4a66d14df857a1512d32ea9cf9cb577887996a7e6900ec6e"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.0.7.tar.gz",
            "has_sig": true,
            "md5_digest": "65720e96e984136050c23208b7f9ffb0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 5372,
            "upload_time": "2021-01-09T12:48:06",
            "upload_time_iso_8601": "2021-01-09T12:48:06.308121Z",
            "url": "https://files.pythonhosted.org/packages/6b/be/be04fd8c1fc703e3287e9312b8d68dfd31220a03f6050a55e730811ffa06/pytodotxt-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-01-09 12:48:06",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pytodotxt"
}
        
R
Elapsed time: 0.20071s