ทดสอบ
Project description
MDA streaming library
สวัสดีนี่กิตเอง
Install
pip install mdalib
require: kafka-python, msgpack, requests
Method
import mdalib
def test(topic, val):
print(topic)
print(val)
# TODO: implement this
option = { # for development
"kafka_url": SOME_KAFKA_URL,
"api_url": SOME_API_URL
}
mdalib.subscribe(option, cb=test)
| ชื่อ topic | ความหมาย |
|---|---|
message |
ข้อมูล message จาก API |
message_increase |
ข้อมูล message จาก Streaming |
internet |
ข้อมูล internet จาก API |
internet_increase |
ข้อมูล internet จาก Streaming |
call |
ข้อมูล call จาก API |
call_increase |
ข้อมูล call จาก Streaming |
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
mdalib-0.1.8.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdalib-0.1.8.tar.gz.
File metadata
- Download URL: mdalib-0.1.8.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75466afe37e4ec246974a83a012c7852777848f2b2a9ae7c703e63fb44c6b147
|
|
| MD5 |
4df26924d370842587ba472823e431a6
|
|
| BLAKE2b-256 |
be4bb6afdf6804f52da32213b0b614b55663cf7a49e17970874981c7185170d9
|
File details
Details for the file mdalib-0.1.8-py3-none-any.whl.
File metadata
- Download URL: mdalib-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b860b124f78f4cfabf36c34aa9dddb0c1e88b1c4ab0a0f320a82aeef0c17762d
|
|
| MD5 |
5307ab03e173c6d42143d3b1ca3851bf
|
|
| BLAKE2b-256 |
1a2f8d7c4112029a238a169ef8a6e66aa38a8b862c60c4915725291b7b60a87a
|