semvec/pypi-packages huggingface dataset:
gd-kafka 0.0.3
Greendeck Kafka Package

gd_kafka
---
**For internal ```Greendeck``` use only.**

![Greendeck](./images/gd_transparent_blue_bg.png)  ![kafka](./images/kafka.png)
### Install from pip
https://pypi.org/project/gd-kafka/

```pip install gd-kafka```


### How to use ?
##### import the library
```python
import gd_kafka
```

##### import ```kafka``` class
```python
from gd_kafka import GDKafka

```

##### initialize ```Kafka``` client connection
```python
# declare variables
IP_PORT = KAFKA_IP_PORT
# Here default values is IP_PORT=''

gdk = GDKafka(IP_PORT="12.12.12.12:9092")

#Here, 12.12.12.12 is example host ip.
```

---
How to build your pip package

* open an account here https://pypi.org/

In the parent directory
* ```python setup.py sdist bdist_wheel```
* ```twine upload dist/*```

references
* https://medium.com/small-things-about-python/lets-talk-about-python-packaging-6d84b81f1bb5

# Thank You
tslite 1.0.4
A Simple Time Series Database Implemented By Python.
Keywords: TSDB,tslite,Time Series Database

# tslite
A Simple Time Series Database Implemented By Python.

Install
===============
```
 pip install tslite
```

Usage
===============

```python
# -*- coding: UTF-8 -*
'''
Created on 2020-02-19
'''
from __future__ import print_function
import random, time

import tslite

path = '/tmp/tsdb/test'  # the database path
db = tslite.Database(path)
tabname = 't1'
db.drop_table(tabname)  # clern table

# get table
tab = db.get_table(tabname)

# define the table struct
tab.define({
    'field_lock': True,  # lock the table struct
    'fields': [
        {'name': 'name', 'type': 'string', 'index': True},
        {'name': 'group', 'type': 'int', 'index': True},
        {'name': 'x', 'type': 'int', 'index': True},

        {'name': 'v', 'type': 'int'},
        {'name': 'y', 'type': 'float'},
        {'name': 'z', 'type': 'float'},
        {'name': 't', 'type': 'float'},
    ]
})

# count for testing
count = 10
tm = time.time()
for i in range(count):
    # write data
    tab.write_data({'x': i, 'time': tm + i, 'name': random.choice(['a', 'aa', 'bb']), 'y': random.random()})

# query data
q = tab.query()
for r in q:
    print(r)

print('name is "a":')
# query field 'name' == "a"
q = tab.query(eqs={'name': 'a'})
for r in q:
    print(r)

```


[Click to view more information!](https://github.com/sintrb/tslite)


CHANGES
===============
1.0.0

- first version