Skip to main content

Yawrap

Build Status Documentation Status GitHub issues PyPI - Python Version PyPI - Development Status PyPI - Package Format PyPI GitHub license

Yawrap is a powerful, lightweight, pythonic pseudo-static HTML builder that works with:

  • python2.7,

  • python3.5-python.3.8

  • pypy, pypy3.

The name comes from something like Yet Another Wrapper (of HTML code).

Repo:

https://gitlab.com/kamichal/yawrap

OldRepo:

https://github.com/kamichal/yarap

OldRepo:

https://bitbucket.org/gandowin/yarap (goes obsolete)

Docs:

http://yawrap.readthedocs.io

Pypi:

https://pypi.python.org/pypi/yawrap

Author:

Michał Kaczmarczyk from Poland

Email:

michal.skaczmarczy.k at gmail.com

Yawrap features

  • Very nice syntax

    No more headache caused by closing and indentation of HTML elements! Just write python code.

    Yawrap reflects python scopes in HTML perfectly - with no mistakes and indents it natively for free.

  • Handle CSS and JS how you like. It can be sourced either

    • from local file

    • from url

    • from python string

    And it can be placed: - as internal content - as external file - as linked resource.

    From single “All in one” HTML file to multi-page documents sharing CSS&JS resources. Yawrap takes care for handling them properly.

  • SVG support

    Don’t care about defining SVG structure, just write its main contents. Yawrap will take care about the whole rest. Also typical SVG attributes which are problematic from python keyword-arguments point of view have it’s convenience feature.

  • Linking local files

    You can reference local files by passing its absolute path on python side and it will appear under links relative to the current document. And you don’t have to calculate the paths.

  • Defining page style and scripts on python class level

    Page styles can be defined by deriving Yawrap classes. This makes possibility to get the styles shared / inherited / override in well known pythonic way.

  • Multi-page structure

    Define multiple pages (even in complex directory structure) and don’t care about the paths. Not existing directories will be automatically created, you just define the path of target file.

  • Automatic navigation

    That’s ultra-nice. Probably the cutest yawrap’s feature. Create multiple pages and see how yawrap joins them in navigation panel created for each generated page. Everything happens behind the curtains.

    The only one thing you need to do is to care for the navigation’s CSS style (if you don’t like the default navigation style provided by Yawrap).

  • Bookmarking

    Create intra-page bookmarks with just one command during document definition and see how they are inserted in correct subsection of the page navigation.

Release files for yawrap 0.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yawrap 0.4.10
File Size Uploaded
yawrap-0.4.10.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yawrap 0.4.10
File Interpreter ABI Platform
yawrap-0.4.10-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 54.8 kB

Release files / yawrap-0.4.10.tar.gz

Download URL yawrap-0.4.10.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b97b3bfee823b84867f9268a3cf32d538003bda65ead738a5153890908c8735
BLAKE2b-256 checksum
How to use checksums
8405599afc7a5c3af4fc59386d10d88e7877c1cbd7795f8b2b1ac3f088faf5fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

Release files / yawrap-0.4.10-py2.py3-none-any.whl

Download URL yawrap-0.4.10-py2.py3-none-any.whl
Size 37.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
af6eb8362644ce1fe9e5f2b2684dfa9e95dac629da4b77c21fb4ab6682d9feb9
BLAKE2b-256 checksum
How to use checksums
083289574ac8fca48704e7f39b2dce3909d4f4524471b3643dd2718a73526d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.4.10 This release

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

1 release file

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

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