Skip to content

Latest commit

 

History

History
 
 

readme.rst

Python Code Samples - get_host_details.py

This readme file is specifically for the get_host_details.py Python code sample.

The setup instructions are the same as all other python code samples in this repository. This file is provided as additional/supplemental information for this specific code sample.

Please see the main page for general instructions.

Usage & Example

It is strongly recommended that Python development and demo scripts are run using a Python virtual environment.

Example:

  1. Edit the script and replace all environment-specific variables so they match your environment.

  2. Create and activate the virtual environment:

    python3.7 -m venv venv
    . venv/bin/activate
  3. Install dependencies:

    pip3 install -e .
  4. Run the script:

    python3.7 ./get_host_details.py

Demo screenshot:

./get_host_details.png

In the example above, host_report_10-02-20_12-38-07.xlsx has been generated and looks like the screenshot below:

./get_host_details_spreadsheet.png