peppy is the official Python package for reading Portable Encapsulated Projects (PEPs). It provides a Python interface for managing project metadata, including samples and their attributes. The library facilitates loading, validating, and interacting with PEP-formatted metadata. The current stable version is 0.40.8, with significant breaking changes anticipated in the upcoming 0.50.0aX releases. It maintains an active development and release cadence.
pip install peppyVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to initialize a `peppy.Project` object from a configuration file and access its samples and their attributes. Users should provide their own PEP configuration file.
Review the `peppy` documentation for 0.50.0aX to understand how merged functionalities are accessed internally. Remove direct `pephubclient` and `eido` imports related to PEP processing.
Consult the updated CLI documentation for version 0.50.0aX to learn the new command structure and usage with `typer`.
Ensure the `cfg` path is absolute or correctly relative to the current working directory. Validate your YAML file for syntax errors and confirm that all referenced files (like `sample_table.csv`) exist and are accessible. Refer to the PEP specification for correct format.
Install the library using pip: `pip install peppy`
Verify that the `project_config.yaml` file exists at the specified path. Use an absolute path or ensure the relative path is correct from where your script is run. Consider cloning the `pepkit/example_peps` repository for test data.
Review your `project_config.yaml` and associated sample table(s) to ensure they correctly define samples. If you initialized with `defer_samples_creation=True`, call `prj.create_samples()` before attempting to access `prj.samples`.
No dependency data recorded yet.