Config

class pyrefinebio.config.Config

Config for pyrefinebio.

Config values can be set by environment variables or in the Config file.

The Config file’s default location is ~/.refinebio.yaml, but this location can be set by using the environment variable REFINEBIO_CONFIG_FILE

pyrefinebio’s configurable values are:

token:

The refine.bio api token that is used when making requests

environment variable: REFINEBIO_TOKEN

base_url:

The base url for the refine.bio api that should be used when making requests. The default is https://api.refine.bio/v1/

environment variable: REFINEBIO_BASE_URL

These config values can be modified directly in code, but it recommended that you set them by using environment variables, by modifying them in Config file, or by using other class methods provided - like pyrefinebio.Token for example.

example Config file:

token: foo-bar-baz
base_url: https://api.refine.bio/v1/
save()

Save the config to a file

The default path for this file is ~/.refinebio.yaml but it can be set using the environment variable REFINEBIO_CONFIG_FILE.