Skip to content

Commit f1f4e84

Browse files
committed
fix: update samples
1 parent e76a162 commit f1f4e84

File tree

6 files changed

+1224
-9
lines changed

6 files changed

+1224
-9
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ async def main():
4747
asyncio.run(main())
4848
```
4949

50+
## Samples
51+
52+
- [Simple Script](https://github.com/aptabase/aptabase-python/tree/main/samples/simple-script)
53+
- [Textual Counter App](https://github.com/aptabase/aptabase-python/tree/main/samples/textual-counter)
54+
- [Textual Dashboard App](https://github.com/aptabase/aptabase-python/tree/main/samples/textual-dashboard)
55+
5056
## Configuration
5157

5258
```python

samples/textual-counter/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/textual-dashboard/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The app includes:
3131
uv add textual aptabase
3232

3333
# Run the app
34-
uv run main.py
34+
uv run dashboard.py
3535
```
3636

3737
### Using pip
@@ -45,12 +45,20 @@ source venv/bin/activate # On Windows: venv\Scripts\activate
4545
pip install
4646

4747
# Run the app
48-
python main.py
48+
python dashboard.py
49+
```
50+
51+
#### Using pyproject.toml
52+
53+
```bash
54+
# If you have the pyproject.toml file
55+
uv sync
56+
uv run dashboard
4957
```
5058

5159
## Configuration
5260

53-
Before running, update the `APP_KEY` in `main.py`:
61+
Before running, update the `APP_KEY` in `dashboard.py`:
5462

5563
```python
5664
# Replace with your actual Aptabase app key
@@ -64,7 +72,7 @@ Get your app key from the [Aptabase dashboard](https://aptabase.com/).
6472
### Running the App
6573

6674
```bash
67-
python main.py
75+
python dashboard.py
6876
```
6977

7078
### Keyboard Shortcuts

samples/textual-dashboard/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Aptabase = "https://aptabase.com/"
3333
Textual = "https://textual.textualize.io/"
3434

3535
[project.scripts]
36-
dashboard = "textual_aptabase_demo:main"
36+
dashboard = "dashboard:main"
3737

3838
[project.optional-dependencies]
3939
dev = [

0 commit comments

Comments
 (0)