Makes you use Minio easier.
Project description
dpgenZ: Print your buckets and .csv files from Minio
Powered by FPT Infomation System
How to install?
pip install dpgenZ
or
Windows
py -m pip install dpgenZ
Linux/Mac OS
python3 -m pip install dpgenZ
How to use dpgenZ?
You can use to one of codes below here:
ACCESS_KEY: Access key in your Minio Services Account.
SECRET_KEY: Secret key in your Minio Services Account.
BUCKET_NAME: Your Bucket name.
OBJECT_NAME: The Object name in your Bucket (This file that only enter file name, do not enter file format).
Print file from Minio
Example:
Print file from: Access key: dpZ Secret key: dpZcrawl Bucket name: abc Object name: hihi
Print .txt file
import dpgenZ
a = dpgenZ.Storage(ACCESS_KEY, SECRET_KEY)
a.readtext(BUCKET_NAME, OBJECT_NAME)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.readtext('abc', 'hihi')
Print .csv file
import dpgenZ
a = dpgenZ.Storage(ACCESS_KEY, SECRET_KEY)
a.readcsv(BUCKET_NAME, OBJECT_NAME)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.readcsv('abc', 'hihi')
Print .xlsx file
import dpgenZ
a = dpgenZ.Storage(ACCESS_KEY, SECRET_KEY)
a.readexcel(BUCKET_NAME, OBJECT_NAME)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.readexcel('abc', 'hihi')
Print .parquet file
import dpgenZ
a = dpgenZ.Storage(ACCESS_KEY, SECRET_KEY)
a.readparquet(BUCKET_NAME, OBJECT_NAME)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.readparquet('abc', 'hihi')
Print .orc file
import dpgenZ
a = dpgenZ.Storage(ACCESS_KEY, SECRET_KEY)
a.readorc(BUCKET_NAME, OBJECT_NAME)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.readorc('abc', 'hihi')
Write file from Minio
ACCESS_KEY: Access key in your Services Account.
SECRET_KEY: Secret key in your Services Account.
BUCKET_NAME_IN: Your Bucket name (INPUT).
OBJECT_NAME_IN: The Object name in your Bucket (INPUT) (This file that only enter file name, do not enter file format).
BUCKET_NAME_OUT: Your Bucket name (OUTPUT).
OBJECT_NAME_OUT: The Object name in your Bucket (OUTPUT) (.csv file) (This file that only enter file name, do not enter file format).
Example:
Write file from: Access key: dpZ Secret key: dpZcrawl Bucket name: abc Object name: hihi
Write to: Bucket name: xyz Object name: huhu
Write .txt file
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writetext(BUCKET_NAME_IN,OBJECT_NAME_IN,BUCKET_NAME_OUT,OBJECT_NAME_OUT)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writetext('abc', 'hihi', 'xyz', 'huhu')
Write .csv file
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writecsv(BUCKET_NAME_IN,OBJECT_NAME_IN,BUCKET_NAME_OUT,OBJECT_NAME_OUT)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writecsv('abc', 'hihi', 'xyz', 'huhu')
Write .xlsx file
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeexcel(BUCKET_NAME_IN,OBJECT_NAME_IN,BUCKET_NAME_OUT,OBJECT_NAME_OUT)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeexcel('abc', 'hihi', 'xyz', 'huhu')
Write .parquet file
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeparquet(BUCKET_NAME_IN,OBJECT_NAME_IN,BUCKET_NAME_OUT,OBJECT_NAME_OUT)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeparquet('abc', 'hihi', 'xyz', 'huhu')
Write .orc file
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeorc(BUCKET_NAME_IN,OBJECT_NAME_IN,BUCKET_NAME_OUT,OBJECT_NAME_OUT)
# Example:
import dpgenZ
a = dpgenZ.Storage('dpZ', 'dpZcrawl')
a.writeorc('abc', 'hihi', 'xyz', 'huhu')
Read database from Postgres
USER: Your Postgres User
PASSWORD: Your Postgres Password
HOST: Your Postgres Host
PORT: Your Postgres Port
DATABASE: Your Postgres Database
EXECUTE: Your Query
import dpgenZ
a = dpgenZ.Postgres(USER, PASSWORD, HOST, PORT, DATABASE)
a.readpostgres(EXECUTE)
Write database from Postgres
USER: Your Postgres User
PASSWORD: Your Postgres Password
HOST: Your Postgres Host
PORT: Your Postgres Port
DATABASE: Your Postgres Database
EXECUTE: Your Query
ACCESS_KEY: Access key in your Minio Services Account.
SECRET_KEY: Secret key in your Minio Services Account.
BUCKET_NAME_OUT: Your Bucket name (OUTPUT).
OBJECT_NAME_OUT: The Object name in your Bucket (OUTPUT) (.csv file) (This file that only enter file name, do not enter file format).
import dpgenZ
a = dpgenZ.Postgres(USER, PASSWORD, HOST, PORT, DATABASE)
a.writepostgres(EXECUTE, ACCESS_KEY, SECRET_KEY, BUCKET_NAME_OUT, OBJECT_NAME_OUT)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 dpgenZ-0.0.3.1.tar.gz.
File metadata
- Download URL: dpgenZ-0.0.3.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/62.4.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b0b35f45218051f4a434f90f869b02b88c1d2b47c7b0500b5ea89792bc3f6e4
|
|
| MD5 |
c12e6a0cf69923b13fe365ef9898261f
|
|
| BLAKE2b-256 |
d3c63d7d77da553dee12cf083f0be7dcbe92ceab28add81de433477395ef261c
|
File details
Details for the file dpgenZ-0.0.3.1-py3-none-any.whl.
File metadata
- Download URL: dpgenZ-0.0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/62.4.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d9b7071983e9b5ab53c8824cb8777d4ddd96ad87dc675d90ee45b8adc7d9ea
|
|
| MD5 |
3ad6969ce4d24f191706aeb2ac89dfd8
|
|
| BLAKE2b-256 |
143b151a5b0e4699f19aa698bdd946646cebbe48e6f873c534045c0df66e8bed
|