Metadata-Version: 2.1
Name: sls.python
Version: 1.0.0
Summary: Serverless for translator for pythonistas
Home-page: https://github.com/Om3rr/pyverless
Author: Omer Shacham
Author-email: omer20sh@gmail.com
License: BSD
Project-URL: Funding, https://github.com/sponsors/om3rr
Project-URL: Source, https://github.com/Om3rr/pyverless
Project-URL: Changelog, https://github.com/Om3rr/pyverless/blob/master/CHANGELOG.md
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: standard

### The Idea of `pyverless`

when working with ALOT of different microservices and APIs its quite common that we are starting to COPY-PASTE some code
from one `serverless` file to another. creating this `pyverless` let big organizations to share `modules` in a way that
can be used accross the organizations **AS A CODE**

### Getting Started

install pyverless using the following command
```bash
pip install sls.python
```
than define your serverless file using the following syntax
```python
#sls.py

from pyverless import ServerlessFramework, Provider, Function, FunctionEvent, EventTypes

sls = ServerlessFramework(
    framework_version="2 || 3",
    service="aws-python",
)

Provider(
    sls,
    name="aws",
    runtime="python3.8",
    lambda_hashing_version=20201221
)

Function(
    sls,
    name='hello',
    handler='handler.hello',
)
```

Than run `pyls sls:sls` and check the `serverless.yml` that created. it will create [this](https://github.com/serverless/examples/blob/master/aws-python/serverless.yml) example serverless.yml file.
*According to sls fw, package.json is not mendatory so right now pyverless wont maintain a package.json file*

### Key Features:

- **Modules** - A module is a collection of related functionality that can be used in different parts of the
  application.
- **Parameters** - A parameter is a value that can be used to configure any part of the configuration, pyverless support
  3 different types of parameters, `region`, `stage` and `region & stage`
- **Type-Hinting** - with `pyverless` you will get an out-of-the-box solution to understand what kind of attributes are
  supported in `serverless` in one place.

### Usage:

by default the `pyls MODULE` command will generate a `serverless.yml` file in the current directory.

*running*: `pyls main:sls && sls print --region us-east-1 --stage dev`

for example will generate `serverless.yml` file and print the serverless output when `region` is `us-east-1` and `stage`
is `dev`

### Contributing:

We love our contributors! Please read our Contributing Document to learn how you can start working on the Framework
yourself.

