vonshednob / pytodotxt Goto Github PK
View Code? Open in Web Editor NEWPython library to access todo.txt-like task lists
Home Page: https://vonshednob.cc/pytodotxt/
License: MIT License
Python library to access todo.txt-like task lists
Home Page: https://vonshednob.cc/pytodotxt/
License: MIT License
Thanks for the library ๐
I think it would be nice to have a property for the "bare" description, i.e. the description without project, context, and attributes.
line 64 in todotxt.py uses a hard coded line ending with windows encoding which causes problems on linux when checking in files with git.
TodoTxt
currently fulfills two purposes: as the container for Tasks
s grouped in a file and as the dispatcher to parse Task
s from a file.
These two responsibilities should be split to allow for easier extension.
Only in version 1.4.0
It happend when I try to creat a "Todotxt" from a empty file.
This is my test code which based on "examples/adding_task.py"
"""Example how to add a task to an existing todo.txt file"""
import pytodotxt
todotxt = pytodotxt.TodoTxt("todo.txt")
todotxt.parse()
new_task = pytodotxt.Task("(A) Do some more stuff")
todotxt.add(new_task)
todotxt.save()
line_num = 1
for line in todotxt.lines:
print(f"{line_num}: {line}")
line_num += 1
Afterthis code run, "todo.txt" is this (one blank line and one task line and one blank line again)
(A) Do some more stuff
And I used Windows 10 and Python 3.10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.