10.4.7.1 About the Script Repository

Use these functions to store, manage, and use user-defined Python functions in the script repository.

The following table lists the Python functions for the script repository.

Function Description
oml.script.create

Registers a single user-defined Python function in the script repository.

oml.script.dir

Lists the user-defined Python functions present in the script repository.

oml.script.drop

Drops a user-defined Python function from the script repository.

oml.script.load

Loads a user-defined Python function from the script repository into a Python session.

The following table lists the Python functions for managing access to user-defined Python functions in the script repository, and to datastores and datastore objects.

Function Description
oml.grant

Grants read privilege permission to another user to a datastore or user-defined Python function owned by the current user.

oml.revoke

Revokes the read privilege permission that was granted to another user to a datastore or user-defined Python function owned by the current user.