<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>failfast</author_name>
  <author_url>https://blog.hatena.ne.jp/failfast/</author_url>
  <blog_title>breakthru2</blog_title>
  <blog_url>https://breakthru.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>pypi に asciitree というパッケージがある。 ターミナルにツリー表示を描くために使用することができるのだけど、README をパッと見る限りではツリー構造を dict で用意しなければならないようで、なんだか不便そう。ただ、ドキュメントを見ると children という属性を見てツリー構造を解釈してくれそうな AttributeTraversal というクラスがあるが、使用例がない。 というわけで、その使用例を書いてみる。書き出すツリーは、README と同じ以下のもの。 asciitree +-- sometimes | +-- you +-- just | +-- want …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbreakthru.hatenablog.com%2Fentry%2F2021%2F06%2F27%2F102423&quot; title=&quot;asciitree の AttributeTraversal を使う - breakthru2&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-27 10:24:23</published>
  <title>asciitree の AttributeTraversal を使う</title>
  <type>rich</type>
  <url>https://breakthru.hatenablog.com/entry/2021/06/27/102423</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
