this post was submitted on 22 Oct 2024
17 points (87.0% liked)

Programming

17389 readers
150 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

I'm working on a python program, and i need to sync the results to an ipad as a todo list (with checkboxes)

I had been using google keep, and manually copying /pasting the data over from my cli based app. I will be out of the country for 2 weeks, so im updating my software to no longer being cli, and ideally syncing the final list to google keep or something similar, since someone else will be running the software. You know how normies get when they see a terminal window..

tried this googlekeepapi thing i found online, but the authentication was very complicated and i couldn't get it to work. There is no specific reason we need to use google keep, was just the first thing that came to mind when we set this system up, and it works well and is cloud based.

Do yall know of any service where i can programmatically generate checkbox lists, and sync them over the web?

I should note i do not have a server available to self host. could potentially spin something up locally with a raspberry pi, but would prefer not to have another potential point of failure.

top 6 comments
sorted by: hot top controversial new old
[–] cmhe@lemmy.world 11 points 3 weeks ago (1 children)

Instead of relying on a specific cloud service, why not generate a text file from for the todo list data and checkbox state and push/pull it to a git repo?

There is gitpython, a pure python implementation of git.

[–] dadarobot@lemmy.sdf.org 1 points 3 weeks ago (1 children)

Mostly because the target device is an ipad. Im not planning to write anything for the ipad itself, i just want to push the list to it via an existing cloud service.

I'm realizing this may be misguided and i may have to just compromise with the copy/paste approach we've been using. Just wanted to save the operator a step.

[–] cmhe@lemmy.world 6 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Well, if the text file uses git(hub/lab) flavored markdown, you can check/uncheck the boxes from the webui of git(hub/lab). No need to write an app for the apple device.

https://docs.gitlab.com/ee/user/markdown.html#task-lists

In gitlab you might need to edit the markdown file via an webeditor and create a commit this way.

[–] dadarobot@lemmy.sdf.org 1 points 3 weeks ago

Ok great, ill look into it!

+1 for gitlab. You can programmatically generate a csv file that can be used to generate issue(s) which support markdown format. Then your checklists could be issues and marked as completed when done.

You could also for instance set up a weekly pipeline schedule to generate issue(s) from the csv if some of the issues are needed on an interval.

If gitlab isn't an option then id still look into generating the .md files this way and finding a home for the .md files that works for your user(s)

[–] OmanMkII@aussie.zone 2 points 3 weeks ago

Google firebase would be the likely answer for serverless architecture, won't pretend I know anything more to help than that sorry