Python Integration Scripts

Overview

The /davinci/python.py script includes a set of utilities for building modeling and analytics, and for integrating with the davinci platform for users with an account.

Data

  • val - a function that shares data between scripts and apps in the framework.
  • url - a function that retrieves data from across the web, but integrates with the davinci secure access framework.
  • cache - uses the url function to access data from across the network, but provides utilities for caching data to your hard drive or other location.

Importing Scripts

When you install the davinci VSCode extension, the davinci python script is placed in a folder named "davinci" in your workspace. The untilities are then available to your scripts by using a standard import, as in the following:

from davinci.python import url, val

A copy of the script can be found here : davinci.python.

Security

Security on davinci is managed through the

  • Davinci Web Security - the davinci web based security protocol makes it easy to access http delivered resources securely and in a way that makes it easy to share across the internet, and to be able to switch desktops (hardware) without lots of configuration. Web security is used by the url utility (see above)
  • Network Security - users who do not use davinci web based security can still rely on the security provided by the network that they are running on. That is