pylayerize


Namepylayerize JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/JamMassey/lambda-layer-builder
Summarypylayerize simplifies the process of creating AWS Lambda Layers by leveraging Docker to compile and package Python dependencies for any targeted runtime. With support for custom packages and private GitHub repos, pylayerize optimizes the creation and deployment of Lambda Layers for improved development efficiency.
upload_time2024-01-12 06:40:58
maintainer
docs_urlNone
authorJames Massey
requires_python>=3.7
license
keywords aws lambda layer pylayerize pylayerizer pylayerize
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pylayerize
Pylayerize simplifies the process of creating AWS Lambda Layers by leveraging Docker to compile and package Python dependencies for any targeted runtime. With support for custom packages and private GitHub repos, pylayerize optimizes the creation and deployment of Lambda Layers for improved development efficiency.

### General Usage
To use Pylayerize, you must first install it using pip:
```ruby
$ pip install pylayerize
```
Once pylayerize is installed, you can run it from the command line by invoking the pylayerize command.
```ruby
$ pylayerize -tp <target_package> [OPTIONS]
```

#### Required Options:

-tp, --target-package: The target package to build a layer for.

#### Optional Options:

1. -h, --help: Show the help message and exit.
2. -op, --output-path: The output path for the layer .zip file. Default is the current directory (.).
3. -n, --output-layer-name: The name of the output .zip file. Default is lambda_layer.
4. -ll, --log-level: The log level of logging. Default is INFO.
5. -gu, --git-username: The git username to use for the git clone.
6. -gp, --git-password: The git password to use for the git clone.
7. -rt, --runtime: The runtime to use for the layer. Default is python3.8.
8. --console-log, --no-console-log: Log to console. Default is True.
9. --local, --no-local: Set to True if you want to use a requirments.txt file or a custom lib stored locally. Default is False.

#### Examples
To build a layer for numpy using the default options, run:

```ruby
$ pylayerize -tp my_package
```

To build a layer for numpy with a custom output path and layer name, run:

```ruby
$ pylayerize -tp numpy -op /path/to/output -n my_layer
```

To build a layer for private GitHub repositories that require authentication, run:
```ruby
$ pylayerize --target-package git+my_repo_link --git-username my_username --git-password my_password
```

If you have a local requirements.txt file at /path/to/requirements.txt, you can use it by running

```ruby
$ pylayerize --target-package mypackage --local --requirements-file /path/to/requirements.txt
```

#### Programatic Usage

It is also possible to use pylayerize and its components programatically in Python.

```python
from pylayerize import build_aws_lamda_layer
```


### Contributions

Contributions are welcome! Here are some guidelines for contributing to this project:

Fork this repository and create a new branch for your feature or bug fix.
Make your changes and commit them with descriptive commit messages.
Create a pull request against the dev branch and describe your changes and the problem they solve.
Ensure that your code passes all tests and meets the project's code standards.
Respond to any feedback from maintainers and make any necessary changes.
If you'd like to contribute but aren't sure where to start, take a look at the project's issue tracker. Issues marked as "help wanted" or "good first issue" are a good place to start.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/JamMassey/lambda-layer-builder",
    "name": "pylayerize",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "aws lambda layer pylayerize pylayerizer pylayerize",
    "author": "James Massey",
    "author_email": "jammassey@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/de/ad/ddee94c5133645654e1403151310b0af5e8ff819082ebb54969b2b0eae79/pylayerize-1.0.1.tar.gz",
    "platform": null,
    "description": "# Pylayerize\nPylayerize simplifies the process of creating AWS Lambda Layers by leveraging Docker to compile and package Python dependencies for any targeted runtime. With support for custom packages and private GitHub repos, pylayerize optimizes the creation and deployment of Lambda Layers for improved development efficiency.\n\n### General Usage\nTo use Pylayerize, you must first install it using pip:\n```ruby\n$ pip install pylayerize\n```\nOnce pylayerize is installed, you can run it from the command line by invoking the pylayerize command.\n```ruby\n$ pylayerize -tp <target_package> [OPTIONS]\n```\n\n#### Required Options:\n\n-tp, --target-package: The target package to build a layer for.\n\n#### Optional Options:\n\n1. -h, --help: Show the help message and exit.\n2. -op, --output-path: The output path for the layer .zip file. Default is the current directory (.).\n3. -n, --output-layer-name: The name of the output .zip file. Default is lambda_layer.\n4. -ll, --log-level: The log level of logging. Default is INFO.\n5. -gu, --git-username: The git username to use for the git clone.\n6. -gp, --git-password: The git password to use for the git clone.\n7. -rt, --runtime: The runtime to use for the layer. Default is python3.8.\n8. --console-log, --no-console-log: Log to console. Default is True.\n9. --local, --no-local: Set to True if you want to use a requirments.txt file or a custom lib stored locally. Default is False.\n\n#### Examples\nTo build a layer for numpy using the default options, run:\n\n```ruby\n$ pylayerize -tp my_package\n```\n\nTo build a layer for numpy with a custom output path and layer name, run:\n\n```ruby\n$ pylayerize -tp numpy -op /path/to/output -n my_layer\n```\n\nTo build a layer for private GitHub repositories that require authentication, run:\n```ruby\n$ pylayerize --target-package git+my_repo_link --git-username my_username --git-password my_password\n```\n\nIf you have a local requirements.txt file at /path/to/requirements.txt, you can use it by running\n\n```ruby\n$ pylayerize --target-package mypackage --local --requirements-file /path/to/requirements.txt\n```\n\n#### Programatic Usage\n\nIt is also possible to use pylayerize and its components programatically in Python.\n\n```python\nfrom pylayerize import build_aws_lamda_layer\n```\n\n\n### Contributions\n\nContributions are welcome! Here are some guidelines for contributing to this project:\n\nFork this repository and create a new branch for your feature or bug fix.\nMake your changes and commit them with descriptive commit messages.\nCreate a pull request against the dev branch and describe your changes and the problem they solve.\nEnsure that your code passes all tests and meets the project's code standards.\nRespond to any feedback from maintainers and make any necessary changes.\nIf you'd like to contribute but aren't sure where to start, take a look at the project's issue tracker. Issues marked as \"help wanted\" or \"good first issue\" are a good place to start.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "pylayerize simplifies the process of creating AWS Lambda Layers by leveraging Docker to compile and package Python dependencies for any targeted runtime. With support for custom packages and private GitHub repos, pylayerize optimizes the creation and deployment of Lambda Layers for improved development efficiency.",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/JamMassey/lambda-layer-builder"
    },
    "split_keywords": [
        "aws",
        "lambda",
        "layer",
        "pylayerize",
        "pylayerizer",
        "pylayerize"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7552a1ca1e3551b2cec58eaef5b27a5d42e6bd7c25459291959b858f7f56caeb",
                "md5": "f534c482563f20b6855a108745485068",
                "sha256": "a482eb64d7e520379e4d91f546ca3bc4cc752315e9716da3a90ecf948af1e42d"
            },
            "downloads": -1,
            "filename": "pylayerize-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f534c482563f20b6855a108745485068",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9595,
            "upload_time": "2024-01-12T06:40:56",
            "upload_time_iso_8601": "2024-01-12T06:40:56.765588Z",
            "url": "https://files.pythonhosted.org/packages/75/52/a1ca1e3551b2cec58eaef5b27a5d42e6bd7c25459291959b858f7f56caeb/pylayerize-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "deadddee94c5133645654e1403151310b0af5e8ff819082ebb54969b2b0eae79",
                "md5": "92503b8c25a46b76a0aa675ab9856ca9",
                "sha256": "3b7a18dfa1a5bef4608d097866da6ea6cf5b9f2f6026d2f890ece423f3a610de"
            },
            "downloads": -1,
            "filename": "pylayerize-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "92503b8c25a46b76a0aa675ab9856ca9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9664,
            "upload_time": "2024-01-12T06:40:58",
            "upload_time_iso_8601": "2024-01-12T06:40:58.373117Z",
            "url": "https://files.pythonhosted.org/packages/de/ad/ddee94c5133645654e1403151310b0af5e8ff819082ebb54969b2b0eae79/pylayerize-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-12 06:40:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JamMassey",
    "github_project": "lambda-layer-builder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pylayerize"
}
        
Elapsed time: 0.17309s