buflow-1.0.0
توضیحات
Python bindings for the Buflow API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | buflow-1.0.0 |
| نام | buflow |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Buflow |
| ایمیل نویسنده | support@buflow.com |
| آدرس صفحه اصلی | https://github.com/buflow/buflow-python |
| آدرس اینترنتی | https://pypi.org/project/buflow/ |
| مجوز | - |
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:
- https://buflow.com/docs
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
-------
```python
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)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | Python |
نحوه نصب
نصب پکیج whl buflow-1.0.0:
pip install buflow-1.0.0.whl
نصب پکیج tar.gz buflow-1.0.0:
pip install buflow-1.0.0.tar.gz