Skip to main content

vendor request of taiqiyun

Project description

tivendor

Usage

from tivendor import TiVendor

config =  {
    'TIADMIN_HOST': 'http://tiadmin.kong:8000',
    'KAFKA_ENABLE': 'on',
    'KAFKA_HOST': 'kafka-kafka.kafka:9092',
    'KAFKA_TOPIC': 'supplier-request',
    'DEFAULT_SERVICE_NAME': 'bqsblmatch',
    'LOGGER_NAME': 'main',
}
vendor = TiVendor(config)

r = vendor.request('bqsblmatch-test', service_name='bqsblmatch', ti_request_headers={}, json={'name': 'Johnny',})
print(r.json())

Project details


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.4.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page