semvec/pypi-packages huggingface dataset:
acrcloudclient 0.0.4
An AcrCloud Client for Python
Requires Python: >=3.7

# acrcloud
ACR Cloud Python Client

API ACRCloud Doc
---

https://docs.acrcloud.com/reference/console-api


ACRClient Examples Usage
---

List and remove audios that are created on 2021

```python
from acrcloud import ACRCloudClient
import os
ACR_TOKEN=os.getenv("ACR_TOKEN")

def log(bucket, msg):
    """Local log function"""
    print(f"B:{bucket.name} - {msg}")

acr = ACRCloudClient(ACR_TOKEN)
for bucket in acr.list_buckets(search="my-bucket-"):
    print("Processing bucket:", bucket.name)
    audios = bucket.list_audios(order="asc")
    for a in audios:
        if "2021" in a.created_at:
            a.delete()
            log(bucket, f"Delete audio: {a.id} - {a.created_at}")
        else:
            log(bucket, "Not found any audio from 2021")
            break
```

Environment Variables

ACR_CLOUD_TOKEN = <TOKEN>

### Roadmap plan

- [ ] Handle date fields with datetime object
- [X] Handle TOKEN through default environment variables  
- [X] Publish to pip
jatool 1.992
A Python package for jatools

# jatool

A Python package to download and downstream-analysis the Japanese literatures.

## Install 

``` python
pip install jatool

#You need to install Rust to install depandency 'SudachiPy'
##Linux##   
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
##MacOS##
brew install rustup
rustup-init

```

## load jatool package

``` python
from jatool.function import *
```

## Download literatures 

You need to input the author and output path. Using ja_download_fiction_author() function.
Example:
``` python
ja_download_fiction_author(author = '島崎藤村',output_path='fiction_download')
```
## Topic model (LDA)

You need to input the path which contains the txt files. Using topic_model_fition_corpus() and topic_model_fition_text().
Example:
``` python
excleded_words = []  #You can choose excleded_words to adjust the Topic model results.i.e. excleded_words = ['人','事','ぬ','やう']
topic_result = topic_model_fition_corpus(folder_path = 'fiction2',topics_num=2,added_stopwords = excleded_words)
#You can adjust the Topic model results using different 'topics_num' parameter.
topic_model_fition_text(input_corpus = topic_result,topics_num=3)
```

## Clustering analysis

You need to input the path which contains the txt files. Using get_features_path() and feature_clustering().
Example:
``` python
features = get_features_path(folder_path = 'fiction_download')
df = feature_clustering(feature_list_result = features,clusters_n =3)

#if plot can't show correctly the japanese words, please install the japanese font, for example 'Yu Gothic'
#Here is the code for font changing

# fpath = '/Your/Fonts/directory/YuGothic.ttf'
# prop = fm.FontProperties(fname=fpath)
# font_dir = ['/Your/Fonts/directory/']
# for font in fm.findSystemFonts(font_dir):
#     fm.fontManager.addfont(font)
# plt.rcParams['font.family'] = 'Yu Gothic'
```

## Emotion analysis

You need to input the specific text. Using get_sentiment_analyzer().
Example:
``` python
sentiment_analyzer = get_sentiment_analyzer()
sentiment_analyzer("私は幸福である。")
```

## Translation 
You need to input the specific text. Using translation_from_jp_to_en(), translation_from_jp_to_cn(), translation_from_lan_to_jp.
Example:
``` python
translation_from_jp_to_en("私は幸福である。")
translation_from_jp_to_cn("私は幸福である。")
translation_from_lan_to_jp('I am happy.')
```
lifx-cli 2.5.7
The Unofficial LIFX CLI
Requires Python: >=3.5

# The Unofficial LIFX CLI [![Latest Version](https://img.shields.io/pypi/v/lifx-cli.svg)](https://pypi.org/project/lifx-cli/)

[![CI/CD](https://github.com/necrux/lifx-cli/actions/workflows/python-publish.yml/badge.svg)](https://github.com/necrux/lifx-cli/actions/workflows/python-publish.yml)[![Linter](https://github.com/necrux/lifx-cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/necrux/lifx-cli/actions/workflows/pylint.yml)[![Tests](https://github.com/necrux/lifx-cli/actions/workflows/pytest.yml/badge.svg)](https://github.com/necrux/lifx-cli/actions/workflows/pytest.yml)[![License](https://img.shields.io/pypi/l/lifx-cli.svg)](https://github.com/necrux/lifx-cli/blob/main/LICENSE)[![Python-Support](https://img.shields.io/pypi/pyversions/lifx-cli.svg)](https://pypi.org/project/lifx-cli/)

```
██      ██ ███████ ██   ██      ██████ ██      ██
██      ██ ██       ██ ██      ██      ██      ██
██      ██ █████     ███       ██      ██      ██
██      ██ ██       ██ ██      ██      ██      ██
███████ ██ ██      ██   ██      ██████ ███████ ██
```

**This project is not affiliated with or endorsed by LIFX.**

## Installation

```
pip install lifx-cli
```

## Authentication

Authentication is done using your token stored in `~/.keys`. This can be configured manually or by running `lifx --configure`.

**Example `~/.keys` *ini* file:**

```
[lifx]
token = FAKE_TOKEN
```

Alternatively, you can override this value by setting the `LIFX` environment variable:

```
export LIFX=FAKE_TOKEN
```

Refer to the [documentation](https://api.developer.lifx.com/reference/how-to-use-the-following-examples) in order to generate your own token.

## Targeting Lights

The LIFX CLI primary uses device/group/scene IDs to operate, however LIFX does provide multiple options for the light 'selectors'. While not yet officially available via the CLI, you can tap into these options by prefacing your light ID accordingly (if there are spaces in the name, simply enclose in `"`).

```
lifx lights --toggle all
lifx lights --toggle "label:Left Lamp"
lifx lights --toggle "group: Upstairs Lights"
lifx lights --toggle "location_id:1d6fe8ef0fde4c6d77b0012dc736662c"
lifx lights --toggle "location:Home"
```

### Finding the Proper ID

In order to get a listing of device and group IDs, simply run `--list` with the `lights` sub-command.

```
lifx lights --list
```

In order to get a listing of scene IDs, run the same command for `scenes`.

```
lifx scenes --list
```

### Setting colors

Colors can be set by name, e.g. `red`, `yellow`, but the CLI also supports all methods to set the color that the API supports.

In order to see a full list of supported methods run `lifx colors --list`. You can also validate a color's HSBK *(hue, saturation, brightness, and kelvin)* via `lifx colors --color red`.