CathD
Features ✨
- Download Log: The download feature is accompanied by a log for connection speed and remaining time required.
- send to s3: accompanied by a feature to directly send downloaded files to S3 with the s3fs library.
- easy use: Simple calls and easy S3FS configuration.
Requirement ⚙️
Installation 🛠️
pip install cathd
How To Usage 🤔
1. Basic use
If you only want to use the download feature and save it locally on your laptop
from cathd import CathD
url = 'https://raw.githubusercontent.com/ryyos/ryyos/refs/heads/main/images/erine/kawaiii.jpeg'
path = 'data/erine_kawai.jpg'
CathD.download(
url=url,
path=path,
save=True,
)
2. Send to S3 with an external S3FS connection
If you want to send the downloaded file to S3 and you want to use an external S3FS connection, you can enter your S3FS connection into the "s3fs_connection" param.
import s3fs
from cathd import CathD
url = 'https://raw.githubusercontent.com/ryyos/ryyos/refs/heads/main/images/erine/kawaiii.jpeg'
path = 'data/erine_kawai.jpg'
client_kwargs = {
"key": "aws_access_key_id",
"secret": "aws_secret_access_key",
"endpoint_url": "endpoint_url",
}
s3 = s3fs.core.S3FileSystem(**client_kwargs)
CathD.download(
url=url,
path=path,
save=True,
send_s3=True,
s3fs_connection=s3
)
3. Send to S3 with an internal S3FS connection
If you want to send the downloaded file to the S3 with an internal connection or use the function from CathD to establish a connection to the S3, you can also do it like this
from cathd import CathD
url = 'https://raw.githubusercontent.com/ryyos/ryyos/refs/heads/main/images/erine/kawaiii.jpeg'
path = 'data/erine_kawai.jpg'
CathD.build_s3fs(
access_key_id="aws_access_key_id",
secret_access_key="aws_secret_access_key",
endpoint_url="endpoint_url",
bucket="bucket"
)
CathD.download(
url=url,
path=path,
save=True,
send_s3=True,
)
🚀Structure
├── cathd
│ ├── CathD.py
│ ├── __init__.py
│ └── utils.py
├── LICENSE
├── README.md
└── setup.py
Author
👤 Rio Dwi Saputra
- Twitter: @ryyo_cs
- Github: @ryyos
- Instagram: @ryyo.cs
- LinkedIn: @rio-dwi-saputra-23560b287
Metadata
Release files for CathD 0.0.6
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 |
|---|---|---|---|---|
| CathD-0.0.6.tar.gz | 8.4 kB | Without provenance | Details for CathD-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CathD-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for CathD-0.0.6-py3-none-any.whl |
Total release size: 17.1 kB
Release files / CathD-0.0.6.tar.gz
| Download URL | CathD-0.0.6.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d5d0af5d0a89c2524c3b5af12a993c3b3eeb7d1de74c36584e685540636a707
|
|
BLAKE2b-256 checksum How to use checksums |
863e863d2f249fa170cfb8310aa48826243c7e0f4e64589b9204504f0a708218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / CathD-0.0.6-py3-none-any.whl
| Download URL | CathD-0.0.6-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac97ae8e088a0d12d710eda2da5652ecda40295699295a62c8dea8ee99afdf93
|
|
BLAKE2b-256 checksum How to use checksums |
ac865cc8a454870bee1374565cf6890d0b0ce6c273f9bad57e574c123a97811d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for CathD 0.0.6
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.