alda-python-0.1.0
توضیحات
Python client for Alda (https://alda.io/)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | alda-python-0.1.0 |
| نام | alda-python |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nicola Vitucci |
| ایمیل نویسنده | nicola.vitucci@gmail.com |
| آدرس صفحه اصلی | https://github.com/nvitucci/alda-python |
| آدرس اینترنتی | https://pypi.org/project/alda-python/ |
| مجوز | - |
# alda-python
Python client for Alda (https://alda.io/).
[](https://pypi.org/project/alda-python/)
[](https://pypi.org/project/alda-python/)
[](https://pypi.org/project/alda-python/)
[](http://mypy-lang.org/)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
## Usage
1. Download and install Alda per the [Install instructions](https://alda.io/install/)
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | black |
| - | isort |
| - | mypy |
| - | pytest |
| - | tox |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl alda-python-0.1.0:
pip install alda-python-0.1.0.whl
نصب پکیج tar.gz alda-python-0.1.0:
pip install alda-python-0.1.0.tar.gz