Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.893.051 Times

pycassa 1.5.1

Company: Tyler Hobbs
Date Added: November 15, 2013  |  Visits: 217

pycassa

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



pycassa is a python client library for Apache Cassandra with the following features:<br /><br /> 1. Auto-failover for normal or thread-local connections<br /> 2. Connection pooling<br /> 3. A batch interface<br /> 4. A method to map an existing class to a Cassandra column family<br /><br />Installation<br /><br />If easy_install is available, you can use:<br /><br />easy_install pycassa<br /><br />The simplest way to install manually is to copy the pycassa directories to your program. If you want to install, make sure you have thrift installed, and run setup.py as a superuser.<br /><br />easy_install thrift05<br />python setup.py install<br /><br />Connecting<br /><br />All functions are documented with docstrings. To read usage documentation, you can use help:<br /><br />>>> import pycassa<br />>>> help(pycassa.ColumnFamily.get)<br /><br />To get a connection pool, pass a Keyspace and an optional list of servers:<br /><br />>>> pool = pycassa.connect('Keyspace1') # Defaults to connecting to the server at 'localhost:9160'<br />>>> pool = pycassa.connect('Keyspace1', ['192.168.2.10:9160'])<br /><br />See the tutorial for more details.<br />Basic Usage<br /><br />To use the standard interface, create a ColumnFamily instance.<br /><br />>>> pool = pycassa.connect('Keyspace1')<br />>>> cf = pycassa.ColumnFamily(pool, 'Standard1')<br />>>> cf.insert('foo', {'column1': 'val1'})<br />1261349837816957<br />>>> cf.get('foo')<br />{'column1': 'val1'}<br /><br />insert() also acts to update values:<br /><br />>>> cf.insert('foo', {'column1': 'val2'})<br />1261349910511572<br />>>> cf.get('foo')<br />{'column1': 'val2'}<br /><br />You may insert multiple columns at once:<br /><br />>>> cf.insert('bar', {'column1': 'val3', 'column2': 'val4'})<br />1261350013606860<br />>>> cf.multiget(['foo', 'bar'])<br />{'foo': {'column1': 'val2'}, 'bar': {'column1': 'val3', 'column2': 'val4'}}<br />>>> cf.get_count('bar')<br />2<br /><br />get_range() returns an iterable. Call it with list() to convert it to a list.<br /><br />>>> list(cf.get_range())<br />[('bar', {'column1': 'val3', 'column2': 'val4'}), ('foo', {'column1': 'val2'})]<br />>>> list(cf.get_range(row_count=1))<br />[('bar', {'column1': 'val3', 'column2': 'val4'})]<br /><br />You can remove entire keys or just a certain column.<br /><br />>>> cf.remove('bar', columns=['column1'])<br />1261350220106863<br />>>> cf.get('bar')<br />{'column2': 'val4'}<br />>>> cf.remove('bar')<br />1261350226926859<br />>>> cf.get('bar')<br />Traceback (most recent call last):<br />...<br />cassandra.ttypes.NotFoundException: NotFoundException()

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Cassandra Cfget Foo Column Cfinsert Bar Cfinsert Foo Column Columns Create Install Instancegtgtgt Interface Oncegtgtgt Pycassa Pycassaconnect Keyspace Setuppy Val Val Gtgtgt
Users rating: 0/10

License: Freeware Size: 81.92 KB
USER REVIEWS
More Reviews or Write Review


PYCASSA RELATED
Libraries  -  Class::XML 0.06
Class::XML is a Perl module for simple XML Abstraction. SYNOPSIS package Foo; use base qw/Class::XML/; __PACKAGE__->has_attributes(qw/length colour/); __PACKAGE__->has_child(bar => Bar); package Bar; use base qw/Class::XML/;...
18.43 KB  
Programming  -  Collection::Categorized 0.01
The idea is that, given a list of junk, you want to find order in the chaos. Write some categorizers (see below), dump your data in, and get it out in some sort of meaningful order. Collection::Categorized is a Perl module that can help you with...
10.24 KB  
Database Tools  -  Query result table display class 1.0
Query result table display class outputs a table with the data from the result rows of a database query.Features of Query result table display class:- Database independency (works with any DBMS supported by Metabase).- Splits the display of the...
20.48 KB  
HTML Utilities  -  PCS WebCharts 1.3
PCS WebCharts is a charting solution for web developers that uses Active Server Pages and server-side Visual Basic Script to create dynamic bar and column charts. No ActiveX, Java controls, or multiple image files are used to create the graphical...
86 KB  
Libraries  -  ConfigReader::Simple 1.25
ConfigReader::Simple is a simple configuration file parser. SYNOPSIS use ConfigReader::Simple; # parse one file $config = ConfigReader::Simple->new("configrc", [qw(Foo Bar Baz Quux)]); # parse multiple files, in order $config =...
11.26 KB  
Libraries  -  Params::Validate 0.88
Params::Validate is a Perl module to validate method/function parameters. SYNOPSIS use Params::Validate qw(:all); # takes named params (hash or hashref) sub foo { validate( @_, { foo => 1, # mandatory bar => 0, # optional } ); } #...
79.87 KB  
Libraries  -  Rose::Object 0.84
Rose::Object is a simple object base class. SYNOPSIS package MyObject; use Rose::Object; our @ISA = qw(Rose::Object); sub foo { ... } sub bar { ... } ... my $o = MyObject->new(foo => abc, bar => 5); ... Rose::Object is a generic...
28.67 KB  
Libraries  -  Object::AutoAccessor 0.06
Object::AutoAccessor is an accessor class by using AUTOLOAD. SYNOPSIS use Object::AutoAccessor; my $struct = { foo => { bar => { baz => BUILD OK, }, }, }; # Now lets easily accomplish it. my $obj =...
6.14 KB  
Libraries  -  JDBC 0.01
JDBC is a Perl 5 interface to Java JDBC (via Inline::Java). SYNOPSIS use JDBC; JDBC->load_driver("org.apache.derby.jdbc.EmbeddedDriver"); my $con = JDBC->getConnection($url, "test", "test"); my $s = $con->createStatement();...
1.9 MB  
Libraries  -  CGI::Simple 0.079
CGI::Simple is a simple totally OO CGI interface that is CGI.pm compliant. SYNOPSIS use CGI::Simple; $CGI::Simple::POST_MAX = 1024; # max upload via post default 100kB $CGI::Simple::DISABLE_UPLOADS = 0; # enable uploads $q = new...
84.99 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB