File: playground.md

package info (click to toggle)
python-griffe 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,292 kB
  • sloc: python: 17,202; makefile: 47; sh: 24; javascript: 13
file content (21 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
hide:
- toc
---

# Playground

Play with Griffe's API directly in your browser thanks to [Pyodide](https://pyodide.org/en/stable/).

You can click the **:material-play: Run** button in the top-right corner of the editor, or hit ++ctrl+enter++ to run the code.

```pyodide install="griffe" theme="tomorrow,dracula"
import griffe, micropip

# Install your favorite Python package...
await micropip.install("cowsay")

# And load it with Griffe!
cowsay = griffe.load("cowsay")
cowsay.as_json(indent=2)[:1000]
```