{"id":949690,"date":"2024-12-27T00:15:14","date_gmt":"2024-12-26T16:15:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/949690.html"},"modified":"2024-12-27T00:15:17","modified_gmt":"2024-12-26T16:15:17","slug":"%e5%a6%82%e4%bd%95%e6%96%b0%e5%bb%bapython%e5%8c%85","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/949690.html","title":{"rendered":"\u5982\u4f55\u65b0\u5efapython\u5305"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084559\/d1f76686-ec7f-464a-b1f1-b1f90e88979b.webp\" alt=\"\u5982\u4f55\u65b0\u5efapython\u5305\" \/><\/p>\n<p><p> <strong>\u8981\u65b0\u5efa\u4e00\u4e2aPython\u5305\uff0c\u60a8\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u3001\u521b\u5efa<code>__init__.py<\/code>\u6587\u4ef6\u3001\u7f16\u5199\u6a21\u5757\u4ee3\u7801\u3001\u8bbe\u7f6e<code>setup.py<\/code>\u6587\u4ef6\u3001\u6d4b\u8bd5\u548c\u53d1\u5e03\u5305\u3002<\/strong> \u5728\u8fd9\u4e94\u4e2a\u6b65\u9aa4\u4e2d\uff0c\u6700\u5173\u952e\u7684\u662f\u6b63\u786e\u8bbe\u7f6e<code>setup.py<\/code>\u6587\u4ef6\uff0c\u56e0\u4e3a\u5b83\u5b9a\u4e49\u4e86\u5305\u7684\u4fe1\u606f\u548c\u4f9d\u8d56\u5173\u7cfb\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e2a\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u7ed3\u6784<br \/>\u8981\u5f00\u59cb\u521b\u5efa\u4e00\u4e2aPython\u5305\uff0c\u9996\u5148\u9700\u8981\u4e3a\u9879\u76ee\u5b9a\u4e49\u4e00\u4e2a\u76ee\u5f55\u7ed3\u6784\u3002\u4e00\u4e2a\u5178\u578b\u7684Python\u5305\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    my_package\/<\/p>\n<p>        __init__.py<\/p>\n<p>        module1.py<\/p>\n<p>        module2.py<\/p>\n<p>    setup.py<\/p>\n<p>    README.md<\/p>\n<p>    LICENSE<\/p>\n<p>    tests\/<\/p>\n<p>        test_module1.py<\/p>\n<p>        test_module2.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u7b80\u4ecb<\/strong>  <\/p>\n<\/p>\n<ul>\n<li><code>my_package\/<\/code> \u662f\u4f60\u7684\u5305\u7684\u6839\u76ee\u5f55\uff0c\u5b83\u5305\u542b\u6240\u6709\u76f8\u5173\u7684\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u3002<\/li>\n<li><code>my_package\/<\/code>\uff08\u5b50\u76ee\u5f55\uff09\u662f\u5b9e\u9645\u7684Python\u5305\u76ee\u5f55\uff0c\u5305\u542b<code>__init__.py<\/code>\u6587\u4ef6\u548c\u5176\u4ed6\u6a21\u5757\u6587\u4ef6\u3002<\/li>\n<li><code>setup.py<\/code> \u662f\u5305\u7684\u6784\u5efa\u811a\u672c\uff0c\u7528\u4e8e\u5b9a\u4e49\u5305\u7684\u4fe1\u606f\u548c\u4f9d\u8d56\u5173\u7cfb\u3002<\/li>\n<li><code>README.md<\/code> \u548c <code>LICENSE<\/code> \u6587\u4ef6\u7528\u4e8e\u63cf\u8ff0\u5305\u548c\u8bb8\u53ef\u534f\u8bae\u3002<\/li>\n<li><code>tests\/<\/code> \u76ee\u5f55\u5305\u542b\u6d4b\u8bd5\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u5fc5\u8981\u7684\u76ee\u5f55\u548c\u6587\u4ef6<\/strong><br \/>\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u6216\u6587\u4ef6\u7ba1\u7406\u5668\u6765\u521b\u5efa\u8fd9\u4e9b\u76ee\u5f55\u548c\u6587\u4ef6\u3002\u786e\u4fdd\u5728\u5305\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684<code>__init__.py<\/code>\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u544a\u8bc9Python\u8be5\u76ee\u5f55\u662f\u4e00\u4e2a\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u521b\u5efa<code>__init__.py<\/code>\u6587\u4ef6<br \/><code>__init__.py<\/code>\u6587\u4ef6\u7684\u4f5c\u7528\u662f\u5c06\u4e00\u4e2a\u76ee\u5f55\u8bc6\u522b\u4e3aPython\u5305\u3002\u5373\u4f7f\u6587\u4ef6\u4e3a\u7a7a\uff0c\u5b83\u4e5f\u5fc5\u987b\u5b58\u5728\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5728<code>__init__.py<\/code>\u4e2d\u5b9a\u4e49\u5305\u7684\u516c\u5171\u63a5\u53e3\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u4e49\u516c\u5171\u63a5\u53e3<\/strong><br \/>\u5982\u679c\u4f60\u7684\u5305\u6709\u591a\u4e2a\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u5728<code>__init__.py<\/code>\u4e2d\u5b9a\u4e49\u54ea\u4e9b\u6a21\u5757\u662f\u516c\u5171\u7684\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from .module1 import Class1, function1<\/p>\n<p>from .module2 import Class2, function2<\/p>\n<p>__all__ = [&#39;Class1&#39;, &#39;function1&#39;, &#39;Class2&#39;, &#39;function2&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521d\u59cb\u5316\u4ee3\u7801<\/strong><br \/>\u60a8\u8fd8\u53ef\u4ee5\u5728<code>__init__.py<\/code>\u4e2d\u7f16\u5199\u521d\u59cb\u5316\u4ee3\u7801\uff0c\u4f8b\u5982\u8bbe\u7f6e\u5305\u7684\u7248\u672c\u53f7\u6216\u5bfc\u5165\u5176\u4ed6\u6a21\u5757\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u7f16\u5199\u6a21\u5757\u4ee3\u7801<br \/>\u5728\u5305\u76ee\u5f55\u4e2d\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u591a\u4e2aPython\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u662f\u4e00\u4e2a\u6a21\u5757\u3002\u8fd9\u4e9b\u6a21\u5757\u53ef\u4ee5\u5305\u542b\u7c7b\u3001\u51fd\u6570\u548c\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199\u6a21\u5757<\/strong><br \/>\u5728\u6bcf\u4e2a\u6a21\u5757\u4e2d\uff0c\u7f16\u5199\u4e0e\u5305\u529f\u80fd\u76f8\u5173\u7684\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u5728<code>module1.py<\/code>\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Class1:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        pass<\/p>\n<p>    def method1(self):<\/p>\n<p>        print(&quot;Method1 in Class1&quot;)<\/p>\n<p>def function1():<\/p>\n<p>    print(&quot;Function1 in module1&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6a21\u5757\u4e4b\u95f4\u7684\u5bfc\u5165<\/strong><br \/>\u5982\u679c\u9700\u8981\u5728\u6a21\u5757\u4e4b\u95f4\u5bfc\u5165\u7c7b\u6216\u51fd\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u3002\u4f8b\u5982\uff0c\u4ece<code>module2.py<\/code>\u4e2d\u5bfc\u5165<code>module1<\/code>\u4e2d\u7684<code>Class1<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from .module1 import Class1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u8bbe\u7f6e<code>setup.py<\/code>\u6587\u4ef6<br \/><code>setup.py<\/code>\u6587\u4ef6\u7528\u4e8e\u5b9a\u4e49\u5305\u7684\u5143\u6570\u636e\u548c\u4f9d\u8d56\u5173\u7cfb\u3002\u8981\u521b\u5efa<code>setup.py<\/code>\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>setuptools<\/code>\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5<code>setuptools<\/code><\/strong><br \/>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5<code>setuptools<\/code>\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install setuptools<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199<code>setup.py<\/code><\/strong><br \/>\u521b\u5efa\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\uff0c\u5e76\u7f16\u5199\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from setuptools import setup, find_packages<\/p>\n<p>setup(<\/p>\n<p>    name=&#39;my_package&#39;,<\/p>\n<p>    version=&#39;0.1.0&#39;,<\/p>\n<p>    author=&#39;Your Name&#39;,<\/p>\n<p>    author_em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l=&#39;your.email@example.com&#39;,<\/p>\n<p>    description=&#39;A brief description of the package&#39;,<\/p>\n<p>    long_description=open(&#39;README.md&#39;).read(),<\/p>\n<p>    long_description_content_type=&#39;text\/markdown&#39;,<\/p>\n<p>    url=&#39;https:\/\/github.com\/yourusername\/my_package&#39;,<\/p>\n<p>    packages=find_packages(),<\/p>\n<p>    classifiers=[<\/p>\n<p>        &#39;Programming Language :: Python :: 3&#39;,<\/p>\n<p>        &#39;License :: OSI Approved :: MIT License&#39;,<\/p>\n<p>        &#39;Operating System :: OS Independent&#39;,<\/p>\n<p>    ],<\/p>\n<p>    python_requires=&#39;&gt;=3.6&#39;,<\/p>\n<p>    install_requires=[<\/p>\n<p>        # List your package dependencies here<\/p>\n<p>    ],<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u4f9d\u8d56\u5173\u7cfb<\/strong><br \/>\u5728<code>install_requires<\/code>\u4e2d\u5217\u51fa\u6240\u6709\u5305\u7684\u4f9d\u8d56\u9879\uff0c\u4ee5\u4fbf\u5728\u5b89\u88c5\u65f6\u81ea\u52a8\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6d4b\u8bd5\u548c\u53d1\u5e03\u5305<br \/>\u5728\u5b8c\u6210\u5305\u7684\u521b\u5efa\u4e4b\u540e\uff0c\u60a8\u9700\u8981\u8fdb\u884c\u6d4b\u8bd5\u4ee5\u786e\u4fdd\u5176\u6b63\u5e38\u5de5\u4f5c\uff0c\u7136\u540e\u5c06\u5176\u53d1\u5e03\u5230Python Package Index (PyPI)\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6d4b\u8bd5\u5305<\/strong><br \/>\u5728\u672c\u5730\u73af\u5883\u4e2d\u5b89\u88c5\u548c\u6d4b\u8bd5\u5305\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728\u672c\u5730\u5b89\u88c5\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install .<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u8fd0\u884c\u6d4b\u8bd5\u6587\u4ef6\u4e2d\u7684\u6d4b\u8bd5\u4ee3\u7801\uff0c\u786e\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53d1\u5e03\u5230PyPI<\/strong><br \/>\u9996\u5148\uff0c\u6ce8\u518c\u4e00\u4e2aPyPI\u8d26\u53f7\uff0c\u7136\u540e\u4f7f\u7528<code>twine<\/code>\u5de5\u5177\u5c06\u5305\u4e0a\u4f20\u5230PyPI\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p>\u5b89\u88c5<code>twine<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install twine<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u5206\u53d1\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py sdist bdist_wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u4e0a\u4f20\u5230PyPI\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">twine upload dist\/*<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\uff1a\u521b\u5efa\u4e00\u4e2aPython\u5305\u9700\u8981\u89c4\u5212\u9879\u76ee\u7684\u76ee\u5f55\u7ed3\u6784\u3001\u7f16\u5199\u6a21\u5757\u4ee3\u7801\u3001\u8bbe\u7f6e<code>setup.py<\/code>\u6587\u4ef6\u3001\u6d4b\u8bd5\u5e76\u53d1\u5e03\u5230PyPI\u3002\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u5c31\u80fd\u6210\u529f\u521b\u5efa\u548c\u53d1\u5e03\u4e00\u4e2aPython\u5305\u3002\u786e\u4fdd\u5305\u7684\u4ee3\u7801\u7ecf\u8fc7\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u5e76\u5728\u53d1\u5e03\u4e4b\u524d\u66f4\u65b0<code>setup.py<\/code>\u4e2d\u7684\u7248\u672c\u53f7\u548c\u5176\u4ed6\u4fe1\u606f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u65b0\u5efaPython\u5305\u9700\u8981\u54ea\u4e9b\u57fa\u672c\u6b65\u9aa4\uff1f<\/strong><br \/>\u521b\u5efaPython\u5305\u7684\u57fa\u672c\u6b65\u9aa4\u5305\u62ec\uff1a\u9996\u5148\uff0c\u5728\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\u4f5c\u4e3a\u5305\u7684\u6839\u76ee\u5f55\u3002\u63a5\u7740\uff0c\u5728\u8be5\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>__init__.py<\/code>\u6587\u4ef6\uff0c\u4ee5\u4fbfPython\u5c06\u5176\u8bc6\u522b\u4e3a\u4e00\u4e2a\u5305\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u5728\u5305\u76ee\u5f55\u4e2d\u6dfb\u52a0\u6a21\u5757\u6587\u4ef6\uff08\u5982<code>.py<\/code>\u6587\u4ef6\uff09\uff0c\u8fd9\u4e9b\u6587\u4ef6\u5c06\u5305\u542b\u4f60\u60f3\u8981\u5c01\u88c5\u7684\u529f\u80fd\u548c\u7c7b\u3002\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u4f60\u7684\u5305\u5c31\u53ef\u4ee5\u5728Python\u4e2d\u5bfc\u5165\u4f7f\u7528\u4e86\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u5305\u4e2d\u7ec4\u7ec7\u6a21\u5757\u548c\u5b50\u5305\uff1f<\/strong><br \/>\u5728Python\u5305\u4e2d\u7ec4\u7ec7\u6a21\u5757\u548c\u5b50\u5305\u65f6\uff0c\u53ef\u4ee5\u6309\u7167\u529f\u80fd\u6216\u4e3b\u9898\u8fdb\u884c\u5206\u7c7b\u3002\u4e3a\u6bcf\u4e2a\u529f\u80fd\u521b\u5efa\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5e76\u5728\u6bcf\u4e2a\u5b50\u76ee\u5f55\u4e0b\u653e\u7f6e\u76f8\u5e94\u7684\u6a21\u5757\u6587\u4ef6\uff0c\u540c\u65f6\u786e\u4fdd\u6bcf\u4e2a\u5b50\u76ee\u5f55\u4e2d\u90fd\u5305\u542b\u4e00\u4e2a<code>__init__.py<\/code>\u6587\u4ef6\u3002\u8fd9\u79cd\u7ed3\u6784\u4f7f\u5f97\u5305\u7684\u4f7f\u7528\u66f4\u52a0\u76f4\u89c2\uff0c\u4fbf\u4e8e\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/p>\n<p><strong>\u5982\u4f55\u53d1\u5e03\u548c\u5206\u4eab\u6211\u7684Python\u5305\uff1f<\/strong><br \/>\u53d1\u5e03\u548c\u5206\u4eabPython\u5305\u7684\u6b65\u9aa4\u5305\u62ec\u5728\u4f60\u7684\u5305\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u4f60\u7684\u5305\u3002\u63a5\u4e0b\u6765\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982<code>setuptools<\/code>\u548c<code>twine<\/code>\u5c06\u5305\u4e0a\u4f20\u5230Python Package Index (PyPI)\u3002\u5728\u4e0a\u4f20\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684\u5305\u5df2\u7ecf\u7ecf\u8fc7\u5145\u5206\u6d4b\u8bd5\uff0c\u5e76\u5728<code>setup.py<\/code>\u4e2d\u6dfb\u52a0\u5fc5\u8981\u7684\u5143\u6570\u636e\uff0c\u5982\u5305\u540d\u3001\u7248\u672c\u3001\u4f5c\u8005\u4fe1\u606f\u7b49\uff0c\u4ee5\u4fbf\u5176\u4ed6\u7528\u6237\u80fd\u591f\u627e\u5230\u548c\u4f7f\u7528\u4f60\u7684\u5305\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u65b0\u5efa\u4e00\u4e2aPython\u5305\uff0c\u60a8\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u3001\u521b\u5efa__init__.py\u6587\u4ef6\u3001\u7f16\u5199\u6a21\u5757\u4ee3\u7801\u3001 [&hellip;]","protected":false},"author":3,"featured_media":949697,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/949690"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=949690"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/949690\/revisions"}],"predecessor-version":[{"id":949698,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/949690\/revisions\/949698"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/949697"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=949690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=949690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=949690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}