Skip to content

Commit

Permalink
Release 0.5.5 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
iadrich authored Mar 18, 2021
1 parent 5d319ea commit ed7ede5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## Next release
## [0.5.5] - 2021-03-18

### Changed

Expand Down
20 changes: 18 additions & 2 deletions docs/settings/settings_yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,33 @@ whereas database connections are `Database` objects.
Local settings can be set without the need of a `settings.yaml` file using environment variables instead.
With environment variables we don't need to set profiles, only credentials and project parameters are
defined. SAYN will interpret any environment variable names `SAYN_CREDENTIAL_name` or `SAYN_PARAMETER_name`.
The values when using environment variables are json encoded.
The values when using environment variables are either basic types (ie: strings), json or yaml encoded.

Taking the `settings.yaml` example above for the dev profile, in environment variables:

!!! example ".env.sh"
```bash
export SAYN_CREDENTIAL_warehouse="{'type': 'snowflake', 'account': ..."
# JSON encoded credential
export SAYN_CREDENTIAL_warehouse='{"type": "snowflake", "account": ...}'

# YAML encoded credential
export SAYN_CREDENTIAL_backend="
type: postgresql
host: host.address.com
user: ...
"

# Project parameters as strings
export SAYN_PARAMETER_table_prefix="songoku_"
export SAYN_PARAMETER_schema_logs="analytics_logs"
export SAYN_PARAMETER_schema_staging="analytics_adhoc"
export SAYN_PARAMETER_schema_models="analytics_adhoc"

# Project parameters allow complex types JSON or YAML encoded
export SAYN_PARAMETER_dict_param="
key1: value1
key2: value2
"
```

When environement variables are defined and a `settings.yaml` file exists, the settings from both will
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sayn"
version = "0.5.4"
version = "0.5.5"
description = "Data-modelling and processing framework for automating Python and SQL tasks"
authors = ["Robin Watteaux <[email protected]>", "Adrian Macias <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion sayn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.5.4"
__version__ = "0.5.5"

from .tasks import PythonTask

0 comments on commit ed7ede5

Please sign in to comment.