semvec/pypi-packages huggingface dataset:
numgrad 0.3.0
Simple gradient computation library in Python
License: MIT
Requires Python: >=3.9

# NumGrad

Simple gradient computation library for Python.

# Getting Started

```bash
pip install numgrad
```

Inspired by [tensorflow](https://www.tensorflow.org/), `numgrad` supports [automatic differentiation](https://en.wikipedia.org/wiki/Automatic_differentiation) in tensorflow v2 style using original `numpy` and `scipy` functions.

```python
>>> import numgrad as ng
>>> import numpy as np  # Original numpy
>>>
>>> # Pure numpy function
>>> def tanh(x):
...     y = np.exp(-2 * x)
...     return (1 - y) / (1 + y)
...
>>> x = ng.Variable(1)
>>> with ng.Graph() as g:
...     # numgrad patches numpy functions automatically here
...     y = tanh(x)
...
>>> g.backward(y, [x])
(0.419974341614026,)
>>> (tanh(1.0001) - tanh(0.9999)) / 0.0002
0.41997434264973155
```

`numgrad` also supports [jax](https://github.com/google/jax) style automatic differentiation.

```python
>>> import numgrad as ng
>>> import numpy as np  # Original numpy unlike `jax`
>>>
>>> power_derivatives = [lambda a: np.power(a, 5)]
>>> for _ in range(6):
...     power_derivatives.append(ng.grad(power_derivatives[-1]))
...
>>> [f(2) for f in power_derivatives]
[32, 80.0, 160.0, 240.0, 240.0, 120.0, 0.0]
>>> [f(-1) for f in power_derivatives]
[-1, 5.0, -20.0, 60.0, -120.0, 120.0, -0.0]
```

# Contribute

Be sure to run the following command before developing

```bash
$ git clone https://github.com/ctgk/numgrad.git
$ cd numgrad
$ pre-commit install
```
sample-rspymodule 0.1.0
Add your description here
License: MIT
Requires Python: >=3.9

# sample-rspymodule

> <https://rye.astral.sh/guide/rust/>

## Setup

```shell
rye init my-project --build-system maturin
cd my-project

rye install maturin

rye sync

rye build
```

* License: MIT
netunicorn-connector-salt 0.3.8
SaltStack connector for netunicorn
License: MIT
Requires Python: >=3.10
Keywords: netunicorn

# Salt connector for netunicorn 
This is a connector for netunicorn platform to saltstack-managed infrastructure.

## Installation
```bash
pip install netunicorn-connector-salt
```

## Usage
Create a configuration file (see [example](configuration-example.yaml)). Then, add the connector information
to the main configuration file of netunicorn-director-infrastructure module (see corresponding repo).

This connector represents saltstack-managed infrastructure to netunicorn platform.
It works via Salt CherryPy API and requires a corresponding Salt configuration changes.

### Salt configuration
In master configuration file (usually `/etc/salt/master`) specify the following options:
```yaml
# external_auth configuration
external_auth:
  pam:
    remoteusername:
      - .*
      - '@wheel'
      - '@runner'
      - '@jobs'
...
# cherrypy configuration
rest_cherrypy:
  port: your_cherrypy_port
  host: your_cherrypy_host
```

See the Salt's documentation for more details.