Skip to content

Commit

Permalink
SK-1749: Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshwar-skyflow committed Nov 19, 2024
1 parent e842282 commit 2e1272e
Show file tree
Hide file tree
Showing 11 changed files with 761 additions and 685 deletions.
1,361 changes: 726 additions & 635 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions samples/vault_api/credentials_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: "CREDENTIAL_STRING", // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: "CREDENTIAL_STRING", # credentials as string
}

skyflow_client = (
Expand Down
6 changes: 3 additions & 3 deletions samples/vault_api/delete_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: "CREDENTIAL_STRING", // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: "CREDENTIAL_STRING", # credentials as string
}

client = (
Expand Down
7 changes: 3 additions & 4 deletions samples/vault_api/get_column_values.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.vault.data import GetRequest
from skyflow.vault.tokens import DetokenizeRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

client = (
Expand Down
7 changes: 3 additions & 4 deletions samples/vault_api/get_records.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.vault.data import GetRequest
from skyflow.vault.tokens import DetokenizeRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

client = (
Expand Down
9 changes: 4 additions & 5 deletions samples/vault_api/insert_byot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
from skyflow import Skyflow, LogLevel
from skyflow.error import SkyflowError
from skyflow.utils.enums import TokenStrict
from skyflow.vault.data import GetRequest, InsertRequest
from skyflow.vault.tokens import DetokenizeRequest
from skyflow.vault.data import InsertRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down
9 changes: 4 additions & 5 deletions samples/vault_api/insert_records.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.vault.data import GetRequest, InsertRequest
from skyflow.vault.tokens import DetokenizeRequest
from skyflow.vault.data import InsertRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down
8 changes: 3 additions & 5 deletions samples/vault_api/invoke_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
from skyflow import Skyflow, LogLevel
from skyflow.utils.enums import Method
from skyflow.vault.connection import InvokeConnectionRequest
from skyflow.vault.data import GetRequest, InsertRequest
from skyflow.vault.tokens import DetokenizeRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down
11 changes: 4 additions & 7 deletions samples/vault_api/query_records.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.utils.enums import Method
from skyflow.vault.connection import InvokeConnectionRequest
from skyflow.vault.data import GetRequest, InsertRequest, QueryRequest
from skyflow.vault.tokens import DetokenizeRequest
from skyflow.vault.data import QueryRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down
11 changes: 4 additions & 7 deletions samples/vault_api/tokenize_records.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.utils.enums import Method
from skyflow.vault.connection import InvokeConnectionRequest
from skyflow.vault.data import GetRequest, InsertRequest, QueryRequest
from skyflow.vault.tokens import DetokenizeRequest, TokenizeRequest
from skyflow.vault.tokens import TokenizeRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down
11 changes: 4 additions & 7 deletions samples/vault_api/update_record.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
from skyflow import Env
from skyflow import Skyflow, LogLevel
from skyflow.utils.enums import Method
from skyflow.vault.connection import InvokeConnectionRequest
from skyflow.vault.data import GetRequest, InsertRequest, QueryRequest, UpdateRequest
from skyflow.vault.tokens import DetokenizeRequest, TokenizeRequest
from skyflow.vault.data import UpdateRequest

# To generate Bearer Token from credentials string.
skyflow_credentials_string = '{"clientID":"<YOUR_CLIENT_ID>","clientName":"<YOUR_CLIENT_NAME>","tokenURI":"<YOUR_TOKEN_URI>","keyID":"<YOUR_KEY_ID>","privateKey":"<YOUR_PRIVATE_KEY>"}'

# please pass one of api_key, token, credentials_string & path as credentials
credentials = {
"token": "BEARER_TOKEN", # bearer token
# api_key: "API_KEY", //API_KEY
# path: "PATH", //path to credentials file
# credentials_string: skyflow_credentials_string, // credentials as string
# api_key: "API_KEY", # API_KEY
# path: "PATH", # path to credentials file
# credentials_string: skyflow_credentials_string, # credentials as string
}

skyflow_client = (
Expand Down

0 comments on commit 2e1272e

Please sign in to comment.