vendor request of taiqiyun [private]
Project description
tivendor
Usage
from tivendor import TiVendor
config = {
'TIADMIN_HOST': os.getenv('TIADMIN_HOST', 'http://tiadmin.kong:8000'),
'KAFKA_HOST': os.getenv('KAFKA_HOST', 'kafka-kafka.kafka:9092'),
'KAFKA_TOPIC': os.getenv('KAFKA_TOPIC', 'supplier-request'),
'KAFKA_ENABLE': os.getenv('KAFKA_ENABLE', 'on'),
'DEFAULT_SERVICE_NAME': os.getenv('DEFAULT_SERVICE_NAME', 'default_service_name'),
'LOGGER_NAME': os.getenv('LOGGER_NAME', 'main'),
'REDIS_HOST': os.getenv('REDIS_HOST', 'supplier-redis'),
'REDIS_PORT': os.getenv('REDIS_PORT', 6379),
'REDIS_DB': os.getenv('REDIS_DB', 0),
'REDIS_PASSWORD': os.getenv('REDIS_PASSWORD', None),
'SM4_SECRET': os.getenv('SM4_SECRET', ''), # 可以通过调用 api 获取
}
vendor = TiVendor(config)
r = vendor.request('bqsblmatch-test', service_name='bqsblmatch', ti_request_headers={}, json={'name': 'Johnny',})
print(r.json())
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
tivendor-0.0.32.tar.gz
(4.4 kB
view details)
File details
Details for the file tivendor-0.0.32.tar.gz
.
File metadata
- Download URL: tivendor-0.0.32.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f616a21191afbf8dd5a6e786104fbc9fc7f83bb536b302955756fcd790ae69be |
|
MD5 | 44e83060e4e63f9b67e7ac96c0b8a428 |
|
BLAKE2b-256 | c1c3e66a349d514be5d9cc0a63514c512fff6a804f3b488908dbadc8bd2686e2 |