Skip to main content

A Python formatter from formats like rst and markdown to the content tree

Project description

A Python formatter from formats like rst and markdown to the content tree

Source

Объект для обращения с источником документов

Принимает на вход строку с указанием адресса ресурса + путь к материалам относительно корня документа

source = Source(url, path)

Parser

Объект, предоставляющий интерфейс для обращения к дереву

Работает как дескриптор

tree = Parser(source)

Formatter

Объект для преобразования сырого дерева. Для чистки от символов формата и присвоения типов

done_tree = Formatter(tree)

Преобразование дерева в json

done_tree.to_json()

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

stformatter-0.2.2.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file stformatter-0.2.2.tar.gz.

File metadata

  • Download URL: stformatter-0.2.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for stformatter-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9ad1dc8f84a711e7d3402c07ad26e1dfc6df44c22ba070b13b29a19cc29b8a2d
MD5 095ac763494f2d3d078c548c0b3c71d7
BLAKE2b-256 715afb0069386b5537817587d3935c38046a2944016825029d3965ab64ec9f01

See more details on using hashes here.

Supported by

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