Giter Club home page Giter Club logo

Comments (4)

scanny avatar scanny commented on July 17, 2024

Why do you want to avoid the xlsxwriter dependency?

from python-pptx.

MartinPacker avatar MartinPacker commented on July 17, 2024

Indeed. lxml is the one (I think) that stops Pythonista on iOS from using python-pptx.

from python-pptx.

BLKSerene avatar BLKSerene commented on July 17, 2024

@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.

scanny avatar scanny commented on July 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.