🎼 ABC ↔ MusicXML Transformation Engine with Redis Stream Processing
Project description
🎼 ABCWeaver - ABC ↔ MusicXML Transformation Engine
ABCWeaver is a powerful Python package for bidirectional transformation between ABC notation and MusicXML format, enhanced with Redis stream processing capabilities through the nyro package.
✨ Features
- Bidirectional Conversion: ABC ↔ MusicXML with full musical integrity
- Redis Streams: Enhanced processing through
nyropackage integration - CLI Interface: Intuitive command-line tools for all operations
- Customer Processing: Stream-based customer-specific enhancements
- Validation: Comprehensive syntax checking for both formats
- Batch Operations: Process multiple files efficiently
🚀 Installation
pip install abcweaver
For development:
pip install abcweaver[dev]
📖 Quick Start
Create MusicXML from ABC
abcweaver create "C D E F G A B c" --output melody.musicxml --title "Simple Scale"
Insert ABC into existing MusicXML
abcweaver insert score.musicxml "G2 A2 B2 c2" --part "Melody" --instrument "Flute"
Extract ABC from MusicXML
abcweaver extract score.musicxml --part "P1" --output melody.abc
Stream Processing with Redis
# Send ABC to Redis stream
abcweaver stream-send "C D E F" --stream "song_evolution"
# Consume and process
abcweaver stream-consume --stream "song_evolution" --target output.musicxml
🏗️ Architecture
ABCWeaver is built with modular architecture:
- Core: ABC parsing, MusicXML handling, format conversion
- Streams: Redis integration via
nyropackage - Commands: CLI interface for all operations
- Utils: Helper functions and constants
🔧 Dependencies
click: CLI frameworklxml: XML processingnyro: Redis stream managementpydantic: Data validationrich: Beautiful CLI output
🎼 Use Cases
- Music Composition: Convert ABC notation to professional MusicXML scores
- Score Analysis: Extract ABC patterns from existing MusicXML files
- Stream Processing: Real-time musical data transformation via Redis
- Batch Conversion: Process large collections of musical notation
- Educational Tools: Bridge between simple ABC and complex MusicXML formats
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
📡 G.Music Assembly
Part of the G.Music Assembly ecosystem - transforming musical creativity through collaborative AI orchestration.
♠️🌿🎸🧵 Assembly Mode Engaged
📄 License
MIT License - see LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abcweaver-0.2.1.tar.gz.
File metadata
- Download URL: abcweaver-0.2.1.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9808086cce5c3ef63ff9efa0aa83795d75877a3ea004de3318d7d7d2fe2ea18
|
|
| MD5 |
3803d003eebf8c45aa69d706c051cc9c
|
|
| BLAKE2b-256 |
14bd590ca4aedb27cc6fe0f2c55f8c4fa1829028682d85daf2ef081051111afc
|
File details
Details for the file abcweaver-0.2.1-py3-none-any.whl.
File metadata
- Download URL: abcweaver-0.2.1-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7f482317cd5512e58d1031e0dfa510fd7caddb4b40eb88350e73c0aec2ef0d
|
|
| MD5 |
2138db983199eefb1b83b5adb3054e57
|
|
| BLAKE2b-256 |
cdf55facf567f33ea5a7bc56fe3fdd04b1999b85d01907df8c703dc88d7e0624
|