semvec/pypi-packages huggingface dataset:
yappt 0.3.2
Yet another pretty printer for tables and trees
Requires Python: >=3.9

# yappt

Yet another pretty printer for tables and trees.

**Note:** Versions `0.3.0` and later aren't compatible with earlier versions

A collection of classes and functions to format textual data for printing. The main functions (`tabulate` and `treeiter`) do not require reading entire dataset into memory, allowing printing large amount of data in streaming fashion.

Class       | Capabilities
------------|------------------------------------------------------------------------------------------------------
`PrettyInt` | When formatted, returns human-readable value. It can either show K,M,G suffix or exponential notation
`Duration`  | When formatted, returns a value that shows duration in hours, minutes and seconds.

Function        | Capabilities
----------------|-------------------------------------------------------------------------------------------------------
`tabulate`      | Pretty prints an iterable of either `dataclass` objects or iterable of sequences of strings as a table
`tabulate_iter` | Like `tabulate` but returns an iterable over formatted lines of text instead of printing it
`treeiter`      | Returns an iterable over tuples of formatted representation of tree node and the original node
`strip_pfx`     | strips a common prefix from all substrings that are separated by new-lines
`indent`        | indents all substrings that are separated by new-lines
`iter_more`     | accepts an iterable and returns a new iterable that returns original item and a *more items* indicator
`format_bool`   | format boolean values as unicode "✓" and "✗" code points

Refer to `tests/` folder for examples and usage
midi-abstraction 2.0.2
Abstract MIDI pitches into keys, chords, modes, scales, and notes.
Requires Python: >=3.10

# midi_abstraction

Abstract midi pitches into keys, chords, modes, scales, and notes.

# Installation
```
# From pip
pip install midi_abstraction

# From source
pip3 install --user --break-system-packages .
```
- requires python 3.10 or newer

# Usage
```
#!/usr/bin/env python3
import midi_abstraction as mab

# Get a midi note from a letter
octave = 4
middle_c = mab.NOTES["c"][octave]

# Get a letter note from a midi pitch
some_note = None
for k, v in mab.NOTES.items():
    if 48 in v:
        some_note = k
        break

# Get a pitch for a drum
side_stick = mab.Drum.SIDE_STICK.value

# Get a drum from a pitch
some_drum = mab.Drum(35)

# List all drums
list(mab.Drum)

# List all chord names
list(mab.Chord)

# Get the note names that a chord is made of
c_major_notes = mab.CHORDS['c_major']


# Get the notes and chords from any mode/key.
# These are a list of sets due to enharmonic equivalence.
c_major_chords = mab.MAJOR.chords('c')
eb_phrygian_notes = mab.PHRYGIAN.notes('eb')

# Get chords from scale degrees
third_degree_chord = next(iter(mab.MAJOR.chords('c')[2]))

# Get the notes for a chord in a particular octave
octave = 4
middle_c_major_notes = []
for note in mab.CHORDS['c_major']:
    middle_c_major_notes.append(mab.NOTES[note][octave])

```