semvec/pypi-packages huggingface dataset:
korean-glue 0.1.4
A modern Python library for Korean josa processing with dictionary support and framework integrations.
License: MIT
Requires Python: >=3.10

<!-- README.md -->
[한국어](README.ko.md)

# korean_glue

[![CI](https://github.com/woojing/korean-glue/actions/workflows/ci.yml/badge.svg)](https://github.com/woojing/korean-glue/actions/workflows/ci.yml)
[![Python](https://img.shields.io/badge/Python-3.10%20|%203.11%20|%203.12%20|%203.13-blue?logo=python&logoColor=white)](https://www.python.org/)
[![License](https://img.shields.io/github/license/woojing/korean-glue)](LICENSE)

A modern Python library for Korean josa processing combining rule-based and dictionary-based approaches. Django template tags and Jinja2 filters are included for easy web framework integration.

## Installation

```bash
pip install korean_glue
```

Framework integrations rely on Django and Jinja2.

## Usage

### Basic API

Single-form patterns like `은`, `이`, or `을` are also recognized and
automatically expanded to their counterparts.

```python
from korean_glue import attach, get_josa

print(get_josa("사과", "은/는"))  # "는"
print(attach("사과", "은/는"))    # "사과는"
print(get_josa("철수", "은"))    # "는"
print(attach("철수", "은"))      # "철수는"
```

### Custom Exception Rules

```python
from korean_glue import add_exception_rule, remove_exception_rule, attach

add_exception_rule("사과", "은/는", "당")
print(attach("사과", "은/는"))  # "사과당"
remove_exception_rule("사과", "은/는")
```

### Command Line

Install the package and run the `kglue` command:

```bash
kglue '철수(은/는)'
kglue '철수(은)'
kglue 'K(이/가)'
kglue '3(을/를)'
```

### Framework Integrations

**Django**

To use the filter, load the template tag library first:

```django
{% load korean_glue.integrations.django_tags %}
{{ variable|josa:"을/를" }}
```

Alternatively add `"korean_glue.integrations.django_tags"` to
`OPTIONS['builtins']` in the `TEMPLATES` setting.

**Jinja2**

```python
from korean_glue.integrations import jinja_filters
from jinja2 import Environment

env = Environment()
jinja_filters.register(env)
result = env.from_string("{{ word|josa('으로/로') }}").render(word="서울")
```

## Running Tests

After setting up a development environment (see `CONTRIBUTING.md`), run:

```bash
pytest
```
pygments-sb-nrql 0.7.0
New Relic SDK to interact with Nerdgraph API.
License: MIT
Requires Python: <4.0.0,>=3.9.0
Keywords: Softbutterfly, New Relic, SDK

![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)

![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/pygments-sb-nrql)
![PyPI - Package version](https://img.shields.io/pypi/v/pygments-sb-nrql)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pygments-sb-nrql)
![PyPI - MIT License](https://img.shields.io/pypi/l/pygments-sb-nrql)

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/newrelic-sb-nrql-pygments/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/newrelic-sb-nrql-pygments/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[![pipeline status](https://gitlab.com/softbutterfly/open-source/newrelic-sb-nrql-pygments/badges/master/pipeline.svg)](https://gitlab.com/softbutterfly/open-source/newrelic-sb-nrql-pygments/-/commits/master)

# Pygments SB NRQL

New Relic Query Language (NRQL) lexer for Pygments built by Dynova.

NRQL is a SQL-like query language you can use to query your data in New Relic.
This is a Python package that provides a lexer for Pygments to highlight NRQL
queries.

## Requirements

* Python 3.9.0 or higher

## Install

Install from PyPI

```bash
pip install pygments-sb-nrql
```

## Usage

Just install and create markdown blocks with the language `nrql` to get a
highlighted code block.

<pre>
```nrql
-- Example NRQL query
FROM
    Log
WITH
    numeric(http.statusCode) AS `sb.statusCode`,
    numeric(timespan) * 1000 AS `sb.duration`,
    capture(pageUrl, r'https://(?P<domain>[^/]+)/.+') AS `sb.domain`
SELECT
    average(`sb.duration`) AS 'Avg. Duration (s)'
WHERE
    entity.name = 'Sample Application' AND
    `sb.duration` > 0
FACET
    CASES(
        `sb.statusCode` < 400 AS 'Success',
        `sb.statusCode` < 500 AS 'Client Error',
        `sb.statusCode` < 600 AS 'Server Error'
    ) AS 'Status',
    `sb.domain` AS 'Domain'
TIMESERIES
    3 hours
SINCE
    '2024-10-01 00:00:00'
UNTIL
    '2024-11-01 00:00:00'
WITH TIMEZONE
    'America/LIMA'
COMPARE WITH
    1 month ago
```
</pre>

![Pygments SB NRQL](https://raw.githubusercontent.com/dynovaio/newrelic-sb-nrql-pygments/refs/heads/master/assets/newrelic-sb-nrql-pygments--example.png)

## Docs

* [Documentación](https://dynovaio.github.io/newrelic-sb-nrql-pygments)

## Changelog

All changes to versions of this library are listed in the [change history](./CHANGELOG.md).

## Development

Check out our [contribution guide](./CONTRIBUTING.md).

## Contributors

See the list of contributors [here](https://github.com/dynovaio/newrelic-sb-nrql-pygments/graphs/contributors).

## License

This project is licensed under the terms of the MIT license. See the
<a href="./LICENSE.txt" download>LICENSE</a> file.
cameo-youtube-transcript 1.1.1
一個用於下載 YouTube 影片字幕的工具
License: MIT
Requires Python: >=3.6
Keywords: youtube, transcript, subtitle, 字幕, 下載, cameo

````markdown
# Cameo Youtube Transcript Downloader

Cameo Youtube Transcript Downloader 是一個 Python 套件，它可以簡單地從 YouTube 影片下載字幕。此工具可以透過 Python 庫的方式使用，也可以在命令列界面運行。

## 安裝

使用以下命令安裝 Cameo Youtube Transcript Downloader：

```sh
python3 -m pip install cameo-youtube-transcript
```
````

或者從 GitHub 安裝：

```sh
python3 -m pip install git+https://github.com/bohachu/cameo_youtube_transcript.git
```

## 套件用法

在 Python 程式可以透過以下方式匯入並使用 Cameo Youtube Transcript Downloader：

```python
from cameo_youtube_transcript import cameo_youtube_transcript

# 下載字幕
cameo_youtube_transcript(url, username, output_folder)
```

其中，`url` 是您要下載字幕的 Youtube 影片網址，`username` 是您的使用者名稱，`output_folder` 是存放輸出目錄的路徑。

## 命令列界面用法

在命令列界面，可以直接運行模組：

```sh
cameo_youtube_transcript
```

命令列界面提供以下參數：

- `urls`: Youtube 影片網址（必填）
- `--username`, `-u`: 使用者名稱（可選，預設為 "cbh@cameo.tw"）
- `--folder`, `-f`: 輸出目錄的路徑（可選）

範例：

```sh
cameo_youtube_transcript "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -u "cbh@cameo.tw" -f "/path/to/output/folder"
```

## 功能特色

- 支援繁體中文字幕優先下載
- 如果找不到繁體中文字幕，會自動使用第一個可用的字幕
- 將下載的字幕儲存為 JSON 格式，包含影片 URL、字幕內容等資訊
- 可同時處理多個 YouTube 影片 URL

## 輸出範例

```json
{
  "user": "cbh@cameo.tw",
  "type": "youtube_transcript",
  "time": "2023-05-21T04:21:18Z",
  "id": "23b9242f-2f62-42e8-bdbe-f65241d2ac5a",
  "url": "https://www.youtube.com/watch?v=HEquaCEckwg",
  "transcript": "0:00\nsummary of finish big by bill birlingham\n0:04\nwritten by lee schullery in quick read\n0:06\nnarrated\n0:07\nby alex smith introduction\n0:11\nthe truth is that every entrepreneur\n..."
}
```

## 版本歷史

- 1.1.1 (現行版本)
  - 更新 youtube-transcript-api 至 v1.1.1
  - 調整新版 api 取得 text 的方式
- 1.1.0
  - 更新功能以優先支援繁體中文字幕
- 1.0.4
  - 更名為 cameo-youtube-transcript
  - 加入 print 列印直接顯示
- 1.0.3
  - 改名字從 youtube_transcript_downloader 到 youtube_transcript 避免撞名 pypi
- 1.0.2
  - 新增加 README.md 完整說明