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.6.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cassandra-orm-0.0.6.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for cassandra-orm-0.0.6.tar.gz
Algorithm Hash digest
SHA256 25c4a1134261e3857a66b2cf773d6f2f3234bdb682017442b3e99b099a3b0d8b
MD5 06c23e15d2013249b2c95eb48e1e337d
BLAKE2b-256 4b927dddb8b64502619710e6d4eedb56dae78930daafb1d9cd8f3fe53fab2484

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