Skip to main content

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

Лицензия

MIT License

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)

Source distribution for onec-codetemplate-parser 1.0.2
File Size Uploaded
onec_codetemplate_parser-1.0.2.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for onec-codetemplate-parser 1.0.2
File Interpreter ABI Platform
onec_codetemplate_parser-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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