vivarium-collective / bigraph-schema

compositional type schemas
Apache License 2.0
1 stars 1 forks source link

generate dataclass by registry #60

Closed eagmon closed 3 months ago

eagmon commented 6 months ago

This PR extends Registry to generate dynamic python dataclasses for Processes with config_schema, allowing users to retrieve the data class, configure their process by using the kwargs of the data class. This can be expanded in the future to create dataclasses for all types.