{"id":37348954,"url":"https://github.com/toprinse/pixi-inspect","last_synced_at":"2026-01-23T11:01:01.361Z","repository":{"id":319263469,"uuid":"1078126858","full_name":"toprinse/pixi-inspect","owner":"toprinse","description":"`pixi-inspect` is a pixi extension that analyzes a conda package (either from disk or stdin) and extracts metadata from its `index.json`.  ","archived":false,"fork":false,"pushed_at":"2025-10-30T13:22:19.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-30T15:27:26.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toprinse.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-17T08:48:10.000Z","updated_at":"2025-10-30T13:22:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/toprinse/pixi-inspect","commit_stats":null,"previous_names":["toprinse/pixi-inspect"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/toprinse/pixi-inspect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toprinse%2Fpixi-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toprinse%2Fpixi-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toprinse%2Fpixi-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toprinse%2Fpixi-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toprinse","download_url":"https://codeload.github.com/toprinse/pixi-inspect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toprinse%2Fpixi-inspect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28689152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"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":"2026-01-16T04:00:32.311Z","updated_at":"2026-01-23T11:01:01.320Z","avatar_url":"https://github.com/toprinse.png","language":"Rust","funding_links":[],"categories":["Extensions"],"sub_categories":["Example projects"],"readme":"# pixi-inspect\n\n[![Conda Platform][conda-badge]][conda-url]\n[![Conda Downloads][conda-downloads-badge]][conda-url]\n\n[conda-url]: https://prefix.dev/channels/conda-forge/packages/pixi-inspect\n[conda-badge]: https://img.shields.io/conda/pn/conda-forge/pixi-inspect?style=flat-square\u0026logoColor=white\u0026logo=conda-forge\n[conda-downloads-badge]: https://img.shields.io/conda/dn/conda-forge/pixi-inspect?style=flat-square\n\nThis project provides a command-line tool to inspect conda packages and extract metadata from their `index.json` file.\nIt is designed to work well with [Pixi](https://pixi.sh/latest/) and CI/CD workflows.\n\n## Description\n\n`pixi-inspect` analyzes a conda package (either from disk or stdin) and extracts metadata from its `index.json`.\nIt uses the [rattler_package_streaming](https://github.com/mamba-org/rattler) crate for robust extraction and parsing.\n\n## Installation\n\nYou can install `pixi-inspect` from conda-forge using `pixi`:\n\n```bash\npixi global install pixi-inspect\n```\n\n## Installation from source\n\n### Prerequisites\n- Rust 1.70+ and Cargo\n- [Pixi](https://pixi.sh/latest/) (optional, for conda workflows)\n\n### Compilation\n```bash\ngit clone https://gitlab.in2p3.fr/thibaut.oprinsen/pixi-inspect\ncd pixi-inspect\ncargo build --release\n```\nThe binary will be available at `target/release/pixi-inspect`.\n\nTo use globally:\n```bash\ncp target/release/pixi-inspect ~/.local/bin/\n```\nMake sure `~/.local/bin/` is in your `PATH`.\n\n## Usage\n\n### Inspect a single package\n```bash\npixi-inspect get-info /path/to/package.conda\n```\n\n### Inspect a package from stdin\n```bash\ncat package.conda | pixi-inspect get-info -\n```\n\n### Inspect all packages in a workspace (excluding `.pixi`)\n```bash\nfind /path/to/workspace -path '/path/to/workspace/.pixi' -prune -o -name '*.conda' -exec pixi-inspect get-info {} \\;\n```\n\n### Inspect all packages in the current directory\n```bash\nfind . -path './.pixi' -prune -o -name '*.conda' -exec pixi-inspect get-info {} \\;\n```\n\n### Help\n```bash\npixi-inspect --help\n```\n\n## Features\n\n- ✅ Extracts metadata from `.conda` and `.tar.bz2` packages\n- ✅ Reads from file or stdin\n- ✅ Displays pretty-printed JSON\n- ✅ Robust error handling\n\n## Metadata Structure\n\nA typical `index.json` looks like:\n```json\n{\n  \"name\": \"package-name\",\n  \"version\": \"1.0.0\",\n  \"build\": \"py39h123456_0\",\n  \"build_number\": 0,\n  \"depends\": [\"python \u003e=3.9\", \"numpy\"],\n  \"platform\": \"linux-64\",\n  \"license\": \"MIT\",\n  \"timestamp\": 1634567890,\n  \"size\": 1234567\n}\n```\n\n## Code Architecture\n\n```\nsrc/\n└── main.rs          # CLI entry point, extraction and parsing logic\n```\n\u003e Extraction and parsing are now handled directly in `main.rs` using rattler_package_streaming.\n\n## Use Cases\n\n### CI Integration\n```bash\nPACKAGE_VERSION=$(pixi-inspect get-info /path/to/package.conda | jq -r '.version')\necho \"Package version: $PACKAGE_VERSION\"\n```\n\n### Dependency Analysis\n```bash\npixi-inspect get-info /path/to/package.conda | jq -r '.depends[]'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoprinse%2Fpixi-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoprinse%2Fpixi-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoprinse%2Fpixi-inspect/lists"}