API for the socially-driven online labor marketplace.
Branch: master
Clone or download
Chris Waites Chris Waites
Chris Waites and Chris Waites Fix vulnerability.
Latest commit 3d4a494 Nov 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Minor update to documentation. May 1, 2018
people
.gitignore Update gitignore to include direnv file. Aug 14, 2018
LICENSE.txt Fix licence includes. Apr 29, 2018
MANIFEST.in Change url and fix packaging info. Apr 17, 2018
README.md
requirements.txt Fix vulnerability. Nov 29, 2018
setup.cfg Fix licence includes. Apr 29, 2018
setup.py Update to include profile. May 1, 2018

README.md

People API

People is an API for requesting human interaction.

>>> from people import Query, Response
 
>>> Query.create(
    'How many cars are in this image? http://...',
    regex.nonneg_int,
    'http://callback.url/'
)
 
>>> query = Query.get()
 
>>> query.text
 
'Is this person smiling? Respond [yes] or [no]. http://...'
 
>>> Response.create('yes', query)

Official documentation located here.

Installation

pip install people

Connecting

>>> people.User.create('example@email.com', 'example_username', 'example_password')

>>> people.username = 'example_username'
>>> people.password = 'example_password'

Funding

Transactions are entirely handled using Stripe, ensuring your security.

First, login and register for a Stripe account connected to our platform. You should see your Stripe account id update within your profile.

If you intend to submit queries, you must deposit funds. Login and visit https://people-api-server.herokuapp.com/deposit/?amount=AMOUNT, replacing AMOUNT with the amount you intend to deposit in cents. You should see your balance afterwards within your profile.

If you intend to answer queries, to redeem your balance, create a Transfer instance as so.

>>> transfer = people.Transfer.create(AMOUNT)