semvec/pypi-packages huggingface dataset:
aiomothr 0.3.0
Asynchronous client library for interacting with MOTHR
Requires Python: >=3.6

# aiomothr

![GitHub](https://img.shields.io/github/license/rs21io/aiomothr)
![Actions](https://github.com/rs21io/aiomothr/workflows/tests/badge.svg)
[![codecov](https://codecov.io/gh/rs21io/aiomothr/branch/main/graph/badge.svg)](https://codecov.io/gh/rs21io/aiomothr)

## Installation
`pip install aiomothr`

## Usage

Basic example submitting a job request

```python
from aiomothr import AsyncJobRequest

request = AsyncJobRequest(service="echo")
request.add_parameter(value="Hello MOTHR!")
result = await request.run_job()
print(result)
```

Submitting a job request Using `AsyncMothrClient`. This allows you to reuse the
client connection when making multiple requests.

```python
from mothrpy import AsyncJobRequest, AsyncMothrClient

client = AsyncMothrClient()

# Send one request
request = AsyncJobRequest(client=client, service="echo")
request.add_parameter(value="Hello MOTHR!")
result = await request.run_job()
print(result)

# Reuse the client in another request
request = AsyncJobRequest(client=client, service="echo")
request.add_parameter(value="Hello again MOTHR!")
result = await request.run_job()
print(result)
```

Submit concurrent job requests

```python
import asyncio

from mothrpy import AsyncJobRequest, AsyncMothrClient

client = AsyncMothrClient()

request_a = AsyncJobRequest(client=client, service="echo")
request_a.add_parameter(value="Hello MOTHR!")

request_b = AsyncJobRequest(client=client, service="echo")
request_b.add_parameter(value="Hello again MOTHR!")

# Execute both requests concurrently
tasks = [request_a.run_job(), request_b.run_job()]
results = await asyncio.gather(*tasks)

for result in results:
  print(result)
```
mothrpy 0.3.0
Client library for interacting with MOTHR
Requires Python: >=3.7

# mothrpy

![GitHub](https://img.shields.io/github/license/rs21io/mothrpy)
![Actions](https://github.com/rs21io/mothrpy/workflows/tests/badge.svg)
[![codecov](https://codecov.io/gh/rs21io/mothrpy/branch/main/graph/badge.svg)](https://codecov.io/gh/rs21io/mothrpy)

## Installation
`pip install mothrpy`

## Usage

Basic example submitting a job request

```python
from mothrpy import JobRequest

request = JobRequest(service='echo')
request.add_parameter(value='Hello MOTHR!')
result = request.run_job()
print(result)
```

Submitting a job request using `MothrClient`. This allows you to reuse the
client connection when making multiple requests.

```python
from mothrpy import JobRequest, MothrClient

client = MothrClient()

# Send one request
request = JobRequest(client=client, service='echo')
request.add_parameter(value='Hello MOTHR!')
result = request.run_job()
print(result)

# Reuse the client in another request
request = JobRequest(client=client, service='echo')
request.add_parameter(value='Hello again MOTHR!')
result = request.run_job()
print(result)
```
oddity 0.1.0
Time Series Anomaly Detection

# Oddity: Time Series Anomaly Detection

Oddity is a time series anomaly detection tool for Python, implemented in Rust. Oddity is capable of learning trend, global seasonality and even local seasonality from time series data, and works best in these situations.

Being written in Rust, Oddity is incredibly fast and can generally fit to even a few thousand time steps in minimal time.

Oddity also provides a few other tools along with anomaly detection, such as: 

- STL decomposition
- gaussian process fitting
- gaussian distribution fitting
- Periodicity inference

More functionality along with general optimizations will be added in the future.
billing-audit 1.0.1
Billing audit utils
Requires Python: >=3.6

# AUDIT UTILS

Các function dùng để dùng lại ở số lượng lớn audit repos

## usages
1. DatabaseWrapper: thêm database session cho task celery  
```python
from audit_utils.database import DatabaseWrapper
from somewhere import BillingDatabaseSession
from somewhere import celery_app

databases_mapping = {"billing": BillingDatabaseSession}

db_wrapper = DatabaseWrapper(databases_mapping)

@celery_app.task(bind=True)  # bind=True is required
@db_wrapper.wraps(databases={"billing"})
def task_name(self, *args, **kwargs):
    result = do_something_with_db(self.billing)
    return result
```

#
`from billing.audit import ❤️`