Module Python_lib__.Gen

val write_ml : Stdio.Out_channel.t -> Cmi_format.cmi_infos -> (Python_lib.Module_env.Path.t * Base.string) Base.Hash_set.t

write_ml writes the actual ml file containing the bindings. (E.g. in the above example it generates date_bindings.ml).

Note, this returns a list of all the types that are needed.

val write_types : Stdio.Out_channel.t -> (Python_lib.Module_env.Path.t * Base.string) Base.Hash_set.t -> Base.unit

write_types writes a separate file containing type conversion functions. It is expeected that the input to this function is the output of write_ml above.