Skip to content

Python example that can be used for reference or as a starting point for teaching how to connect and retrieve data through an API, with both REST and GraphQL.

License

Notifications You must be signed in to change notification settings

Shyclyde/python-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python API REST/GraphQL Examples

This is a Python example that can be used for reference or as a starting point for teaching how to connect and retrieve data through an API, with both REST and GraphQL.

Setup

  1. Setup virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  2. Install packages:

    pip install -r requirements.txt
  3. Run either of the examples:

    python graphql_example.py
    python rest_example.py
  4. Edit the files, play around, and have fun!

About

Python example that can be used for reference or as a starting point for teaching how to connect and retrieve data through an API, with both REST and GraphQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages