Metadata-Version: 2.4
Name: arakawa
Version: 0.0.8
Summary: Build interactive reports in seconds using Python
Project-URL: Repository, https://github.com/ninoseki/arakawa/
License-File: LICENSE
Requires-Python: <4.0,>=3.9
Requires-Dist: altair~=5.4
Requires-Dist: base64io~=1.0
Requires-Dist: chardet~=5.2
Requires-Dist: dominate~=2.9
Requires-Dist: eval-type-backport~=0.2; python_version < '3.10'
Requires-Dist: ipynbname~=2024.1
Requires-Dist: ipython~=8.13
Requires-Dist: jinja2~=3.0
Requires-Dist: loguru~=0.7
Requires-Dist: micawber~=0.5
Requires-Dist: multimethod~=2.0
Requires-Dist: pandas~=2.2
Requires-Dist: pyarrow~=18.1
Requires-Dist: pydantic~=2.10
Requires-Dist: pyhumps~=3.8
Requires-Dist: semver~=3.0
Requires-Dist: typing-extensions~=4.12; python_version < '3.11'
Provides-Extra: plotting
Requires-Dist: bokeh<3.5.0,>=3.4.0; extra == 'plotting'
Requires-Dist: folium~=0.18; extra == 'plotting'
Requires-Dist: matplotlib~=3.9; extra == 'plotting'
Requires-Dist: plotly~=5.24; extra == 'plotting'
Description-Content-Type: text/markdown

# Arakawa

<p align='center'>
  <h2 align='center'>Build interactive reports in seconds using Python.</h2>
</p>

Arakawa makes it simple to build interactive reports in seconds using Python.

Import Arakawa's Python library into your script or notebook and build reports programmatically by wrapping components such as:

- Pandas DataFrames
- Plots from Python visualization libraries such as Bokeh, Altair, Plotly, and Folium
- Markdown and text
- Files, such as images, PDFs, JSON data, etc.
- Interactive forms which run backend Python functions

Arakawa reports are interactive and can also contain pages, tabs, drop downs, and more. Once created, reports can be exported as HTML, shared as standalone files, or embedded into your own application, where your viewers can interact with your data and visualizations.

## Getting Started

Check out our [Quickstart](https://ninoseki.github.io/arakawa/quickstart) to build a report in 3m.

### Installing Arakawa

```bash
pip install arakawa
# or
conda install -c conda-forge
```

## Examples

### 📊 Share plots, data, and more as reports

Create reports from pandas DataFrames, plots from your favorite libraries, and text.

<p>

<img width='485px' align='left' alt="Simple example with text, plot and table" src="https://raw.githubusercontent.com/ninoseki/arakawa/refs/heads/main/python-client/images/simple_example.png">

<p>

```python
import altair as alt
from vega_datasets import data
import arakawa as ar

df = data.iris()
fig = (
    alt.Chart(df)
    .mark_point()
    .encode(
        x="petalLength:Q",
        y="petalWidth:Q",
        color="species:N"
    )
)
view = ar.Blocks(
    ar.Plot(fig),
    ar.DataTable(df)
)
ar.save_report(view, path="simple_example.html")
```

</p>

### 🎛 Layout using interactive blocks

Add dropdowns, selects, grid, pages, and 10+ other interactive blocks.

<p>

<img width='485px' align='left' alt="Complex layout" src="https://raw.githubusercontent.com/ninoseki/arakawa/refs/heads/main/python-client/images/layout_example.png">

<p>

```python
...

view = ar.Blocks(
    ar.Formula("x^2 + y^2 = z^2"),
    ar.Group(
        ar.BigNumber(
            heading="Number of percentage points",
            value="84%",
            change="2%",
            is_upward_change=True
        ),
        ar.BigNumber(
            heading="Simple Statistic", value=100
        ), columns=2
    ),
    ar.Select(
        ar.Plot(fig, label="Chart"),
        ar.DataTable(df, label="Data")
    ),
)
ar.save_report(view, path="layout_example.html")
```

See [the documentation](https://ninoseki.github.io/arakawa/) for more details.

## Acknowledgement

This project is fork of [datapane/datapane](https://github.com/datapane/datapane) and original codes are written by StackHut Limited (trading as Datapane).
