{"id":23029614,"url":"https://github.com/ammaryasirnaich/pyreqify","last_synced_at":"2026-03-05T17:16:01.316Z","repository":{"id":262012682,"uuid":"885486439","full_name":"ammaryasirnaich/PyReqify","owner":"ammaryasirnaich","description":"This project is a lightweight Python module designed to generate the reqirements.txt file. It streamline dependency management by automatically extracting imported modules from python or juypter files and generating there requirements.txt","archived":false,"fork":false,"pushed_at":"2025-05-13T17:04:59.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T16:09:08.969Z","etag":null,"topics":["dependency","environment","extract-data","jupyter-notebooks","pip","project-setup","python","requirements-generator","requirements-txt","version"],"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/ammaryasirnaich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2024-11-08T17:17:49.000Z","updated_at":"2025-05-13T17:05:02.000Z","dependencies_parsed_at":"2025-05-13T13:27:43.243Z","dependency_job_id":"f7500308-7f1e-441d-a75f-a1de7ea15a31","html_url":"https://github.com/ammaryasirnaich/PyReqify","commit_stats":null,"previous_names":["ammaryasirnaich/pyreqify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ammaryasirnaich/PyReqify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammaryasirnaich%2FPyReqify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammaryasirnaich%2FPyReqify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammaryasirnaich%2FPyReqify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammaryasirnaich%2FPyReqify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammaryasirnaich","download_url":"https://codeload.github.com/ammaryasirnaich/PyReqify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammaryasirnaich%2FPyReqify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268012215,"owners_count":24180934,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dependency","environment","extract-data","jupyter-notebooks","pip","project-setup","python","requirements-generator","requirements-txt","version"],"created_at":"2024-12-15T14:15:57.790Z","updated_at":"2026-03-05T17:16:01.276Z","avatar_url":"https://github.com/ammaryasirnaich.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyReqify\n\n[![Python](https://img.shields.io/badge/Python-3.8%2B-blue)](https://www.python.org/)  \n[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![GitHub Badge](https://img.shields.io/badge/GitHub-Repo-blue.svg)](https://github.com/ammaryasirnaich/PyReqify)\n\n\nA lightweight Python module for `requirements.txt generation`. It efficiently extracts imported modules and generates a `requirements.txt` file with module versions for `.py` and `.ipynb` files in a given directory. Simplify dependency management for your projects!\n\n\n## Features\n\n- 📦 **Automatic Module Extraction**: Scans `.py` and `.ipynb` files in a directory to find all imported modules.\n- 🔍 **Version Detection**: Fetches installed versions of imported modules (maps common aliases to official package names). It also gives the option to includes fetch `source python version` too.\n- 📝 **Requirements Generation**: Creates a `requirements.txt` file with all extracted dependencies and the current Python version.\n\n\n## Installation\n\nClone this repository and install the requirements.\n\n```bash\npip install pyreqify\n```\n\n\n# ExtractPackages\n\n## Usage\nTo use the `pyreqify` function and automatically create a `requirements.txt` file:\n\n1. Place all `.py` and `.ipynb` files in a folder (e.g., `project`).\n2. Run the function to generate a `requirements.txt` in the current directory with all extracted dependencies.\n```python\npyreqify \u003csource_folder\u003e \u003cdestination folder\u003e --include-source-pyversion\n```\n\n##### generated requirement.txt file\n```\n\nscikit-learn==1.5.1\nkeras==3.6.0\nnumpy==2.0.1\npandas==2.2.2\nopen3d==0.16.1\nwebcolors==24.8.0\nnbformat==5.10.4\nmatplotlib==3.9.1\ntyping==3.7.4.3\ntorch==2.2.2\npython==3.10.14\n```\n\n\n#### Examples\nExample 1: Generate `requirements.txt` in the current working folder `without the Python version`.\n```python\npyreqify ~/Workspace/project .\n```\n\nExample 2: Generate `requirements.txt` in the `deploy folder`, including the `Python module versions` and `Python version` in the file.\n```python\npyreqify ~/Workspace/project ~/Workspace/project/deploy --include-module-version --include-source-pyversion\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammaryasirnaich%2Fpyreqify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammaryasirnaich%2Fpyreqify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammaryasirnaich%2Fpyreqify/lists"}