Skip to content

Simple python project to test api calls and file read/writes

Notifications You must be signed in to change notification settings

merpig/python-api-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-api-practice

Simple python project to test api calls and file read/writes

Run various commands to fetch gifs, create basic html page, and mutate values in the config.json storage file

Usage

-Only tested on Windows 10 with python version 3.11.5-

From the python-api-practice folder:

  • install dependencies pip install .
  • run py .
    • Equivalent of py . -q code which fetches 5 random gifs related to code and writes them to config.json.
  • run py . -q {query}
    • Fetches 5 random gifs related to query. Max limit of 10.
  • run py . -c
    • Prints list of all gif query terms saved in config.json.
  • run py . -c -D {term}
    • Deletes term and term values from config.json.
  • run py . -g
    • Generates index.html page displaying saved gifs in config.json.
  • run py . -o
    • Open index.html if it exists in the default browser.

About

Simple python project to test api calls and file read/writes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages