semvec/pypi-packages huggingface dataset:
rapunzel 1.0.0
A modern code editor focused on numerical computing with Python and R
Requires Python: >=3.7,<4.0

# Rapunzel

A modern code editor, focused on numerical computing with Python and R

Copyright 2019-2023 Sebastiaan Mathôt (@smathot)


## About

Rapunzel is a set of OpenSesame extensions that turn OpenSesame into an integrated development environment.

For documentation and installation instructions, see:

- <https://rapunzel.cogsci.nl/>

OpenSesame is hosted on GitHub:

- <https://github.com/smathot/OpenSesame/>


## List of extensions

- `opensesame_ide` is the main extension that contains most of the IDE functionality
- `find_in_files` implements the find-in-files functionality (`Ctrl+Shift+F`)
- `jupyter_notebook` provides export options to Notebook and other formats
- `workspace_explorer` provides the workspace explorer that allows inspection of variables for supported kernels
- `symbol_selector` provides the jump-to-symbol (functions, classes, etc.) functionality (`Ctrl+R`)
- `rapunzel_welcome` implements the welcome tab that is shown on startup
- `word_count` gives a notification with the number of words, lines, and characters of the current document
- `spell_check` implements the spell checker
- `data_viewer` allows supported file types to be imported into the kernel as objects
- `git_gui` opens Git GUI for the current document
- `rapunzel_locale` handles translations
- `python_debugger` implements the Rapunzel debugger for Python, based on the IPython debugger
- `image_annotations` captures images and text output inserts them as annotations or code comments into the document


## License

The Rapunzel icon is adapted from "Moka Icons" by Sam Hewitt, licensed under CC-SA-4.0.

- <https://github.com/snwh/moka-icon-theme>

The rest of Rapunzel is distributed under the terms of the GNU General Public License 3. The full license should be included in the file COPYING, or can be obtained from:

- <http://www.gnu.org/licenses/gpl.txt>
reportlab-pdf-table-builder 1.2.4
A simple pdf table builder using the ReportLab Toolkit
Requires Python: >=3.6

# reportlab-pdf-table-builder

A simple pdf table builder using the ReportLab Toolkit

# Example usage

You can run the example.py file to see the result
```
python example.py
```

```python
import datetime

from reportlab.lib import colors
from reportlab.lib.enums import TA_RIGHT, TA_CENTER, TA_LEFT
from reportlab.platypus import Spacer

from pdf_table_builder.builder import Row, Column, Grid, pfd_table_builder, ReportLabPDFBuilder

data = [
    Row(columns=[Column(content='<font size=10>{}</font>'.format(datetime.date.today().strftime("%d/%m/%Y")))]),
    Spacer(1, 1),
    Row(columns=[Column(content='Title')]),
    Spacer(1, 1),
    # Image(buff1, width=150, height=300),
    Row(
        columns=[
            Column(content='Panel color outside:'),
            Column(content='7012 Matt'),
            Column(content='$100', align=TA_RIGHT),
            Column(content='test'),
            Column(content='test2', grid=Grid(line_color=colors.yellow, line_width=2)),
        ],
        grid=Grid(line_color=colors.blue, line_width=1),
        # text_color=colors.red
    ),
    Row(
        columns=[
            Column(content='test2', align=TA_CENTER, background_color=colors.red, text_color=colors.blue),
            Column(content='Panel color outside:'),
            Column(content='7012 Matt'),
            Column(content='$100', align=TA_RIGHT, grid=Grid(line_color=colors.yellow, line_width=2)),
            Column(content='test', align=TA_CENTER, background_color=colors.aqua),
            Column(content='test2', align=TA_CENTER, background_color=colors.red, text_color=colors.white),
            Column(content='test2', align=TA_CENTER, background_color=colors.purple, text_color=colors.red),

        ],
        align=TA_LEFT,
        background_color=colors.green,
        text_color=colors.red,
    ),
    Row(
        columns=[
            Column(content='test2', align=TA_CENTER, background_color=colors.red, text_color=colors.blue),
            Column(content='Panel color outside:'),
            Column(content='7012 Matt'),
            Column(content='$100', align=TA_RIGHT),
            Column(content='test1', background_color=colors.purple),
            Column(content='test', align=TA_CENTER, background_color=colors.aqua, text_color=colors.yellow),
            Column(content='test2', align=TA_CENTER, background_color=colors.red, text_color=colors.white),
        ],
        background_color=colors.green,
        text_color=colors.blue,
        grid=Grid(),
    ),
]

table = pfd_table_builder(data)

pdfbuilder = ReportLabPDFBuilder()
pdfbuilder.add_to_story(table)
pdfbuilder.save_pdf_file('a.pdf')
```