Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Asyncio Tensorflow Serving Communication.

Project description


Asyncio-based Tensorflow Serving Prediction


  • asyncio: better use of your cpu idle time
  • pep8 compliant: following best code standards
  • high-performance prediction: we use aio-grpc


import aiotf

async def make_prediction(model_name: str, data):
  async with aiotf.AsyncTensorflowServing('localhost:9000') as client:
    predictions = await client.predict(model_name, data)

You can find more examples in the examples/ subdirectory.


$ pip install aiotf



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiotf, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiotf-0.1.0-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size aiotf-0.1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page