semvec/pypi-packages huggingface dataset:
pitchcontext 0.1.11
Library for melody analysis based on pitch context vectors.
Requires Python: !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8

---
component-id: pitchcontext
name: pitchcontext
description: Python module for melody analysis based on pitch context vectors.
image: https://github.com/polifonia-project/pitchcontext/blob/main/image/vector_example_hor.png
type: SoftwareLibrary
release-date: "2023-06-02"
release-number: 0.1.9
doi: 10.5281/zenodo.8020644
work-package: 
- WP3
pilot: 
- TUNES
keywords:
  - melody
  - pitch analysis
licence:
  - MIT
contributors:
  - P. van Kranenburg <https://github.com/pvankranenburg>
project: polifonia-project
related-components:
- story:
  - Mark#1_FolkMusic
  - Brendan#1_FindTraditionalMusic
--- 

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8020644.svg)](https://doi.org/10.5281/zenodo.8020644)

# pitchcontext
Python module for melody analysis based on pitch context vectors.

## Prerequisites:
- lilypond installed and in command line path.
- convert (ImageMagick) installed and in command line path.
- kernfiles and corresponding .json files with melodic features.

The .json files need to be formatted according to the standard of [MTCFeatures](https://pvankranenburg.github.io/MTCFeatures/melodyrepresentation.html).

## Installation
The latest release of the pitchcontext module can be installed from pypi:
```
$ pip install pitchcontext
```

The development version can be installed by cloning the repository and by using the provided pyproject.toml and poetry. In root of the rep do:
```
$ poetry install
```
This creates a virtual environment with pitchcontext installed.

## Examples
Requires a Python3 environment with both pitchcontext and streamlit installed.
Four examples are provided:
- apps/st_dissonance.py
- apps/st_novelty.py
- apps/st_unharmonicity.py
- apps/st_impliedchords.py

To run:
```
$ streamlit run st_dissonance.py -- -krnpath <path_to_kern_files> -jsonpath <path_to_json_files>
```
The -- is needed to pass the following arguments to the python script.
vttdiff 0.0.3
Create a HTML "diff" ebVTT files
Requires Python: >=3.11

# vttdiff

[![Tests](https://github.com/edsu/vttdiff/actions/workflows/test.yml/badge.svg)](https://github.com/edsu/vttdiff/actions/workflows/test.yml)

This is a small utility for "diffing" two (or more) WebVTT files and generating an HTML file like [this]. It was designed for comparing a "ground truth" WebVTT file with WebVTT files that might have been created with different software or services.
 
```
usage: vttdiff [-h] [--output OUTPUT] [--ignore-times] [--sentences] [--width WIDTH] vtt [vtt ...]

positional arguments:
  vtt              The path to two (or more) WebVTT files

options:
  -h, --help       show this help message and exit
  --output OUTPUT  Write output to this file path
  --ignore-times   Ignore cue times in the diff
  --sentences      Reorient lines as sentences
  --width WIDTH    The default width (in characters) of each transcript in the diff
```

So you could run it like:

```shell
% vttdiff --output diff.html first.vtt second.vtt
```

## Install

You should be able to pip install vttdiff:

```shell
$ pip3 install vttdiff
```

or just run it directly:

```shell
$ pipx run vttdiff
```

## Develop

*vttdiff* uses Python's [difflib] and is held together by duct tape and baling wire. If you have ideas for improving it please send a PR!

```
$ git clone git@github.com:edsu/vttdiff.git
$ uv run pytest
```

[this]: https://edsu.github.io/vttdiff/
[difflib]: https://docs.python.org/3/library/difflib.html
mcp-server-mariadb 0.1.2
MCP Server for MariaDB
Requires Python: >=3.10

# mcp-server-mariadb

An MCP server implementation for retrieving data from mariadb

## Features

### Resources

Expose schema list in database

### Tools

- query_database
  - Execute read-only operations against MariDB

## dependency

### install mariadb

- mac
  - when install mariadb,
maybe raise os error below.
you can resolve by installing mariadb-connector-c.

```bash

OSError: mariadb_config not found.

      This error typically indicates that MariaDB Connector/C, a dependency which
      must be preinstalled, is not found.
      If MariaDB Connector/C is not installed, see installation instructions
      If MariaDB Connector/C is installed, either set the environment variable
      MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the
       'mariadb_config' option to the file location of the mariadb_config utility.


```

1. execute `brew install mariadb-connector-c`
2. execute `echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrc`
3. set environment variable `export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_config`
4. execute `uv add mariadb` again.

## Usage with Claude Desktop

### Configuration File

Paths to Claude Desktop config file:

- **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

Add this configuration to enable development/unpublished servers:

```json
{
    "mcpServers": {
        "mcp_server_mariadb": {
            "command": "/PATH/TO/uv",
            "args": [
                "--directory",
                "/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb",
                "run",
                "server.py"
            ],
            "env": {
                "MARIADB_HOST": "127.0.0.1",
                "MARIADB_USER": "USER",
                "MARIADB_PASSWORD": "PASSWORD",
                "MARIADB_DATABASE": "DATABASE",
                "MARIADB_PORT": "3306"
            }
        }
    }
}
```

**Note**: Replace these placeholders with actual paths:

- `/PATH/TO/uv`: Full path to UV executable
- `/YOUR/SOURCE/PATH/mariadb-mcp-server/src/mcp_server_mariadb`: Path to server source code

## License

This mcp server is licensed under the MIT license.  please see the LICENSE file in the repository.