Транспилятор русского Python: пишите код на русском, получайте стандартный Python!
Project description
Русский Python (ruspy-transpiler)
Транспилятор, позволяющий писать Python-код с русскими ключевыми словами, функциями и идентификаторами.
Установка
- Склонируйте репозиторий или скачайте исходный код.
- Перейдите в папку проекта и установите пакет локально:
pip install .
или для разработки:
pip install -e .
Структура
ruspy/— основной пакетtranspiler.py— логика транспиляцииruspy_dict.py— официальный словарь (ключевые слова, функции, технические термины)ruspy_user_dict.py— пользовательский словарь (ваши идентификаторы и сообщения)cli.py— CLI-интерфейс
setup.py— файл для установкиtest_ruspy.py— пример кода на русском синтаксисе
Использование
Через CLI
ruspy-transpiler test_ruspy.py -o test_ruspy_out.py
или
python -m ruspy.cli test_ruspy.py -o test_ruspy_out.py
Как библиотека
from ruspy.transpiler import transpile_file
transpile_file('test_ruspy.py', 'test_ruspy_out.py')
Расширение словарей
- Для добавления новых переводов ключевых слов и функций — редактируйте
ruspy_dict.py. - Для пользовательских идентификаторов и сообщений — используйте
ruspy_user_dict.py.
Проверка полноты
Для проверки, все ли термины переведены, используйте скрипт:
python check_ruspy_dict.py
Проект в стадии разработки. Приветствуются идеи и pull request'ы!
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 ruspy_transpiler-0.1.0.tar.gz.
File metadata
- Download URL: ruspy_transpiler-0.1.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4999063c2c3985366d270af376f0fdc9a9e166c80ad211450f6c7a0ff094cd20
|
|
| MD5 |
c91b42c3cf0d769c642dc2b698fbd340
|
|
| BLAKE2b-256 |
78de7e91107ffdd581bc5fcd2f8b86ba680dbd9b8e4f849fb8a59d1a1231ab7b
|
Provenance
The following attestation bundles were made for ruspy_transpiler-0.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on c1cada3301-web/ruspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruspy_transpiler-0.1.0.tar.gz -
Subject digest:
4999063c2c3985366d270af376f0fdc9a9e166c80ad211450f6c7a0ff094cd20 - Sigstore transparency entry: 481693608
- Sigstore integration time:
-
Permalink:
c1cada3301-web/ruspy@04608947b16a934105c95ba329226882d95fcdcc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/c1cada3301-web
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@04608947b16a934105c95ba329226882d95fcdcc -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruspy_transpiler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ruspy_transpiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37cbfce2e2ead91748a0a0a95ccd541290a49ec9a5b6fd55de0145370213cbcc
|
|
| MD5 |
a92bec84a59ee78a7333719cacd556de
|
|
| BLAKE2b-256 |
2e06ab78fad4b80c57c7ee279301fe0ed2e7d54b7007b6cbaf377a32ca68d642
|
Provenance
The following attestation bundles were made for ruspy_transpiler-0.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on c1cada3301-web/ruspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruspy_transpiler-0.1.0-py3-none-any.whl -
Subject digest:
37cbfce2e2ead91748a0a0a95ccd541290a49ec9a5b6fd55de0145370213cbcc - Sigstore transparency entry: 481693624
- Sigstore integration time:
-
Permalink:
c1cada3301-web/ruspy@04608947b16a934105c95ba329226882d95fcdcc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/c1cada3301-web
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@04608947b16a934105c95ba329226882d95fcdcc -
Trigger Event:
push
-
Statement type: