Skip to main content

vendor request of taiqiyun [private]

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.18.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file tivendor-0.0.18.tar.gz.

File metadata

  • Download URL: tivendor-0.0.18.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for tivendor-0.0.18.tar.gz
Algorithm Hash digest
SHA256 d8dce72790df8945857981230dd77931e8e81b7711e3661244f015248812b000
MD5 fece72439b7e588872b8d8198e794f93
BLAKE2b-256 3f1ca0820474f8c0e08d0d96059726d0dda35d54c69355b3b96d0bcbe2f93222

See more details on using hashes here.

Supported by

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