GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — elements-api/examples/scripts/python at main · WithSecureOpenSource/elements-api

Expand file tree

/

python

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

python

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
authentication.py
authentication.py
 
 
get_devices.py
get_devices.py
 
 
isolate_device.py
isolate_device.py
 
 
poll_incident_updates.py
poll_incident_updates.py
 
 
poll_security_events.py
poll_security_events.py
 
 
requirements.txt
requirements.txt
 
 
security_events_stats.py
security_events_stats.py
 
 

README.md

Outline

Elements Integration: Python scripts

This directory contains Python scripts that implements more complex scenarios. All scripts are ready to go which means in most examples all you need to run them is to install dependencies and provide client credentials. Check source of every script to get more detailed instruction.

All programs are distributed under Apache 2.0 license.

Preparing environment

To run Python programs you need to install required dependencies and provide client credentials. To run programs in isolation from host consider using Python virtualenv.

  1. Run pip install -r requirements.txt to install required dependencies.
  2. Add environment variable WS_CLIENT_ID with Elements API client id.
  3. Add environment variable WS_SECRET with Elements API client secret.

Running script

Each provided script contains instruction how to run it standalone including required parameters. After setting them you can execute script, for example python get_devices.py.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.