<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonで少し複雑なデータをシリアライズする時に便利な関数を作成しました．MessagePackとJSONに対応しており，srslyというシリアライズのライブラリを使用しています． import datetime import decimal import json from srsly import msgpack # # MessagePack # def msgpack_dumps(d) -&gt; bytes: return msgpack.packb(d, default=_default_func, use_bin_type=True) def _default_func(obj):…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F10%2F27%2F150605&quot; title=&quot;PythonでDecimalやdatetimeをシリアライズする - みーのぺーじ&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-10-27 15:06:05</published>
  <title>PythonでDecimalやdatetimeをシリアライズする</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2021/10/27/150605</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
