Manage Config
This module does some configuration management for local/remote files.
Overview
This module manages the config.json file.
It is used to update the config.json file on GitHub.
The config.json file is used to store the configuration for the pipeline.
It can also update a local config.json file.
get_local_config()
Get the config.json file from the project's root.
Source code in src/opendata_pipeline/manage_config.py
20 21 22 23 |
|
get_remote_config()
Get the config.json file from the project's root on GitHub.
Source code in src/opendata_pipeline/manage_config.py
26 27 28 29 30 31 32 33 34 35 |
|
update_local_config(config)
Update the local config.json file.
Source code in src/opendata_pipeline/manage_config.py
38 39 40 41 42 43 44 45 46 |
|
update_remote_config(config)
Update the remote config.json file using the GitHub API.
Source code in src/opendata_pipeline/manage_config.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|