{"id":13492,"date":"2025-06-02T17:54:17","date_gmt":"2025-06-02T15:54:17","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=13492"},"modified":"2025-06-02T17:54:22","modified_gmt":"2025-06-02T15:54:22","slug":"convertire-documenti-con-python-ma-non-solo","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2025\/06\/02\/convertire-documenti-con-python-ma-non-solo\/","title":{"rendered":"Convertire documenti (con Python ma non solo)"},"content":{"rendered":"\n<p>Molto apprezzabile e sintetico <a href=\"https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1\">Convertire documenti con Python di Magnetismo.<\/a><\/p>\n\n\n\n<!--more-->\n\n\n\n<!--nextpage-->\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h3 class=\"wp-block-heading\">Convertire documenti con Python<\/h3>\n\n\n\n<p>in data <a href=\"https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html\"><time datetime=\"2025-05-31T03:32:00-07:00\">maggio 31, 2025<\/time><\/a> <a href=\"https:\/\/magnetimo.blogspot.com\/search\/label\/FOSS\">FOSS<\/a> <a href=\"https:\/\/magnetimo.blogspot.com\/search\/label\/Informatica\">Informatica<\/a> <a href=\"https:\/\/magnetimo.blogspot.com\/search\/label\/Python\">Python<\/a><\/p>\n\n\n\n<p>Convertire documenti con Python <a><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Convertire documenti con Python<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"versione-italiana\">Versione italiana<\/h3>\n\n\n\n<p>Di seguito vedremo come convertire documenti in modo facile e veloce con Pyhton!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"libreofficeuno-unoconv---la-soluzione-pi\u00f9-completa\">1. <strong>LibreOffice\/UNO (unoconv) &#8211; La soluzione pi\u00f9 completa<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-1&quot;&gt;&lt;\/a&gt;# Installazione su Ubuntu\/Debian\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-2&quot;&gt;&lt;\/a&gt;sudo apt update\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-3&quot;&gt;&lt;\/a&gt;sudo apt install libreoffice python3-uno\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-4&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-5&quot;&gt;&lt;\/a&gt;# Installazione su macOS (con Homebrew)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-6&quot;&gt;&lt;\/a&gt;brew install libreoffice\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-7&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-8&quot;&gt;&lt;\/a&gt;# Installazione su Windows:\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-9&quot;&gt;&lt;\/a&gt;# Scarica LibreOffice da https:\/\/www.libreoffice.org\/download\/download\/\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-10&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-11&quot;&gt;&lt;\/a&gt;# Installa il wrapper Python\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb1-12&quot;&gt;&lt;\/a&gt;pip install unoconv<\/code><\/pre>\n\n\n\n<p><strong>Esempio d\u2019uso<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-1&quot;&gt;&lt;\/a&gt;import subprocess\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-2&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-3&quot;&gt;&lt;\/a&gt;# Converti DOCX a PDF\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-4&quot;&gt;&lt;\/a&gt;subprocess.run(&#091;&#039;unoconv&#039;, &#039;-f&#039;, &#039;pdf&#039;, &#039;documento.docx&#039;])\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-5&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-6&quot;&gt;&lt;\/a&gt;# Converti ODT a DOCX\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb2-7&quot;&gt;&lt;\/a&gt;subprocess.run(&#091;&#039;unoconv&#039;, &#039;-f&#039;, &#039;docx&#039;, &#039;documento.odt&#039;])<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pandoc---per-documenti-semplici-markdown-latex-ecc.\">2. <strong>Pandoc &#8211; Per documenti semplici (Markdown, LaTeX, ecc.)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-1&quot;&gt;&lt;\/a&gt;# Installazione\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-2&quot;&gt;&lt;\/a&gt;sudo apt install pandoc  # Linux\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-3&quot;&gt;&lt;\/a&gt;brew install pandoc     # macOS\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-4&quot;&gt;&lt;\/a&gt;# Windows: https:\/\/pandoc.org\/installing.html\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-5&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb3-6&quot;&gt;&lt;\/a&gt;pip install pypandoc<\/code><\/pre>\n\n\n\n<p><strong>Esempio d\u2019uso<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-1&quot;&gt;&lt;\/a&gt;import pypandoc\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-2&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-3&quot;&gt;&lt;\/a&gt;# Converti Markdown a DOCX\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-4&quot;&gt;&lt;\/a&gt;pypandoc.convert_file(&#039;input.md&#039;, &#039;docx&#039;, outputfile=&#039;output.docx&#039;)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-5&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-6&quot;&gt;&lt;\/a&gt;# Converti LaTeX a PDF\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb4-7&quot;&gt;&lt;\/a&gt;pypandoc.convert_file(&#039;input.tex&#039;, &#039;pdf&#039;, outputfile=&#039;output.pdf&#039;)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pure-python-libraries-zero-dipendenze-esterne\">3. <strong>Pure Python Libraries (Zero dipendenze esterne)<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"a-per-docxodt\">a) <strong>Per DOCX\/ODT<\/strong>:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb5-1&quot;&gt;&lt;\/a&gt;pip install python-docx odfpy<\/code><\/pre>\n\n\n\n<p><strong>Esempio conversione ODT \u2192 DOCX<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-1&quot;&gt;&lt;\/a&gt;from odfpy import OpenDocument, load\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-2&quot;&gt;&lt;\/a&gt;from docx import Document\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-3&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-4&quot;&gt;&lt;\/a&gt;def odt_to_docx(input_path, output_path):\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-5&quot;&gt;&lt;\/a&gt;    doc = Document()\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-6&quot;&gt;&lt;\/a&gt;    odt = load(input_path)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-7&quot;&gt;&lt;\/a&gt;    \n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-8&quot;&gt;&lt;\/a&gt;    for para in odt.getElementsByType(&#039;paragraph&#039;):\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-9&quot;&gt;&lt;\/a&gt;        doc.add_paragraph(para.getAttribute(&#039;text&#039;))\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-10&quot;&gt;&lt;\/a&gt;    \n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-11&quot;&gt;&lt;\/a&gt;    doc.save(output_path)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-12&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb6-13&quot;&gt;&lt;\/a&gt;odt_to_docx(&#039;input.odt&#039;, &#039;output.docx&#039;)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"b-per-pdf\">b) <strong>Per PDF<\/strong>:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb7-1&quot;&gt;&lt;\/a&gt;pip install pdf2docx <\/code><\/pre>\n\n\n\n<p><strong>Esempio PDF \u2192 DOCX<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb8-1&quot;&gt;&lt;\/a&gt;from pdf2docx import Converter\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb8-2&quot;&gt;&lt;\/a&gt;\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb8-3&quot;&gt;&lt;\/a&gt;cv = Converter(&#039;input.pdf&#039;)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb8-4&quot;&gt;&lt;\/a&gt;cv.convert(&#039;output.docx&#039;, start=0, end=None)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb8-5&quot;&gt;&lt;\/a&gt;cv.close()<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"soluzioni-alternative-specifiche\">4. <strong>Soluzioni alternative specifiche<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"a-per-fogli-di-calcolo-csvxlsxods\">a) <strong>Per fogli di calcolo (CSV\/XLSX\/ODS)<\/strong>:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb9-1&quot;&gt;&lt;\/a&gt;pip install pandas pyexcel pyexcel-xlsx pyexcel-ods<\/code><\/pre>\n\n\n\n<p><strong>Esempio CSV \u2192 ODS<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb10-1&quot;&gt;&lt;\/a&gt;import pandas as pd\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb10-2&quot;&gt;&lt;\/a&gt;df = pd.read_csv(&#039;input.csv&#039;)\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb10-3&quot;&gt;&lt;\/a&gt;df.to_excel(&#039;output.ods&#039;, engine=&#039;odf&#039;)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"b-per-presentazioni-ppt-pdf\">b) <strong>Per presentazioni (PPT \u2192 PDF)<\/strong>:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb11-1&quot;&gt;&lt;\/a&gt;pip install python-pptx<\/code><\/pre>\n\n\n\n<p><strong>Esempio PPTX \u2192 PDF<\/strong> (richiede <code class=\"\" data-line=\"\">unoconv<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb12-1&quot;&gt;&lt;\/a&gt;import subprocess\n&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb12-2&quot;&gt;&lt;\/a&gt;subprocess.run(&#091;&#039;unoconv&#039;, &#039;-f&#039;, &#039;pdf&#039;, &#039;presentazione.pptx&#039;])<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"docker-per-ambienti-isolati\">5. <strong>Docker per ambienti isolati<\/strong><\/h3>\n\n\n\n<p>Se vuoi evitare installazioni di sistema:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;a href=&quot;https:\/\/magnetimo.blogspot.com\/2025\/05\/convertire-documenti-con-python.html?m=1#cb13-1&quot;&gt;&lt;\/a&gt;docker run -v $(pwd):\/convert -it docker.io\/libreoffice\/headless unoconv -f pdf \/convert\/documento.docx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"tabella-riassuntiva-delle-alternative\">Tabella riassuntiva delle alternative:<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Formato<\/th><th>Libreria Consigliata<\/th><th>Comando Installazione<\/th><\/tr><\/thead><tbody><tr><td>DOCX \u2194\ufe0e ODT<\/td><td><code class=\"\" data-line=\"\">odfpy<\/code> + <code class=\"\" data-line=\"\">python-docx<\/code><\/td><td><code class=\"\" data-line=\"\">pip install odfpy python-docx<\/code><\/td><\/tr><tr><td>PDF \u2194\ufe0e DOCX<\/td><td><code class=\"\" data-line=\"\">pdf2docx<\/code><\/td><td><code class=\"\" data-line=\"\">pip install pdf2docx<\/code><\/td><\/tr><tr><td>XLSX \u2194\ufe0e ODS<\/td><td><code class=\"\" data-line=\"\">pandas<\/code><\/td><td><code class=\"\" data-line=\"\">pip install pandas pyexcel-ods<\/code><\/td><\/tr><tr><td>Presentazioni<\/td><td><code class=\"\" data-line=\"\">unoconv<\/code> (via Docker)<\/td><td><code class=\"\" data-line=\"\">docker pull libreoffice\/headless<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Consigli finali<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Per massima compatibilit\u00e0: usa <strong>LibreOffice\/UNO<\/strong> (anche via Docker)<\/li>\n\n\n\n<li>Per documenti semplici: <strong>Pandoc<\/strong> o soluzioni pure Python<\/li>\n\n\n\n<li>Per ambienti senza GUI: prediligi <code class=\"\" data-line=\"\">pdf2docx<\/code>, <code class=\"\" data-line=\"\">python-docx<\/code>, <code class=\"\" data-line=\"\">odfpy<\/code><\/li>\n\n\n\n<li>Evita <code class=\"\" data-line=\"\">pywin32<\/code> o librerie Windows-specifiche se vuoi cross-platform<\/li>\n<\/ol>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Molto apprezzabile e sintetico Convertire documenti con Python di Magnetismo.<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2025\/06\/02\/convertire-documenti-con-python-ma-non-solo\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_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,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[278],"tags":[],"class_list":["post-13492","post","type-post","status-publish","format-standard","hentry","category-tricks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-3vC","jetpack-related-posts":[{"id":14807,"url":"https:\/\/monodes.com\/predaelli\/2026\/01\/23\/the-xonsh-shell-python-powered-shell\/","url_meta":{"origin":13492,"position":0},"title":"The Xonsh Shell \u2014 Python-powered shell","author":"Paolo Redaelli","date":"2026-01-23","format":false,"excerpt":"The Xonsh Shell \u2014 Python-powered shell. Python shell. Python in the shell. Shell in Python. Shell and Python. Python and shell.Xonsh (sounds like \"consh\") is a modern, full-featured and cross-platform python shell. The language is a superset of Python 3.6+ with additional shell primitives that you are used to from\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/xonsh.webp?fit=257%2C399&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3299,"url":"https:\/\/monodes.com\/predaelli\/2017\/08\/25\/micropython-python-for-microcontrollers\/","url_meta":{"origin":13492,"position":1},"title":"MicroPython &#8211; Python for microcontrollers","author":"Paolo Redaelli","date":"2017-08-25","format":false,"excerpt":"MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. Sorgente: MicroPython - Python for microcontrollers Well, pretty neat, as they deliver it in 256k of\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12976,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/15\/codon-high-performance-python-compiler\/","url_meta":{"origin":13492,"position":2},"title":"Codon: high-performance Python compiler","author":"Paolo Redaelli","date":"2025-03-15","format":false,"excerpt":"Codon: high-performance Python compiler Codon is a high-performance Python implementation that compiles to native machine code without any runtime overhead. Typical speedups over vanilla Python are on the order of 10-100x or more, on a single thread. Codon's performance is typically on par with (and sometimes better than) that of\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11883,"url":"https:\/\/monodes.com\/predaelli\/2024\/08\/28\/python-shared-memory-in-multiprocessing\/","url_meta":{"origin":13492,"position":3},"title":"Python Shared Memory in Multiprocessing","author":"Paolo Redaelli","date":"2024-08-28","format":false,"excerpt":"Python Shared Memory in Multiprocessing np_array's size=220.0MB With SharedMemory: ... Current memory usage 0.11283MB; Peak: 0.156706MB Time elapsed: 0.99s No SharedMemory: ... Current memory usage 0.026587MB; Peak: 467.558995MB Time elapsed: 5.48s I think I shall go for shared memory! My Amiga formation years requires it! Python Shared Memory in Multiprocessing\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8194,"url":"https:\/\/monodes.com\/predaelli\/2021\/02\/24\/python-packages-and-one-liners\/","url_meta":{"origin":13492,"position":4},"title":"Python Packages and one-liners","author":"Paolo Redaelli","date":"2021-02-24","format":false,"excerpt":"That Makes You Life Easier 20 Python Packages That You Must Try | by Abhay Parashar | Level Up Coding 25 Useful Python One-Liners That You Should know","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2129,"url":"https:\/\/monodes.com\/predaelli\/2017\/02\/01\/thonny-python-ide-for-beginners\/","url_meta":{"origin":13492,"position":5},"title":"Thonny, Python IDE for beginners","author":"Paolo Redaelli","date":"2017-02-01","format":"link","excerpt":"\u00a0Thonny, Python IDE for beginners","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/13492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=13492"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/13492\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=13492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=13492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=13492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}