{"id":9456,"date":"2025-05-13T11:20:23","date_gmt":"2025-05-13T14:20:23","guid":{"rendered":"https:\/\/blog.botcity.dev\/?p=9456"},"modified":"2025-05-13T11:20:23","modified_gmt":"2025-05-13T14:20:23","slug":"documentacao-python","status":"publish","type":"post","link":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/","title":{"rendered":"Documenta\u00e7\u00e3o Python: como criar e manter para seus projetos"},"content":{"rendered":"<p>A documenta\u00e7\u00e3o \u00e9 um dos pilares para a manuten\u00e7\u00e3o e o crescimento de qualquer projeto de software. No ecossistema Python, boas pr\u00e1ticas de documenta\u00e7\u00e3o s\u00e3o importantes para garantir que c\u00f3digos sejam reutiliz\u00e1veis, compreens\u00edveis e bem estruturados.<\/p>\n<p>Neste artigo, vamos entender como criar uma documenta\u00e7\u00e3o Python eficaz para seus projetos, com um olhar especial para <a href=\"https:\/\/blog.botcity.dev\/pt-br\/2024\/11\/01\/rpa-robotic-process-automation\/\">RPA<\/a> e <a href=\"https:\/\/blog.botcity.dev\/pt-br\/2023\/11\/15\/automacao-inteligente\/\">automa\u00e7\u00e3o<\/a> com Python. Siga a leitura!<\/p>\n<h2>Por que a documenta\u00e7\u00e3o Python \u00e9 importante?<\/h2>\n<p>Uma boa documenta\u00e7\u00e3o reduz a curva de aprendizado de um projeto, facilita a colabora\u00e7\u00e3o entre desenvolvedores e evita retrabalho.<\/p>\n<p>No contexto de automa\u00e7\u00e3o rob\u00f3tica de processos (RPA), onde os fluxos s\u00e3o altamente dependentes de <a href=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/04\/24\/scripts-python\/\">scripts<\/a> e integra\u00e7\u00f5es, uma documenta\u00e7\u00e3o clara pode significar a diferen\u00e7a entre um processo eficiente e uma cadeia de erros dif\u00edcil de rastrear.<\/p>\n<p><strong>Saiba mais: <\/strong><a href=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/03\/06\/crescimento-python\/\">Python cresce 9% e refor\u00e7a governan\u00e7a para automa\u00e7\u00f5es <\/a><\/p>\n<h2>Tipos de documenta\u00e7\u00e3o em Python<\/h2>\n<p>Python fornece diferentes formas de documentar o c\u00f3digo, sendo as principais:<\/p>\n<h3>1. Docstrings (Documenta\u00e7\u00e3o embutida)<\/h3>\n<p>Docstrings s\u00e3o strings de documenta\u00e7\u00e3o embutidas diretamente no c\u00f3digo. Elas s\u00e3o colocadas logo ap\u00f3s a defini\u00e7\u00e3o de uma fun\u00e7\u00e3o, m\u00e9todo, classe ou m\u00f3dulo, entre aspas triplas (&#8220;&#8221;&#8221;).<\/p>\n<p>Essa documenta\u00e7\u00e3o pode estar na seguinte estrutura:<\/p>\n<pre>def nome_da_funcao(argumento_1: int, argumento_2: int) -&gt; int:\r\n\r\n\"\"\"<\/pre>\n<p>Aqui definimos o prop\u00f3sito central desta fun\u00e7\u00e3o.<\/p>\n<pre>    \r\n\r\nArgs:\r\n\r\n         argumento_1 (tipo de dado): Qual objetivo do primeiro argumento.\r\n\r\n         argumento_2 (tipo de dado): Qual objetivo do segundo argumento.\r\n\r\n    \r\n\r\nReturns:\r\n\r\n         int: O que \u00e9 retornado da fun\u00e7\u00e3o.\r\n\r\n\r\n\r\n\r\n\"\"\"\r\n\r\n...\r\n\r\n\r\n<\/pre>\n<p>Desta forma podemos imprimir no terminal com a fun\u00e7\u00e3o __doc__<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"9460\" data-permalink=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/documentacao-python-docstrings\/\" data-orig-file=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-docstrings.png\" data-orig-size=\"759,391\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"documentacao-python-docstrings\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-docstrings.png\" class=\"aligncenter wp-image-9460 size-full\" src=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-docstrings.png\" alt=\"\" width=\"759\" height=\"391\" srcset=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-docstrings.png 759w, https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-docstrings-300x155.png 300w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>Ou visualiz\u00e1-las diretamente no editor de c\u00f3digo, no momento de chamar a fun\u00e7\u00e3o criada.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"9463\" data-permalink=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/documentacao-python-funcao\/\" data-orig-file=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-funcao.png\" data-orig-size=\"488,500\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"documentacao-python-funcao\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-funcao.png\" class=\"aligncenter wp-image-9463 size-full\" src=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-funcao.png\" alt=\"\" width=\"488\" height=\"500\" srcset=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-funcao.png 488w, https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python-funcao-293x300.png 293w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p><strong>Saiba mais:<\/strong> Lista com as principais <a href=\"https:\/\/blog.botcity.dev\/pt-br\/2024\/01\/15\/bibliotecas-python\/\">bibliotecas Python<\/a><\/p>\n<h3>2. Coment\u00e1rios no C\u00f3digo<\/h3>\n<p>Coment\u00e1rios s\u00e3o trechos de texto inseridos no c\u00f3digo com o objetivo de explicar ou documentar o que determinada parte faz. Eles n\u00e3o s\u00e3o executados pelo Python e servem apenas para tornar o c\u00f3digo mais claro para quem o escreve ou l\u00ea.<\/p>\n<p>Para escrever um coment\u00e1rio, basta adicionar o s\u00edmbolo <b>#<\/b> antes do texto que deseja comentar.<\/p>\n<p>Tudo que vier ap\u00f3s o # na mesma linha ser\u00e1 <b>ignorado pelo Python<\/b>.<\/p>\n<p>Confira o exemplo de acordo com o site <a href=\"https:\/\/realpython.com\/python-comments-guide\/\">Real Python<\/a>:<\/p>\n<pre># This is a comment\r\n\r\nprint(\"This will run.\")  # This won't run<\/pre>\n<p>No exemplo acima:<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\">A primeira linha \u00e9 apenas um coment\u00e1rio e ser\u00e1 <b>totalmente ignorada<\/b> pelo Python.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">A segunda linha <b>executa o comando<\/b> print, e o coment\u00e1rio ao lado serve apenas como explica\u00e7\u00e3o (n\u00e3o interfere no funcionamento).<\/li>\n<\/ul>\n<h3>3. Documenta\u00e7\u00e3o em Markdown<\/h3>\n<p>Para criar uma documenta\u00e7\u00e3o com maior legibilidade, podemos criar documentos <i>.md<\/i>, com esse recurso utilizamos algumas simbologias para organiza\u00e7\u00e3o do texto.<\/p>\n<p>Vejamos alguns dos s\u00edmbolos mais comuns.<\/p>\n<p>Nos n\u00edveis de texto:<\/p>\n<pre># Titulo principal\r\n\r\n## Subt\u00edtulo 1\r\n\r\n### Subt\u00edtulo 2<\/pre>\n<p>Para lista ordenada:<\/p>\n<ol>\n<li>\n<pre> item um<\/pre>\n<\/li>\n<li>\n<pre> item dois<\/pre>\n<\/li>\n<li>\n<pre> item tr\u00eas<\/pre>\n<\/li>\n<\/ol>\n<p>J\u00e1 para listas n\u00e3o ordenadas:<\/p>\n<pre>- item\r\n\r\n- item\r\n\r\n- item<\/pre>\n<p>Por fim, para adicionar links ao texto:<\/p>\n<pre>[Texto vis\u00edvel clicavel](endere\u00e7o_do_link)<\/pre>\n<p>Assim a leitura da documenta\u00e7\u00e3o fica mais fluida e organizada.<\/p>\n<p>Ao criar documenta\u00e7\u00f5es desse tipo, devemos ter aten\u00e7\u00e3o ao mecanismo de convers\u00e3o de MD para HTML (tipo mais comum disponibilizado na internet) que est\u00e1 sendo utilizado. A maioria das simbologias s\u00e3o aceitas, mas dependendo do sistema utilizado, pode haver algum s\u00edmbolo espec\u00edfico que tenha sintaxe diferente.<\/p>\n<h2>Como criar uma documenta\u00e7\u00e3o para projetos de RPA com Python<\/h2>\n<p>A <b>documenta\u00e7\u00e3o Python<\/b> para automa\u00e7\u00e3o rob\u00f3tica de processos (<b>RPA Python documentation<\/b>) deve conter:<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Instru\u00e7\u00f5es de instala\u00e7\u00e3o: <\/b>como configurar o ambiente e bibliotecas RPA;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Exemplos de uso<\/b>: trechos de c\u00f3digo ilustrando o uso da automa\u00e7\u00e3o;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Erros comuns e solu\u00e7\u00f5es<\/b>: explica\u00e7\u00e3o de problemas comuns e como resolv\u00ea-los;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Guia de APIs<\/b>: documenta\u00e7\u00e3o detalhada das classes e fun\u00e7\u00f5es utilizadas no projeto.<\/li>\n<\/ul>\n<h2>Tudo certo sobre documenta\u00e7\u00e3o Python?<\/h2>\n<p>Criar uma documenta\u00e7\u00e3o eficaz para seus projetos em Python n\u00e3o \u00e9 apenas uma boa pr\u00e1tica, \u00e9 uma necessidade.<\/p>\n<p>No contexto de RPA, uma documenta\u00e7\u00e3o bem feita garante que os processos fluam sem dificuldades. Sendo assim, aproveite a oportunidade para conhecer mais sobre a <a href=\"https:\/\/developers.botcity.dev\/signup?_gl=1*455prk*_gcl_au*MTc2ODc3NDcwMy4xNzQ1ODY3NTY1*_ga*YjUyMjc2YjBmYmVlZjVhZGRiYzRmMTBkNmEzMGNmNDE.*_ga_1SC1PVPMSC*czE3NDcxNDUxNjgkbzE4MiRnMSR0MTc0NzE0NTk2NiRqNjAkbDAkaDEyNzA4MDA0MTU.\">BotCity<\/a>, uma das maiores plataformas de RPA do mercado.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A documenta\u00e7\u00e3o \u00e9 um dos pilares para a manuten\u00e7\u00e3o e o crescimento de qualquer projeto de software. No ecossistema Python, boas pr\u00e1ticas de documenta\u00e7\u00e3o s\u00e3o importantes para garantir que c\u00f3digos sejam reutiliz\u00e1veis, compreens\u00edveis e bem estruturados. Neste artigo, vamos entender como criar uma documenta\u00e7\u00e3o Python eficaz para seus projetos, com um olhar especial para RPA<\/p>\n","protected":false},"author":214060741,"featured_media":9457,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[773019],"tags":[],"class_list":{"0":"post-9456","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-nao-categorizado"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]<\/title>\n<meta name=\"description\" content=\"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]\" \/>\n<meta property=\"og:description\" content=\"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog BotCity - Conte\u00fado para Automa\u00e7\u00e3o e Governan\u00e7a\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-13T14:20:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"BotCity Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"BotCity Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/\"},\"author\":{\"name\":\"BotCity Team\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#\\\/schema\\\/person\\\/2ff53951fc520345260832ecf1fe62f7\"},\"headline\":\"Documenta\u00e7\u00e3o Python: como criar e manter para seus projetos\",\"datePublished\":\"2025-05-13T14:20:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/\"},\"wordCount\":663,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/documentacao-python.jpg\",\"articleSection\":[\"N\u00e3o categorizado\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/\",\"url\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/\",\"name\":\"Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/documentacao-python.jpg\",\"datePublished\":\"2025-05-13T14:20:23+00:00\",\"description\":\"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/documentacao-python.jpg\",\"contentUrl\":\"https:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/documentacao-python.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"Imagem de um laptop com documenta\u00e7\u00e3o python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/2025\\\/05\\\/13\\\/documentacao-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documenta\u00e7\u00e3o Python: como criar e manter para seus projetos\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#website\",\"url\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/\",\"name\":\"Blog BotCity\",\"description\":\"Explore o blog BotCity com conte\u00fados para automatizar e governar em Python. Mantenha-se informado e melhore o desempenho tecnol\u00f3gico, a seguran\u00e7a e o ROI da sua empresa.\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#organization\",\"name\":\"BotCity\",\"url\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/logo_botcity_2024_black.png\",\"contentUrl\":\"http:\\\/\\\/blog.botcity.dev\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/logo_botcity_2024_black.png\",\"width\":1611,\"height\":384,\"caption\":\"BotCity\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/#\\\/schema\\\/person\\\/2ff53951fc520345260832ecf1fe62f7\",\"name\":\"BotCity Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g\",\"caption\":\"BotCity Team\"},\"url\":\"https:\\\/\\\/blog.botcity.dev\\\/pt-br\\\/author\\\/gabrielateixeirab830df3762\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]","description":"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/","og_locale":"pt_BR","og_type":"article","og_title":"Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]","og_description":"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!","og_url":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/","og_site_name":"Blog BotCity - Conte\u00fado para Automa\u00e7\u00e3o e Governan\u00e7a","article_published_time":"2025-05-13T14:20:23+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","type":"image\/jpeg"}],"author":"BotCity Team","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"BotCity Team","Est. tempo de leitura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#article","isPartOf":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/"},"author":{"name":"BotCity Team","@id":"https:\/\/blog.botcity.dev\/pt-br\/#\/schema\/person\/2ff53951fc520345260832ecf1fe62f7"},"headline":"Documenta\u00e7\u00e3o Python: como criar e manter para seus projetos","datePublished":"2025-05-13T14:20:23+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/"},"wordCount":663,"commentCount":0,"publisher":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/#organization"},"image":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","articleSection":["N\u00e3o categorizado"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/","url":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/","name":"Como criar documenta\u00e7\u00e3o Python e tipos [guia completo]","isPartOf":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#primaryimage"},"image":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","datePublished":"2025-05-13T14:20:23+00:00","description":"Aprenda como fazer uma documenta\u00e7\u00e3o Python eficaz e garantir fluidez nos processos RPA. Confira no artigo!","breadcrumb":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#primaryimage","url":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","contentUrl":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","width":1920,"height":1280,"caption":"Imagem de um laptop com documenta\u00e7\u00e3o python"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.botcity.dev\/pt-br\/2025\/05\/13\/documentacao-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.botcity.dev\/pt-br\/"},{"@type":"ListItem","position":2,"name":"Documenta\u00e7\u00e3o Python: como criar e manter para seus projetos"}]},{"@type":"WebSite","@id":"https:\/\/blog.botcity.dev\/pt-br\/#website","url":"https:\/\/blog.botcity.dev\/pt-br\/","name":"Blog BotCity","description":"Explore o blog BotCity com conte\u00fados para automatizar e governar em Python. Mantenha-se informado e melhore o desempenho tecnol\u00f3gico, a seguran\u00e7a e o ROI da sua empresa.","publisher":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.botcity.dev\/pt-br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/blog.botcity.dev\/pt-br\/#organization","name":"BotCity","url":"https:\/\/blog.botcity.dev\/pt-br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/blog.botcity.dev\/pt-br\/#\/schema\/logo\/image\/","url":"http:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/09\/logo_botcity_2024_black.png","contentUrl":"http:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/09\/logo_botcity_2024_black.png","width":1611,"height":384,"caption":"BotCity"},"image":{"@id":"https:\/\/blog.botcity.dev\/pt-br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blog.botcity.dev\/pt-br\/#\/schema\/person\/2ff53951fc520345260832ecf1fe62f7","name":"BotCity Team","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/996e498d13af3bc09191a6237cc1e19c433d6bf786a5a34fb7210b2f467bd15f?s=96&d=identicon&r=g","caption":"BotCity Team"},"url":"https:\/\/blog.botcity.dev\/pt-br\/author\/gabrielateixeirab830df3762\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/blog.botcity.dev\/wp-content\/uploads\/2025\/05\/documentacao-python.jpg","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pdx8c3-2sw","_links":{"self":[{"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/posts\/9456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/users\/214060741"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/comments?post=9456"}],"version-history":[{"count":6,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/posts\/9456\/revisions"}],"predecessor-version":[{"id":9468,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/posts\/9456\/revisions\/9468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/media\/9457"}],"wp:attachment":[{"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/media?parent=9456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/categories?post=9456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.botcity.dev\/pt-br\/wp-json\/wp\/v2\/tags?post=9456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}