Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@-0/build-lambda-py
Advanced tools
@-0/build-lambda-py
Node CLI for building Python Lambda packages using Poetry
file
Dependency for NPM Scriptsnpm install -D @-0/build-lambda-py
You will see a working example in the example directory.
example/package.json
{
...
"scripts": {
"build": "lambda build parent"
},
"dependencies": {
"lambda": "file:./node_modules/@-0/build-lambda-py"
},
"devDependencies": {
"@-0/build-lambda-py": "^1.0.2"
}
...
}
From inside the example
directory. Running npm run build
will produce the following output:
npm run build
> example-build-lambda-py-cli@1.0.0 build
> lambda build parent
==== Building: ...parent ====
exporting : requirements.txt...
building : parent from poetry.lock file...
rolling : wheels for dependencies...
copying : handler and src into package root...
touching : __init__.py into package root...
zipping : package as: parent.zip
==== Zipped: ...parent/zipped/parent.zip ====
You will then have a nicely zipped Python Lambda package in the zipped
directory.
From inside the example
directory
> npx @-0/build-lambda-py build parent
> npx @-0/build-lambda-py help build
Usage: build-lambda-py build [options] <parent>
Builds a Python Lambda package using Poetry
Arguments:
parent [relative to script] Source directory containing all dependencies...
Suggested parent structure:
parent
├── src
│ ├── __init__.py
│ └── local_dep.py
├── handler.py
├── pyproject.toml
└── poetry.lock
Options:
-h, --handler <file> [relative to parent] Lambda handler file (default: "handler.py")
-t, --target <dir> [relative to parent] Target director containing code to bundle (default: "src")
-o, --out-dir <dir> [relative to parent] DEDICATED zip file output directory (default: "zipped")
-d, --dev-deps Include Poetry `group.dev` dependencies (default: false)
--help display help for command
FAQs
Node CLI for building Python Lambda packages using Poetry
The npm package @-0/build-lambda-py receives a total of 5 weekly downloads. As such, @-0/build-lambda-py popularity was classified as not popular.
We found that @-0/build-lambda-py demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.