kvencoder
is a very flexible key value encoding mechanism
that you can use to serialize any of your classes.
The class schema is a YAML file, that describes which attributes to encode and how. It is a very flexible way of writing structured information.
See how to create the schema and how to conform your classes to Encodable
in the
example folder.
pip install kvencoder/
- sorry, no PyPi yet.
kvencoder
is being used in the biomolecular simulation package
BAC2 to encode classes to very specific configuration
file formats used by high performace MD engines like NAMD,
Gromacs, Amber or OpenMM.