{"id":26470217,"url":"https://github.com/nndev1/triecli","last_synced_at":"2026-05-17T12:12:55.370Z","repository":{"id":62585255,"uuid":"420492475","full_name":"NNDEV1/TrieCLI","owner":"NNDEV1","description":"SLINGSHOT take home project submission","archived":false,"fork":false,"pushed_at":"2021-11-07T23:03:29.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:46:47.996Z","etag":null,"topics":["cli","flask","python","trie"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NNDEV1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-23T18:30:40.000Z","updated_at":"2021-11-11T05:07:58.000Z","dependencies_parsed_at":"2022-11-03T22:03:41.818Z","dependency_job_id":null,"html_url":"https://github.com/NNDEV1/TrieCLI","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/NNDEV1%2FTrieCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNDEV1%2FTrieCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNDEV1%2FTrieCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNDEV1%2FTrieCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NNDEV1","download_url":"https://codeload.github.com/NNDEV1/TrieCLI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244485892,"owners_count":20460571,"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":["cli","flask","python","trie"],"created_at":"2025-03-19T18:36:36.668Z","updated_at":"2026-05-17T12:12:50.329Z","avatar_url":"https://github.com/NNDEV1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trie_project CLI\nSLINGSHOT take home project submission\n\n\n## Demo Video\n\n***maybe?***\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nUsing the Trie data structure to create a usable command line interface with various commands such as add, remove, and search by prefix. I used figlet for a nice looking interface, I used flask and requests to implement the cli with the global state. Lastly I used PythonAnywhere to host the whole thing.\n\nA list of commands are as follows:\n\n    help:                        shows all commands available through the cli\n    add_[words]:                 adds words or a word to the trie\n    remove_[words]:              deletes words or a word from the trie\n    search_[words]:              searches for the words or word in the trie and returns words found and not found\n    visualize:                   displays all items currently in the trie\n    searchbyprefix_[prefix]:     returns all items in the trie starting with the given prefix\n\nHere are some resources I used to build this project:\n\n* [Wikipedia Article for a Trie](https://en.wikipedia.org/wiki/Trie)\n* [Medium Article on Understand Tries](https://medium.com/basecs/trying-to-understand-tries-3ec6bede0014)\n* [GeeksForGeeks Implementation(no code copied)](https://www.geeksforgeeks.org/trie-insert-and-search/)\n\n\n### Built With\n\n* [Flask](https://flask.palletsprojects.com/)\n* [Requests](https://docs.python-requests.org/)\n* [PyFiglet](http://www.figlet.org/)\n* [PythonAnywhere](https://https://www.pythonanywhere.com/)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\n* Install TrieCLI using ```pip install TrieCLI==0.0.2```\n* Run ```import TrieCLI``` and you're all set!\n* or optionally\n* *Clone git repository*\n* *Make sure correct packages are installed(Prerequisites)*\n* *Run server.py* using ```python server.py``` inside TrieCLI\n\nExample run:\n![](https://user-images.githubusercontent.com/36611240/138568591-3eb0883a-a874-4dbb-b2b9-545c535b6578.png)\n![](https://user-images.githubusercontent.com/36611240/138568606-1ba74026-76e1-4a46-a9d1-281714dee749.png)\n![](https://user-images.githubusercontent.com/36611240/138568673-68af66f5-7539-4285-8e38-e7d6a631474a.png)\n\nIf you would like to run elsewhere change the link at line 49 in server.py and make sure you have the files: trie1.py, app.py, server.py\n\n\n### Prerequisites\n\nThis is an example of how to list things you need to use the software and how to install them.\n* flask\n  ```pip install flask```\n* pyfiglet\n  ```pip install pyfiglet```\n* requests\n  ```pip install requests```\n* Make sure you have python 3\n\u003c!-- LICENSE --\u003e\n## License\nDistributed under the MIT License. See `LICENSE` for more information.\n\u003c!-- CONTACT --\u003e\n## Contact\nNalin Nagar - nalinnagar1@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnndev1%2Ftriecli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnndev1%2Ftriecli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnndev1%2Ftriecli/lists"}