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.13+. Tested on Ubuntu & Windows.

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.15.26.tar.gz (65.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glow-0.15.26-py3-none-any.whl (70.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glow-0.15.26.tar.gz
  • Upload date:
  • Size: 65.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glow-0.15.26.tar.gz
Algorithm Hash digest
SHA256 c51f2d3bfef51e126555a581b91e3c8e9abbc8c8aa11ae0948d492a50adff62a
MD5 7e3268191e4213f3acc901c1fc203c81
BLAKE2b-256 490f1fd717edecf2f10619448e4d86003bf076d13f7f5a8fd5781ec4f74ddc9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for glow-0.15.26.tar.gz:

Publisher: publish.yaml on arquolo/glow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: glow-0.15.26-py3-none-any.whl
  • Upload date:
  • Size: 70.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glow-0.15.26-py3-none-any.whl
Algorithm Hash digest
SHA256 cbfc593dd0a95917b2ef032461c739c5e54ddb18d21846cfb9b4a427261d3d15
MD5 3f5e2a03c553a4e7e8548b1b1c273039
BLAKE2b-256 a9ff0c02b3d3529a855a1fd3fae45b36dc93dcf150f4eb27d5fceb2b39bf5350

See more details on using hashes here.

Provenance

The following attestation bundles were made for glow-0.15.26-py3-none-any.whl:

Publisher: publish.yaml on arquolo/glow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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