Ad

serverless-python-requirements: Automate Python dependency bundling

Automatically bundles Python dependencies from requirements.txt/Pipfile, simplifying serverless deployments and leveraging Serverless Framework v4.22.0 for core functionality.
Screenshot of serverless/serverless-python-requirements homepage

serverless-python-requirements automatically bundles Python dependencies specified in requirements.txt or Pipfile, generating a requirements.txt file that is then made available in your PYTHONPATH. The plugin simplifies the deployment process by ensuring all required packages are bundled and accessible to your serverless functions. This approach streamlines dependency management and improves deployment reliability.

This plugin provides a streamlined approach to Python dependency management for Serverless deployments. It supports both requirements.txt and Pipfile formats, offering flexibility in project setup. It offers Dockerization options for handling compiled modules and private repositories, enhancing deployment capabilities. The plugin supports Poetry, ensuring consistency and reproducibility in dependency management. The plugin’s integration with the Serverless Framework is seamless and well-documented.

  • Dependency Bundling: Automatically bundles dependencies from requirements.txt or Pipfile into a requirements.txt.
  • Docker Support: Enables Dockerization of non-pure-Python modules and private repository access.
  • Pipenv & Poetry Support: Supports pipenv and Poetry for enhanced dependency management.
  • Configuration Options: Offers various configuration options for customization and flexibility.
  • SSH Key Support: Supports SSH key mounting for private repository access.
  • Environment Variables: Allows passing environment variables to the Docker container.
  • Poetry Group Management: Provides options for specifying and managing Poetry dependency groups.

The serverless-python-requirements plugin is now archived and no longer actively maintained as a standalone package. Its functionality has been fully integrated into the Serverless Framework core, offering enhanced stability, security, and maintenance. The Serverless Framework manages the underlying dependency bundling and offers compatibility with existing configurations. Future updates and support are provided through the main Serverless Framework repository.

This project was designed to simplify Python dependency management for Serverless deployments. It benefits developers who want an automated and standardized way to bundle Python packages. The project’s functionality is now integrated into the Serverless Framework, making it accessible to a broader audience and benefiting from ongoing maintenance and security updates.

Summarize:
Share:
Stars
1,132
Forks
294
Issues
196
Created
9 years ago
Commit
8 months ago
License
MIT
Archived
Yes
Updated 11 days ago

Similar Repositories