Python library for interfacing with the Yalies API.
First, install the module:
pip3 install yaliesThen, to use the module, you must import it in your code:
import yaliesThen initialize the API, using a token that you may obtain from the API documentation page:
api = yalies.API('your token')
# Never hardcode tokens. Use a config file or environment variable instead.
# The name 'api' can be whatever is most appropriate for your program.There is only one public-facing function in the API class:
API.people([query, filters, page, page_size]) allows your program to request a list of people matching certain parameters. You may pass the query parameter, a string, specifying a textual query to search by. Alternatively, or in addition, you may pass filters a dictionary specifying lists of acceptable properties of the people you wish to retrieve data on. page and page_size can be optionally passed to paginate results as one would expect. See example.py for a complete usage example, and the API documentation for more information about request format.
- Requirements:
twine
python3 setup.py sdist bdist_wheel
twine upload dist/*