Skip to main content

Functional Python tools

Project description

Glow Library

Set of functional tools for easier prototyping

Overview

...

Installation

For basic installation use:

pip install glow
Specific versions with additional requirements
pip install glow[io]  # For I/O extras
pip install glow[all]  # For all
Glow is compatible with: Python 3.10+. Tested on ArchLinux, Ubuntu 20.04/22.04, Windows 10/11.

Structure

  • glow.* - Core parts, available out the box
  • glow.io.* - I/O wrappers to access data in convenient formats

Core features

  • glow.mapped - convenient tool to parallelize computations
  • glow.memoize - use if you want to reduce number of calls for any function

IO features

glow.io.Sound - playable sound wrapper

from datetime import timedelta

import numpy as np
from glow.io import Sound

array: np.ndarray
sound = Sound(array, rate=44100)  # Wrap np.ndarray
sound = Sound.load('test.flac')  # Load sound into memory from file

# Get properties
rate: int = sound.rate
duration: timedelta = sound.duration
dtype: np.dtype = sound.dtype

 # Plays sound through default device, supports Ctrl-C for interruption
sound.play()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glow-0.14.1.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

glow-0.14.1-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file glow-0.14.1.tar.gz.

File metadata

  • Download URL: glow-0.14.1.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for glow-0.14.1.tar.gz
Algorithm Hash digest
SHA256 28cb89f60cc98328184fed8fafdeb8fc939dbf89f9cd4d35ba1be8b4700dd4b8
MD5 edf57cefa6b57c378e8c8e578aac0e45
BLAKE2b-256 304530ee7c99ea75f1e64780426e8c4e22bd0f41d1f385d626f76f7744c60d18

See more details on using hashes here.

File details

Details for the file glow-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: glow-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for glow-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2c7a674a50d6de5ea6527ee41487b340fc8b345a381576b135167bc34b861b
MD5 397bbcb0d37dcba076d334452a8b1b68
BLAKE2b-256 eaf60dc10114a1b4dd99e755ea578827cd40fdab2806e934e586bf61d81a0d92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page