Python API to access the YAKS service
Project description
# YAKS Python API
This repo contains the YAKS API binding for Python
#### Installation
python3 setup.py install
#### Examples
In the example folder you can find two examples, one uses main memory as storage for the data while the other is using MariaDB.
In order to run the examples you need a YAKS Server running.
MainMemory Example:
yaksd -w [–verbosity=debug]
- Client:
python3 client.py <yaks-ip>
MariaDB Example:
You need a database demo and a table test.
Database Creation:
# mysql -u root -p > create database demo; > use demo;
Define The tabla and put some test data:
> CREATE TABLE test (id SERIAL NOT NULL PRIMARY KEY, mystring VARCHAR(255), myint INT, myfloat REAL, mydate DATE); > INSERT INTO test VALUES (1, ‘test1’, 1, 1.1, ‘2018-01-01’); > INSERT INTO test VALUES (2, ‘test2’, 2, 2.2, ‘2018-02-02’); > INSERT INTO test VALUES (3, ‘test3’, 3, 3.3, ‘2018-03-03’);
Starting YAKS Server:
yaksd [–verbosity=debug] -u mariadb://root:password@127.0.0.1:3306/test -w
- Client:
python3 client-sql.py <yasks-ip>
Copyright 2018 ADLINK Technology Inc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for yaks-0.0.1.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6bb2cd543ad388497731bae26056c4ca7b8597baddf042cbe2d54dae8070aa3 |
|
MD5 | 709f567d504b77e3f390d2598a064b5a |
|
BLAKE2b-256 | cc32bc1db0b7154b4087cd40551b37be3a61d594fe9558af26c0c9436336a2b4 |