Skip to main content

alda-python

Python client for Alda (https://alda.io/).

Version Status License Checked with mypy Code style: black Imports: isort

Usage

  1. Download and install Alda per the Install instructions
  2. Run the Alda REPL as a server using port 12345:
    $ alda repl --server --port 12345
    
  3. In a different terminal, run an interactive Python session (e.g. IPython)
  4. Install alda-python
    !pip install --user alda-python
    
  5. Import and initialize the Alda Python client:
    from alda import Client
    
    client = Client()
    
  6. Create some Alda code, for example:
    code = """ 
        (tempo! 90) 
        piano:  
            o3 c1/e/g/b | f2/a/>c/e ~ <e2/g/b/>d 
        violin: 
            o2 c1 ~ | f2 ~ g2 
        percussion: 
            o2 [c8 r8 c8 r8 e8 c8 r8 c8] * 2 
    """
    
  7. Play the code:
    client.play(code)
    

Metadata

Release files for alda-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alda-python 0.1.0
File Size Uploaded Provenance Actions
alda-python-0.1.0.tar.gz 10.1 kB Without provenance Details for alda-python-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alda-python 0.1.0
File Interpreter ABI Platform Actions
alda_python-0.1.0-py3-none-any.whl Python 3 none any Details for alda_python-0.1.0-py3-none-any.whl

Total release size: 20.6 kB

Release files / alda-python-0.1.0.tar.gz

Download URL alda-python-0.1.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9bfea19a1aa061d63b566d334bbeb3fed7fc3f3ec641dfd2f0cca084e5c17833
BLAKE2b-256 checksum
How to use checksums
030f31c376bd42f5d152f8901682afd64b69359a5827225acfedea2b1ff30fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / alda_python-0.1.0-py3-none-any.whl

Download URL alda_python-0.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9930eb34452d1f9a4ebedf36bd0f9df355328930e01e8f1a4e6f36325a0a28
BLAKE2b-256 checksum
How to use checksums
499f14ec8a73a34245b3a82494abe42897a78976387c1484aca7c1998c7605b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for alda-python 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page