Metadata-Version: 2.1
Name: fossil-mastodon
Version: 0.1.0
Summary: A mastodon reader client that uses embeddings to present a consolidated view of my mastodon timeline
License: MIT
Author: Tim Kellogg
Author-email: timothy.kellogg@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: fastapi (>=0.105.0,<0.106.0)
Requires-Dist: html2text (>=2020.1.16,<2021.0.0)
Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
Requires-Dist: llm (>=0.12,<0.13)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: python-multipart (>=0.0.6,<0.0.7)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: scikit-learn (>=1.3.2,<2.0.0)
Requires-Dist: streamlit (>=1.29.0,<2.0.0)
Requires-Dist: tiktoken (>=0.5.2,<0.6.0)
Requires-Dist: uvicorn (>=0.25.0,<0.26.0)
Description-Content-Type: text/markdown

# Fossil, a Mastodon client

A mastodon client optimized for reading, with a configurable and 
hackable timeline algorithm powered by Simon Wilison's [llm](https://llm.datasette.io/en/stable/index.html) tool. Try making your own algorithm!


Sneak peek:

![image](https://gist.github.com/assets/437044/3152e5ae-bac7-4a67-a01b-82a712e90e26)


## Running

Clone the repo and then run:

```bash
poetry run uvicorn --host 0.0.0.0 --port 8888 --reload fossil.server:app
```


Before that, you'll need a `.env` file with these keys:

```
ACCESS_TOKEN=
```

They can also be environment variables. All available keys are here:

| Variable            | Required? | Value                                    |
| ---                 | ---       | ---                                      |
| OPENAI_API_BASE     |        no | eg. https://api.openai.com/v1            |
| MASTO_BASE          |       no? | eg. https://hackyderm.io                 |
| ACCESS_TOKEN        |       yes | In your mastodon UI, create a new "app" and copy the access token here |


# Status
It works on my box

