download blazingdb for python
https://pypi.python.org/pypi/blazingdb
- Author: BlazingDB Inc.
- Home Page: https://github.com/BlazingDB/python-connector
- Download URL: https://github.com/BlazingDB/python-connector/releases/tag/1.1
- Keywords: blazingdb,blazing connector,blazing
- Package Index Owner: blazingdb
- DOAP record: blazingdb-1.0.xml
Intro
blazingdb.com python connector to BlazingDB, a high performance DB with petabyte scaling. BlazingDB is an extremely fast SQL database able to handle petabyte scale.
See BlazingDB docs
Installation
pip install blazingdb
Usage
Verify connection
>>> from blazingdb import BlazingPyConnector
>>> bl = BlazingPyConnector('127.0.0.1','user@domain.com','password','database_name')
>>> con = bl.connect()
>>> result = bl.run("list tables",con)
>>> print result.status
>>> print result.rows
Examples
>>> from blazingdb import BlazingPyConnector
>>> bl = BlazingPyConnector('127.0.0.1','user@domain.com','password','database_name')
>>> con = bl.connect()
>>> result = bl.run("create table my_new_table (field1 string(20), field2 long, field3 date, field4 double)",con)
>>> print result.status
>>> result = bl.run("insert into my_new_table (field1, field2 long, field3, field4) values ('hello world', 1400, '20162010', 15.5)",con)
>>> result = bl.run("select * from my_new_table limit 10",con)
>>> for row in result.rows:
>>> print row
More SQL Docs
Please visit your SQL Guide for more information about query structures and examples.
Author
BlazingDB Inc. (www.blazingdb.com)
Deploy
python setup.py sdist upload -r pypi
download blazingdb for python
Reviewed by Unknown
on
09:07:00
Rating:
Aucun commentaire