Name | cargo-workspace JSON |
Version |
1.1.1
JSON |
| download |
home_page | |
Summary | Parse a cargo workspace and analyze its packages |
upload_time | 2024-02-24 14:52:34 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.6 |
license | |
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'crate at {crate.path} has name {crate.name}')
```
Note that this crate uses getter functions instead of the conventional
### Metadata
The metadata of each crate is accessible like so:
```python
meta = crate.workspace.get('some.custom.key')
if meta not None:
print(f'custom metadata found: {meta}')
```
Raw data
{
"_id": null,
"home_page": "",
"name": "cargo-workspace",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "cargo,rust",
"author": "",
"author_email": "Oliver Tale-Yazdi <oliver@tasty.limo>",
"download_url": "https://files.pythonhosted.org/packages/09/90/9d1c3db90bb54e20a7c3e44ce0d7adb96ba767c88f48adb39caa33967e92/cargo_workspace-1.1.1.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'crate at {crate.path} has name {crate.name}')\n```\n\nNote that this crate uses getter functions instead of the conventional \n\n### Metadata\n\nThe metadata of each crate is accessible like so:\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": "",
"summary": "Parse a cargo workspace and analyze its packages",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://github.com/ggwpez/py-cargo-workspace"
},
"split_keywords": [
"cargo",
"rust"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "faa0399b605008cecbd7739fb722af440308a2d8c7e4497bfc53da56221d68a1",
"md5": "3d1b0d73ded170657058d310c799130d",
"sha256": "003a550c7090708fa53a37450c219026024dd501781867389975f813a6f3ffde"
},
"downloads": -1,
"filename": "cargo_workspace-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3d1b0d73ded170657058d310c799130d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4268,
"upload_time": "2024-02-24T14:52:32",
"upload_time_iso_8601": "2024-02-24T14:52:32.933545Z",
"url": "https://files.pythonhosted.org/packages/fa/a0/399b605008cecbd7739fb722af440308a2d8c7e4497bfc53da56221d68a1/cargo_workspace-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "09909d1c3db90bb54e20a7c3e44ce0d7adb96ba767c88f48adb39caa33967e92",
"md5": "ef039d7350c9f5825c56591a488ccdc2",
"sha256": "c03219d7020ebd85ea322ca5b52a1437a166bec1820a309ddd00a2493bff3586"
},
"downloads": -1,
"filename": "cargo_workspace-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "ef039d7350c9f5825c56591a488ccdc2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4934,
"upload_time": "2024-02-24T14:52:34",
"upload_time_iso_8601": "2024-02-24T14:52:34.565488Z",
"url": "https://files.pythonhosted.org/packages/09/90/9d1c3db90bb54e20a7c3e44ce0d7adb96ba767c88f48adb39caa33967e92/cargo_workspace-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-24 14:52:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ggwpez",
"github_project": "py-cargo-workspace",
"github_not_found": true,
"lcname": "cargo-workspace"
}