EgyTech FYI Python Wrapper
  • Introduction
  • Quick Start
  • Reference
    • API Reference
      • Participants
      • Stats
      • PoolingClient
      • ParticipantsQueryParams
      • StatsQueryParams
    • Examples
      • Using The Pooling Client
Powered by GitBook
On this page
  • Install egytech_api
  • Make your first API request
  • Create a Participants Client Instance
  • Export Your Data to a pandas.DataFrame Instance

Quick Start

PreviousIntroductionNextAPI Reference

Last updated 11 months ago

Install egytech_api

This package requires Python 3.11 or older. In order to install it with pip, use the following command:

pip install egytech_api

Make your first API request

Since the EgyTech API does not implement any authorization procedures or rate limits, we can freely make anonymous requests directly with no authorization. We'll jump right to that!

Create a Client Instance

Now let's make a simple Participants object that fetches survey responders who work in back-end and have computer science degrees.

from egytech_api.core import Participants

# Create a Participants object
participants = Participants(title="backend", cs_degree=True)

Export Your Data to a Instance

Now, let's export the data we got from the egytech_api to a nice pandas DataFrame, which we can use for manipulation or visualization.

# Export the data as pandas.DataFrame
df = participants.get_df()

# Print the first 5 rows of the dataframe
df.head()

Output of the above code snippet:

Note: Boolean values all support any non-strict boolean input supported by Pydantic. Find them . However, it's advised that you stick to strict boolean values supported by native Python.

Participants
pandas.DataFrame
here