Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-py-requirements

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-py-requirements

Serverless Python Requirements Plugin

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

sls-py-pkg

plugins:
  - sls-py-pkg
custom:
  pythonRequirements:
    # These options are optional, only set them if you know what you're doing
    # excludeDefaults: false
    # cmd: pip install -r requirements.txt -r common_utils/requirements.txt -t .
    # pipArgs: >
    #   --index-url=https://pypi.org/simple
    #   --secondary-url=https://pypi.org/simple
    shared:
      common_utils:
        source: ../shared
        # if no functions specified, it will apply it to all
        functions:
          - hello
    exclude:
      - pyarrow/src

functions:
  hello:
    module: .
    handler: handler.hello
    zip: true # the handler now has to unzip its own "requirements.zip"

Note

Duplicate modules are not supported, for good practices

filter using the exclude options, don't use Packaging patterns

In handler.py, shared code can be imported like this:

from common_utils import shared_resource

Future Features Coming Soon ™️ (maybe)


  • zip-imports
  • zip deeper deps filtering for pyc and pyo files

Requirements


  • python & pip installed
  • minimum required node version >= 16

Keywords

FAQs

Package last updated on 14 Sep 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc