cargo-workspace


Namecargo-workspace JSON
Version 1.2.8 PyPI version JSON
download
home_pageNone
SummaryParse a cargo workspace and analyze its packages
upload_time2025-08-11 15:38:30
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords cargo rust
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Cargo Workspace

Parse Rust Workspace files from a `Cargo.toml` file.

## Example

```python
from cargo_workspace import Workspace

# Path can be a file or directory:
workspace = Workspace.from_path('Cargo.toml')

for crate in workspace.crates:
	print(f'Dependencies of {crate.name}:')
	for dep in crate.dependencies:
		print(f' - {dep.name}')
```

### Metadata

The metadata of each crate is accessible as well:

```python
meta = crate.workspace.get('some.custom.key')

if meta not None:
	print(f'custom metadata found: {meta}')
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cargo-workspace",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "cargo, rust",
    "author": null,
    "author_email": "Oliver Tale-Yazdi <oliver@tasty.limo>",
    "download_url": "https://files.pythonhosted.org/packages/35/ac/b1edf35cda18025eb3404f454a613038cb501aa240404dc5beea6e65dd76/cargo_workspace-1.2.8.tar.gz",
    "platform": null,
    "description": "# Cargo Workspace\n\nParse Rust Workspace files from a `Cargo.toml` file.\n\n## Example\n\n```python\nfrom cargo_workspace import Workspace\n\n# Path can be a file or directory:\nworkspace = Workspace.from_path('Cargo.toml')\n\nfor crate in workspace.crates:\n\tprint(f'Dependencies of {crate.name}:')\n\tfor dep in crate.dependencies:\n\t\tprint(f' - {dep.name}')\n```\n\n### Metadata\n\nThe metadata of each crate is accessible as well:\n\n```python\nmeta = crate.workspace.get('some.custom.key')\n\nif meta not None:\n\tprint(f'custom metadata found: {meta}')\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Parse a cargo workspace and analyze its packages",
    "version": "1.2.8",
    "project_urls": {
        "Homepage": "https://github.com/ggwpez/py-cargo-workspace"
    },
    "split_keywords": [
        "cargo",
        " rust"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0d3ef368dff61c996e82b51be20a42271f63b507427fa743275fd8a48e65754a",
                "md5": "a23250a509c510f10900633f9934f762",
                "sha256": "9a7235405752333734fedc1d15426a9c6e44df26d083c5b63e5232e1ade5cab3"
            },
            "downloads": -1,
            "filename": "cargo_workspace-1.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a23250a509c510f10900633f9934f762",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7056,
            "upload_time": "2025-08-11T15:38:29",
            "upload_time_iso_8601": "2025-08-11T15:38:29.435335Z",
            "url": "https://files.pythonhosted.org/packages/0d/3e/f368dff61c996e82b51be20a42271f63b507427fa743275fd8a48e65754a/cargo_workspace-1.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "35acb1edf35cda18025eb3404f454a613038cb501aa240404dc5beea6e65dd76",
                "md5": "ca8fc7b5797d009738cf7e258ced62bc",
                "sha256": "8b631feb168460f6918a7ffb2184162e7436a760c820a43f1ed062b9d39fa2e4"
            },
            "downloads": -1,
            "filename": "cargo_workspace-1.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "ca8fc7b5797d009738cf7e258ced62bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 8717,
            "upload_time": "2025-08-11T15:38:30",
            "upload_time_iso_8601": "2025-08-11T15:38:30.669168Z",
            "url": "https://files.pythonhosted.org/packages/35/ac/b1edf35cda18025eb3404f454a613038cb501aa240404dc5beea6e65dd76/cargo_workspace-1.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-11 15:38:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ggwpez",
    "github_project": "py-cargo-workspace",
    "github_not_found": true,
    "lcname": "cargo-workspace"
}
        
Elapsed time: 2.20062s