# Yamcs PyMDB
> [!WARNING]
> This software is in beta development status. Documentation is limited, and API is subject to change.
>
> If you'd like to try it out, have a look at the [examples](https://github.com/yamcs/pymdb/tree/master/examples) which explain the base setup for either CCSDS or CSP-style packets. Other common formats will be added over time.
```
pip install yamcs-pymdb
```
Use this Python library to generate XTCE XML files for use with [Yamcs Mission Control](https://yamcs.org):
```python
import yamcs.pymdb as Y
spacecraft = Y.System("Spacecraft")
param1 = Y.IntegerParameter(
system=spacecraft,
name="param1",
signed=False,
encoding=Y.uint8_t,
)
param2 = Y.EnumeratedParameter(
system=spacecraft,
name="param2",
choices=[
(0, "SUCCESS"),
(-1, "ERROR"),
],
encoding=Y.int8_t,
)
# Emit an XML that conforms to XTCE
print(spacecraft.dumps())
```
## License
LGPL-3.0. See [LICENSE](https://github.com/yamcs/pymdb/blob/master/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/yamcs/pymdb",
"name": "yamcs-pymdb",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "packet telemetry ccsds xtce yamcs",
"author": "Space Applications Services",
"author_email": "yamcs@spaceapplications.com",
"download_url": "https://files.pythonhosted.org/packages/3d/43/d5730f81df15670fbff1d36a2d733ae1a7e3aaa5d46b6c418a7d65c58e1c/yamcs_pymdb-1.0.10.tar.gz",
"platform": "Posix; MacOS X; Windows",
"description": "# Yamcs PyMDB\n\n> [!WARNING]\n> This software is in beta development status. Documentation is limited, and API is subject to change.\n>\n> If you'd like to try it out, have a look at the [examples](https://github.com/yamcs/pymdb/tree/master/examples) which explain the base setup for either CCSDS or CSP-style packets. Other common formats will be added over time.\n\n```\npip install yamcs-pymdb\n```\n\nUse this Python library to generate XTCE XML files for use with [Yamcs Mission Control](https://yamcs.org):\n\n```python\nimport yamcs.pymdb as Y\n\nspacecraft = Y.System(\"Spacecraft\")\n\nparam1 = Y.IntegerParameter(\n system=spacecraft,\n name=\"param1\",\n signed=False,\n encoding=Y.uint8_t,\n)\n\nparam2 = Y.EnumeratedParameter(\n system=spacecraft,\n name=\"param2\",\n choices=[\n (0, \"SUCCESS\"),\n (-1, \"ERROR\"),\n ],\n encoding=Y.int8_t,\n)\n\n# Emit an XML that conforms to XTCE\nprint(spacecraft.dumps())\n```\n\n## License\n\nLGPL-3.0. See [LICENSE](https://github.com/yamcs/pymdb/blob/master/LICENSE)\n",
"bugtrack_url": null,
"license": "LGPL",
"summary": "Generate XTCE for use with Yamcs",
"version": "1.0.10",
"project_urls": {
"Homepage": "https://github.com/yamcs/pymdb"
},
"split_keywords": [
"packet",
"telemetry",
"ccsds",
"xtce",
"yamcs"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "763826ddc1593b8da0e651d8121c07137229cab35af7e53701b14ea9fb655ce5",
"md5": "c9d12cd13a0601fb4e9a0532ac352f5a",
"sha256": "f569622a07dcbd83962258e88825b199bb382dacbee854c85fe16ab40ba27284"
},
"downloads": -1,
"filename": "yamcs_pymdb-1.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9d12cd13a0601fb4e9a0532ac352f5a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 41944,
"upload_time": "2024-10-09T13:39:14",
"upload_time_iso_8601": "2024-10-09T13:39:14.972339Z",
"url": "https://files.pythonhosted.org/packages/76/38/26ddc1593b8da0e651d8121c07137229cab35af7e53701b14ea9fb655ce5/yamcs_pymdb-1.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3d43d5730f81df15670fbff1d36a2d733ae1a7e3aaa5d46b6c418a7d65c58e1c",
"md5": "433299a630e041a365dd5e56fee7d476",
"sha256": "28c18f2a9c09dfa28d5073dc0d4296115a1d13e97caccff2ea518ca1e7d95e65"
},
"downloads": -1,
"filename": "yamcs_pymdb-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "433299a630e041a365dd5e56fee7d476",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 36035,
"upload_time": "2024-10-09T13:39:16",
"upload_time_iso_8601": "2024-10-09T13:39:16.752911Z",
"url": "https://files.pythonhosted.org/packages/3d/43/d5730f81df15670fbff1d36a2d733ae1a7e3aaa5d46b6c418a7d65c58e1c/yamcs_pymdb-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-09 13:39:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yamcs",
"github_project": "pymdb",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "yamcs-pymdb"
}