Python Library for Excel without installation - python

I want to create a Python script to do some simple Excel work, i.e reading data from Excel files.
I do not wish to convert the files to .csv files.
I am restricted from installing any libraries for Python on my machine.
Is there a way to get hold of an excel library for python which I do not have to install onto my machine?

Related

How can I use the Python language to put add-ins in Excel without using Pyxll or xlwings or VBA?

I am trying to figure out how to use Python-based functions in excel. I came across Pyxll which can make Python add-ins instead of using VBA. But Pyxll is not free after their 30-day trial.
I also came across xlwings which worked fine and served the purpose of adding udfs in excel, the problem is--- it is not very user-friendly. I have to put the excel file in the same folder as the python file plus, they should also have the same names with different extensions. Or I may use the xlwings quickstart command to do that.
This means I have to create such folders everytime I wish to include my python based functions in a new excel project file and copy paste the functions from the previous python files to the newly created quickstart files.
I was wondering if there is any way to use only one python file to import user-defined functions using xlwings or perhaps a different library/module which is free to use and does that?
(PS: According to the xlwings documentation, we can point to a udf module under the xlwings tab in excel but even after many attempts I am not able to make it work )

How to edit Excel(.xlsx) documents using python - but without using any non-standard modules?

Is there a way to edit an Excel document in python without using any modules that are made to work with Excel documents? I'm not looking for external libraries, I'd like to learn about how to do it on my own.
My goal is to make a program that will scan my progress in my online classes, and update the .xlsx accordingly.
If by "modules that are[] automatically included in python" you mean those that are included in a major distribution of Python, several modules that work with Excel are included in the Anaconda distribution. Many of these, such as xlwings and xlsxwriter, are automatically installed with Anaconda, while some others require a simple conda install.
A list of Anaconda modules more specific to Excel is here.

Xlwings UDFs while using frozen Python file

I am trying to integrate xlwings with an excel spreadsheet that we use on our network drive. However, I do not want to install Python, Xlwings, or any other modules on any computer except for the developers. In addition, I would like to use UDFs only, we do not have an interest in using Macros. I read here (https://www.reddit.com/r/Python/comments/22i4a1/xlwings_the_easiest_way_to_deploy_your_python/) that there is a way to freeze your python script which would prevent the need for all users to have Python installed. As a result, I used cx_Freeze to freeze my script. Assume I have these files in the "I" drive and that there are no other files: test.xlsm, test.py, test.exe, Dir (folder containing dll and pyd files generated by cx_Freeze. I am using Python 2.7 and xlwings 0.7.2. Any help would be greatly appreciated!

Python 3.4 script challenge

I am a non programmer with experience only in VBA. I took up the challenge to automate some daily tasks in my company, and chose Python 3.4 to do it (not sure if was the best option).
The scripts I need to do are rather simple. They just need to read values from .txt file, perform calculations, and write values in a .xls template.
I read some topics in stackoverflow and got concerned about these two topics:
Is there a feasible way to write data in excel (COM automation, Python 3 packages)?
Will I be able to compile Python 3.4 into an .exe file? Users can't install things in their Desktops.
I am able to do a script like this in VBA, but I need an executable file that can be used by everybody.
You can use the following tools:
XlsWriter https://xlsxwriter.readthedocs.org/
Or Use Py2Exe to convert to a python script to executable http://www.py2exe.org/
Or if your looking to use a '.csv' file, there are built in libraries for that, which are pretty straightforward

How to extract multiple files from 7zip compressed file using pylzma

i have a 7zip compressed file with .bup extension, after extracting this file using 7zip utility it creates a folder which contains two files....i would like to do the same thing with PyLZMA, can all the files be extracted into a folder using PyLZMA (decompression)?, could you let me know how can that be done?, i new to this so any detailed help will be really helpful.
The Python 3.3 module has lzma support built in and comes with examples

Categories

Resources