Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PFATools-0.1.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

PFATools-0.1.2-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page