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.19.tar.gz
(11.9 kB
view details)
File details
Details for the file cassandra-orm-0.0.19.tar.gz.
File metadata
- Download URL: cassandra-orm-0.0.19.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5c74ad36df9821086c63be839649148358926c5b9af15a7a8744188048c6de0
|
|
| MD5 |
5a0473dea2dec382d3e4f9e15732bd0a
|
|
| BLAKE2b-256 |
ca023bbb28efca7038e6ed307dc516b826fc9d9d5dfa7320142501658f96d830
|