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
Metadata
Release files for sskp 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sskp-2.0.tar.gz | 2.8 kB | Details |
Release files / sskp-2.0.tar.gz
| Download URL | sskp-2.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
748f2ceb19be3e3d045558637f911e767931bedb8bf4154e89c1bb43c00bea1a
|
|
BLAKE2b-256 checksum How to use checksums |
a607c9b7ae1a27d45c3192cb9131265fa87d8a24dbd8ed797a293efdb154b3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|