{"id":11840,"date":"2025-12-16T13:44:00","date_gmt":"2025-12-16T04:44:00","guid":{"rendered":"https:\/\/www.moonmile.net\/blog\/?p=11840"},"modified":"2025-12-30T15:28:42","modified_gmt":"2025-12-30T06:28:42","slug":"libreoffice-calc-%e3%81%a7-python-%e3%81%8b%e3%82%89%e5%b8%b3%e7%a5%a8%e4%bd%9c%e6%88%90%ef%bc%88%e3%82%b7%e3%83%bc%e3%83%88%e3%81%ae%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e4%bb%a5%e5%a4%96%e3%81%af","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/11840","title":{"rendered":"LibreOffice Calc \u3067 Python \u304b\u3089\u5e33\u7968\u4f5c\u6210\uff08\u30b7\u30fc\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u4ee5\u5916\u306f\uff09"},"content":{"rendered":"\n<p>Excel \u304b\u3089 LibreOffice Calc \u306b\u79fb\u884c\u3059\u308b\u3068\u304d\u306b\u3001\u3044\u308f\u3086\u308b\u5e33\u7968\u306e\u4f5c\u6210\u304c\u3067\u304d\u308b\u304b\u5426\u304b\u79c1\u7684\u306b\u306f\u7d50\u69cb\u306a\u809d\u306b\u306a\u308a\u307e\u3059\u3002\u3061\u307e\u3061\u307e\u3068 Calc \u3067\u7f6b\u7dda\u3092\u5f15\u3044\u3066\u3044\u308b\u306e\u306a\u3089\u3070\u5225\u306a\u306e\u3067\u3059\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3044\u81ea\u52d5\u5316\u3092\u3057\u3066\u3044\u308b\u3068\u3061\u3087\u3063\u3068\u72b6\u6cc1\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>ClosedXML\u3092\u4f7f\u3063\u3066\u3001\u8d85\u9ad8\u901f\u306b\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u5e33\u7968\u3092\u4f5c\u6210\u3059\u308b  <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/9672\">https:\/\/www.moonmile.net\/blog\/archives\/9672<\/a><\/p>\n\n\n\n<p>\u81ea\u5206\u304c\u826f\u304f\u4f7f\u3063\u3066\u3044\u308b\u306e\u306f\uff08\u3053\u308c\u306f\u9006\u5f15\u304d\u5927\u5168\u306b\u3082\u5165\u3063\u3066\u3044\u308b\u3051\u3069\uff09\u3001\u3053\u3093\u306a\u98a8\u306b C# + ClosedXML \u3067\u5e33\u7968\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u5e33\u7968\u3092\u4f5c\u308b\u30c4\u30fc\u30eb\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u306f\u5e33\u7968\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30ab\u30b9\u30bf\u30e0\u3057\u3084\u3059\u304f\u3059\u308b\u3088\u3046\u306b\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092 Excel \u81ea\u8eab\u3067\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u7f6b\u7dda\u3084\u3089\u5370\u5237\u6642\u306e\u30bf\u30a4\u30c8\u30eb\u306a\u3069\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u306a\u308b Excel \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u30b7\u30fc\u30c8\u306b\u6570\u5024\u3084\u6587\u5b57\u5217\u3060\u3051\u3092 C# \u304b\u3089\u66f8\u304d\u8fbc\u3080\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5e74\u6b21\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306e\u3088\u3046\u306b\u3001\u5e33\u7968\u304c\u5909\u5316\u3057\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u624b\u3092\u5165\u308c\u306a\u304f\u3066\u6e08\u3080<\/li>\n\n\n\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u304f\u308b\u3068\u304d\u306b\u3082\u7f6b\u7dda\u306e\u4fee\u6b63\u3084\u51fa\u529b\u4f4d\u7f6e\u306f Excel \u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u5e33\u7968\u653f\u7b56\u304c\u697d<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u8a00\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u6b20\u70b9\u3068\u3057\u3066\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Excel \u3092\u696d\u52d9 PC \u306b\u5165\u308c\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<p>\u3067\u3059\u306d\u3002\u5f53\u7136\u3068\u3044\u3048\u3070\u5f53\u7136\u306a\u306e\u3067\u3059\u304c\u3001C# \u304b\u3089 Excel \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6271\u3046\u305f\u3081\u306b\uff08\u5b9f\u969b\u306b\u306f ClosedXML \u306a\u306e\u3067\u3001OpenXML \u306e\u307b\u3046\u306a\u306e\u3067\u3059\u304c\uff09Excel \u81ea\u4f53\u304c\u5fc5\u9808\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3060\u3051\u306a\u3089\u3070 Excel \u306f\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5370\u5237\u6642\u306b Excel \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u306a\u306e\u3068\u3001\u5e33\u7968\u306e\u30b7\u30fc\u30c8\u81ea\u4f53\u306e\u7de8\u96c6\u306b Excel \u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u958b\u767a\u8005\u306f\u3068\u3082\u304b\u304f\u3068\u3057\u3066\u304a\u5ba2\u306b\u3082 Excel \u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u307e\u3042\u3001\u5927\u62b5\u306f Excel \u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3089\u3044\u3044\u3093\u3067\u3059\u304c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Excel + C# + ClosedXML \u306e\u7d44\u307f\u5408\u308f\u305b\u3092 LibreOffice Calc \u306b\u5909\u63db\u3067\u304d\u308b\u304b\uff1f<\/h2>\n\n\n\n<p>\u809d\u306f\u3001Excel + ClosedXML \u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u3001LibreOffice Calc + UNO API \u3067\u3067\u304d\u308b\u304b\uff1f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u79c1\u3068\u3057\u3066\u306f C# \u304b\u3089 UNO API \u3092\u4f7f\u3048\u308c\u3070\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u524d\u8a18\u4e8b\u304b\u3089 C# \u304b\u3089 UNO API \u3092\u4f7f\u3046\u306b\u306f\u96e3\u70b9\u304c\u3042\u308b\u306e\u3067\u3001\u7d20\u76f4\u306b Python \u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u3042\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3059\u308b\u3068\u3044\u3063\u3066\u3082\u30d9\u30fc\u30b9\u3092\u4f5c\u308b\u306e\u306f AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306a\u306e\u3067\u3001\u305d\u308c\u3092\u52d5\u304b\u3057\u3066\u3061\u3087\u3053\u3061\u3087\u3053\u3068 Python \u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e33\u7968\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h3>\n\n\n\n<p>\u307e\u305a\u3001\u5e33\u7968\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08report-template.ods\uff09\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"601\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38-1024x601.png\" alt=\"\" class=\"wp-image-11841\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38-1024x601.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38-300x176.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38-768x450.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38-1536x901.png 1536w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-38.png 1695w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u306b\u306f\u3001\u7f6b\u7dda\u3084\u30bf\u30a4\u30c8\u30eb\u884c\u306e\u8272\u3092\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u4ed6\u306b\u3082\u884c\u306e\u9ad8\u3055\u3082\u5909\u3048\u307e\u3059\u3002\u30bb\u30eb\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3082\u5909\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u5b9f\u969b\u306e\u5e33\u7968\u3092\u4f5c\u308b\u3088\u3046\u306b\u8a66\u3057\u3066\u307f\u308b\u306e\u304c\u3088\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"601\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39-1024x601.png\" alt=\"\" class=\"wp-image-11842\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39-1024x601.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39-300x176.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39-768x450.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39-1536x901.png 1536w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-39.png 1695w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u5370\u5237\u6642\u306e\u30d8\u30c3\u30c0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u3001\u30bf\u30a4\u30c8\u30eb\u884c\u306a\u3093\u304b\u3082\u5165\u308c\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u306f\u3001\u4f5c\u6210\u3059\u308b\u30b7\u30fc\u30c8\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3055\u308c\u3066\u308b\u306e\u3067\u3001\u3053\u306e\u3088\u3046\u306a\u5370\u5237\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306a\u3069\u3082\u4f7f\u3048\u307e\u3059\u3002\u5148\u306e C# + ClosedXML \u306e\u4f8b\u3082\u305d\u3046\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u624b\u306e\u7d30\u304b\u3044\u8abf\u7bc0\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3079\u3066\u3084\u308b\u306e\u306f\u5927\u5909\u3067\u3059\u3002\u8907\u96d1\u306a\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5225\u9014\u5e33\u7968\u30c4\u30fc\u30eb\u3092\u8cfc\u5165\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u305f\u3060\u3057\u3001\u305d\u3053\u307e\u3067\u8907\u96d1\u3059\u304e\u306a\u3044\u3068\u304b\u3001\u5e74\u5358\u4f4d\u3067\u5e33\u7968\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u30ab\u30b9\u30bf\u30e0\u304c\u591a\u3044\u5834\u5408\u306f\u3001\u3053\u3093\u306a\u5f62\u3067 Excel \u3042\u308b\u3044\u306f Office Calc \u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u306a\u308b\u30b7\u30fc\u30c8\u3092\u4f5c\u3063\u305f\u307b\u3046\u304c\u697d\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u3001\u5148\u306e\u696d\u52d9\u3067\u306f20\u5e33\u7968\u4f4d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092 Excel \u3067\u81ea\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5206\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u304c\u6fc0\u6e1b\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u6e21\u3059\u30d7\u30ed\u30f3\u30d7\u30c8<\/h3>\n\n\n\n<p>\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n&quot;&quot;&quot;\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066 Calc \u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\n\n# \u5b9f\u88c5\u624b\u9806\n\n1. \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\n2. \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3066\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\n3. \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306e\u884c\u6570\u3092\u8a08\u7b97\u3059\u308b\n4. \u30b7\u30fc\u30c8\u306e1\u884c\u76ee\u306f\u30d8\u30c3\u30c0\u30fc\u884c\u306a\u306e\u3067\u305d\u306e\u307e\u307e\n5. 2\u884c\u76ee\u4ee5\u964d\u306b\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u306e\u884c\u6570\u5206\u3060\u3051\u7528\u610f\u3059\u308b\u3002\n 5.1 \u884c\u306e\u7f6b\u7dda\u3082\u4e00\u7dd2\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001\u884c\u6570\u3092\u5897\u3084\u3059\n6. \u30c7\u30fc\u30bf\u3092\u884c\u6570\u5206\u66f8\u304d\u8fbc\u3080\n\n&quot;&quot;&quot;\n\n<\/pre><\/div>\n\n\n<p>\u4f55\u7b49\u304b\u306e\u30b7\u30b9\u30c6\u30e0\u306a\u3089\u3070\u8272\u3005\u76ee\u7684\u306a\u308a\u8a2d\u8a08\u3092\u66f8\u3044\u305f\u307b\u3046\u304c\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u65e2\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b Excel + ClosedXML \u306e\u30b3\u30fc\u30c9\u3092\u6a21\u5023\u3057\u305f\u3044\u306e\u3067\u3001\u305d\u306e\u624b\u9806\u3092\u76f4\u63a5\u66f8\u3044\u3066\u3044\u307e\u3059\u3002C# \u306e\u30b3\u30fc\u30c9\u3092\u6e21\u3057\u3066\u300cUNO API + Python \u306b\u66f8\u304d\u76f4\u3057\u3066\u300d\u3067\u3082\u901a\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4eca\u56de\u306f\u5c11\u3057\u4e01\u5be7\u306b\u624b\u9806\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002\u696d\u52d9\u30b3\u30fc\u30c9\u306e\u307b\u3046\u306f\u3001\u696d\u52d9\u7279\u6709\u306e\u8907\u96d1\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u639b\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u4f59\u8a08\u306a\u60c5\u5831\u3092\u8a70\u3081\u8fbc\u307e\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u30b5\u30f3\u30d7\u30eb\u5e33\u7968\u306b\u3042\u308f\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3067\u304d\u3042\u304c\u3063\u305f\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<p>\u5c11\u3057\u624b\u76f4\u3057\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u307b\u307c\u305d\u306e\u307e\u307e AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\uff08GPT-5.1-Codex-Max\uff09\u3067\u66f8\u3044\u305f\u3082\u306e\u3067\u3059\u3002\u884c\u306e\u9ad8\u3055\u304c\u4e0a\u624b\u304f\u30b3\u30d4\u30fc\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5f8c\u304b\u3089\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u8db3\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport uno\nfrom pathlib import Path\n\n# \u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\n# &amp; &quot;C:\\Program Files\\LibreOffice\\program\\soffice&quot; --accept=&quot;socket,host=localhost,port=2002;urp;&quot; --norestore --nologo\n# PowerShell \u3067\u306e\u8d77\u52d5\n# &amp; &quot;C:\\Program Files\\LibreOffice\\program\\python&quot; .\\calcReport001.py\n\n&quot;&quot;&quot;\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066 Calc \u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\n\n# \u5b9f\u88c5\u624b\u9806\n\n1. \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\n2. \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3066\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\n3. \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306e\u884c\u6570\u3092\u8a08\u7b97\u3059\u308b\n4. \u30b7\u30fc\u30c8\u306e1\u884c\u76ee\u306f\u30d8\u30c3\u30c0\u30fc\u884c\u306a\u306e\u3067\u305d\u306e\u307e\u307e\n5. 2\u884c\u76ee\u4ee5\u964d\u306b\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u306e\u884c\u6570\u5206\u3060\u3051\u7528\u610f\u3059\u308b\u3002\n 5.1 \u884c\u306e\u7f6b\u7dda\u3082\u4e00\u7dd2\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001\u884c\u6570\u3092\u5897\u3084\u3059\n6. \u30c7\u30fc\u30bf\u3092\u884c\u6570\u5206\u66f8\u304d\u8fbc\u3080\n\n&quot;&quot;&quot;\n\n\n# \u8a2d\u5b9a: \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u51fa\u529b\u5148\nTEMPLATE_NAME = &quot;report-template.ods&quot;\nOUTPUT_NAME = &quot;report-output.ods&quot;\nTEMPLATE_SHEET_NAME = &quot;Template&quot;\nREPORT_SHEET_NAME = &quot;Report&quot;\n\n\ndef to_file_url(path: Path) -&gt; str:\n\treturn uno.systemPathToFileUrl(str(path.resolve()))\n\n\ndef connect_desktop():\n\tlocal_ctx = uno.getComponentContext()\n\tresolver = local_ctx.ServiceManager.createInstanceWithContext(\n\t\t&quot;com.sun.star.bridge.UnoUrlResolver&quot;, local_ctx\n\t)\n\tctx = resolver.resolve(\n\t\t&quot;uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext&quot;\n\t)\n\tsmgr = ctx.ServiceManager\n\tdesktop = smgr.createInstanceWithContext(&quot;com.sun.star.frame.Desktop&quot;, ctx)\n\tdoc = desktop.getCurrentComponent()\n\tif doc is None:\n\t\traise RuntimeError(&quot;\u30a2\u30af\u30c6\u30a3\u30d6\u306a Calc \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093&quot;)\n\treturn desktop, doc\n\n\ndef load_template(desktop, template_path: Path):\n\turl = to_file_url(template_path)\n\tprops = (uno.createUnoStruct(&quot;com.sun.star.beans.PropertyValue&quot;),)\n\tprops&#x5B;0].Name = &quot;Hidden&quot;\n\tprops&#x5B;0].Value = True\n\treturn desktop.loadComponentFromURL(url, &quot;_blank&quot;, 0, props)\n\n\ndef import_template_sheet(target_doc, template_doc, template_sheet_name: str, report_sheet_name: str):\n\ttarget_sheets = target_doc.Sheets\n\tif target_sheets.hasByName(report_sheet_name):\n\t\ttarget_sheets.removeByName(report_sheet_name)\n\n\t# importSheet: \u7b2c3\u5f15\u6570\u306f\u633f\u5165\u4f4d\u7f6e\uff08\u672b\u5c3e\u306b\u8ffd\u52a0\uff09\n\ttarget_sheets.importSheet(template_doc, template_sheet_name, target_sheets.getCount())\n\n\t# \u53d6\u308a\u8fbc\u3093\u3060\u30b7\u30fc\u30c8\u540d\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u76ee\u7684\u306e\u540d\u524d\u306b\u5909\u66f4\n\timported_sheet = target_sheets.getByName(template_sheet_name)\n\timported_sheet.Name = report_sheet_name\n\treturn imported_sheet\n\n\ndef ensure_rows_with_format(sheet, template_row_idx: int, start_row: int, rows_needed: int, last_col: int):\n\ttemplate_range = sheet.getCellRangeByPosition(0, template_row_idx, last_col, template_row_idx)\n\tsource_addr = template_range.getRangeAddress()\n\ttemplate_height = sheet.getRows().getByIndex(template_row_idx).Height\n\n\tfor i in range(rows_needed):\n\t\ttarget_row = start_row + i\n\t\tif target_row == template_row_idx:\n\t\t\tcontinue  # \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u884c\u306f\u65e2\u306b\u5b58\u5728\n\t\tdest_addr = uno.createUnoStruct(&quot;com.sun.star.table.CellAddress&quot;)\n\t\tdest_addr.Sheet = source_addr.Sheet\n\t\tdest_addr.Column = 0\n\t\tdest_addr.Row = target_row\n\t\tsheet.copyRange(dest_addr, source_addr)\n\t\tsheet.getRows().getByIndex(target_row).Height = template_height\n\n\ndef write_data(sheet, data, start_row: int = 1, start_col: int = 0):\n\tfor r, row in enumerate(data):\n\t\tfor c, value in enumerate(row):\n\t\t\tcell = sheet.getCellByPosition(start_col + c, start_row + r)\n\t\t\tif isinstance(value, (int, float)):\n\t\t\t\tcell.setValue(value)\n\t\t\telse:\n\t\t\t\tcell.setString(str(value))\n\n\ndef main():\n\tbase_dir = Path(__file__).resolve().parent\n\ttemplate_path = base_dir \/ TEMPLATE_NAME\n\toutput_path = base_dir \/ OUTPUT_NAME\n\n\tsample_data = &#x5B;\n\t\t&#x5B;&quot;001&quot;, &quot;Alice&quot;, &quot;Sales&quot;, 1200.5],\n\t\t&#x5B;&quot;002&quot;, &quot;Bob&quot;, &quot;Marketing&quot;, 980.0],\n\t\t&#x5B;&quot;003&quot;, &quot;Carol&quot;, &quot;Engineering&quot;, 1540.75],\n\t\t&#x5B;&quot;004&quot;, &quot;Dave&quot;, &quot;Support&quot;, 760.25],\n\t]\n\n\tif not template_path.exists():\n\t\traise FileNotFoundError(f&quot;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {template_path}&quot;)\n\n\tdesktop, active_doc = connect_desktop()\n\ttemplate_doc = load_template(desktop, template_path)\n\n\t# \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u30b7\u30fc\u30c8\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3078\u30b3\u30d4\u30fc\n\treport_sheet = import_template_sheet(\n\t\ttarget_doc=active_doc,\n\t\ttemplate_doc=template_doc,\n\t\ttemplate_sheet_name=TEMPLATE_SHEET_NAME,\n\t\treport_sheet_name=REPORT_SHEET_NAME,\n\t)\n\n\t# \u30c7\u30fc\u30bf\u4ef6\u6570\u306b\u5408\u308f\u305b\u3066\u884c\u3092\u7528\u610f\uff08\u30d8\u30c3\u30c0\u30fc1\u884c + \u30c7\u30fc\u30bf\u884c\uff09\n\tlast_col = len(sample_data&#x5B;0]) - 1 if sample_data else 0\n\tensure_rows_with_format(\n\t\tsheet=report_sheet,\n\t\ttemplate_row_idx=1,  # \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u660e\u7d30\u884c\uff082\u884c\u76ee\uff09\n\t\tstart_row=1,\n\t\trows_needed=len(sample_data),\n\t\tlast_col=last_col,\n\t)\n\n\t# \u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u307f\uff081\u884c\u76ee\u306f\u30d8\u30c3\u30c0\u30fc\u60f3\u5b9a\uff09\n\twrite_data(report_sheet, sample_data, start_row=1, start_col=0)\n\n\t# \u5225\u540d\u3067\u4fdd\u5b58\n\tstore_props = (uno.createUnoStruct(&quot;com.sun.star.beans.PropertyValue&quot;),)\n\tstore_props&#x5B;0].Name = &quot;FilterName&quot;\n\tstore_props&#x5B;0].Value = &quot;calc8&quot;\n\tactive_doc.storeToURL(to_file_url(output_path), store_props)\n\tprint(f&quot;\u30ec\u30dd\u30fc\u30c8\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f: {output_path}&quot;)\n\n\t# \u5f8c\u51e6\u7406: \u305d\u306e\u307e\u307e\u958b\u3044\u305f\u307e\u307e\u3067\u3082\u826f\u3044\u304c\u3001\u3053\u3053\u3067\u306f\u30af\u30ed\u30fc\u30ba\n\ttemplate_doc.dispose()\n\n\nif __name__ == &quot;__main__&quot;:\n\ttry:\n\t\tmain()\n\texcept Exception as e:\n\t\tprint(f&quot;error: {e}&quot;)\n\n\n<\/pre><\/div>\n\n\n<p>\u66f8\u304d\u8fbc\u3080\u30c7\u30fc\u30bf\u304c sample_data \u3068\u3057\u3066\u76f4\u66f8\u304d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f SQLite \u3084 CSV \u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u5909\u66f4\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u5225\u9014 Calc \u306e\u30b7\u30fc\u30c8\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3057\u3066\u3082\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u5225\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3059\u308b\u306e\u306f\u3001\u8acb\u6c42\u66f8\u306a\u3069\u306e1\u679a\u5e33\u7968\u3067\u3084\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001\u5f8c\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u52d5\u4f5c\u78ba\u8a8d<\/h2>\n\n\n\n<p>Python \u3067\u5b9f\u884c\u3055\u305b\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u73fe\u5728\u958b\u3044\u3066\u3044\u308b Calc \u306b\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u300cReport\u300d\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Calc \u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u81ea\u52d5\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3082\u3068\u3082\u3068\u3001AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30b3\u30fc\u30c9\u306f\u753b\u9762\u306b\u8868\u793a\u305b\u305a\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3060\u3051\u306e\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u78ba\u8a8d\u306e\u610f\u5473\u3082\u3042\u3063\u3066\u3001Calc \u3092\u8868\u793a\u3055\u305b\u305f\u307e\u307e\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"673\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40-1024x673.png\" alt=\"\" class=\"wp-image-11843\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40-1024x673.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40-300x197.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40-768x505.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-40.png 1105w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u306e\u72b6\u614b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"673\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41-1024x673.png\" alt=\"\" class=\"wp-image-11844\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41-1024x673.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41-300x197.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41-768x505.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-41.png 1105w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u30b7\u30fc\u30c8\u81ea\u4f53\u306f\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5370\u5237\u6642\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br>\u3069\u3046\u3084\u3089\u3001LibreOffice Calc \u3067\u306f\u3001\u30b7\u30fc\u30c8\u3092UI\u3067\u30c9\u30e9\u30c3\u30b0&amp;\u30c9\u30ed\u30c3\u30d7\u3057\u305f\u3068\u304d\u3067\u3082\u30b7\u30fc\u30c8\u5358\u4f4d\u3067\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3001\u3053\u308c\u306f\u4ed5\u69d8\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n\ndef import_template_sheet(target_doc, template_doc, template_sheet_name: str, report_sheet_name: str):\n\ttarget_sheets = target_doc.Sheets\n\tif target_sheets.hasByName(report_sheet_name):\n\t\ttarget_sheets.removeByName(report_sheet_name)\n\n\t# importSheet: \u7b2c3\u5f15\u6570\u306f\u633f\u5165\u4f4d\u7f6e\uff08\u672b\u5c3e\u306b\u8ffd\u52a0\uff09\n\ttarget_sheets.importSheet(template_doc, template_sheet_name, target_sheets.getCount())\n\n\t# \u53d6\u308a\u8fbc\u3093\u3060\u30b7\u30fc\u30c8\u540d\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u76ee\u7684\u306e\u540d\u524d\u306b\u5909\u66f4\n\timported_sheet = target_sheets.getByName(template_sheet_name)\n\timported_sheet.Name = report_sheet_name\n\n\t# \u30da\u30fc\u30b8\u30b9\u30bf\u30a4\u30eb\uff08\u5370\u5237\u306e\u5411\u304d\u3084\u30d8\u30c3\u30c0\u30fc\/\u30d5\u30c3\u30bf\u30fc\u7b49\uff09\u3092\u30d7\u30ed\u30d1\u30c6\u30a3\u5358\u4f4d\u3067\u30b3\u30d4\u30fc\n\ttemplate_styles = template_doc.getStyleFamilies().getByName(&quot;PageStyles&quot;)\n\ttarget_styles = target_doc.getStyleFamilies().getByName(&quot;PageStyles&quot;)\n\tpage_style_name = imported_sheet.PageStyle\n\n\tif page_style_name:\n\t\ttemplate_style = template_styles.getByName(page_style_name)\n\t\tif not target_styles.hasByName(page_style_name):\n\t\t\tnew_style = target_doc.createInstance(&quot;com.sun.star.style.PageStyle&quot;)\n\t\t\ttarget_styles.insertByName(page_style_name, new_style)\n\t\ttarget_style = target_styles.getByName(page_style_name)\n\n\t\t# \u3088\u304f\u4f7f\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5b89\u5168\u306b\u8ee2\u5199\n\t\tfor prop in &#x5B;\n\t\t\t&quot;IsLandscape&quot;,\n\t\t\t&quot;HeaderIsOn&quot;,\n\t\t\t&quot;FooterIsOn&quot;,\n\t\t\t&quot;PrintHeaders&quot;,\n\t\t\t&quot;PrintGrid&quot;,\n\t\t\t&quot;LeftMargin&quot;,\n\t\t\t&quot;RightMargin&quot;,\n\t\t\t&quot;TopMargin&quot;,\n\t\t\t&quot;BottomMargin&quot;,\n\t\t\t&quot;ScaleToPages&quot;,\n\t\t\t&quot;ScaleToPagesX&quot;,\n\t\t\t&quot;ScaleToPagesY&quot;,\n\t\t]:\n\t\t\ttry:\n\t\t\t\tsetattr(target_style, prop, getattr(template_style, prop))\n\t\t\texcept Exception:\n\t\t\t\tpass\n\n\t\timported_sheet.PageStyle = page_style_name\n\treturn imported_sheet\n\n<\/pre><\/div>\n\n\n<p>\u8a66\u3057\u306b\u30b9\u30bf\u30a4\u30eb\u3092\u624b\u52d5\u3067\u30b3\u30d4\u30fc\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5165\u308c\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3010LibreOffice\/Basic\u3011Calc\u3067\u30a2\u30af\u30c6\u30a3\u30d6\u30b7\u30fc\u30c8\u306b\u30da\u30fc\u30b8\u30b9\u30bf\u30a4\u30eb(\u30da\u30fc\u30b8\u8a2d\u5b9a)\u3092\u8ffd\u52a0\u3059\u308b\u30de\u30af\u30ed #LibreOfficeBasic &#8211; Qiita <a href=\"https:\/\/qiita.com\/brunojacopteteth\/items\/23f614afc6b1b929c297\">https:\/\/qiita.com\/brunojacopteteth\/items\/23f614afc6b1b929c297<\/a><\/p>\n\n\n\n<p>Basic \u306e\u30de\u30af\u30ed\u306a\u3089\u3070\u3067\u304d\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u300c\u6a19\u6e96\u300d\u3067\u306f\u306a\u304f\u3066\u3001\u65b0\u3057\u3044\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3066\u8ffd\u52a0\u3059\u308c\u3070\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u66f8\u5f0f\u300d\u2192\u300c\u30da\u30fc\u30b8\u30b9\u30bf\u30a4\u30eb\u300d\u3067\u306f\u3001\u30da\u30fc\u30b8\u30b9\u30bf\u30a4\u30eb\u3092\u7de8\u96c6\u3067\u304d\u306a\u3044\u3063\u307d\u3044\u306e\u3067\u3001\u30de\u30af\u30ed\u5c02\u7528\u306a\u306e\u304b\u3001\u305d\u308c\u3068\u3082\u4f55\u304b\u5225\u306a\u65b9\u6cd5\u304c\u3042\u308b\u306e\u304b\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-42.png\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"457\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-42.png\" alt=\"\" class=\"wp-image-11846\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-42.png 657w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-42-300x209.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/a><\/figure>\n\n\n\n<p>\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u8abf\u3079\u308b\u5fc5\u8981\u3042\u308a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel \u304b\u3089 LibreOffice Calc \u306b\u79fb\u884c\u3059\u308b\u3068\u304d\u306b\u3001\u3044\u308f\u3086\u308b\u5e33\u7968\u306e\u4f5c\u6210\u304c\u3067\u304d\u308b\u304b\u5426\u304b\u79c1\u7684\u306b\u306f\u7d50\u69cb\u306a\u809d\u306b\u306a\u308a\u307e\u3059\u3002\u3061\u307e\u3061\u307e\u3068 Calc \u3067\u7f6b\u7dda\u3092\u5f15\u3044\u3066\u3044\u308b\u306e\u306a\u3089\u3070\u5225\u306a\u306e\u3067\u3059\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3044\u81ea\u52d5\u5316\u3092\u3057\u3066 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/11840\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,109],"tags":[],"class_list":["post-11840","post","type-post","status-publish","format-standard","hentry","category-dev","category-libreoffice"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=11840"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11840\/revisions"}],"predecessor-version":[{"id":11848,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11840\/revisions\/11848"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=11840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=11840"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=11840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}