semvec/pypi-packages huggingface dataset:
meteorite 0.1.0
A fast and simple web server for machine learning models
Requires Python: >=3.7
Keywords: model,server,api,hosting

# ☄️ Meteorite

A fast and simple web server to host your Machine Learning model.

<!-- TOC -->

- [☄️ Meteorite](#-meteorite)
  - [Install the pip package](#install-the-pip-package)
  - [Write your server](#write-your-server)
  - [Project status](#project-status)
  - [Contribute to ☄️ Meteorite](#contribute-to--meteorite)
  <!-- TOC -->

## Install the pip package

```shell
pip install meteorite
```

## Write your server

```python
import json
import meteorite

app = meteorite.Meteorite()
app.set_webhook_url("https://testapp.via.routehead.com")

@app.predict
def predict(data):
    body = data.decode("utf-8")
    """
    Run your model on the input
    """
    return body

app.start(port=4000) # port is 4000 by default
```

By default, the server starts at port `4000`. The `predict` function will run with GET/POST requests on `/predict`.

## Get your result: a webhook

The `set_webhook_url` function has been added to the Meteorite API to get responses from prediction requests. This makes Meteorite suitable for use in long-running ML tasks.

### The webhook URL 

Your webhook URL must accept a POST request at the specific route. The result JSON will be sent as body of the request.

## Project status

This project is under active development. We will not recommend you to use this package for critical applications.
We will welcome all contributions! Please refer to the contributions section for more details.

Some of the features we're still working on:

- [x] Pass POST request String and JSON into the Python function.
- [x] Return String and JSON with the correct content type headers.
- [x] Graceful error handling (⚠️ Priority).
- [x] Customise the port for the server
- [ ] Allow more datatypes for POST request to the model.
- [ ] Create more examples.

## Contribute to ☄️ Meteorite

Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) docs for details.

[Join our Discord channel](https://discord.gg/qXTn7cZzrZ) if you have more questions.
lingua-py 0.1.1
Python bindings for the Lingua(LanguageDetect) Rust library
Requires Python: >=3.11, <3.12
Keywords: nlp,language-detect,rust,rust-library,python-bindings

<div align="center">

  ![lingua](https://raw.githubusercontent.com/pemistahl/lingua-rs/main/images/logo.png)
  
  ![Static Badge](https://img.shields.io/badge/dependency_version%3Alingua-1.5.0-blue)
  [![build status](https://github.com/chatblanc-ciel/lingua-py/actions/workflows/CI.yml/badge.svg)](https://github.com/chatblanc-ciel/lingua-py/actions/workflows/CI.yml)
  ![PyPI - Version](https://img.shields.io/pypi/v/lingua_py)
  [![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
</div>

<br>

# Lingua-py

Lingua-py is an Python wrapper for the [Rust][1] [lingua][2] crate with [PyO3/Maturin][4].

## Summary

Lingua is a NIF-based bridge for the [lingua][2] [Rust][1] language detection library.

## Usage 

In imitation of [Upstream][3], introduce basic usage.
Alternatively please see [`tests` section](https://github.com/chatblanc-ciel/lingua-py/tree/master/python/tests/small_usage).

### 10.1 [Basic usage](https://github.com/pemistahl/lingua-rs#101-basic-usage)

```python
    languages: list[Language] = [Language.English, Language.Japanese]
    detector: LanguageDetector = LanguageDetectorBuilder.from_languages(
        languages
    ).build()

    expected: Language = Language.Japanese
    actual: Language = detector.detect_language_of("これは何語ですか？")

    assert actual == expected
```
<details>
<summary>pytest command</summary>

```bash
rye sync --no-lock
rye run python -m pytest -s -vv python/tests/small_usage/test_basic.py::test_basic
```
</details>


# License

[Apache License v2](./LICENSE), and lingua-rs is also [Apache License v2](https://github.com/pemistahl/lingua-rs/blob/master/LICENSE).






[1]: https://www.rust-lang.org 
[2]: https://crates.io/crates/lingua
[3]: https://github.com/pemistahl/lingua-rs.git
[4]: https://www.maturin.rs/
angola 0.17.0
angola
Requires Python: >=3.8.0

# Angola

**Angola**

## API

- `db` 
- `xql_to_aql`
- `parse_dict_mutations`
- `gen_xid`
- `Collection` 
- `CollectionItem`
- `CollectionActiveRecordMixin`
- 
## Connection

```
import angola

#--- connect
db = angola.db(hosts="http://host:8529", username="root", password:str)

#--- select collection
coll = db.select_collection('test')

#--- insert item
coll.insert({k:v, ...})

#--- insert item with custom _key
coll.insert({k:v,...}, _key='awesome')


```

### Query 



```
  {
    "_modified_at:$datetime": "+2hh"
  }
```

Format:

```
YYYY: Year
MM: Month
DD: Date
HH: Hour
mm: Min
ss: seconds

ISODATE: YYYY-MM-DDTHH:mm:ss

```


### $AND and $OR

```
filters = {

  "$or": [
    { // query between dates
      "_created_at:$lt": "@@CURRDATE() -2days",
      "_created_at:$gt": "@@CURRDATE() +2days"
    }
  ]
}
```

### Insert

### Update

### Delete

### Collection

### SubCollection



### Operators


### Custom Operators