Skip to content

Instantly share code, notes, and snippets.

View ricard33's full-sized avatar

Cédric RICARD ricard33

View GitHub Profile
@ricard33
ricard33 / todoist-cleaner.py
Created July 13, 2021 13:45 — forked from Maxr1998/todoist-cleaner.py
Python script to delete completed tasks from your Todoist Inbox
import todoist
api = todoist.TodoistAPI(token='<your_token_here')
# Initial sync of your account
api.sync()
# Find Inbox in project - can be adapted to delete completed tasks for other projects as well
projects = api.projects.all()
inbox = next(p for p in projects if 'inbox_project' in p)
@ricard33
ricard33 / version.py
Created September 27, 2017 23:24 — forked from pwithnall/version.py
Extract Python module version from git tags and repository status
# This program is placed into the public domain.
"""
Gets the current version number.
If in a git repository, it is the current git tag.
Otherwise it is the one contained in the PKG-INFO file.
To use this script, simply import it in your setup.py file
and use the results of get_version() as your package version: