Skip to main content

No project description provided

Project description

CMSElemental

CI codecov Language grade: Python

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page