Skip to content

A template for easy startup of new api projects

Notifications You must be signed in to change notification settings

saud-learning-services/canvas-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First Time

  1. Ensure you have conda installed (Python 3.9 version)
  2. Clone {PROJECT} repository
  3. Import environment (once): $ conda env create -f environment.yml
  4. Create .env file and include:
API_KEY = ''
API_URL = 'https://ubc.instructure.com'

Every Time

  1. Run:
    1. navigate to your directory $ cd YOUR_PATH/{PROJECT-NAME}
    2. activate the environment (see step 3 on first run) $ conda activate do-stuff
    3. run the script and follow prompts in terminal $ python src/do-stuff.py

Jupyter

Allow access to python files in src

import os
import sys
module_path = os.path.abspath(os.path.join('src/'))
if module_path not in sys.path:
    sys.path.append(module_path)
import my_app

About

A template for easy startup of new api projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages