semvec/pypi-packages huggingface dataset:
azurecost 0.4.0
Simple and easy command line to view azure costs.
Requires Python: >=3.8
Keywords: azure, cost, tool, costmanagement

# azurecost

[![PyPI version](https://badge.fury.io/py/azurecost.svg)](https://badge.fury.io/py/azurecost)
[![Build Status](https://github.com/toyama0919/azurecost/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/toyama0919/azurecost/actions/workflows/ci.yml)

Simple and easy command line to view azure costs.

Supports python 3.8 and above.

## Settings

```sh
az login
```

## Examples

#### show cost monthly

```bash
$ azurecost -s my-subscription
key                   2023-08    2023-09
------------------  ---------  ---------
total                  492.77      80.28
Cognitive Services     492.77      80.28
Bandwidth                0          0
Storage                  0          0
```

* You can omit the -s by specifying the environment variable AZURE_SUBSCRIPTION_ID.

```bash
$ export AZURE_SUBSCRIPTION_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ export AZURE_RESOURCE_GROUP=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ azurecost
key                   2023-08    2023-09
------------------  ---------  ---------
total                  492.77      80.28
Cognitive Services     492.77      80.28
Bandwidth                0          0
Storage                  0          0
```

#### show cost (Multiple Dimensions)

```
$ azurecost -s my-subscription -d ResourceGroup -d ServiceName
key                                     2023-08    2023-09
------------------------------------  ---------  ---------
total                                    492.77     426.97
RG-1, Cognitive Services                 281        366
RG-2, Cognitive Services                 211.77      60.97
RG-3, Storage                              0          0
RG-4, Storage                              0          0
RG-5, Storage                              0          0
RG-6, Storage                              0          0
RG-7, Bandwidth                            0          0
RG-7, Storage                              0          0
```

## Python API

```py
subscription = "my-subscription"
core = Azurecost(
    False,
    "MONTHLY",
    ["ServiceName"],
    subscription_name=subscription,
    # resource_group="my-rg"
)
total_results, results = core.get_usage(
    ago=2,
)
text = core.convert_tabulate(total_results, results)
print(text)
```

## Installation

```sh
pip install azurecost
```

## CI

### install test package

```
$ ./scripts/ci.sh install
```

### test

```
$ ./scripts/ci.sh run-test
```

flake8 and black and pytest.

### release pypi

```
$ ./scripts/ci.sh release
```

git tag and pypi release.
doscon-tb-api 0.1.8
minmalistic library to connect to the thingsboard API.
Requires Python: >=3.6

# tb_api
Library for connecting to thingsboard to perform API actions. 

# How to use
TODO


# TESTS
requires<br>
pytest==7.4.4<br>
pytest-cov==4.1.0<br>

## To run tests
pytest

## How to build
pip install setuptools wheel (first time)<br>

Remove previous dist and update version number in setup.py<br>
python setup.py sdist bdist_wheel<br>

### upload to pipy
pip install twine (first time)<br>

twine upload dist/*<br>
enter username \_\_token\_\_ and api token as password.
ruSpam 0.3.5
A simple spam detection library using a pre-trained model from Hugging Face
Requires Python: >=3.6


# Spam Detection Library

Это официальная библиотека для обнаружения спама от организации https://huggingface.co/NeuroSpaceX. Она предоставляет удобные средства для проверки сообщений на спам с использованием моделей машиного обучения.

## Установка

Для установки библиотеки используйте pip:

```bash
pip install ruSpam
```

## Пример использования

```python
from ruSpamLib import is_spam

message = input("Введите сообщение: ")

pred_average, confidence = is_spam(message, model_name="spamNS_v6")

print(f"Prediction: {'Spam' if pred_average else 'Not Spam'}")
```

## Модели 

1. spamNS_v1
2. spamNS_v6

Лицензия и использование
При использовании библиотеки в некоммерческих проектах необходимо указывать автора библиотеки — NeuroSpaceX.