Skip to main content

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.

Source Distribution

cassandra-orm-0.0.20.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file cassandra-orm-0.0.20.tar.gz.

File metadata

  • Download URL: cassandra-orm-0.0.20.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for cassandra-orm-0.0.20.tar.gz
Algorithm Hash digest
SHA256 3b36fa83f8ce7364eea674dec562f94593c12718bc359de51bbcdf2585be7f60
MD5 49a95c3e80e0d5c4c9e1a3d6ef488ba5
BLAKE2b-256 d569e545a9188489be7fa98d8207f45abdb46e650b5401d6dc41a1ee7763eab0

See more details on using hashes here.

Supported by

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