Files, Folders, Images and PDFs
This Python package contains 4 different classes to work with files, folder, images and pdfs in your python developements for more information about how to develop your RPA projects with python check https://automatehub.es/
1. files.py
Class to handle files. Arguments:
- file_path (str): path to the file
Attributes:
- file_path (str): path to the file
- exists (bool): whether the file exists
- file_name (str): name of the file
- byte_size (int): size of the file in bytes
- creation_datetime (datetime): datetime of the file's creation
- modification_datetime (datetime): datetime of the file's last modification
Methods:
- rename(new_file_name): renames the file
- move(new_location): moves the file to a new location
- remove(): removes the file
- copy(new_location): copies the file to a new location
- wait_for_file_to_exist(timeout=10): waits for the file to exist
2. folders.py
Class to handle folders. If folder doesn't exist it automatically creates a new one. Arguments:
- path (str) -- path to folder to be instanced.
Attributes:
- path (str) -- path to folder to be instanced.
- name (str) -- name of folder
Methods:
- rename(new_folder_name) : Rename folder
- move(new_location): move folder to new location
- remove(allow_root=False, delete_read_only=True) : remove folder and all files and folders inside
- empty(allow_root=False): delete all files and folders in folder, receives allow_root as parameter
- copy(new_location=None) : Copy folder to new location
- subfolder_list(): list of subfolders
- file_list(): list of files in folder
- download_file(url, name=None): downloads file from url
3. images.py
Image Class, heritates from File class Attributes:
- size {tuple}: size of image
- format {str}: format of image
Methods:
- rotate(): rotate image
- resize(): resize image
- crop(): crop image
- mirrorH(): mirror image horizontally
- mirrorV(): mirror image vertically
3. pdfs.py
PDF Class Heritates from File Class Arguments:
- file_path (str): Path of the file
Attributes:
- file_path (str): Path of the file
- pages (int): number of pages in the file
- info (str): info of the file
Methods:
- read_pages(page_num, encoding=None): Returns a string with the text in the page
- append(pdf_document2,merge_path): Appends a pdf document to the current document
- split(): split pdf into several pdfs.
Metadata
Release files for ibott-files 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ibott-files-1.0.8.tar.gz | 15.3 kB | Without provenance | Details for ibott-files-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ibott_files-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for ibott_files-1.0.8-py3-none-any.whl |
Total release size: 30.5 kB
Release files / ibott-files-1.0.8.tar.gz
| Download URL | ibott-files-1.0.8.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b31482c733211215cb1d581045b1a542188a250f351f74025ea9e9dd8286a91
|
|
BLAKE2b-256 checksum How to use checksums |
057c19807bcdefd97805bf79ac8c14e1fe3ff44172a0dba0620d19505c4d7f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / ibott_files-1.0.8-py3-none-any.whl
| Download URL | ibott_files-1.0.8-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0d044188e45ea8aab5254f2ff36f84930d65353a6fdb0b37bbd1b3426c8f35f
|
|
BLAKE2b-256 checksum How to use checksums |
ee2447b77012e1fd8133bd97a6a2a80db5e26171504d6398b6c756a093c52adf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for ibott-files 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.