This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

The Python interface to TrisDb

Project Description
trisdb-py
=========

The Python interface to TrisDb

### Installation
```
sudo pip install trisdb-py
```

### Usage
```python
>>> from trisdb import *

>>> # Connect and insert some data
>>> db = TrisDbConnection('localhost', 1205)
>>> db.create('Alice', 'loves', 'pizza')
>>> db.create('Kate', 'likes', 'football')

>>> # Print all records
>>> result = db.get('*')
>>> for i in result:
>>> print i['subject'] + '-' + i['predicate'] + '-' + i['object']

>>> # Who likes football?
>>> result = db.gets('*', 'likes', 'football')
>>> for i in result:
>>> print i

>>> # Batch insert using MULTI
>>> m = db.multi()
>>> for i in range(0,10):
>>> m.create('key'+str(i), 'value', 'value'+str(i))
>>> db.execute(m)

>>> # Clear all data from DB and close connection
>>> db.clear()
>>> db.close()
```
Release History

Release History

This version
History Node

1.0.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
trisdb-py-1.0.0.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Oct 1, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting