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
Structure
glow.*
- Core parts, available out the boxglow.io.*
- I/O wrappers to access data in convenient formats
Core features
glow.mapped
- convenient tool to parallelize computationsglow.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.6.tar.gz
(51.1 kB
view details)
Built Distribution
glow-0.14.6-py3-none-any.whl
(59.2 kB
view details)
File details
Details for the file glow-0.14.6.tar.gz
.
File metadata
- Download URL: glow-0.14.6.tar.gz
- Upload date:
- Size: 51.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e255fd1f2112433ab0e9c7b638fc57c2e8cfe28c5c7b0b2819a89e6ecf732ab0
|
|
MD5 |
d362ab22b3904d4db18c876fa8619b87
|
|
BLAKE2b-256 |
391f9b3ef2991de6be990e9e28ebfaf4ddd7c3209c6a3250ce36146e66a1a6c3
|
File details
Details for the file glow-0.14.6-py3-none-any.whl
.
File metadata
- Download URL: glow-0.14.6-py3-none-any.whl
- Upload date:
- Size: 59.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
68d8b5f1827e22609b40607166089c106f89779233bf126e0e9ff5d6d4a791c4
|
|
MD5 |
970adbcb9f743f038c2360d52cf3d1ba
|
|
BLAKE2b-256 |
ed6bfe81aac08a511a5182b4cf4ae00a663a9997658babefb2bd6b19ae6ee49a
|