package for file storage
Project description
This package is used to store files in mongodb
Install the requirements files
Packages used :
pymongo*
pip install pymongo
gridfs
pip install gridfs-fuse
import statement: import filestoexplore as ft
Now add your mongourl to a variable db = ft.mongo_conn()
To upload_files use the below command ft.upload_file(Filepath,filename with extension,database object)
"ft.upload_file("/Users/Desktop/test/image1.jpeg","name",db)"
To download_files use the below command: ft.download_file(downloadpath,filename with extension,database object)
"ft.download_file("/Users/Desktop/myimage.jpeg","name",db)" and in 2nd parameter use the same file name which was used while uploading the files
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
File details
Details for the file sskp-1.0.tar.gz
.
File metadata
- Download URL: sskp-1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2d7e52517aa2ab50f9c4df29b97addb2c8154c675f8d4b627c23ad209129fd |
|
MD5 | ba8dd0c7786a068e6474a4ed730ef0d1 |
|
BLAKE2b-256 | 9a26ed1ad043321113d5aed2815cc7cb45dde23cb8e87a90c5718e2f51cb9da3 |