Group of utilities for Sabia
Project description
Sabia Utils
This is a collection of utilities for Sabia.
Concat Module
This module is used to concatenate files.
Concatenate all files from a path
- Returns a concatenated dataframe from all files in a path.
- Can save the concatenated dataframe to a file.
from sabia_utils import concat
concat.concatenate_all_from_path(
path='path\\to\\files',
output_file='output\\file\\path', # optional
fine_name='file_name' # optional
)
Concatenate some files from a path
- Returns a concatenated dataframe from some files in a path.
- Can save the concatenated dataframe to a file.
from sabia_utils import concat
concat.concatenate_files(
path='path\\to\\files',
files=['file1', 'file2'],
output_file='output\\file\\path', # optional
fine_name='file_name' # optional
)
Copy files from a path to another
- Verify if the files exist in the path before copy.
from sabia_utils import group
group.copy_new_files(
PATH_IN='path\\to\\files1',
PATH_OUT='path\\to\\files2'
)
Group Module
This module is used to group files.
Process files in both paths
- Verify if the files exist in the path before process.
from sabia_utils import group
group.process_existent_files(
PATH_IN='path\\to\\files1',
PATH_OUT='path\\to\\files2'
)
Process all files
- apply the function of copy and process files between the paths.
from sabia_utils import group
group.process_all_files(
PATH_IN='path\\to\\files1',
PATH_OUT='path\\to\\files2'
)
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
sabia-utils-0.1.2.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sabia-utils-0.1.2.tar.gz.
File metadata
- Download URL: sabia-utils-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
191415776a50908f59454c2b564e0f32451a50985b7207d28e6792e8d59b6963
|
|
| MD5 |
e6e1dcd80efcfe118ce63f1490e74d38
|
|
| BLAKE2b-256 |
01af317e10783e4f087d56c083691ebdd9e35aca24ca5313a194d41852b1e79c
|
File details
Details for the file sabia_utils-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sabia_utils-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb23cb3ac50568c098f881470c17ffe9f782e223e66f3cf8a5c8ec069ec5fa2f
|
|
| MD5 |
5b0564b348d3d2501ed902b2b3aebc8f
|
|
| BLAKE2b-256 |
f22839c4de81662de1beec360f8fe2ab69b291ca5cb0617c0c56cbf98da5136d
|