Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Cassandra ORM which uses Python annotations simular to the typing.NamedTuple API

Project description

Cassondra ORM ( CORM )

Cassandra ORM which uses Python annotations similar to the typing.NamedTuple API

Install

$ pip install -U corm

Usage

import corm

from corm.models import CORMBase

from datetime import datetime

class TestModel(CORMBase):
    __keyspace__ = 'mykeyspace'
    column_one: str
    column_two: int
    column_three: datetime


corm.register_table(TestModel)
corm.sync_schema()

first_test = TestModel('one', 'two', datetime.utcnow())
second_test = TestModel('first', 'second', datetime.utcnow())
corm.insert([first_test, second_test])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cassandra-orm, version 0.0.21
Filename, size File type Python version Upload date Hashes
Filename, size cassandra-orm-0.0.21.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page