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.2.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pyconju-0.1.2.tar.gz
.
File metadata
- Download URL: pyconju-0.1.2.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 | 45ef3662469414a19ec57a26cc8de298d035b93ef3c54a920c16c3b997a17592 |
|
MD5 | 97613a550395efd44c8640fa46a0c79c |
|
BLAKE2b-256 | 9063809021536414e91395e8aee8604e9a13c8ef03299e407692b30d578a816e |
File details
Details for the file pyconju-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pyconju-0.1.2-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 | 2251fd137568f4de133fce305d77ff3c498fc532cfff0bd33a08a3454a8949b9 |
|
MD5 | b77113fcf9499de27a1286e14bd280c3 |
|
BLAKE2b-256 | e0b0900e2e9d83d83a2cb5ba007516f3c5a87e2d9f8c3b3dd96c4d9e4fd4c8d4 |