A utility package for AWS S3 and MongoDB operations
Project description
ripikutils
ripikutils is a Python package providing utility functions for MongoDB operations and AWS S3 interactions, specifically designed for internal use at Ripik Tech.
Installation
You can install ripikutils using pip:
pip install ripikutils
Features
- MongoDB data filtering, inserting, updation, and deletion
- AWS S3 operations (upload, download)
- Temporary directory management for image processing
Usage
MongoDB Operations
Initialize Mongo Client
from ripikutils.mongo import initialize_mongo
# Initialize a MongoDB client
mongo_client = initialize_mongo(client_name)
Apply Filter
from ripikutils.mongo import apply_basic_filter
# Apply basic filter to your MongoDB query
filtered_data = apply_filter(collection, filter_params)
Insert Document
from ripikutils.mongo import insert
# Insert a document into your MongoDB collection
insert(collection, document)
Update Document
from ripikutils.mongo import update
# Update a document in your MongoDB collection
update(collection, filter_params, update_params)
Delete Document
from ripikutils.mongo import delete
# Delete a document from your MongoDB collection
delete(collection, filter_params)
AWS S3 Operations
Upload Object/File
from ripikutils.aws import upload_s3_object
# Upload a file to S3
upload_s3_object(file_path, bucket_name, object_name)
Download Object/File
from ripikutils.aws import download_s3_object
# Download a file from S3
download_s3_object(bucket_name, object_name, local_file_path)
Delete Object/File
from ripikutils.aws import delete_s3_object
# Delete a file from S3
delete_s3_object(bucket_name, object_name)
Get Presigned URL
from ripikutils.aws import get_presigned_url
# Get a presigned URL for a file in S3
presigned_url = get_presigned_url(bucket_name, object_name)
List Objects in S3 Bucket
from ripikutils.aws import list_s3_objects
# List objects in a S3 bucket
objects = list_s3_objects(bucket_name)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
For any queries or support, please contact the Ripik Tech team at vaibhav@ripik.ai.
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
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 ripikutils-0.2.0.tar.gz.
File metadata
- Download URL: ripikutils-0.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ccbfd25227ed9713269c5914d1cc262f5d106999058a45e853c2512ea632a15
|
|
| MD5 |
a7d532dc56b71e291be2ef13d07f3b5a
|
|
| BLAKE2b-256 |
1c4a35d1666192085584f6d2a5e7aab51c042a63517de29ec4feb53f703b23d7
|
File details
Details for the file ripikutils-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ripikutils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c45357b6a5034134510bce283a9ed2981792e5052281d8336d79401479941be1
|
|
| MD5 |
80acec01640852aa161650855b430867
|
|
| BLAKE2b-256 |
02a1ab431c5ad27d24d9a37707c0dd6049aec71c91663ef864071f50bdb7128a
|