No project description provided
Project description
CMSElemental
A python package which provides data models & tools for the Computational Molecular Sciences (CMS).
Base Models
The most fundamental model is ProtoModel
, a subclass of the pydantic BaseModel
, which provides commonly used methods in CMS.
from cmselemental.models import ProtoModel
class Model(ProtoModel):
...
obj = Model(...)
is_same = obj.compare(other_obj)
stringified = obj.json()
data = obj.dict()
Serialization/deserialization
Routines for serializing to popular formats like JSON and YAML are available, with support for encoding Numpy arrays.
from cmselemental.util import serialize, deserialize
stringified = serialize(data, encodding="json", indent=4)
data = deserialize(stringified, encoding="json")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmselemental-v0.1.0.tar.gz
(40.7 kB
view hashes)