semvec/pypi-packages huggingface dataset:
clear-lambda-storage 1.0.1
Clear Lambda code storage
Requires Python: >=3

Clear Lambda code storage
===========================


Motivation
-----------
AWS limits the total code storage for Lambda functions to `75GB <https://docs.aws.amazon.com/lambda/latest/dg/limits.html#limits-list>`_.

The main reason of reaching such size is because for every deployment of existing function, AWS stores the previous version ("qualifier").

Usually, when you reach that point, you want to remove old version.
This tool will help you to!


Setup
-----
.. code-block:: bash

    git clone https://github.com/epsagon/clear-lambda-storage
    cd clear-lambda-storage/
    pip install -r requirements.txt
    python clear_lambda_storage.py


Advanced usage
---------------

Provide credentials:

.. code-block:: bash

    python clear_lambda_storage.py --token-key-id <access_key_id> --token-secret <secret_access_key>

Alternate usage:
.. code-block:: bash

    python clear_lambda_storage.py --profile-id <profile_id> --num-to-keep 2

⚡️ `Serverless Framework <https://serverless.com>`_ usage
----------------------------------------------------------
.. code-block:: bash

    npm i -g serverless
    git clone https://github.com/epsagon/clear-lambda-storage
    cd clear-lambda-storage/
    serverless deploy

You can schedule this Lambda code storage clean to run every period you want:

.. code-block:: yaml

    functions:
      clear_lambda_storage:
        handler: handler.clear_lambda_storage
        memorySize: 128
        timeout: 120
        events:
          - schedule: cron(0 12 ? * SUN *) # Run every sunday at 12:00pm UTC
nice-figures 0.0.2
Methods and style files for making publication quality figures
Requires Python: >=3.6

# Nice Figures

A collection of scripts, modules, and style files for making publication quality figures in Matplotlib.

Styles are in accordance with American Physical Society (APS) and Nature publications. 

![alt text](https://github.com/Rob217/nice-figures/blob/master/examples/figs/advanced_fig.png "Example figure")

To load module:
```python
from nice_figures load *
```

## Installation instructions

This package requires prior intallation of the following packages:
* [numpy](https://numpy.org/install/)

* [matplotlib](https://matplotlib.org/)

I recommend installing for the PyPI server using pip:
```python
pip install nice-figures
```

Alternatively, the files can be downloaded directly from GitHub.

To import, use:
```python
from nice_figures import *
```

## Functions

The following functions are included:
* [load_style()](./nice_figures/load_style.py)

   Load a set of predefined rcParams.

* [add_numbering()](./nice_figures/add_numbering.py)

   Add numbering (e.g., a, b, c, 1, 2, 3, ...) to axes.

* [load_cols()](./nice_figures/load_cols.py)

   Load a dictionary of colors.

* [add_border()](./nice_figures/add_border.py)

   Add a border around the figure. This is useful in, e.g., Jupyter notebooks, where it is unclear how large the figure.

For more details about each function, please see the function docstrings.

## Examples

Example scripts and figures are given in [examples](./examples/).

## Useful resources

* https://matplotlib.org/3.2.1/tutorials/introductory/customizing.html
* https://journals.aps.org/prl/authors
* https://www.nature.com/nature/for-authors/final-submission

## Where was this package used?

* https://arxiv.org/abs/1907.07030



---
Any suggestions for improvements are very welcome!