semvec/pypi-packages huggingface dataset:
django-model-prefix 1.1.0
A django module that allows to configure a global or model based database table prefix
License: MIT License

# Django Model Prefix
[![PyPI](https://badge.fury.io/py/django-model-prefix.svg)](https://pypi.org/project/django-model-prefix/)
[![Test Status](https://github.com/anexia/django-model-prefix/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/anexia/django-model-prefix/actions/workflows/tests.yml)
[![Codecov](https://codecov.io/gh/anexia/django-model-prefix/branch/main/graph/badge.svg)](https://codecov.io/gh/anexia/django-model-prefix)

A Django package that adds a global or model based database table prefix

# Installation

Install using pip:

```shell
pip install django-model-prefix
```

Add model_prefix to your INSTALLED_APPS list. Make sure it is the first app in the list

```python
INSTALLED_APPS = [
    'model_prefix',
    ...
]
```

# Usage

## Global table prefix

The global database table prefix can be configured using the `DB_PREFIX` setting

```python
DB_PREFIX = "foo_"
```

## Model table prefix

Optionally a model based prefix can also be defined by extending the models meta class

```python
class Meta:
    db_prefix = "bar_"
```

This can be also used in order to disable the global prefix for a specific model


```python
class Meta:
    db_prefix = None
```
django-aws-iot 1.1.0
A django module that allows to connect and publish messages to AWS IoT
License: MIT License

# Django AWS IoT
[![PyPI](https://badge.fury.io/py/django-aws-iot.svg)](https://pypi.org/project/django-aws-iot/)
[![Test Status](https://github.com/anexia/django-aws-iot/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/anexia/django-aws-iot/actions/workflows/tests.yml)
[![Codecov](https://codecov.io/gh/anexia/django-aws-iot/branch/main/graph/badge.svg)](https://codecov.io/gh/anexia/django-aws-iot)

A django module that allows to connect and publish messages to AWS IoT

# Installation

Install using pip:

```shell
pip install django-aws-iot
```

Extend django settings:

```python
AWS_IOT_ENABLED = True
AWS_IOT_SERVER = "server.amazonaws.com"
AWS_IOT_CLIENT_ID = "Thing-Name"
AWS_IOT_CERT_PATH = "/certificates/8a6a6cfdf1-certificate.pem.crt"
AWS_IOT_KEY_PATH = "/certificates/8a6a6cfdf1-private.pem.key"
AWS_IOT_ROOT_CERT_PATH = "/certificates/AmazonRootCA1.pem"
```

# Usage

Currently the library only supports publishing messages to AWS IoT:


```python
from django_aws_iot.aws_iot import mqtt_publish


mqtt_publish(
    'topic/123',
    {
        'foo': 'bar'
    }
)
```