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.10.tar.gz
(5.7 kB
view details)
File details
Details for the file cassandra-orm-0.0.10.tar.gz.
File metadata
- Download URL: cassandra-orm-0.0.10.tar.gz
- Upload date:
- Size: 5.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d719f28f0a516a6b547dd2af8af04aa23aad06f0fc3f82fd8fa36f1cef5cdf2
|
|
| MD5 |
3cc8b8ab0a0acf6ec12d530fe91ba023
|
|
| BLAKE2b-256 |
d109153bdfe42bb602773ab334d1e4a10b6490a78579dea0b03b0d51c5523fc1
|