{"id":21760636,"url":"https://github.com/khuyentran1401/python_snippet","last_synced_at":"2025-04-13T12:50:45.723Z","repository":{"id":57457552,"uuid":"380520317","full_name":"khuyentran1401/python_snippet","owner":"khuyentran1401","description":"Python and data science snippets on the command line","archived":false,"fork":false,"pushed_at":"2021-07-04T00:19:24.000Z","size":3961,"stargazers_count":21,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T03:51:18.804Z","etag":null,"topics":["cli","command-line","command-line-tool","data-science","python","python3","snippet"],"latest_commit_sha":null,"homepage":"https://mathdatasimplified.com/","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/khuyentran1401.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":"2021-06-26T14:22:36.000Z","updated_at":"2023-10-18T07:00:56.000Z","dependencies_parsed_at":"2022-09-07T01:13:14.788Z","dependency_job_id":null,"html_url":"https://github.com/khuyentran1401/python_snippet","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/khuyentran1401%2Fpython_snippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fpython_snippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fpython_snippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fpython_snippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khuyentran1401","download_url":"https://codeload.github.com/khuyentran1401/python_snippet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717252,"owners_count":21150388,"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","command-line","command-line-tool","data-science","python","python3","snippet"],"created_at":"2024-11-26T11:44:54.784Z","updated_at":"2025-04-13T12:50:45.702Z","avatar_url":"https://github.com/khuyentran1401.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Snippet Tool\n\nA tool to get Python and data science snippets at [Data Science Simplified](https://mathdatasimplified.com/) on the command line. You can read [my article](https://towardsdatascience.com/python-and-data-science-snippets-on-the-command-line-2673d5d9e55d) to learn how I created this tool.\n\n## Installation\n```bash\npython3 -m pip install --user python-snippet\n```\n**Note**: _The `--user` is important. It ensures you install it in your directory and not in the global system. `python3 -m` ensures that you install python_snippet using Python 3._\n\nMake sure your Python version is \u003e= 3.6.2.\n```bash\npython3 --version\n```\n\n\n## Usage\n### Search for posts based on category\n![gif](https://github.com/khuyentran1401/python_snippet/blob/master/images/search_category2.gif?raw=true)\n\nYou can search for posts based on category by typing:\n```bash\npython-snippet search-category\n```\nOnce you select a post, you will receive an output like below:\n![image](https://github.com/khuyentran1401/python_snippet/blob/master/images/search_category2.png?raw=True)\n\n### Search for posts based on a string pattern\n![gif](https://github.com/khuyentran1401/python_snippet/blob/master/images/search_posts.gif?raw=true)\n\nYou can also search for posts using a string pattern such as `pandas`\n```bash\npython-snippet search-posts pandas\n```\n![image](https://github.com/khuyentran1401/python_snippet/blob/master/images/search_posts_pandas.png?raw=true)\n\nTo view all commands python-snippet provides, type:\n```bash\npython-snippet --help\n```\n![image](https://github.com/khuyentran1401/python_snippet/blob/master/images/help.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuyentran1401%2Fpython_snippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhuyentran1401%2Fpython_snippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuyentran1401%2Fpython_snippet/lists"}