Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pure Python Microsoft Office Word support
Search
Mike MacCana
April 19, 2012
Technology
220
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pure Python Microsoft Office Word support
Lighting talk from PyCon 2010 on Python DocX.
Mike MacCana
April 19, 2012
Transcript
9 slides
Python Docx A bullshit-free way to create, edit, and read
MS Word documents @mikemaccana github.com/mikemaccana/python-docx Friday, 19 February 2010
Previous Approaches Approach Using Shitty Old Technology Calling Java Apache
POI Java Automating OpenOffice PyUNO OpenOffice Automating MS Office COM COM MS OpenXML SDK IronPython Windows Friday, 19 February 2010
Making Documents Paragraphs Bullets/Numbering Headings Tables Images Section and Page
Breaks Stuff for screen readers Document Properties Friday, 19 February 2010
Reading Documents Extract plain text of document Originally I intended
this for Python programmers Has since found popularity with ANGRY UNIX GUYS. And document properties too. Friday, 19 February 2010
Manipulating Existing Docs Add and delete items anywhere within the
document Search + replace Friday, 19 February 2010
Serving Suggestions Python LinkedIn API - auto-build a Word doc
whenever some old recruiting dude asks for one. Lamson - transparently fuck with people’s email attachments. NLTK - pass content to NLTK for logical inference, identifying people / org relationships, etc. Friday, 19 February 2010
Future I’m going to fucking have to do styles at
some point. Fuckity fuck fuck fuck. Friday, 19 February 2010
Join us! <1000 lines - lxml does all the heavy
lifting nose (currently 100% coverage) Example code for everything MIT licensed Friday, 19 February 2010
github.com/mikemaccana/python-docx @mikemaccana Thankyou Friday, 19 February 2010
More Decks by Mike MacCana
See All by Mike MacCana
Reveal, Feb 1 2024
mikemaccana
0
110
Practical WebCrypto
mikemaccana
0
150
Deploying your JS app in 2018
mikemaccana
2
160
Practical browser npm
mikemaccana
1
230
Happiness Through Simplicity
mikemaccana
0
140
Browse like Xerces the God King of the Persians
mikemaccana
0
190
Welcome our new ES5 Overlords
mikemaccana
0
130
Fix Your Life Using Chrome Extensions
mikemaccana
1
220
Overcoming Web App Limitation with Chrome Extensions
mikemaccana
1
160
Other Decks in Technology
See All in Technology
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
320
データ界隈LT祭の運営のふりかえり
yoshimura_datam
0
100
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
110
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
370
ポケモンバトルのAIエージェント
koji_kawamura
0
310
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
290
FPGAでアクティブセンシングがやりたくてカメラモジュールを自作した話
ryuz88
0
130
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
530
猫でもわかるKiro初心者編(2026年11月版)
kentapapa
1
120
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
180
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
0
610
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
130
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Done Done
chrislema
187
17k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
Product Roadmaps are Hard
iamctodd
55
13k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4.1k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
620
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
530
Marketing to machines
jonoalderson
1
6k