2016-12-13 2 views

ответ

0

Возможно, вы сможете попробовать этот пакет?

Этот пакет от DataStax, который является драйвером Cassandra для python.

Github: https://github.com/datastax/python-driver

API Документы: https://datastax.github.io/python-driver/api/cassandra/cluster.html

from cassandra.cluster import Cluster 
cluster = Cluster(['your_cassandra_ip']) 
session = cluster.connect() 

session.execute('CREATE KEYSPACE IF NOT EXISTS mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };') 
Смежные вопросы