Library for easy interaction with the Yalies API (yalies.io/api)
Project description
yalies 
Python library for interfacing with the Yalies API.
Setup
First, install the module:
pip3 install yalies
Then, to use the module, you must import it in your code:
import yalies
Then 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.
Retrieval Functions
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.
Deploy to PyPi
- Requirements:
twine
python3 setup.py sdist
twine upload dist/*
Author
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 yalies-2.0.1-py3-none-any.whl.
File metadata
- Download URL: yalies-2.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb86a18378a0eb0381ac2748c2dfee0a0ad59509644a39a0a88cdf2cdf068b8f
|
|
| MD5 |
d5155bb89efaa30342f839f5e3e7e690
|
|
| BLAKE2b-256 |
d5d48d6e9a33fa16fc991b89915be4d6f04360e2d818400ebe08c616af7616e9
|