semvec/pypi-packages huggingface dataset:
antenny-cdk 2.1.0
cdk constructs for antenny
License: MIT
Requires Python: >=3.6

# antenny-cdk

antenny-cdk is a cloud development kit construct library for Antenny. It provides a way to integrate Antenny into your cdk infrastructure.

## Installation

#### npm

```shell
npm install antenny-cdk --save
```

#### pip

```shell
pip install antenny-cdk
```

#### nuget

```shell
dotnet add package Antenny.Cdk
```

## Usage

To create a subscription in your aws-cdk project:

```javascript
const antenny = require('antenny-cdk');

const sub = new antenny.Subscription(this, 'Sub', {
  apiKey: '{api-key}',
  subscription: {
    name: 'example-subscription',
    customerId: '{customerId}',
    region: '{aws-region}',
    resource: {
      protocol: 'ws',
      url: 'wss://example.com'
    },
    endpoint: {
      protocol: 'http',
      url: 'https://example.com'
    }
  }
});
```

There is also a real world example included in our [sample-app](https://github.com/antenny/sample-app).
aio-meilisearch 0.1.1
Async library for MeiliSearch
License: MIT
Requires Python: >=3.8,<4.0
Keywords: asyncio,meilisearch

[![Tests](https://github.com/devtud/aio_meilisearch/workflows/Tests/badge.svg)](https://github.com/devtud/aio_meilisearch/actions?workflow=Tests)
![pypi](https://img.shields.io/pypi/v/aio_meilisearch.svg)
![versions](https://img.shields.io/pypi/pyversions/aio_meilisearch.svg)
[![](https://pypip.in/license/aio_meilisearch/badge.svg)](https://pypi.python.org/pypi/aio_meilisearch)

# AIO_MEILISEARCH
## Async Wrapper over Meilisearch REST API with type hints

```bash
pip install aio_meilisearch
```

## Usage

```python
from typing import TypedDict, List, Optional
import httpx
from aio_meilisearch import (
    MeiliSearch,
    MeiliConfig,
    Index,
    SearchResponse,
)


class MovieDict(TypedDict):
    id: str
    name: str
    genres: List[str]
    url: str
    year: int


http = httpx.AsyncClient()

meilisearch = MeiliSearch(
    meili_config=MeiliConfig(
        base_url='http://localhost:7700',
        private_key='PRIVATE_KEY',
        public_key='PUBLIC_KEY',
    ),
    http_client=http,
)


index: Index[MovieDict] = await meilisearch.create_index(name="movies", pk="id")

await index.update_settings(
    {
        "searchableAttributes": ["name", "genres"],
        "displayedAttributes": [
            "name",
            "genres",
            "id",
            "url",
            "year",
        ],
        "attributesForFaceting": ["genres", "year"],
    }
)

movie_list: List[MovieDict] = [
    {
        "name": "Oblivion",
        "genres": ["action", "adventure", "sci-fi"],
        "id": "tt1483013",
        "url": "https://www.imdb.com/title/tt1483013/",
        "year": 2013,
    }
]

await index.documents.add_many(movie_list)

response: SearchResponse[MovieDict] = await index.documents.search(query="action")
```

## Contributing

**Prerequisites:**
 - **poetry**
 - **nox**
 - **nox-poetry**

Install them on your system:
```bash
pip install poetry nox nox-poetry
```

Run tests:
```bash
nox
```