Collection of tools used for teaching python through API requests and data exploration.
Project description
PFATools
PFATools is a collection of tools used for teaching python through API requests and data exploration. It is written in Python and is available under the MIT license.
You need Python 3.8 or higher to run PFATools.
Contents
Installation
Use pip to pull from the PyPi repository:
pip install pfatools
API Tools
Name Predictions
Can predict various things through a single name. Returns the raw JSON response from the API.
from pfatools import *
name = "John"
age_response = age_predictor(name)
gender_response = gender_predictor(name)
nationality_response = nationality_predictor(name)
The only argument for these functions are name
Random Person
Returns random person data. Returns the raw JSON response from the API.
from pfatools import *
person = randomPerson()
data = person.data
Arguments:
| Argument | Type | Description |
|---|---|---|
| amount | int | amount of people to generate. default: 1 (>= 1) |
| defer | bool | whether to defer the request or not. default: False |
method run_query runs the query and returns the raw JSON response from the API.
from pfatools import *
person = randomPerson(defer=True)
data = person.run_query()
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 PFATools-0.1.2.tar.gz.
File metadata
- Download URL: PFATools-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dec5e9b1c09e9b070454a4dd051a46427207bd5c31524ac6622113afc6746c5f
|
|
| MD5 |
65e16b6f15e672fe78752307f3277af5
|
|
| BLAKE2b-256 |
5eba124d0fc461e381af4653bc1b0149fc3fde08bbf810b912bccef920eb689a
|
File details
Details for the file PFATools-0.1.2-py3-none-any.whl.
File metadata
- Download URL: PFATools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ea98ea5f969c2d683db939be4ab1e27782e04d5d455c4ffbfab09eed6a760f
|
|
| MD5 |
c5bc3ab3e44f165b624b965339caf7ba
|
|
| BLAKE2b-256 |
70bffcb282a8ac0869c45a42500fa56d8a947ce77a9475be017908264bdd9eee
|