<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chito_ng</author_name>
  <author_url>https://blog.hatena.ne.jp/chito_ng/</author_url>
  <blog_title>まずは蝋の翼から。</blog_title>
  <blog_url>https://knknkn.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>R</anon>
    <anon>使い方メモ(不便解決)</anon>
  </categories>
  <description>Python, RともにDBに接続するときにパスワード情報をソースに直打ちすると、gitなどにアップするときに色々とヤバいので直打ちしない方法をメモ。 json設定ファイルから 以下のようなpassword管理用のjsonファイルを作る。 { &quot;redshift&quot;: { &quot;id&quot;: &quot;myID&quot;, &quot;pw&quot;: &quot;myPassword&quot; }, &quot;bigquery&quot;: { &quot;id&quot;: &quot;myID&quot;, &quot;pw&quot;: &quot;myPassword&quot; } } Python 以下のコードでjsonから欲しい情報を変数に格納する。 import pandas as pd import psycopg2 as psy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fknknkn.hatenablog.com%2Fentry%2F2020%2F04%2F30%2F010312&quot; title=&quot;Python, RでDBに接続するときのパスワードをコードに直打ちしない - まずは蝋の翼から。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/c/chito_ng/20200430/20200430002220.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-30 01:03:12</published>
  <title>Python, RでDBに接続するときのパスワードをコードに直打ちしない</title>
  <type>rich</type>
  <url>https://knknkn.hatenablog.com/entry/2020/04/30/010312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
