semvec/pypi-packages huggingface dataset:
newrelic-deploy 0.0.6
NewRelic deployment notify

# newrelic-deploy

## Install

```bash
$ pip install newrelic-deploy
```

## Create new revision

To create a new release, you need to edit the [setup.py](https://github.com/Creditas/newrelic-deploy/blob/master/setup.py#L8) file, stating the number of the new version.

After you merge, the Travis CI [pipeline](https://travis-ci.org/github/Creditas/newrelic-deploy/) will automatically publish the new version at https://pypi.org/project/newrelic-deploy/


## Using

### Running:
```bash
$ newrelic-deploy --key NEWRELIC_KEY --app APP_ID
```
whitefuck 1.0.0
(Whitespace + Brainfuck) / 2 = Whitefuck

# whitefuck
[![PyPi](https://img.shields.io/pypi/v/whitefuck.svg?style=flat-square)](https://pypi.org/project/whitefuck/)

(Whitespace + Brainfuck) / 2 = Whitefuck

***


Installation
====
Run this:
```bash
pip install whitefuck
```

***

Syntax
====

In this doc,  
  "s" means "Space",
  "t" means "Tab",
  "b" means "Breakline".

| In whitefuck | In brainfuck | How does it work |
| ------------ | ------------ | ---------------- | 
| ss | + | increment (increase by one) the byte at the data pointer. |
| st | - | decrement (decrease by one) the byte at the data pointer. |
| ts | > | increment the data pointer (to point to the next cell to the right). |
|tt | < | decrement the data pointer (to point to the next cell to the left). |
|sss | . | output the byte at the data pointer. |
|sst | , |accept one byte of input, storing its value in the byte at the data pointer. |
|sts | [ | if the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching ] command. |
|stt | ] | if the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching [ command. |

***

Usage
====

```
usage: __main__.py [-h] [-m {run,convert}] [-i INPUT] [-c COUNTER] [-o OUTPUT] file

positional arguments:
  file                  File to run

optional arguments:
  -h, --help            show this help message and exit
  -m {run,convert}, --mode {run,convert}
                        Mode. Default: run

Run:
  -i INPUT, --input INPUT
                        A input.
  -c COUNTER, --counter COUNTER
                        Number of counters to make.

Convert:
  -o OUTPUT, --output OUTPUT
                        Path to export result.
```

***

Use on script
====

```python
>>> import whitefuck as wf
>>> with open("./example/helloworld.wf") as f:
...   s = f.read()
...
>>> wf.run(s)
Hello World!
>>> f = wf.make_function(s)
functools.partial(<function run at 0x00000203123669D0>, '  \n  \n  \n  \n  \n  \n  \n  \n  \n \t \n\t \n  \n  \n  \n  \n  \n  \n  \n  \n\t \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n\t \n  \n  \n  \n\t \n  \n\t\t\n\t\t\n\t\t\n\t\t\n \t\n \t\t\n\t \n   \n\t \n  \n  \n   \n  \n  \n  \n  \n  \n  \n  \n   \n   \n  \n  \n  \n   \n\t \n  \n  \n  \n  \n  \n   \n\t\t\n\t\t\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n   \n\t \n   \n  \n  \n  \n   \n \t\n \t\n \t\n \t\n \t\n \t\n   \n \t\n \t\n \t\n \t\n \t\n \t\n \t\n \t\n   \n\t \n  \n   \n\t \n  \n   \n', '', 1024)
>>> f()
Hello World!
```

***

Prerequisites
====
* **Python 3.8 (Please make GitHub issue if you can use this lib on different python version)**  
***

License
====
Please see [LICENSE](https://github.com/sevenc-nanashi/whitefuck/blob/main/LICENSE).
upscript 0.2.0
Installs and updates python scripts for you
Requires Python: >=3.6,<4.0

Upscript
===

This cli tool installs and updates python scripts for you.

Tested on: Linux, Windows.

Install
---
`pip install --user upscript`

Usage
---
`upscript fetch <name> [<destination-dir>] [--index-url <index-url>]`

This command will create a folder with all the package's console entry points.
There also will be `.files/` folder inside it, containing embedded venv.

Any time you'll start some of these entry point, upscript will check for a package update in an index. It is possible
to suppress an update check via `UPSCRIPT_AUTO_UPDATE=0` env-var.
sfunc 0.3.2
Wrappers for using a single lambda function for AWS ApiGateway
Requires Python: >=3.6

# sfunc

[![PyPI version](https://badge.fury.io/py/sfunc.svg)](https://badge.fury.io/py/sfunc) [![hawry](https://circleci.com/gh/hawry/sfunc.svg?style=shield)](https://circleci.com/gh/hawry/sfunc) [![codecov](https://codecov.io/gh/hawry/sfunc/branch/master/graph/badge.svg?token=WPM7BHCN24)](https://codecov.io/gh/hawry/sfunc)

## Single lambda function for AWS Api Gateway

This is a very simple package which adds a few decorators to simplify the use of a single lambda function for multiple
endpoints for AWS Api Gateway. It uses the `operationId` attribute in the OAS3 specification to identify the correct
handler and then passes the event and context to the correct method.

### Basic usage

```python
import json
from sfunc import SFunc

sfunc = SFunc()


@sfunc.operation('getPetsByName')
def get_pets_by_name(event, context):
    """The methods need to have the same signature as a regular lambda handler entrypoint"""
    return {
        'statusCode': 200,
        'body': json.dumps({'names': ['fido', 'catty']})
    }


@sfunc.operation('getPetsByAge')
def get_pets_by_age(event, context):
    """This will be invoked when the endpoint with the operationId 'getPetsByAge' is invoked"""
    return {
        'statusCode': 204
    }


def lambda_handler(event, context):
    """We only need to specify one entry point and can ignore any other """
    rsp = sfunc.execute(event, context)  # rsp will contain the return value from the invoked method
    return rsp

```

### Using sfunc classes

For request/response which doesn't require any additional and are json encoded, sfunc provides two convenience classes
for request and response which can simplify the code further when it comes to parsing and getting headers and path
params. The following code will result in the same outcome as the example above, except for the extra headers.

```python
from sfunc import ApiGatewayRequest, ApiGatewayResponse, SFunc

sfunc = SFunc()


@sfunc.operation('getPetsByName')
def pets_by_name(req: ApiGatewayRequest, context) -> ApiGatewayResponse:
    _ = req.headers().get('x-request-id')
    return ApiGatewayResponse(200, {'names': ['fido', 'catty']})


@sfunc.operation('getPetsByAge')
def pets_by_age(req: ApiGatewayRequest, context) -> ApiGatewayResponse:
    rsp = ApiGatewayResponse(204)
    rsp.add_header('content-type', 'application/json')
    return rsp


def lambda_handler(event, context):
    return sfunc.sfunc_execute(ApiGatewayRequest(event), context).response()

```

### Specifying default handlers

It might be useful during development or if some endpoints are missing the operationId attribute in the specification.

```python

from sfunc import SFunc

sfunc = SFunc()


@sfunc.default()
def default_handler(event, context):
    return {
        'statusCode': 405
    }


def lambda_handler(event, context):
    return sfunc.execute(event, context)  # or sfunc.sfunc_execute(ApiGatewayRequest) -> ApiGatewayResponse as above

```
ssnp 0.0.2rc1
Split-step non-paraxial beam propagation simulation package
Requires Python: >=3.8
Keywords: simulation,optical engineering,beam propagation method

# SSNP

Split-step non-paraxial beam propagation method

## Features

* Forward model calculation based on CUDA
* Read/write data of common file type
* Gradient calculation
* Image reconstruction with regularization

## Reference

Sharma, A., & Agrawal, A. (2004). Split-step non-paraxial beam propagation method. *Physics and Simulation of Optoelectronic Devices XII*, 5349, 132. https://doi.org/10.1117/12.528172

Lim, J., Ayoub, A. B., Antoine, E. E., & Psaltis, D. (2019). High-fidelity optical diffraction tomography of multiple scattering samples. *Light: Science & Applications*, 8(1), 82. https://doi.org/10.1038/s41377-019-0195-1

## Changelog

### 0.0.2 (developing)

* Add skcuda as a substitution of reikna
* Enable to compute several illumination on the same object in a batch
* Support background refractive index (n0 > 1) in model and gradient computation
* Record partial intermediate results to effectively save memory when tracking operations
* Add stream parameter for async operation and related small tools
* Add cache to avoid unnecessary recompiling
* Fix errors:
    * data.write: fix unexpectedly changing input data when scaling before write

### 0.0.1 (Sep 7, 2020)

* Add gradient calculation support (tracking operations and doing autograd)
* Add config to set package-wise constant
* Add Multiplier class to generate auto-cached numpy/gpu array
* Add MATLAB .mat file read & write support (rely on scipy lib)