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())
Metadata
Release files for tivendor 0.0.32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tivendor-0.0.32.tar.gz | 4.4 kB | Without provenance | Details |
Release files / tivendor-0.0.32.tar.gz
| Download URL | tivendor-0.0.32.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f616a21191afbf8dd5a6e786104fbc9fc7f83bb536b302955756fcd790ae69be
|
|
BLAKE2b-256 checksum How to use checksums |
c1c3e66a349d514be5d9cc0a63514c512fff6a804f3b488908dbadc8bd2686e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for tivendor 0.0.32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.