Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The unstract-sdk
package helps with developing tools that are meant to be run on the Unstract platform. This includes
modules to help with tool development and execution, caching, making calls to LLMs / vectorDBs / embeddings .etc.
They also contain helper methods/classes to aid with other tasks such as indexing and auditing the LLM calls.
Linux
sudo apt install build-essential pkg-config libmagic-dev tesseract-ocr pandoc
Mac
brew install pkg-config libmagic pandoc tesseract-ocr
Example
unstract-tool-gen --command NEW --tool-name <name of tool> \
--location ~/path_to_repository/unstract-tools/ --overwrite false
Supported commands:
NEW
- Create a new toolVariable | Description |
---|---|
PLATFORM_SERVICE_HOST | The host in which the platform service is running |
PLATFORM_SERVICE_PORT | The port in which the service is listening |
PLATFORM_SERVICE_API_KEY | The API key for the platform |
TOOL_DATA_DIR | The directory in the filesystem which has contents for tool execution |
Unstract SDK 0.3.2 uses the following version of Llama Index Version 0.9.28 as on January 14th, 2024
Ensure that you have all the required dependencies and pre-commit hooks installed
pdm install
pre-commit install
Once the changes have been made, it can be tested with Unstract through the following means.
Specify the SDK as a dependency to a project using a tool like pdm
by adding the following to your pyproject.toml
[tool.pdm.dev-dependencies]
local_copies = [
"-e unstract-adapters @ file:///${UNSTRACT_ADAPTERS_PATH}",
"-e unstract-sdk @ file:///${UNSTRACT_SDK_PATH}",
]
Or by running the below command
pdm add -e /path/to/unstract-sdk --dev
pip
it might be possible to add it as a dependency in requirements.txt
-e /path/to/unstract-sdk
NOTE: Building locally might require the below section to be replaced in the unstract-sdk
's build system configuration
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requirements.txt
, this can come in handy while building tool
docker images. Don't forget to run apt install git
within the Dockerfile
for thisunstract-sdk @ git+https://github.com/Zipstack/unstract-sdk@feature-branch
Follow this README.md for generating documentation.
FAQs
A framework for writing Unstract Tools/Apps
We found that unstract-sdk 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.