cargo-workspace


Namecargo-workspace JSON
Version 1.2.6 PyPI version JSON
download
home_pageNone
SummaryParse a cargo workspace and analyze its packages
upload_time2024-05-24 20:47:59
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/f6/64/0824668d23327bdde60d781c0bc55626632f90e5de0a01989be19da78e50/cargo_workspace-1.2.6.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.6",
    "project_urls": {
        "Homepage": "https://github.com/ggwpez/py-cargo-workspace"
    },
    "split_keywords": [
        "cargo",
        " rust"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e99c8e460018fc5ad627a837ba0613059fbc97791a6cbb9b84da3aea280a9f84",
                "md5": "2469fc7f693e4cdbd2b9ed6cbf2d451d",
                "sha256": "1786512f8f36f334cfe1efbc09c640ab48d8536fca986e35486e2e874aefec61"
            },
            "downloads": -1,
            "filename": "cargo_workspace-1.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2469fc7f693e4cdbd2b9ed6cbf2d451d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6837,
            "upload_time": "2024-05-24T20:47:58",
            "upload_time_iso_8601": "2024-05-24T20:47:58.377065Z",
            "url": "https://files.pythonhosted.org/packages/e9/9c/8e460018fc5ad627a837ba0613059fbc97791a6cbb9b84da3aea280a9f84/cargo_workspace-1.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6640824668d23327bdde60d781c0bc55626632f90e5de0a01989be19da78e50",
                "md5": "7b806de35c8fb63f405fd7ce3b487998",
                "sha256": "423a6be78578e82899ac47569d73267c35282289663018fa110075fda632ff3a"
            },
            "downloads": -1,
            "filename": "cargo_workspace-1.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "7b806de35c8fb63f405fd7ce3b487998",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 8441,
            "upload_time": "2024-05-24T20:47:59",
            "upload_time_iso_8601": "2024-05-24T20:47:59.388298Z",
            "url": "https://files.pythonhosted.org/packages/f6/64/0824668d23327bdde60d781c0bc55626632f90e5de0a01989be19da78e50/cargo_workspace-1.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-24 20:47:59",
    "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: 0.38872s