Python package for merging multiple files
Project description
PyConju
A python package for merging multiple files into a single file. File types supported include: .xlsx, .xls, and .csv.
PDF
support coming soon!
Installation on Windows
1. Create a Project folder
mkdir project-folder
cd project-folder
2. Create a virtual environment
python -m venv venv
3. Activate the virtual environment
./venv/Scripts/activate
4. Install package from PyPi
pip install pyconju
5. Usage / Examples
Example 1
from pyconju.xlsx import Excelx
# Initialize object
merger = Excelx
path = "path/to/files/to/merge"
fileList = ["file1.xlsx","file2.xlsx","file3.xlsx"]
merger.merge_xlsx(fileList,path)
Out of the box you may encounter this error:
ImportError: Pandas requires version '2.0.1' or newer of 'xlrd' (version '1.2.0' currently installed).
Don't panic, Uninstall the current version of xlrd
:
(.venv) $ pip uninstall xlrd
Found existing installation: xlrd 1.2.0
Uninstalling xlrd-1.2.0:
Proceed (Y/n)? y
Successfully uninstalled xlrd-1.2.0
Install xlrd
version 2.0.1
:
(.venv) $ pip install xlrd==2.0.1
Try the merging process again; it will work🤩
Example 2
from pyconju.xls import Excel
# Initialize object
merger = Excel
path = "path/to/files/to/merge"
fileList = ["file1.xls","file2.xls","file3.xls"]
merger.merge_xls(fileList,path)
Example 3
from pyconju.csv import Csv
# Initialize object
merger = Csv
path = "path/to/files/to/merge"
fileList = ["file1.xlsx","file2.xlsx","file3.xlsx"]
merger.merge_csv(fileList,path)
Contributing
You are welcome to contribute to the repo as you like
Authors and acknowledgment
Agee Aondo
Email: ageeaondo45@gmail.com
Website: https://linktr.ee/dyagee
License
See LICENSE file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyconju-0.1.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pyconju-0.1.1.tar.gz
.
File metadata
- Download URL: pyconju-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d51b9c40f3544b16e0b6e9c604fe64c3f276aa29cd899516183343f0f64260 |
|
MD5 | 173a3f7dcb0ba953f58c66802d1d0320 |
|
BLAKE2b-256 | 6b72311d7ad1ebd0948110f6193bf4812e450184c022adec1a1b7700c0dd9791 |
File details
Details for the file pyconju-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyconju-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a14a1ad76951eaf4467e9d56aaac49cb59af5c8f46712a4d9a6ea2792a8728c |
|
MD5 | b46146a8a9093eb51ca028cb04279b96 |
|
BLAKE2b-256 | ff795b54ec4d9d74c048b43b4e4b4a2411a9952b5025af72dec1abab427f369d |