Skip to main content

PyDM Converter

PyDM Converter is an PyDM-based tool developed at SLAC National Accelerator Laboratory. PyDM Converter is an open-source project.

For more information and a how to guide on PyDM Converter see the project's website

Report bug · Request feature

Phoebus .bob and color schemes (--target react)

The --target react path (the Canopy Screen IR pipeline) accepts Phoebus Display Builder .bob files beside EDM .edl and Qt Designer .ui; convert_to_ir/convert_file/convert_folder dispatch on the .bob suffix and convert_bytes(data, kind="bob") takes uploads. Anything the IR cannot express becomes a warning on its node (unlowered scripts keep their source in meta.comment); only malformed XML raises (BobParseError). See pydmconverter/bob/README.md for the module layout and the tier vocabulary.

  • --color-def PATH: a Phoebus color.def whose named colors overlay the built-in palette (.bob inputs only).
  • --scheme PATH: a canopy-color-scheme/1 facility scheme layered on the vendored canopy-default. Named colors the scheme imports (import.phoebus for .bob, import.edm for .edl) become {"$role", "fallback"} color roles when the role's light value equals the color written today, so output only changes where a viewer can re-theme it. Text and the color under it are then paired: both roles or both literal wherever mixing them would hide the text in a dark theme (a pair: note names each change). A screen carrying a role is stamped schemaVersion: "1.1"; role-free output is unchanged. Scheme errors are printed and the exit status is non-zero.
  • pydmconverter-scheme check | survey | from-colordef: validate a scheme (check is moving to Canopy, which owns the scheme contract; it still works here for now), count the named colors a .bob tree uses and what each becomes under a scheme, and seed a scheme from a color.def.

Contributing to PyDM Converter

Thank you for your interest in contributing to PyDM Converter! Your contributions help make the project better for everyone. Below are the guidelines to ensure a smooth and efficient collaboration.

How to Contribute

  1. Fork and Clone the Repository

    • Fork the PyDM Converter repository on GitHub.
    • Clone your fork to your local machine:
      git clone https://github.com/your-username/pydm-converter-tool.git
      cd pydm-converter-tool
      
  2. Set Up Your Development Environment

    • Install the necessary dependencies:
      pip install -r requirements.txt
      
  3. Implement Your Changes

    • Code Style: Follow the PEP8 style guide for Python code.
    • Documentation: Add docstrings to all new methods and classes using the NumPy style guide.
    • Unit Tests: Write unit tests for your changes using Pytest.
  4. Run Tests Locally

    • Ensure all tests pass before submitting:
      pytest
      
  5. Create a Pull Request (PR)

    • When you feel like your feature is ready to be merged into the pydm converter make a PR and request feedback from the Maintainers.
    • Provide a descriptive title and detailed description of your changes.

Pull Request Requirements

To ensure your PR is reviewed efficiently, please adhere to the following:

  • Unit Tests:

    • Include tests for all new functionality.
    • Ensure tests cover different scenarios and edge cases.
  • Documentation:

    • All new methods and classes must have comprehensive docstrings.
    • Follow the NumPy style guide for consistency.
  • Code Quality:

    • Adhere to the PEP8 style guide.
    • Ensure your code is clean, well-organized, and free of unnecessary complexity.

Additional Guidelines

  • Communication:
    • For significant changes, consider opening an issue to discuss your approach before starting.

Resources

Notes on Contributing to the Documentation

  1. Set Up Your Development Environment

    • Ensure you are working on your development environment.
  2. Navigate to the Project Directory

    • Go to the top-level pydm-converter-tool project directory, which contains the mkdocs.yml file.
  3. Make and Test Your Changes Locally

    • Edit the documentation files as needed.
    • Test your changes locally using MkDocs before submitting a pull request.

Detailed Steps

  1. Set Up Your Development Environment

    • Make sure you have all the necessary tools installed (e.g., Python, MkDocs).
  2. Navigate to the Project Directory

    cd path/to/pydm-converter-tool
    
  3. Install Dependencies

     pip install -r requirements.txt
    
  4. Serve the Documentation Locally

     mkdocs serve
    
  • Open your browser and go to http://localhost:8000 to preview your changes.
  1. Submit Your Changes
  • After verifying your changes, commit and push them to your forked repository.
  • Create a pull request to submit your updates.

If you have any questions or need further assistance, feel free to open an issue or reach out to the maintainers.

Metadata

Release files for PyDMConverter 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyDMConverter 1.1.1
File Size Uploaded Provenance Actions
pydmconverter-1.1.1.tar.gz 835.8 kB With provenance Details for pydmconverter-1.1.1.tar.gz

Release files / pydmconverter-1.1.1.tar.gz

Download URL pydmconverter-1.1.1.tar.gz
Size 835.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e8c9ae228da4f4f1da1e50e807d541d8c88b6bf3216216bd8f1cabe9467b658
BLAKE2b-256 checksum
How to use checksums
59566a09ad5783fdeddb5da45476a75f5440680980d3b82bd1de8e310e8b5495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for PyDMConverter 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for pydmconverter-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page