Saravanan666/pypi-org huggingface dataset:
Package: to-dict
jsoncodableInstallpipinstalljsoncodable# orpip3installjsoncodableUsagefromjsoncodableimportJSONCodableimportjson# ---------------------------------------- Any object to json dict ---------------------------------------- #classTest1:def__init__(self,value:int):self.value1=valueself.value2=value*2self.values=[self.value1,self.value2]classTest2(JSONCodable):def__init__(self,value:int):self.test1=Test1(value)test2=Test2(5)print(test2.dict)# prints:## {'test1': <__main__.Test1 object at 0x1018199d0>}print(json.dumps(test2.json,indent=4))# prints:## {#     "test1": {#         "value1": 5,#         "value2": 10,#         "values": [#             5,#             10#         ]#     }# }# ---------------------------------------- Any json dict to object ---------------------------------------- #classTest3(JSONCodable):passjson_str='{"name": "John Smith", "hometown": {"name": "New York", "id": 123}}'print(Test3.from_json(json_str))# prints:## JSONCodable(name='John Smith', hometown=JSONCodable(name='New York', id=123))print(Test3.from_json(json.loads(json_str)))# prints:## JSONCodable(name='John Smith', hometown=JSONCodable(name='New York', id=123))
Package: todo2
###### Simple TODO list generator### Why
Because i couldn’t find any other tool to do (pun unintended) this. Also i
found it annoying toCtrl+F(Cmd+F) all the time or run project wide
searches every 2 minutes.### How
Well, code is a bit dirty and the ignore list is hardcoded, but it is
OpenSource so be my guest and improve it (Could use some regex). The script
cheks for an existing.gitdirectory, finds the user and repo (this way it
creates links to the GitHub file and line) and then searches for the# TODOtag in all source files. Feel free to change it to// TODOand.c.### Install
Option 0:` pip install todo2 `Option 1:` git clonegit@github.com:thee-engineer/todo.gitcd todo pip install . `### Use
Go into your git project folder, run thetodocommand, and then look at your
awesomeTODO.mdfile. Add it, commit it, push it, look at it, click on it.` cd my_git_project todo git add TODO.md git commit-m"Add TODO.md" git push `### Contribution
Add whatever. Right know the project could use (but I don’t want to invest
the time):
- [ ] Regex matches for gitignore rules
- [ ] CL Arguments (this way more feature can be implemented)
- [ ] Option for non-git projects
- [ ] Branch checking
- [ ] Local file links
- [ ] TODO completion check and comment removal### Support the developer
Buy me a beer or something, donations are welcome.![](https://img.shields.io/badge/Bitcoin-14xkoFmGcHDaaSbqiVd5fw3FREQeditJ5L-yellow.svg)
[![](https://img.shields.io/badge/Patreon-theeengineer-orange.svg)](https://www.patreon.com/theeengineer)
Package: todo9
todoA simple todo record which is simple as elegant, as it shows itself every time you spawn your terminal.usagetype todo -h to list all functions--enable / --disable is to enable or disable todo. For example, if you choose topython /path_to_todo/todoin your .bashrc, this flag would help you to disable you if it irritates at some point.-n flag is to add new task. The format is as followspython todo 'task-name'a dialogue box opens to save priority preference on a scale of 1-3-e flag is to edit a task. Usage:python todo -e 'task-id'save new description and priority on the same scale-d flag deletes a task. Usage:python todo -d 'task-id'Todo [ get it?! ]sort on the basis of priorities
Package: todo99
todoA simple todo record which is simple as elegant, as it shows itself every time you spawn your terminal.usagetype todo -h to list all functions--enable / --disable is to enable or disable todo. For example, if you choose topython /path_to_todo/todoin your .bashrc, this flag would help you to disable you if it irritates at some point.-n flag is to add new task. The format is as followspython todo 'task-name'a dialogue box opens to save priority preference on a scale of 1-3-e flag is to edit a task. Usage:python todo -e 'task-id'save new description and priority on the same scale-d flag deletes a task. Usage:python todo -d 'task-id'Todo [ get it?! ]sort on the basis of priorities
Package: todoBot
# todoBotOverviewtodoBot is a task manager telegram bot. There are two types of tasks.
The first one will notify you every day until you delete it. The second
one is a timer with a start button. You create a bunch of tasks and then
press the start button after what the timer runs and notify you at a
certain time. Basically a multiple timer.InstallationRequired: python3, pip3, setuptools, config`bash clonehttps://github.com/lrusifikator/todoBotcd todoBot sudo apt install python3python3-pippip3 install--pre--upgrade-rrequires.txt sudo python3 setup.py install `Or just:sudo pip install todoBotUsageIt is possible to use it only if you have a free server where you can
run it whole the time. It doesn’t need much, a low-end PC would be more
than enough.Creating a botSearch for the “botfather” telegram bot in the telegram search bar
(he’s the one that’ll assist you with creating and managing your
bot)Click on or type/newbotto create a new bot.Setting up the todoBotBotfather will send you a bot token. Copy itType in the terminalset-todoBotand insert the tokenType in the terminaltodoBotIf you want it to run on a server using ssh, type in the ssh session:nohup todoBot &> /dev/null &It’ill make able to keep the bot
running after living the ssh session, delete all the output and hide the
processContact information<yakushev.rusl101@gmail.com>
Package: todo-by
todo_byRuntime lifetimes for comments. Inspired byparker-codes/todo_by.To use the library, install it usingpip:$pipinstalltodo_byImport and call thetodo_bydecorator and add a date like so:fromtodo_byimporttodo_by,todo_while@todo_by("2050-06-01")defmy_function():# TODO: Implement this function by June 1st, 2050If the current date is after June 1st, 2050, thetodo_bydecorator will
generate aRuntimeErrorwith the message"TODO by Jun 1, 2050 has passed".If the current date is on or before June 1st, 2030, the code will run normally.You can also add specific TODO comments:@todo_by("2050-06-01","Clean up implementation")Thetodo_whiledecorator allows you to ensure todos are done based on aSemVer
requirement. This also allows you to make blockers:@todo_while("1.0.0","setup.py","This has to be in the first major release")defmy_function():self.assertTrue(True)If the current version in yoursetup.py(specify any file used for versioning
your code) is equal or greater than 1.0.0, thetodo_whiledecorator will
generate aRuntimeErrorwith the message"TODO version requirement '1.0.0' not satisfied by current <version_number>".If the current version number is smaller than 1.0.0, the code will run normally.License:Copyright 2023 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Buy me a coffee?If you feel like buying me a coffee (or a beer?), donations are welcome:BTC : bc1qq04jnuqqavpccfptmddqjkg7cuspy3new4sxq9
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS
ETH : 0x2238A11856428b72E80D70Be8666729497059d95
LTC : MQwXsBrArLRHQzwQZAjJPNrxGS1uNDDKX6
Package: todocom
todocom (Todo Comments)CLI program that retrieves all TODO comments from file(s) and prints them in terminal/shell. It was created in order to automatically update a list of TODO tasks by simply adding "TODO:" comments in the code (Comments Format). It also enables prioritization of tasks by using "TODO soon:" or "TODO urgent".
To create the TODO list, simply open terminal and run the following command:todo [folder/file]This command will print out all TODO comments that were found in the code, sorted by their prioritization: urgent, soon and regular.Urgenttasks will be printed in RED,soonin CYAN andregularcomments in WHITE to make it easier to read. There is also an option to filter comments by their priotization:# Prints urgent TODOs
todo -u [folder/file]Or:# Prints soon TODOs
todo -s [folder/file]Comments can also be assigned to a user by adding "Todo @username" comment:# Prints soon TODOs
todo -a [USERNAME] [folder/file]Finally, there is an option to save the list in a text file (stores as regular text without colors):# Store results in a txt file![dummy](https://user-images.githubusercontent.com/73610201/211216021-a4859641-69a6-4e94-8f8c-2c0cafd0a455.png)

todo -o [path/to/sample.txt] [folder/file]Setuppip install todocomComments FormatThere are two types of comments: single line and multi-line. Currently, multi-line comments (docstrings) are only supported in Python, but single line should work for most programming languages.Format is flexible and can be lower-case, upper-case or a combination of both. Below are several examples:1. TODO:
2. TODo:
3. TOD0:
4. ToD0:
5. To-D0:
6. to-do:InUrgentandsooncomments the TODO part is flexible as shown above, but must be followed by eitherurgentorsoonin lower-case:1. TO-DO soon:
2. tODo soon: 
3. ToD0 urgent:
4. T0-D0 urgent:
Package: todoer
todoerRemove your todos on GitLab based on different criteria.buildpoetryinstall--no-dev--no-root
poetrybuildinstallationpip3installdist/todoer-0.1.0-py3-none-any.whlusageSpecific the following environment variables:GITLAB_URL (defaults tohttps://gitlab.com)GITLAB_TOKENusage:todoer[-h][-tTITLE][-dDESCRIPTION][-cCREATOR]optionalarguments:-h,--helpshowthishelpmessageandexit-tTITLE,--titleTITLERegexoftodotitletoremove-dDESCRIPTION,--descriptionDESCRIPTIONRegexoftododescriptiontoremove-cCREATOR,--creatorCREATORUsernameoftheissuecreator
Package: todo-extract
TODO extractor from text filePython script for extracting TODO notes from text file.List can be grouped into sections and can be summarized with stats.RequirementsUsageExamplesextraction of bare list, no statsextraction of list summarized with statsextraction of list divided into sections/chaptersLicenseInstallation$ pip install todo-extractRequirementsThe script requires Python3 installed, no other dependencies.Usage$todo-extract--helpusage: todo-extract [-h] [-s] [-c] file_name

Extract todo items from markdown file

positional arguments:
  file_name       markdown file path

optional arguments:
  -h, --help      show this help message and exit
  -s, --stats     display stats
  -c, --chapters  display items grouped by important/not important and done/not doneExamplesextraction of bare list, no stats$todo-extractfile.mdoutput:- buy a bag of chips
- buy a bag of cookies
- buy apples
- buy oranges
- buy bananas
- buy pears
- buy plums
- buy avocados
- buy water
- [!] buy breadextraction of list summarized with stats$todo-extract--statsfile.md- buy a bag of chips
- buy a bag of cookies
- buy apples
- buy oranges
- buy bananas
- buy pears
- buy plums
- buy avocados
- buy water
- [!] buy bread

stats:
-------
10  all items (done or not done)
3   not done normal items   (42%  of all normal items are not done)
4   done normal items       (57%  of all normal items are done)
2   important items todo    (66%  of all important items are not done)
1   important items done    (33%  of all important items are done)extraction of list divided into sections/chapters$todo-extract--chaptersfile.md==== Done normal items: 4 ====

- buy oranges
- buy bananas
- buy pears
- buy plums

==== Important done items: 1 ====

- [!] buy bread

==== Normal todo items: 3 ====

- buy a bag of chips
- buy a bag of cookies
- buy apples

==== Important todo items: 2 ====

- buy avocados
- buy waterLicenseMIT©Krystian Safjan.
Package: todo_extractor
todo-extractorExtracts TODO comments from code.The purpose of this project is to serve as an example of going from a script to a full-fledged project and to be used with the presentationModern Python developmentatOmegapoints conference OpKoKo 19.2.It might be turned into something useful, but currently it's main purpose is to give examples to the presentation.UsageRun it from the command line like:$ todo_extractor <optional directory>if no directory is specified the current directory will be used.todo-extrator prints a JSON output with match, line number and filename.DevelopmentDevelopment should preferable always be done in a virtualenv.Installation is done with flit, which needs to be first be installed in the virtualenv (pip3 install flit).The package can be installed in development mode withflit install --symlinkor on Windowsflit install --pthThis will install the package in editable mode and also install the dev-dependencies.TestingTesting can be done with pytest:pytest --cov=todo_extractorwhich will also measure test coverage.To test the installed package, use tox (tox). This will test the installed package on all supported Python versions.
Package: todofcpy
soccer-pyA python application to handle soccer data.Visualization tool for X & Y coordinatesDocumentationCheck out theDocumentationExamplesfromtodofcpy.graphimportSprintmapdf=df[['x_pos','y_pos']]dat=df.to_numpy()tsm=Sprintmap(data=dat)plt=tsm.create_sprintmap_plot()plt.show()fromtodofcpy.graphimportHeatmapdf=df[['x_pos','y_pos']]dat=df.to_numpy()thm=Heatmap(data=dat)thm.set_colors(color='plasma')plt=thm.create_heatmap_plot()plt.show()...(_or_)...fromtodofcpy.graphimportHeatmapdf=df[['x_pos','y_pos']]dat=df.to_numpy()thm=Heatmap(data=dat,color='magma')plt=thm.create_heatmap_plot()plt.show()Extra Data WorkThis is a passion project started atTodo Football ClubReleases0.0.0 == Currently graphs a heatmap.0.1.0 == Sprintmaps.0.1.1 == 2d array bug fix.0.2.0 == Heatmap can choose color scheme from ['viridis', 'plasma', 'inferno', 'magma', 'cividis']Restructuring of codebase.0.3.0 == Animation of single player.0.3.1 == Create pyplot field with color choices.Licensetodofcpy is aMIT License
Package: todofinder
TODO-finderIt finds TODOs!RequirementsPython 3.8To install, runpip install todofinder.UsageSpecify a glob pattern with-gand use-oto specify where to store the CSV report.python -m todofinder -g <glob_pattern> ... <glob_pattern> -o FILEThe CSV file will have the following fields, and it will have a header with these field names:file: absolute path to the fileline_number: the TODO's line numbertext: The text after "TODO:" (colon optional)token: The matched token (either TODO or FIXME)full_line: The complete line (newlines stripped)filetype: The file's file type (part after the first dot).PluginsYou can use-por--pluginsto enable language-specific parsers that will prevent false
positives and skip over lines without comments. Currently available plugins:Python:-p pyC:-p cYou can have one or more active plugins (e.g.-p py c) or all at once (-p all)BlameYou can use-bor--blameto rungit blameon all files with TODOs and extract info.
This will add the following fields to the CSV report:author: The name of the person who last touched the linedate: The date at which the last commit touching the line was madecommit: The commit hashmessage: The first line of the commit messageNote that using--blamewill make the script run much, much slower, since it shells out
to git for every file.
Package: todoist
Python Todoist is a Python wrapper around the Todoist API. It provides a Python
interface for the Todoist API.InstallationFirst of all, you need to setuptools to installation. Then, clone the
repository from:git@github.com:amix/Todoist-API-s.gitEnter the repository directory and run:$ python setup.py build
$ python setup.py installTestingWe’re using nose for testing. In repository directory, run this command:$ python setup.py nosetestsUsageLet’s try to login and get profile information:>>> from todoist.base import StandardAPI
>>> api = StandardAPI()
>>> login = api.login(email='gkmngrgn@gmail.com', password='blablabla')If you login successfully, you can see profile information inloginvariable:>>> print(login)
{u'api_token': u'blablablablablatrollololo',
 u'date_format': 1,
 u'default_reminder': None,
 u'email': u'gkmngrgn@gmail.com',
 u'full_name': u'Gubba Gubba',
 u'id': 000000,
 u'jabber': None,
 u'mobile_host': None,
 u'mobile_number': None,
 u'msn': None,
 u'notifo': None,
 u'premium_until': None,
 u'sort_order': 0,
 u'start_page': u'_blank',
 u'time_format': 1,
 u'timezone': u'Europe/Istanbul',
 u'twitter': None,
 u'tz_offset': [u'+02:00', 2, 0, 0]}Hmm, my name is not Gubba Gubba, i should change it, but how:>>> api.update_user(full_name='Gökmen Görgen')
{u'api_token': u'blablablablablatrollololo',
     u'date_format': 1,
     u'default_reminder': None,
     u'email': u'gkmngrgn@gmail.com',
     u'full_name': u'Gökmen Görgen',
     u'id': 100000,
     u'jabber': None,
     u'mobile_host': None,
     u'mobile_number': None,
     u'msn': None,
     u'notifo': None,
     u'premium_until': None,
     u'sort_order': 0,
     u'start_page': u'_blank',
     u'time_format': 1,
     u'timezone': u'Europe/Istanbul',
     u'twitter': None,
     u'tz_offset': [u'+02:00', 2, 0, 0]}Perfect! To get project list, use get_projects():>>> api.get_projects()
[{u'cache_count': 0,
  u'collapsed': 0,
  u'color': u'#ff8581',
  u'id': 1111111,
  u'indent': 1,
  u'item_order': 8,
  u'last_updated': u'1328809772.38',
  u'name': u'example_project',
  u'user_id': 100000},
 {u'cache_count': 25,
  u'collapsed': 0,
  u'color': u'#ff8581',
  u'id': 1111112,
  u'indent': 1,
  u'item_order': 9,
  u'last_updated': u'1328809772.40',
  u'name': u'personal',
  u'user_id': 100000}]I have two projects named “example_project” and “personal”. For more
information about Todoist API, you can see the official api documentation:http://todoist.com/API/helpLicenseCoded by Gökmen Görgen.
Copyright (C) 2012, TodoistThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.AuthorsGökmen Görgen, <gokmen_alageek.com>
Package: todoist-api-python
Todoist API Python ClientThis is the official Python API client for the Todoist REST API.InstallationThe repository can be included as aPoetrydependency inpyproject.toml.
It is best to integrate to a release tag to ensure a stable dependency:[tool.poetry.dependencies]todoist-api-python="^v2.0.0"Supported Python VersionsPython 3.9 is fully supported and tested, and while it may work with other Python 3 versions, we do not test for them.UsageAn example of initializing the API client and fetching a user's tasks:fromtodoist_api_python.api_asyncimportTodoistAPIAsyncfromtodoist_api_python.apiimportTodoistAPI# Fetch tasks asynchronouslyasyncdefget_tasks_async():api=TodoistAPIAsync("YOURTOKEN")try:tasks=awaitapi.get_tasks()print(tasks)exceptExceptionaserror:print(error)# Fetch tasks synchronouslydefget_tasks_sync():api=TodoistAPI("my token")try:tasks=api.get_tasks()print(tasks)exceptExceptionaserror:print(error)DocumentationFor more detailed reference documentation, have a look at theAPI documentation with Python examples.DevelopmentTo install Python dependencies:$poetryinstallTo install pre-commit:$poetryrunpre-commitinstallYou can try your changes via REPL by running:$poetryrunpythonYou can then import the library as described inUsagewithout having to create a file.
If you decide to useTodoistAPIAsync, please keep in mind that you have toimport asyncioand runasyncio.run(yourmethod())to make your async methods run as expected.ReleasesThis API client is public, and available in a PyPI repository.A new update is automatically released by GitHub Actions, by creating a release with a tag in the formatvX.Y.Z(v<Major>.<Minor>.<Patch>).Users of the API client can then update to the new version in theirpyproject.tomlfile.FeedbackAny feedback, such as bugs, questions, comments, etc. can be reported asIssuesin this repository, and will be handled by Doist.ContributionsWe would love contributions in the form ofPull requestsin this repository.
Package: todoist-cli
A command line interface for adding tasks to Todoist.Installationgit clone https://github.com/csu/todoist-cli.git
cd todoist-cli
pip install -r requirements.txtUsageUsage: todoist.py [OPTIONS] FILE

  Add tasks from a file

Options:
  -po, --project TEXT   a project id
  -pi, --priority TEXT  priority (1 to 4, 4 highest)
  -i, --indent TEXT     indent level (1 to 4, 1 top-level)
  -d, --date TEXT       due date (Todoist-formatted date string)
  --help                Show this message and exit.Add four tabs to the start of a line to increment the indent level by 1.
Package: todoist-colors
Todoist ColorsColor aliases for Todoist API. Lookherefor more details. For strange colors we usedthisweb resource.InstallationUse the package managerpipto install foobar.pipinstalltodoist-colorsUsageimporttodoist_colorstodoist_colors.RED# 31ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: todoist-conv
todoist-convConverts Todoist CSVs to/from other formats to integrate with other tools, like mind mappers.Usage$todoist-conv--help
Usage:todoist-conv[OPTIONS]FILEConvertsTodoistFILEfrominput_formattooutput_format

Options:-i,--input-format[csv|opml|json][required]-f,--output-format[csv|opml|json][required]-o,--output-fileFILE[default:-]--helpShowthismessageandexit.
Package: todoist-digest
Todoist Project DigestTodoistdoesn't have a way to generate a digest of all recent comments in a project created by a specific user. This makes it challenging to see what changed and what requires your action if you are collaborating with someone on a project.This is a simple project which generates a digest of all comments by a particular user on a particular project.This project was also a good excuse to play around and test some functional programming/data manipulation tooling I've been messing with (funcy,funcy-pipe, andwhatever).UsageDockerdockerpullghcr.io/iloveitaly/todoist-digest:latest
dockerrun--env-file.envghcr.io/iloveitaly/todoist-digest:latestWant to run a one off execution?dockerrun--env-file.envghcr.io/iloveitaly/todoist-digest:latesttodoist-digest--helpWant to inspect the docker container?dockerrun-itghcr.io/iloveitaly/todoist-digest:latestbashLocallyRun this locally using:bin/local-digest-htmlOr run directly:poetryruntodoist-digest\--last-synced"2023-12-04T15:52:48Z"\--target-useruser@gmail.com\--target-projectProjectNameOr, email yourself the digest:poetryruntodoist-digest\--last-synced$LAST_SYNC\--target-user$TARGET_USER\--target-project$TARGET_PROJECT\--email-auth$EMAIL_AUTH\--email-to$EMAIL_TODevelopmentDocker BuildThis repo usesnixpacksfor building a Dockerfile. Why? Because I like trying new things.Untilasdf supportis built into nixpacks, you'll have to do something like:exportNIXPACKS_POETRY_VERSION=$(asdf-current-versionpoetry)exportNIXPACKS_PYTHON_VERSION=$(asdf-current-versionpython)(asdf-current-version is a functionI have in my shellwhich returns the current version of a tool)In order to pass the py + poetry versions properly to nixpacks:nixpacksbuild.--nametodoist-digest--envNIXPACKS_PYTHON_VERSION--envNIXPACKS_POETRY_VERSION--start-cmdbin/cron-digestPlaygroundipython shell with some helpful variables defined:./playground.pyRun with ipdbOpen up an exception when there's an exception:ipdb3$(whichtodoist-digest)--last-synced2023-12-14T13:38:25Z...
Package: todoist_helper
todoist_helperMy template for small libraries and command-line tools.InstallationInstallpython3-gi:sudo apt install python3-giInstalltodoist_helper:pipxinstalltodoist_helper--system-site-packagesorpipinstalltodoist_helper--system-site-packagesTODO: add about config file.Add hotkey to quickly executetodoist_helper log-work.