Catalog npm
PACKAGE EXPLORERView in registry

@-0/build-lambda-py

npm

Node CLI for building Python Lambda packages using Poetry

awsclijslambdamodulenodenpmpoetrypython
Versions collected5
Direct dependencies1From release 1.0.4
Last observed20 Oct, 21:47 UTC

README

Current package documentation

@-0/build-lambda-py

Node CLI for building Python Lambda packages using Poetry

Installation

Add CLI as a file Dependency for NPM Scripts

npm 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"
    }
    ...
}

In Use

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.

Running the CLI Directly

From inside the example directory

> npx @-0/build-lambda-py build parent

Help

> 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

Dependencies

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 5

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.4Registry latest30 Sept 20231
1.0.330 Sept 20231
1.0.230 Sept 20231
1.0.130 Sept 20231
1.0.030 Sept 20231

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
subs0/build-lambda-py

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:47 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d173033839381de9beb33d81fee59f149009ad13944b0be13686c8b9ec12ab37