{"id":13502533,"url":"https://github.com/codelucas/easycomplete","last_synced_at":"2025-04-13T17:42:52.519Z","repository":{"id":11315939,"uuid":"13735711","full_name":"codelucas/easycomplete","owner":"codelucas","description":"A python autocompletion library. Easycomplete has a simple API and utilizes google's autocomplete results \u0026 the english dictionary for now. ","archived":false,"fork":false,"pushed_at":"2013-10-24T08:10:20.000Z","size":15094,"stargazers_count":40,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T08:45:07.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codelucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-21T07:33:57.000Z","updated_at":"2024-07-28T06:57:58.000Z","dependencies_parsed_at":"2022-09-19T09:42:09.951Z","dependency_job_id":null,"html_url":"https://github.com/codelucas/easycomplete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelucas%2Feasycomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelucas%2Feasycomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelucas%2Feasycomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelucas%2Feasycomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelucas","download_url":"https://codeload.github.com/codelucas/easycomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248756133,"owners_count":21156713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:02:17.088Z","updated_at":"2025-04-13T17:42:52.494Z","avatar_url":"https://github.com/codelucas.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"easycomplete\n============\nWant to add a dynamic \u0026 responsive autocomplete bar\nto your webapp? Easycomplete is here! This is a python module \nwhich generates generic autocomplete results set by utilizing \ngoogle's autocomplete along with the english dictionary. Oh, and\neverything is in unicode!\n\nThe goal is to create a general autocompletion system which a\nbroad scope of webapps can use.\n\nThis is the first release so the API isn't super user friendly\nbut it works. You can tailor your settings with a few params. Below are examples. \n\nSetup\n=====\n```bash\n\ngit clone https://github.com/codelucas/easycomplete\n\ncd easycomplete\n\nsudo python setup.py install\n```\n\n\nExample usage\n=============\n\n```python\n\u003e\u003e\u003e from easycomplete import easycomplete\n\n# quite a bit of memory, on my webapps I call this once\n# and push all the results into static json urls to save RAM.\n# automated functionality for this can be added later\n\n# following line will take 5-15 seconds, but it's a one time thing.\n\u003e\u003e\u003e map = easycomplete.get_mapper()\n\n\u003e\u003e\u003e print map['adam']\n[u'adam levine', u'adam sandler', u'adam carolla', u'adam lambert' ... ] # limited to 10 results\n\n# Demo of the firstperson settings\n\u003e\u003e\u003e map1 = easycomplete.get_mapper(firstperson=False)\n\u003e\u003e\u003e print map1['how']\n[u'howards']\n\n\u003e\u003e\u003e map2 = easycomplete.get_mapper()\n\u003e\u003e\u003e print map2['how']\n[u'how i met your mother', u'how to tie a tie', u'how to take a screenshot on a mac', ...]\n\n# We also have a few more setting options. Check the internal get_mapper()'s params!\n```\n\nFAQ\n===\n__Q__: My google autocomplete results are out of date!\n\n__A__: There is a python file called retriever.py which automatically\n   updates your google autocomplete. But you will need to do some\n   dirtywork yourself for now as the API is still rough for users.\n   Read the comments in that file for more directions, I intend on\n   making this process much more user friendly once I have time!\n\n\nTODO\n====\n- [ ] Add a fontend wrapper so users can easy sync this python\n      module to twitter's typeahead module with ease!\n- [ ] Fix up the retriever.py API so users can\n      update their google autocomplete results with ease\n- [ ] Clean this entire repo up\n- [ ] Add more settings functionality to the mapper params\n\n\n\nMore to come soon! Happy coding!\n\n\n*http://codelucas.com   - Blog*\n\n*http://wintria.com - Startup*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelucas%2Feasycomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelucas%2Feasycomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelucas%2Feasycomplete/lists"}