{"id":25832592,"url":"https://github.com/glockx/python-manager","last_synced_at":"2026-02-13T10:12:29.694Z","repository":{"id":277280311,"uuid":"931863318","full_name":"Glockx/Python-Manager","owner":"Glockx","description":"A simple Python, Pip, Env Manager Library","archived":false,"fork":false,"pushed_at":"2025-02-20T03:36:35.000Z","size":146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T21:36:36.934Z","etag":null,"topics":["pip","python"],"latest_commit_sha":null,"homepage":"https://glockx.github.io/Python-Manager/","language":"TypeScript","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/Glockx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-13T01:20:40.000Z","updated_at":"2025-02-20T03:36:38.000Z","dependencies_parsed_at":"2025-02-13T05:33:35.280Z","dependency_job_id":null,"html_url":"https://github.com/Glockx/Python-Manager","commit_stats":null,"previous_names":["glockx/python-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Glockx/Python-Manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glockx%2FPython-Manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glockx%2FPython-Manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glockx%2FPython-Manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glockx%2FPython-Manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Glockx","download_url":"https://codeload.github.com/Glockx/Python-Manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glockx%2FPython-Manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29401325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["pip","python"],"created_at":"2025-02-28T21:40:01.575Z","updated_at":"2026-02-13T10:12:29.676Z","avatar_url":"https://github.com/Glockx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 Python Manager\n\nA comprehensive TypeScript library for managing Python environments, installations, and package dependencies. This library provides a unified interface for handling Python version management, virtual environments, package installation, and script execution.\n\n## Features\n\n- 🐍 Python Version Management\n\n  - Install and manage multiple Python versions\n  - Set local Python versions using pyenv\n  - List installed Python versions\n  - Automatic installation of pyenv (Windows/Linux/macOS)\n\n- 🔧 Python Installation\n\n  - Automatic Python installation via pyenv\n  - Cross-platform support (Windows/Linux/macOS)\n  - Automatic pyenv installation\n  - Python executable path management\n\n- 🌐 Virtual Environment Management\n\n  - Create and delete virtual environments\n  - Check virtual environment existence\n  - Manage isolated Python environments\n\n- 📦 Package Management\n\n  - Install/uninstall Python packages using pip\n  - Install packages from requirements.txt\n  - List installed packages\n  - Multi-package installation support\n\n- ⚡ Python Execution\n  - Run Python scripts with live output streaming\n  - Execute Python code snippets\n  - Capture stdout/stderr and exit codes\n  - Support for script arguments\n\n## 🔧 Installation\n\n```bash\nnpm install python-manager\n# or\nyarn add python-manager\n# or\nbun add python-manager\n```\n\n## 📄 Documentation\n\n[Check The Documentation Website](https://glockx.github.io/Python-Manager/)\n\n## 🖥️🛠️ Usage\n\n### Python Installation and Management\n\n```typescript\nimport { PythonInstaller } from \"python-manager\";\n\nconst installer = new PythonInstaller();\n\n// Ensure Python is installed (installs if not found)\nconst pythonPath = await installer.ensurePythonInstalled(\n  \"3.9.1\",\n  \"test/.pyenv\"\n);\n\n// The installer will automatically:\n// - Install pyenv/pyenv-win if needed\n// - Install the specified Python version\n// - Configure the local Python version\n// - Return the path to the Python executable\n```\n\n### Python Version Management\n\n```typescript\nimport { PythonVersionManager } from \"python-manager\";\n\nconst versionManager = new PythonVersionManager();\n\n// Install Python version\nawait versionManager.installVersion(\"3.9.1\");\n\n// Set local version\nawait versionManager.setLocalVersion(\"3.9.1\");\n\n// List installed versions\nconst versions = await versionManager.listInstalledVersions();\n```\n\n### Virtual Environment Management\n\n```typescript\nimport { VirtualEnvManager } from \"python-manager\";\n\nconst venvManager = new VirtualEnvManager();\n\n// Create virtual environment\nawait venvManager.createVenv(\"./my-venv\");\n\n// Check if venv exists\nconst exists = await venvManager.existsVenv(\"./my-venv\");\n\n// Delete virtual environment\nawait venvManager.deleteVenv(\"./my-venv\");\n```\n\n### Package Management\n\n```typescript\nimport { PipManager } from \"python-manager\";\n\nconst pipManager = new PipManager();\n\n// Install a single package\nawait pipManager.install(\"requests\");\n\n// Install multiple packages\nawait pipManager.installMultiple([\"numpy\", \"pandas\", \"matplotlib\"]);\n\n// Install from requirements.txt\nawait pipManager.installRequirementsFile(\"./requirements.txt\");\n\n// List installed packages\nconst packages = await pipManager.listInstalledPackages();\n```\n\n### Python Execution\n\n```typescript\nimport { PythonExecutor } from \"python-manager\";\n\nconst executor = new PythonExecutor();\n\n// Run a Python script\nconst result = await executor.runScript(\n  \"./script.py\",\n  [\"--arg1\", \"value1\"],\n  \"python\",\n  true\n);\n\n// Execute Python code\nconst codeResult = await executor.runCode(\n  'print(\"Hello, World!\")',\n  \"python\",\n  true\n);\n```\n\n## Requirements\n\n- Node.js 20.x or higher\n- Administrative rights (for some installation operations)\n\n## Platform Support\n\n- Windows: Full support with pyenv-win\n- Linux: Full support with pyenv (Soon)\n- macOS: Full support with pyenv (Soon)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\nIf you encounter any issues or have questions, please file an issue on the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglockx%2Fpython-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglockx%2Fpython-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglockx%2Fpython-manager/lists"}