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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849bda0af4e945c30c8f7e60d15234c34971f1cdab06c1a9d339fd13ec1084f1
|
|
| MD5 |
8ba733039ec54cfdc0d9db582c011f58
|
|
| BLAKE2b-256 |
5afe028ee5f4dadecc57e53890269a040d0be5867240044430a93b472b58fba9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
361ad663593597687c934f7da40f418a32e209bdfa963db5e627ef516b3b7d33
|
|
| MD5 |
ff9a05c6030dca5514570dcecf01af7b
|
|
| BLAKE2b-256 |
936a05d120ef2076962410039e20319802a9cb1c3ee3a6a25734b54d270d68d2
|