
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Azure Utilities for python
Technical documentation can be found here.
Make sure you have Python 3.6.x (or higher) installed on your system. You can download it here.
python3 -m pip install --upgrade virtualenv
venv
:python3 -m virtualenv venv
source venv/bin/activate
venv\scripts\activate
pip install azure_utils
import os, sys
from azure_utils.blob_storage import AZContainer
# Get the working directory of this file
wd=os.path.abspath(os.path.dirname(sys.argv[0]))
# Create a container object
az = AZContainer(
account_url="https://<account_name>.blob.core.windows.net",
account_key="<account_key>",
container_name="<container_name>"
)
# Get a list of all files in the container and print the first 5
files = az.list_files(remote_folderpath='/')
print(files[:5])
# Upload a file to the container
az.upload_file(
remote_filepath='/test.csv',
local_filepath=f'{wd}/test_data/upload/test.csv',
overwrite=True
)
# Download the file from the container
az.download_file(
remote_filepath='/test.csv',
local_filepath=f'{wd}/test_data/download/test.csv',
overwrite=True,
smart_sync=True
)
# Delete the file from the container
az.delete_file(
remote_filepath='/test.csv'
)
# Upload a folder to the container
az.sync_to_remote(
remote_folderpath='/',
local_folderpath=f'{wd}/test_data/upload/',
overwrite=True,
)
# Download the folder from the container
az.sync_to_local(
remote_folderpath='/',
local_folderpath=f'{wd}/test_data/download/',
overwrite=True,
smart_sync=True,
)
# Delete all files in the container
az.delete_folder(
remote_folderpath='/',
)
# Delete all local metadata
az.clear_local_meta(f'{wd}/test_data/')
Contributors:
FAQs
Azure Utilities
We found that azure-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.