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
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
cassandra-orm-0.0.17.tar.gz
(11.3 kB
view details)
File details
Details for the file cassandra-orm-0.0.17.tar.gz.
File metadata
- Download URL: cassandra-orm-0.0.17.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3e038d90ee9af3eacbdf2bdfe72f1f54b9d0216ba42061fde4320b3e24fd0b2
|
|
| MD5 |
7ef8134afcf4e0dde802d79e170251ec
|
|
| BLAKE2b-256 |
c59be82ce0838d8eedf1075b467de3ad600a0db0a675c2a38aa9e61f30b07140
|