{"id":18428646,"url":"https://github.com/xdityagr/project-snippify","last_synced_at":"2026-02-16T10:02:15.119Z","repository":{"id":255863478,"uuid":"853715873","full_name":"xdityagr/Project-Snippify","owner":"xdityagr","description":"Snippify is a Python library designed to make creating, saving, and managing code snippets effortless. Boost your productivity and maintain consistency across your Python projects with Snippify.","archived":false,"fork":false,"pushed_at":"2024-12-10T17:22:44.000Z","size":810,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:11:50.425Z","etag":null,"topics":["code-snippet","code-snippet-in-my-daily-work","code-snippets-python","snippet-generator","snippets-library","snippets-manager","snippify","snipping-tool"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/Snippify/1.0.2/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdityagr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-07T10:32:14.000Z","updated_at":"2024-12-10T17:22:48.000Z","dependencies_parsed_at":"2024-12-24T20:24:04.383Z","dependency_job_id":"5dbe92a3-689e-42b6-9e1a-2b3c9f6632fb","html_url":"https://github.com/xdityagr/Project-Snippify","commit_stats":null,"previous_names":["xdityagr/snippify","xdityagr/project-snippify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdityagr%2FProject-Snippify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdityagr%2FProject-Snippify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdityagr%2FProject-Snippify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdityagr%2FProject-Snippify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdityagr","download_url":"https://codeload.github.com/xdityagr/Project-Snippify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248791585,"owners_count":21162235,"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":["code-snippet","code-snippet-in-my-daily-work","code-snippets-python","snippet-generator","snippets-library","snippets-manager","snippify","snipping-tool"],"created_at":"2024-11-06T05:14:15.237Z","updated_at":"2025-12-14T04:41:54.704Z","avatar_url":"https://github.com/xdityagr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Alt text](https://github.com/xdityagr/Snippify/blob/main/assets/banner-snippify.png?raw=true \"Banner Image\")\n\n# Project Snippify\n\n**Snippify** is a Python library designed to simplify the creation, management, and usage of code snippets. With Snippify, you can save snippets of code, organize them efficiently, and retrieve them with ease. It provides an intuitive API and enhances the user experience by beautifully formatted tables and colored terminal output.\n\n---\n\n## Features :\n\n- **List All Snippets**: View all saved snippets in a well-formatted table.\n- **Snip Objects**: Snip Python objects (like classes) with detailed metadata such as title, author, version, and more.\n- **Snip Code from Files**: Snip specific lines of code from files using a range selector.\n- **Search and Open Snippets**: Search for snippets by title or unique ID and easily copy or open them.\n\n---\n\n## Installation :\n\nInstall Snippify and its dependencies using `pip`:\n\n```bash\npip install Snippify\n```\n## Usage\n- Check out the detailed example [here](src/examples/example.py).\n  \n### 1. Listing All Snippets\n\nView all the snippets in a well-structured table format, complete with names and unique IDs. You can also quickly copy a snippet by selecting its index.\n\n```python\nfrom Snippify.core.snippet import Snippet\n\nsnippet_obj = Snippet()\nsnippet_obj.ListAll()\n```\n### 2. Snipping an Object (Class Example)\nSnip any Python object (e.g., classes), while assigning metadata like title, author, and version. The version is auto-generated if not provided.\n\n```python\nclass HelloWorld:\n    def __init__(self) -\u003e None: pass\n    def say_hello(self) -\u003e None: pass\n    def say_goodbye(self) -\u003e None: pass\n\nsnippet_obj.snipObject(HelloWorld, title=\"Hello World!\", author=\"XYZ\", version='3.12.4')\n```\n\n### 3. Snipping Code from a File\nYou can extract snippets from specific lines of code in a file by specifying ranges, such as 1-10, 15-20. If no file is specified, the current file is used.\n\n```python\nsnippet_obj.snipCode(title=\"Test Code\", author=\"XYZ\", lines='1-10')\n```\n\n### 4. Searching and Opening Snippets\nSearch for snippets by title or unique ID (UID). If multiple results are found for a title, you will be prompted to select the correct one. You can then copy the snippet directly.\n\n```python\nsnippet_obj.OpenSnippet(uid='bb8fa2ad80bf799465')\n```\n\n\n## Example Code\nHere’s an example of how to create and list snippets using Snippify:\n\n```python\nfrom Snippify.core.snippet import Snippet\n\nsnippet_obj = Snippet()\n\n# List all snippets\nsnippet_obj.ListAll()\n\n# Snip a class object\nclass HelloWorld:\n    def __init__(self) -\u003e None: pass\n\nsnippet_obj.snipObject(HelloWorld, title=\"Hello World!\", author=\"XYZ\")\n\n# Snip specific lines from a file\nsnippet_obj.snipCode(title=\"Important Code\", author=\"ABC\", lines='5-15')\n\n# Search for and open a snippet\nsnippet_obj.OpenSnippet(uid='12345abcd')\n```\n\n## License\n\nThis project is licensed under the [GPL License](LICENSE).\n\n## Contact\n\nFor questions or feedback, please contact:\n\n- **Email**: adityagaur.home@gmail.com\n- **GitHub**: [xdityagr](https://github.com/xdityagr)\n\nEnjoy using **Snippify!** Made with _\u003c3_ In **India!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdityagr%2Fproject-snippify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdityagr%2Fproject-snippify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdityagr%2Fproject-snippify/lists"}