This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## R sample code for loading credential | |
## | |
library(configr) | |
config = read.config(file = '~/.config/credential') | |
## section_a | |
username_a = config$section_a$username | |
password_a = config$section_a$password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
python sample code for loading credential | |
''' | |
import configparser | |
config = configparser.ConfigParser() | |
config.read('~/.config/credential') | |
## section_a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[section_a] | |
username=abc | |
password=123 | |
[section_b] | |
username=def | |
password=456 |