Skip to main content

Python bindings for the Buflow API

Project description

Official Buflow Bindings for Python

A Python library for Buflow's API.

Setup

You can install this package by using the pip tool and installing:

$ pip install Buflow

Or:

$ easy_install Buflow

Setting up a Buflow Account

Sign up for Buflow at https://buflow.com

Using the Buflow API

Documentation for the python bindings can be found alongside Buflow's other bindings here:

In the standard documentation, most of the reference pages will have examples in Buflow's official bindings (including Python). Just click on the Python tab to get the relevant documentation.

Example

import buflow
import os


buflow.api_key = os.environ.get("STRIPE_SECRET_KEY")

print("Creating task...")

task_params = {
  "questions": [
    "Is there a tree in this image?",
    "Is there a pedestrian in this image?",
  ],
}
resp = buflow.Task.create(
  task_type='binary_classification',
  task_params=task_params,
  content='http://cdn.lamag.com/wp-content/uploads/sites/9/2016/07/134002821-800x500.jpg',
  content_type='image',
  priority='medium',
  instructions='Answer questions asked.',
  callback_url='https://www.example.com/labels',
)

print("Success: %r" % resp)

task_id = resp["task_id"]

print("Fetching task...")
resp = buflow.Task.get(task_id)

print("Success: %r" % resp)

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

buflow-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buflow-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file buflow-1.0.0.tar.gz.

File metadata

  • Download URL: buflow-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.7

File hashes

Hashes for buflow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 849bda0af4e945c30c8f7e60d15234c34971f1cdab06c1a9d339fd13ec1084f1
MD5 8ba733039ec54cfdc0d9db582c011f58
BLAKE2b-256 5afe028ee5f4dadecc57e53890269a040d0be5867240044430a93b472b58fba9

See more details on using hashes here.

File details

Details for the file buflow-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: buflow-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.7

File hashes

Hashes for buflow-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 361ad663593597687c934f7da40f418a32e209bdfa963db5e627ef516b3b7d33
MD5 ff9a05c6030dca5514570dcecf01af7b
BLAKE2b-256 936a05d120ef2076962410039e20319802a9cb1c3ee3a6a25734b54d270d68d2

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