<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://journal.lampetty.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>inspectを使えば簡単にできる。 class MyClass(object): pass def func(): pass な感じのmymodule.py があるとして #!/usr/bin/env python import inspect import mymodule for name, member in inspect.getmembers(mymodule): if inspect.isclass(member): print &quot;%s is class.&quot; % name みたいにやれば mymodule からクラスだけ抜き出せる。 inspectというモジュールはリンク先のマニ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjournal.lampetty.net%2Fentry%2Fwp%2F433&quot; title=&quot;Pythonでモジュール内のクラスを抽出する - oinume journal&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>2011-11-26 00:11:45</published>
  <title>Pythonでモジュール内のクラスを抽出する</title>
  <type>rich</type>
  <url>https://journal.lampetty.net/entry/wp/433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
