A python client for c360 projects.
This library can be configured by setting environment variables.
The following configuration is mandatory:
C360_TENANT
- the name of the tenant
The following configurations are optional:
C360_STAGE
- the target stage of the project. Can either be "prod" or "staging". Defaults to "prod".C360_API_KEY
- your API key to authenticate to the API. Can also be set by callingc360_client.dataset.set_api_key()
that will prompt you to input the keyC360_API_URl
- the URL to make requests to. If not given, the URL will be constructed with the givenC360_TENANT
andC360_STAGE
configuration
-
Configure API key interactively (alternatively, you can set
C360_API_KEY
environment variable)c360_client.dataset.set_api_key()
-
Get dataset metadata
c360_client.dataset.get("dataset_name")
-
Download a specific table (requires AWS credentials to be set up)
c360_client.dataset.download_table( dataset="test_dataset", table="test_table", )
You can install this library in development mode with
pip install -r requirements.txt
Once installed, you can run local tests with
pytest