Use the wtforms json extension (dict input might be supported native by now?) in your endpoints. You still need server-side input validation even in a json api. See an example in the "Updating models" section from:
https://wakatime.com/blog/33-flask-part-2-building-a-restful-api
En variant av https://wakatime.com/ hade kunnat vara något. typ flexatime.se :P
Enda gångerna jag inte har flex är då jag loggar tid är som egenföretagare.
Vill man köra ett helt OS för att hålla reda på tiden kan kanske Org-mode i Emacs vara något, kan tycka att där har vi optimala förutsättningar att fixa in flex på något vänster http://orgmode.org/manual/Clocking-work-time.
<rant> Annars tycker jag att logga tid är helt meningslöst, viktigare att göra sin skit och göra det bra, är du anställd så gör rätt för det. Folk loggar tid och surfar istället, det är fan hjärndött på riktigt.
Den här anala idén om att logga tid går många gånger i överstyr, själv som uthyrd konsult nu sitter jag i 4 st olika system so hanterar tid. Och det är tydligen det enda som det görs riktigt uppföljning av, allt annat verkar ovesoväsentligentligt. </rant>
Try Wakatime -- it's relatively new, and I haven't tried it myself, so can't 100% vouch for it, but it looks like it does pretty much exactly what you want. You download the plugin for your editor of choice, and it tracks how long you've spent coding.
Toggl.com and WakaTime (w/Sublime Text)
Both have their pros and cons. Toggl you have to sign in and start, but you can adjust the time as you need to.
WakaTime has a plugin for editors that tracks how long the project is open on and in focus. You can set different time outs, so if you're unfocused from the program for 5 minutes, it stops tracking time. It also emails weekly reports to, and tracks by time spend in each file. It has a free version, but you don't get to look at past data with it, which is sad.
You might like WakaTime and its corresponding Emacs mode: https://github.com/wakatime/wakatime-mode
It's fully automatic and iirc has idle detection which means you won't get timed for your breaks. It's intended for programmers, but I think it'd work well in your usecase with some hacking - even though you (presumably) always use Org mode, the project-based tracking it has could work for you.
Wakatime It keeps track of how much time you spend in a project in your IDE, and specifies that per branch, file, filetype, and many other options. Free option keeps 14 days of history, paid plan even more. Makes time tracking much easier!
Hehe, you may have a look at WakaTime then. It will log your time spent coding, by Projects, IDE, and languages.
Then you can log the time spent by applications and creating your applications, that's some sort of appception lol
I feel astonished to see I'm actually coding more time than sleeping 😅
Only Google Calendar is currently supported:
https://wakatime.com/integrations
We've tried getting OAuth access for Microsoft's Graph API, but it's a mess of forms, verifications, poor docs, etc. Maybe someday if you know someone at Microsoft who can verify our Azure Portal Directory app?
Performance is comparable to Redis, and it isn't limited by the RAM of your server.
i.e. a powerful tool that many could/should consider
A relevant article - Using a disk-based Redis clone to reduce AWS S3 bill
~300 hrs (according to WakaTime) over ~3 months. The first draft was probably done in ~2 weeks, but the devil is in the details. Learned a lot of things optimizing the speed. Filling dummy data from reddit helped a lot, which showed me my initial approach that worked fine with a few test posts would've absolutely collapsed with just 1k posts or users. Must've spent at least a month refining the database. And just last whole week I spent learning and implementing SSR. Lots to be done still. Super glad you liked it!
Consider suggesting Wakatime for tracking instead.
Rather than tracking everything you do (which is an invasion of privacy unless they provide you with a separate work machine), it'll track the lines of code you commit.
They cannot reasonably justify tracking everything you do on your personal computer. If they try, keep all your conversations on the record and file a formal complaint.
Oh atlast i did it actually its called https://wakatime.com/ nd they have somekinda api that we can work with , ig ifs not the thing u asked in the post but its something that u needed hope it helps have a nice day
Rescuetime will track document titles, if you use a browser based IDE with the project in the title it might pick it up. Otherwise, if you use vscode, the wakatime extension tracks language and project.
I work in multiple IDEs so I typically manually track time with Plus for Trello timers and the Forest app. Setting the timer seems to keep me more intentional about what I intend to accomplish in the next hour, and I tend to get more done when I use it.
Otherwise, Rescuetime and Wakatime take care of the background tracking. I can't see the projects I am working on in Rstudio though because they havent adapted Wakatime to that IDE yet. Most of the common ones are covered though.
I personally use https://wakatime.com/ at work. It's not required by my work, I just want to know for myself how long a task takes or how long I spend programming in certain languages or repositories. It just hooks into your text editor and automatically updates as you type.
The wakatime api is fully documented, no need to reverse engineer it.
https://wakatime.com/developers
Someone did some work on a self hosted replacement, but it is nowhere near feature-complete/usable
Time is tracked via editor plugins, GitHub is only used for commit logs so it can't effect your main dashboard charts. When was the last time we received data from your editor according to this page:
I’m not sure if this is what you’re looking for, but I use Wakatime’s free version. It gives a nice summary of the time spent for each project automatically without any work from my side.
But I’m not sure if it suits your usecase completely since it doesn’t allow task management. It just provides usage statistics.
Name/URL: WakaTime Location: San Francisco Elevator pitch: Automated metrics about your programming using text editor plugins. Stage: Bootstrapped More details: IndieHackers Interview
I like stats and recording things and I just started using the Wakatime IDE plugin which tracks my time coding, which is currently 3 hours on average. I believe it only counts when I'm typing and not play-testing or ~~bashing my head against my desk~~ thinking, so this number is probably closer to 4-5 hours. Got a lot of free time while job hunting.
You might find this comparison interesting: https://wakatime.com/blog/25-pirates-use-flask-the-navy-uses-django
Along with the related worksheet to help decide between the two: https://wakatime.com/django-vs-flask-worksheet
This worksheet may help you decide whether to use Django or Flask.
I say "may", because ultimately it's a personal choice, and that worksheet may just have its own bias. Read through it carefully, check out the two frameworks individually, and get some more background on the problem before deciding.
I don't know if you're trying to make people feel sorry for you, but every developer works over time when things need to get done. And things need to get done pretty often. You should get wakatime to see how many hours you actually code. Unless you work by yourself I'm sure you have to spend plenty of time talking to clients, having meetings after they change their minds about the project, and discussing things with coworkers.
Hi qcol, wakatime user here, I'm guessing it shouldn't be too difficult to implement something like that, and I think I'm going to give it a go. I personally also have that problem, but I fix it by playing with the timeout. Not perfect for sure, but so far it works for me as it's nearly impossible to track my time otherwise.
Remember this still will only track time spend in Chrome, and time spend in other apps would be left out. The strategy used by RescueTime may be a better fix there, but that seems like it would be way more complicated to implement, and you'd as well need to manually define which apps/files belong to which project.