<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinkAmi</author_name>
  <author_url>https://blog.hatena.ne.jp/thinkAmi/</author_url>
  <blog_title>メモ的な思考的な</blog_title>
  <blog_url>https://thinkami.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonで自作ライブラリを作った時に python -m &lt;パッケージ名&gt; 例： $ python -m hello &lt;ライブラリで指定したコマンド名&gt; 例： $ hello のような形でライブラリを実行したくなりました。 そこで、どんなふうにすればよいか試してみたので、メモを残します。 目次 環境 自作ライブラリの作成 実装 動作確認 実行時の mオプションで実行可能なライブラリにする pyproject.toml の project.scripts に指定したコマンドで実行可能にする ソースコード 環境 Python 3.12.1 WSL2 なお、今回は pyproject.toml …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2024%2F02%2F03%2F222225&quot; title=&quot;Pythonで、実行時のmオプションやpyproject.toml の project.scripts の指定による、実行可能なライブラリを作ってみた - メモ的な思考的な&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>2024-02-03 22:22:25</published>
  <title>Pythonで、実行時のmオプションやpyproject.toml の project.scripts の指定による、実行可能なライブラリを作ってみた</title>
  <type>rich</type>
  <url>https://thinkami.hatenablog.com/entry/2024/02/03/222225</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
