{"description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u306b\u66f8\u3044\u305f\u307e\u307e\u3067\u306f\u30de\u30ba\u3044\u60c5\u5831\u3092\u9000\u907f\u3055\u305b\u308b\u624b\u6bb5 Python\u30b3\u30fc\u30c9 import yaml yaml_dict = yaml.load(open('secret.yaml').read()) user_name, password = yaml_dict['username'], yaml_dict['password'] yaml\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u306a\u3051\u308c\u3070 pip install pyyaml \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 yaml\u30d5\u30a1\u30a4\u30eb username: '<username>' password: 'xxxxxxxx' \u307e\u305f\u3001\u4ed6\u306e\u4eba\u304c\u5229\u7528\u3057\u3084\u3059\u3044\u3088\u3046\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u5165\u308c\u305fsecret_or\u2026","height":"190","version":"1.0","categories":["Python"],"provider_url":"https://hatena.blog","type":"rich","author_name":"ShineSpark","title":"Python\u3067\u30c8\u30fc\u30af\u30f3\u3084\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092YAML\u306b\u9000\u907f\u3055\u305b\u308b","blog_url":"https://shinespark.hatenablog.com/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2015%2F10%2F02%2F021700\" title=\"Python\u3067\u30c8\u30fc\u30af\u30f3\u3084\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092YAML\u306b\u9000\u907f\u3055\u305b\u308b - \u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af","image_url":null,"author_url":"https://blog.hatena.ne.jp/ShineSpark/","published":"2015-10-02 02:17:00","provider_name":"Hatena Blog","url":"https://shinespark.hatenablog.com/entry/2015/10/02/021700"}