{"id":34114950,"url":"https://github.com/green-coding-solutions/energy-dependency-inspector","last_synced_at":"2026-04-05T11:31:31.070Z","repository":{"id":317419081,"uuid":"1011709116","full_name":"green-coding-solutions/energy-dependency-inspector","owner":"green-coding-solutions","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-03T13:52:34.000Z","size":4409,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T14:16:58.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/green-coding-solutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS.md","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-01T08:19:59.000Z","updated_at":"2026-04-03T09:35:22.000Z","dependencies_parsed_at":"2025-10-01T10:02:04.018Z","dependency_job_id":null,"html_url":"https://github.com/green-coding-solutions/energy-dependency-inspector","commit_stats":null,"previous_names":["green-coding-solutions/energy-dependency-inspector"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/green-coding-solutions/energy-dependency-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fenergy-dependency-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fenergy-dependency-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fenergy-dependency-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fenergy-dependency-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green-coding-solutions","download_url":"https://codeload.github.com/green-coding-solutions/energy-dependency-inspector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fenergy-dependency-inspector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31434624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: 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":[],"created_at":"2025-12-14T19:48:14.556Z","updated_at":"2026-04-05T11:31:31.051Z","avatar_url":"https://github.com/green-coding-solutions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Energy Dependency Inspector\n\n[![PyPI](https://img.shields.io/pypi/v/energy-dependency-inspector)](https://pypi.org/project/energy-dependency-inspector/)\n\nA tool for capturing dependency snapshots of running systems by querying their package managers directly. Unlike filesystem-scanning approaches, it inspects the actual installed state of packages as reported by the system's package management tools. Originally designed to reveal relevant changes when conducting energy measurements, it can also be used as a general-purpose dependency resolver. By tracking installed packages and their versions, you can identify whether changes in performance, energy consumption, or behavior are due to code modifications or dependency updates.\n\nThe tool provides both a command-line interface and a Python library for programmatic use. It supports dependency inspection of Docker containers and host systems, outputting structured JSON with package information, versions, and unique hash values.\n\n## Installation\n\n**From PyPI:**\n\n```bash\npip install energy-dependency-inspector\n```\n\n**From source:**\n\n```bash\ngit clone https://github.com/green-coding-solutions/energy-dependency-inspector\ncd energy-dependency-inspector\npip install .\n```\n\n## Quick Start\n\n```bash\n# Analyze host system\npython3 -m energy_dependency_inspector\n\n# Analyze Docker container\npython3 -m energy_dependency_inspector docker nginx\n\n# Pretty print output\npython3 -m energy_dependency_inspector --pretty-print\n\n# Get help with all options\npython3 -m energy_dependency_inspector -h\n```\n\n## Supported Package Managers\n\n- **apt/dpkg** - System packages Ubuntu/Debian\n- **apk** - System packages of Alpine\n- **pip** - Python packages\n- **npm** - Node.js packages\n- **composer** - PHP packages\n- **pecl** - PHP extensions\n- **maven** - Java packages\n\nAlso captures **Docker container metadata** when analyzing containers.\n\n## Usage Options\n\n### Command Line Interface\n\nFor terminal usage with full control over options and environments.\n\n### Programmatic Interface\n\nUse as a Python library in other projects:\n\n```python\nimport energy_dependency_inspector\n\n# Analyze host system\ndeps = energy_dependency_inspector.resolve_host_dependencies()\n\n# Analyze Docker container\ndocker_deps = energy_dependency_inspector.resolve_docker_dependencies(\"nginx\")\n```\n\n## Documentation\n\n- **[Quick Start Guide](./docs/guides/quick-start.md)** - Get up and running\n- **[CLI Usage Guide](./docs/usage/cli-guide.md)** - Complete command line reference\n- **[Python API Guide](./docs/usage/programmatic-api.md)** - Programmatic usage\n- **[Output Format Guide](./docs/usage/output-format.md)** - Understanding the JSON results\n- **[Troubleshooting](./docs/guides/troubleshooting.md)** - Common issues and solutions\n- **[Technical Documentation](./docs/technical/)** - Architecture and implementation details\n\n## Contributing\n\nFor development setup, contribution guidelines, and information about running tests and code quality checks, please see [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## Requirements and Design\n\nSee the complete [SPECIFICATION.md](./SPECIFICATION.md) for detailed requirements and implementation constraints.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coding-solutions%2Fenergy-dependency-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen-coding-solutions%2Fenergy-dependency-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coding-solutions%2Fenergy-dependency-inspector/lists"}