Skip to main content

Generate XTCE for use with Yamcs

Project description

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 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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yamcs_pymdb-1.2.0.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yamcs_pymdb-1.2.0-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file yamcs_pymdb-1.2.0.tar.gz.

File metadata

  • Download URL: yamcs_pymdb-1.2.0.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for yamcs_pymdb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 47d746799c84dc2272a44ecb4e26c64bbe8aacb47f4726827374d4ff4430246c
MD5 3b242d64c1d9d79ce4b289ccf98fd473
BLAKE2b-256 f16174bc242ca3da8a1003ad3914a237c459a0e61ce147f45ad52bb4649c2ff5

See more details on using hashes here.

File details

Details for the file yamcs_pymdb-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: yamcs_pymdb-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 43.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for yamcs_pymdb-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3316f7fe672cfcae27c46cec99f1d922d906713bad9e509f56f1c9eb6d7826
MD5 e1125d8f8c16b5192748559c3ac6cb8f
BLAKE2b-256 ab70d33b04f9a411f3d5fdefc94c2a31b506a8f741109f353cc4c5235ae0af4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page