Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FinSpace Managed kdb Boto Examples

Collection of notebooks to demonstrate uses of the FinSpace AWS CLI and Boto libraries (Python).

Setup

  • Parent directory python scripts are symlinked to this directory and then referenced directly in notebooks
  • env_*.py files contain environemnt specific variables such as ENV_ID, and auth credentials
    • Actual files are in parent directory, sym linked to this directory

Notebooks

CLI_Environment_Setup Notebook using teh AWS CLI to create and setup a basic Managed mkb Insights environment. Setup includes environment creation, database creation and population, user creation, getting a connection string to the cluster.

create_cluster_HDB Creates an HDB cluster using AWS Python boto library.

create_cluster_RDB Creates an RDB cluster using AWS Python boto library.

generate_welcome_data q Notebook to generate the hdb database.

delete_cluster Deletes the given cluster.

delete_db Deletes the given database.

get_cluster Displays all information about the given cluster.

get_database Displays all information about the given datbase, including its changesets.

get_environment Get all information about the given environment.

list_clusters Lists all clisters of an environment.

list_databases Lists all databases of an environment.

query_cluster q Notebook to show how to connect to and query a cluster.

query_env Displays all information about the given environment. Information includes databases and clusters.

query_welcomedb q Notebook to demonstrate how to query the welcome database.

welcome Welcome notebook, demonstrates use of the Python AWS boto libraries to create the welcome datbase and a cluster to query it.

Python

Python files.

get_connection_string Python file meant to be used from the command line to generate a cluster's connection string.

managed_kx Utility functions for the finspace service atop the AWS Python boto library.

q Code

Example q files.

Code Folder

init.q Example script for initializing the cluster, accepts two arguments (dbname and codebase). If dbname folder exists, will load that into memory. The codebase is used to demonstrate how to load relative files located in the zip file provided at cluster creation, in this case lib.q.

lib.q Example library loaded by init.q.