onec-codetemplate-parser
Библиотека для парсинга файлов шаблонов кода 1С (.st) и работы с ними.
Установка
pip install onec-codetemplate-parser
Использование библиотеки
from onec_codetemplate_parser import parse_to_src, render_from_src
# Выгрузка файла в исходники
parse_to_src("path/to/template.st", "./src")
# Сборка файла из исходников
render_from_src("path/to/template.st", "./src")
Использование консольного приложения
Приложение позволяет выполнять основные команды библиотеки в командной строке.
Основные команды:
# Вывести дерево файла шаблонов в консоль
onec_codetemplate_parser pretty path/to/template.st
# Выгрузка файла в исходники
onec_codetemplate_parser parse path/to/template.st ./src
# Сборка файла из исходников
onec_codetemplate_parser render path/to/template.st ./src
# Справка о использовании команд
onec-onec_codetemplate_parser --help
Лицензия
Metadata
Release files for onec-codetemplate-parser 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onec_codetemplate_parser-1.0.2.tar.gz | 8.2 kB | Without provenance | Details for onec_codetemplate_parser-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onec_codetemplate_parser-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for onec_codetemplate_parser-1.0.2-py3-none-any.whl |
Total release size: 18.2 kB
Release files / onec_codetemplate_parser-1.0.2.tar.gz
| Download URL | onec_codetemplate_parser-1.0.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4b092bfcd75a97534b5684337f758ec31e169109d69c0207fa120844a771ed
|
|
BLAKE2b-256 checksum How to use checksums |
fd852a1b4e8bf70ba5cb7099d0a29ae98c24595c78d7a885ff8b7189ac13abb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / onec_codetemplate_parser-1.0.2-py3-none-any.whl
| Download URL | onec_codetemplate_parser-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9670d99792ea13850db69decd8317d1c7758768c3f14ddea4532e1a8025c6bfd
|
|
BLAKE2b-256 checksum How to use checksums |
3a99926023a36c11e06c6a79fb486e6ae887857eda52b8b09d7b6eb9498788ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for onec-codetemplate-parser 1.0.2
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.