semvec/pypi-packages huggingface dataset:
tangram 0.7.0
Tangram for Python

# Tangram for Python

- [Watch the Video](https://www.tangram.dev)
- [Read the Docs](https://www.tangram.dev/docs)

The Tangram Python library makes it easy to make predictions with your Tangram machine learning model from Python.

## Usage

```
$ pip install tangram
```

```python
import tangram

model = tangram.Model.from_path('./heart_disease.tangram')

input = {
  'age': 63,
  'gender': 'male',
  # ...
}

output = model.predict(input)
```

For more information, [read the docs](https://www.tangram.dev/docs).

## Platform Support

Tangram for Python is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? [Open an issue](https://github.com/tangramdotdev/tangram/issues/new) or send us an email at [help@tangram.dev](mailto:help@tangram.dev).

## Examples

The source for this package contains a number of examples in the `examples` directory. Each example has a `README.md` explaining how to run it.

## Notes

- Tangram for Python requires pip 20.3 or later, which includes support for [PEP 600](https://www.python.org/dev/peps/pep-0600/). This is necessary to correctly install tangram's native extension. If you are using an earlier python version, you may see the error "Could not find a version that satisfies the requirement tangram" when you attempt to `pip install tangram`. To resolve this, you should upgrade pip to version 20.3 or later.
colorwheels 0.7.3
colorwheels - an endless color generator
Requires Python: >=3.7, <4
Keywords: development,color

# colorwheels

An Endless Color Generator

This project is a continuous color generator for Python. We create a palette of a specific color range, a palette of matching colors and similar to serve to a consumer application. 

Works great when generating rainbow effects in hobby electronics (RGB LEDs, RGB Panels), and elsewhere. The idea behind is an endless colorwheel for photographers - the wheel continuously turns around to generate the next color.

Here's an example of colorwheels on a keybow, waiting for a keypress.

![keybow](https://raw.githubusercontent.com/quantumspaces/colorwheels/0.7.2/img/keybow-colorwheels.gif)

All in a few lines of code:

```python

# wheel is initialized and definitions loaded or generated
while True:
    color = wheel.next()
    keybow.set_led(9, color[0], color[1], color[2])
    keybow.show()
    time.sleep(0.1)
```

## Links

* [GitHub](https://github.com/quantumspaces/colorwheels)
* [PyPi](https://pypi.org/project/colorwheels/)
* [Read The Docs](https://colorwheels.readthedocs.io/en/latest/)

## About

We are a maker community in Karlskrona, Sweden. We run makerspaces every week, working with Raspberry Pis, Arduinos and other interesting hardware.

This repository is here to support our community of makers. A lot of our achievements are based and inspired by the community at large. We wish to pay back and share our experiences and lessons learned.
request-signer 0.4.1
Request signing for intersystem communications.
Requires Python: >=3.8

# Request Signer

Creates and validates signed requests between backend systems.

*Requires a `SIGNED_REQUEST_API_KEY` to be defined in your project's settings.*

## Usage

Request signer uses `requests` to make requests, by appending api calls with a `X-SignedRequest-Signature` header.

There are working examples in the project's `django_example` and `flask_example` directories on how to make requests.

Notes:

- You can pass a company_id and/or user_id to the consuming view which will be available in the view as
`request.rs_company_id` and `request.rs_user_id`.
- Views protected by request_signer are assumed to be ADMIN level views and will NOT filter by company
or user unless specifically provided.  It is up to the requestor to make sure they are not asking
for data that those viewing the response should not be allowed to see.

### Django

#### Signing a request

```
from request_signer.django_utils import signed_request

# GET
signed_request.get('https://localhost:8000')


# POST/PATCH

"""
The request_signer wrapper will jsonify your data object and set the Content-Type to 'application/json'.
"""

data = {'a': 'b'}
signed_request.post('https://localhost:8000', data)
signed_request.patch('https://localhost:8000', data)

```

#### Requiring signatures

```
from rest_framework.views import APIView
from request_signer.django_utils.permissions import APISignature

class SigntureRequiredView(APIView):

    permission_classes = [APISignature]

```

### Flask

Due to the pain of managing app and request contexts, you have to pass the signing key into the request in the Flask library.
`api_key` _must_ be passed as a keyword argument.

#### Signing a request

```
from request_signer.flask_utils import signed_request

api_key = app.config['SIGNED_REQUEST_API_KEY']

# GET
signed_request.get('https://localhost:8000', api_key=api_key)


# POST/PATCH

"""
The request_signer wrapper will jsonify your data object and set the Content-Type to 'application/json'.
"""

data = {'a': 'b'}
signed_request.post('https://localhost:8000', data, api_key=api_key)
signed_request.patch('https://localhost:8000', data, api_key=api_key)

```

#### Requiring signatures

Seems to be safest if you place the decorator closest to the method definition.

```
from request_signer.flask_utils.permissions import signature_required

class SigntureRequiredView(BaseView):

    @signature_required
    def get(self, request):
        return 'Good Job'

```


## Building

`pip install --upgrade build`
`python3 -m build`

### Tagging

Update tag whenever semver changes.

`git tag -a v1.4 -m "cool message"`

Tags don't automatically get pushed; push them up like a normal commit.

`git push origin v1.4`