Skip to main content

Парсер шаблонов 1С

Project description

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

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

onec_codetemplate_parser-1.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onec_codetemplate_parser-1.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file onec_codetemplate_parser-1.0.1.tar.gz.

File metadata

File hashes

Hashes for onec_codetemplate_parser-1.0.1.tar.gz
Algorithm Hash digest
SHA256 60ea4388ca80ed75e2ad7303531100d54fea7e145dbca540e5e3899ff625118c
MD5 e28db97dfb5f1dd50d84fb159c96d7d6
BLAKE2b-256 1936eafed3d40c34a4584ca1e8e17ce4a7d5e2af8cabe6c89ca4089b305c07f4

See more details on using hashes here.

File details

Details for the file onec_codetemplate_parser-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for onec_codetemplate_parser-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b4ae1e02ab7d2d442b2094fca63f9c5e7e8002a00986d2b2290e8719fbf55c1
MD5 13ecaa3d65335d2c46196be5e45635c5
BLAKE2b-256 e2a84dab29189b244b11a3332ae9dcfb8887da4e4160f6f6bc0fe7e8f8bd2b8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page