【问题标题】:What is the difference between DataStax Python Driver and cqlengine?DataStax Python Driver 和 cqlengine 有什么区别?
【发布时间】:2015-01-20 19:28:59
【问题描述】:

就像我们有 mongoengine 和 pymongo,但我可以理解 pymongo 是 python 的包装器,而 mongoengine 是 ORM。

那么在 cassandra 的情况下,这两个库有什么区别? "Python Driver" 是什么意思。 python driver和wrapper/mapper有区别吗?

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

https://github.com/cqlengine/cqlengine

如果两者都是 python 的包装器,那么我应该使用哪一个。

现在 pycassa https://github.com/pycassa/pycassa/ 是什么?还是一样的吗?

如果这些是愚蠢或荒谬的问题,请原谅我,但我真的很困惑,因为 Python 和 cassandra 对我来说都是新手。

【问题讨论】:

    标签: python python-2.7 cassandra cql pycassa


    【解决方案1】:

    python-driver 是 cassandra 的首选 python 驱动程序,因为它支持 CQL3 和 cassandra 原生协议。

    pycassa 是一个基于 thrift 的 Python 驱动程序,不支持 CQL。这已被 python-driver 有效弃用,并且不再积极开发。

    cqlengine 是一个使用python-driver 的python 对象映射器。这用于将 cassandra 数据映射到 python 对象。

    【讨论】:

      猜你喜欢
      • 2019-01-19
      • 1970-01-01
      • 1970-01-01
      • 2023-03-12
      • 2015-11-24
      • 2015-08-29
      • 2016-07-04
      • 2012-09-04
      • 2022-01-21
      相关资源
      最近更新 更多