Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sskp-2.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file sskp-2.0.tar.gz.

File metadata

  • Download URL: sskp-2.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

Hashes for sskp-2.0.tar.gz
Algorithm Hash digest
SHA256 748f2ceb19be3e3d045558637f911e767931bedb8bf4154e89c1bb43c00bea1a
MD5 bb81930706533d633cd1da9cc263a358
BLAKE2b-256 a607c9b7ae1a27d45c3192cb9131265fa87d8a24dbd8ed797a293efdb154b3cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page