pytodotxt


Namepytodotxt JSON
Version 1.5.0 PyPI version JSON
download
home_pagehttps://vonshednob.cc/pytodotxt
SummaryLibrary to access todo.txt-like task lists
upload_time2023-06-23 08:45:51
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.


## Documentation

You can find the full documentation at <https://vonshednob.cc/pytodotxt/doc/>.


## 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://vonshednob.cc/pytodotxt",
    "name": "pytodotxt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "R",
    "author_email": "contact+pytodotxt@vonshednob.cc",
    "download_url": "https://files.pythonhosted.org/packages/51/18/a8f4d15eb31bcde441b0ec090c5d97c435beabc9620199e7f90d2f5ad1af/pytodotxt-1.5.0.tar.gz",
    "platform": null,
    "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## Documentation\n\nYou can find the full documentation at <https://vonshednob.cc/pytodotxt/doc/>.\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",
    "bugtrack_url": null,
    "license": "",
    "summary": "Library to access todo.txt-like task lists",
    "version": "1.5.0",
    "project_urls": {
        "Homepage": "https://vonshednob.cc/pytodotxt"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84adba5e78667b92c21c751b3f6205e6a34f61fe43461a7bae6854d87cdbb0d2",
                "md5": "65b15d6cd206097a5601014467dba205",
                "sha256": "423e237fd83eaa03a0de52ddd0b56592fec7ed6a71bdcea8da1cb703b4f16620"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "65b15d6cd206097a5601014467dba205",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 205891,
            "upload_time": "2023-06-23T08:45:49",
            "upload_time_iso_8601": "2023-06-23T08:45:49.046032Z",
            "url": "https://files.pythonhosted.org/packages/84/ad/ba5e78667b92c21c751b3f6205e6a34f61fe43461a7bae6854d87cdbb0d2/pytodotxt-1.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5118a8f4d15eb31bcde441b0ec090c5d97c435beabc9620199e7f90d2f5ad1af",
                "md5": "6aca5f92b209e927b5ba7dd247ace046",
                "sha256": "99be359438c52e0c4fc007e11a89f5a03af00fc6851a6ba7070dfe0e00189009"
            },
            "downloads": -1,
            "filename": "pytodotxt-1.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6aca5f92b209e927b5ba7dd247ace046",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 230463,
            "upload_time": "2023-06-23T08:45:51",
            "upload_time_iso_8601": "2023-06-23T08:45:51.226685Z",
            "url": "https://files.pythonhosted.org/packages/51/18/a8f4d15eb31bcde441b0ec090c5d97c435beabc9620199e7f90d2f5ad1af/pytodotxt-1.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-23 08:45:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pytodotxt"
}
        
R
Elapsed time: 0.08112s