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.2.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.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for onec_codetemplate_parser-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6d4b092bfcd75a97534b5684337f758ec31e169109d69c0207fa120844a771ed
MD5 0687789b4d7483b9f531d07ed6f10906
BLAKE2b-256 fd852a1b4e8bf70ba5cb7099d0a29ae98c24595c78d7a885ff8b7189ac13abb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onec_codetemplate_parser-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9670d99792ea13850db69decd8317d1c7758768c3f14ddea4532e1a8025c6bfd
MD5 66305e91aabc4302a0738e88a879cdc9
BLAKE2b-256 3a99926023a36c11e06c6a79fb486e6ae887857eda52b8b09d7b6eb9498788ef

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