
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
LocalStore is a Python library that provides various operations on a local database of products, which can be used to store and manage information about items in a local store inventory and it also give mobility to create an local API for the database. Besides this it can convert CSV file to json.
The localstore
package is a collection of Python modules for managing data in a local store. It includes modules for converting CSV files to a JSON dataset, managing data in a local JSON store, and creating a local API for accessing data in the store.
To install the localstore
package, you can use pip:
pip install localstore
The DatasetConverter
module provides a simple and intuitive API for converting CSV files to a JSON dataset. To use the DatasetConverter
module, you can:
DatasetConverter
module:from localstore.DatasetConverter import Converter
Converter
class:converter = Converter()
converter.Dataset_From_Directory('path/to/directory')
converter.Dataset_From_File('path/to/file.csv')
converter.Create_Dataset()
The LocalStore
module provides a simple and intuitive API for managing data in a local JSON store. To use the LocalStore
module, you can:
LocalStore
module:from localstore.LocalStore import LocalStore
LocalStore
class:local_store = LocalStore()
product = {
'name': 'iPhone 13 Pro',
'main_category': 'Electronics',
'sub_category': 'Smartphones',
'image': 'https://example.com/iphone-13-pro.jpg',
'link': 'https://example.com/iphone-13-pro',
'ratings': '4.5',
'no_of_ratings': '100',
'discount_price': '999.00',
'actual_price': '1099.00'
}
local_store.Add_New_Product(product_name='Apple', data=product)
products = local_store.Show_product_List()
for product in products:
print(product)
The LocalAPI
module provides a simple and intuitive API for creating a local API for accessing data in the store. To use the LocalAPI
module, you can:
LocalAPI
module:from localstore.LocalAPI import LocalAPI
LocalAPI
class:local_api = LocalAPI()
local_api.runServer()
import requests
# Get a list of all the products in the local store
products = requests.get('http://localhost:5000/products/show/')
# Print the list of products
for product in products.json():
print(product)
The localstore
package is a powerful and easy-to-use Python package for managing data in a local store. It is a great choice for a variety of applications, including e-commerce websites, content management systems, data analysis applications, and any other application that needs to store data locally.
Contributions to LocalStore are welcome! Please read the contributing guidelines before submitting a pull request.
LocalStore is licensed under the MIT License
FAQs
LocalStore is a Python library that provides various operations on a local database of products, which can be used to store and manage information about items in a local store inventory and it also give mobility to create an local API for the database. Besides this it can convert CSV file to json.
We found that localstore 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.