Comments (4)
Why do you want to avoid the xlsxwriter
dependency?
from python-pptx.
Indeed. lxml is the one (I think) that stops Pythonista on iOS from using python-pptx.
from python-pptx.
@scanny Just trying to minimize the dependencies. There are a large number of dependencies to handle when packaging the program, and I only need the reading functionalities for pptx files (xlsx writing is also needed in my project, but I use openpyxl
instead of xlsxwriter
).
from python-pptx.
@MartinPacker python-docx
just won't run and cannot be made to run without lxml
. Maybe someone could rewrite it to use the built-in XML support but it would be much slower and would really be a different project. It would involve switching out the entire oxml
layer.
Regarding XlsxWriter
@BLKSerene I'm not sure what kind of package you're making, maybe you can say more. It doesn't look to me like XlsxWriter
itself entails any dependencies and it seems modest in size itself to me.
Have you tried pip install --no-deps python-pptx
? That would allow you to install python-pptx
by itself and install only the dependencies you need separately. This can also be specified in a requirements.txt
file.
Short answer though is that python-pptx
is not going to add extras. That would overly complicate what is currently a simple install process. Charts are a 75% use case for PPTX and the savings would benefit only a very narrow set of users as far as I can tell.
I'm going to close this issue since it's not actionable, but I'm happy to continue the conversation here if there's more to say about it.
from python-pptx.
Related Issues (20)
- Cant put the hyperlink on the chart
- Save Slide as Image HOT 2
- Local PDF to PowerPoint Converter with LLM Summarization
- Is it possible to add support for "/select,file:///..." URIs? HOT 3
- Convert PPTX slide to Image HOT 1
- How to embed an .h3d (Hyperworks output file) file? HOT 3
- Line char None values
- How to set shink in sharp when text box overflow in Python pptx HOT 1
- Fit shape to text?
- Hide a shape HOT 2
- ValueError: value must be in range 256 to 2147483647 inclusive, got 2147483648 - when adding slide HOT 13
- MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE attribute does not take effect HOT 4
- Removing video results in corrupted file. HOT 6
- Create multiple slides with concurrent.futures HOT 1
- run function on click HOT 1
- How to access and create media objects HOT 7
- copying slide-masters HOT 1
- There is a bug for load image under the package "langchain.document_loaders import UnstructuredImageLoader" HOT 1
- Add OLE shapes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-pptx.