Skip to content

norwegian-geotechnical-institute/ngilive-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGI Live API sample

Requirements:

  • Python

Set up:

  1. Create a virtual environment

    python -m venv .venv
  2. Activate the python virtual environent

    linux/mac:

    source .venv/bin/activate

    windows:

    .venv\scripts\activate.ps1
  3. Install dependencies from requirements file

    pip install -r requirements.txt
  4. Create a .env file from the template and fill the required variables in the .env

    Contact NGI to obtain a client id and secret if you don't have one.

    Linux/mac:

    cp .env.template .env

    Fill the required parameters, for example:

    KEYCLOAK_CLIENT_ID=your-client          # your client id
    KEYCLOAK_CLIENT_SECRET=abcsasdkjhadkjjd # your client secret
    PROJECT_ID=20241234                     # Project number
    

Run the sample:

python demo.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages