
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
filestostorage
Advanced tools
This package is used to store files in mongodb
$ pip install pymongo
For connecting python to mongodb
$ pip install gridfs-fuse
For performing read/write operations on mongodb
$ pip install filestostorage
NOTE:This package currently supports upto Python version 3.9
Project is still under development :) Currently supported for storing files in mongodb
import filestostorage as ft
Create a Database object
db = ft.mongo_conn()
This function will prompt to Enter MongoUrl
To upload file use the below command
ft.upload_file("FILE PATH","FILENAME",db)
ft.upload_file("/Users/Desktop/test/image1.jpeg","file_name",db)
To download_files use the below command:
ft.download_file("DOWNLOAD LOCATION","FILE NAME",db)
ft.download_file("/Users/Desktop/myimage.jpeg","file_name",db)
In 2nd parameter use the same file name which was used while uploading the file
import filestostorage as ft
db = ft.mongo_conn() #connect to database via url
ft.upload_file("file_path","file_name",db) #command to upload file
ft.download_file("download_location","file_name(same as upload)",db)#command to download file
FAQs
package for file storage
We found that filestostorage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.