
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.
mcai-worker-sdk-media
Advanced tools
Based on mcai_worker_sdk, this SDK uses the PyO3 crate to export a compiled module compatible with CPython ABI.
Please, check the docs here and here for the SDK with the media feature enabled.
Before using the Python module you should build it as a CPython library. This will require a virtualenv (where the module will be installed) and maturin to compile the module.
virtualenv venv # Create your environment
source venv/bin/activate # Launch it
You can then either build the module in development mode (this will build and install the module in your virtualenv):
maturin develop --features extension-module # Build and install the module
Or build the wheel file and install it manually via pip
:
maturin build --features extension-module # Build the wheel file to install the module
pip install path/to/generated/wheel/file
You will now be able to import the module in your Python's scripts by doing:
import mcai_worker_sdk as mcai
Check out maturin's docs for more information on building the module!
We intempt to support as many distribution and architecture as we can, however if pip
doesn't find any compatible version for your installation it will download the source and try to compile them directly.
This operation supposes that you have at least Rust 1.62.
We currently support the following version of Python implementations:
And the following core architectures:
To run tests you must have json-strong-typing
installed:
pip install json-strong-typing
Then launch tests basically:
cargo test
cargo test --features media
In your virtual environment:
maturin develop
RUST_LOG=debug \
SOURCE_ORDERS="examples/message.json" \
PYTHON_WORKER_FILENAME="worker.py" \
SOURCE_PATH="README.md" \
DESTINATION_PATH="README.md.out" \
python worker.py
First set the media filename:
export SOURCE_PATH="/folder/filename.ext"
Then run the SDK with these parameters:
RUST_LOG=debug \
SOURCE_ORDERS="examples/message.json" \
PYTHON_WORKER_FILENAME="media_worker.py" \
DESTINATION_PATH="results.json" \
cargo run --features media
FAQs
MCAI SDK to develop Python worker
We found that mcai-worker-sdk-media 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.