Skip to content

nakagami/minicql

Repository files navigation

minicql

Yet another Cassandra (CQL protocol) database driver.

Requirement

  • Python3.5+

Example

Simple example

import minicql
conn = minicql.connect('server_name', 'keyspace')
cur = conn.cursor()
cur.execute("select * from test")
for c in cur.fetchall():
    print(c)
conn.close()

Use Cosmos DB cassandra API

import minicql
conn = minicql.connect(
    'xxxxx.cassandra.cosmos.azure.com',
    'keyspace',
    user='xxxxx',
    password='?????',
    port=10350,
    use_ssl=True
)
    ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages