DiracX Core Library (diracx-core) provides foundational utilities, data structures, and base classes shared across the DiracX ecosystem. Currently at version 0.0.12, it's in early development, implying a rapid release cadence with potential for frequent API changes.
pip install diracx-coreVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define and use a configuration class inheriting from `diracx_core.config.BaseConfig`. It showcases field definitions with descriptions and how to integrate environment variables for sensitive data like API keys.
Pin your `diracx-core` dependency to an exact version (e.g., `diracx-core==0.0.12`) in `requirements.txt` or `pyproject.toml` to prevent unexpected breakages. Regularly check the project's GitHub for breaking changes before upgrading.
Understand that while you can use its components, full application logic might require other DiracX components or custom wrappers. Review the specific use cases in the official DiracX ecosystem if available.
Always explicitly define expected configuration sources (e.g., `os.environ.get`) or ensure `.env` files are loaded correctly if used. When debugging, print the resulting configuration object to verify loaded values.