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 details)
File details
Details for the file cmselemental-v0.1.0.tar.gz
.
File metadata
- Download URL: cmselemental-v0.1.0.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43959793669646c84fba79a0c53caeeafd8ccbc9b48d8e8b45a6878fbfeb5ac |
|
MD5 | e4d9b10d7fa92bca06eaca1020ff6018 |
|
BLAKE2b-256 | 6fd9606b6149ec2b52155d1d5185d641d008783e43f4997eb6e1d429b9c75819 |