最好的Cassandra库/包装Python? [英] best Cassandra library/wrapper for Python?

查看:249
本文介绍了最好的Cassandra库/包装Python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现 lazyboy pycassa a> - 也许有其他人。我看到很多网站推荐Lazyboy。 IMHO项目似乎死了,请参阅 https://www.ohloh.net/p/compare?project_0 = pycassa& project_1 = lazyboy



那么,新项目的最佳选择是什么?谢谢。

解决方案

Cassandra项目一直建议新项目现在使用CQL版本,随着CQL的出现3在Cassandra 1.1,我一定会推荐去那边。如果您以前使用过SQL,并且在不同语言CQL驱动程序之间具有通用性,则优点包括更熟悉的语法。 CQL是CQL,无论是从Java,Python,Ruby,Node.js还是其他任何地方使用它。驱动程序不需要像完整的Cassandra客户端库一样支持,因此减少了维护需求,减少了对客户端作者的依赖。



Python CQL驱动程序GitHub: datastax / python-driver 。 (以前的版本位于 Google代码)。



有关CQL的信息,请参见 Datastax完全通过CQL 2的文档< a>,如何使用CQL 3创建有效的数据模型的帖子,以及 CQL 3中的新功能中的信息。



还有一个CQL 3的完整引用,正在等待批准官方Cassandra仓库;当它等待时,您应该能够阅读它这里在pcmanus'github



尽管如此,如果你不想使用CQL,Pycassa真的是更好的维护,应该有很好的支持。 >

I found lazyboy and pycassa - maybe there are others too. I've seen many sites recommending lazyboy. IMHO the project seems dead, see https://www.ohloh.net/p/compare?project_0=pycassa&project_1=lazyboy

So what's the best option for a new project? Thanks.

解决方案

The Cassandra project has been recommending that new projects use CQL for a few versions now, and with the advent of CQL 3 in Cassandra 1.1, I'd definitely recommend going right to that. Advantages include a more familiar syntax if you've used SQL before, and a commonality of interface between the different language CQL drivers. CQL is CQL, whether you use it from Java, Python, Ruby, Node.js, or whatever. Drivers don't need to support as much as full Cassandra client libraries, so there is less need for maintenance and less dependence on client authors.

The Python CQL driver is on GitHub: datastax/python-driver. (Previous releases were on Google Code.)

For information on CQL, see Datastax's quite through docs for CQL 2, a post on how to make effective data models with CQL 3, and a post on what's new in CQL 3 overall.

There's also a full reference on CQL 3 which is pending approval into the official Cassandra repo; while it's waiting, you should be able to read it here in pcmanus' github.

All that said, though, if you'd rather not use CQL, Pycassa really is better maintained and ought to have good support for quite some time.

这篇关于最好的Cassandra库/包装Python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆