<commit_before>Minimal web app that implements the [Tent protocol](https://tent.io)'s auth flow, relying on [python-tent-client](https://github.com/longears/python-tent-client). Written in [Flask](http://flask.pocoo.org) with [Flask-SQLAlchemy](http://packages.python.org/Flask-SQLAlchemy/).

What does it do?
---------------------

Not much. You can log in, see an ugly unstyled list of recent status posts in your feed, and log out.

I wrote this for practice understanding the auth process; it will only be of interest to developers.

Install notes
---------------

This is basically installed the same way as any other Flask app, so see its docs, but you will need to create the database. In Python's interactive shell:

```python
from tenttest import db
db.create_all()
```

Also, you need to make sure `oauthCallbackURL` in the code points to the right place (hopefully localhost, as you wouldn't be deploying a test app publicly, right?). The trick I used was to reference `test.scott.mn` which doesn't actually exist, and then add that to my hosts file as 127.0.0.1.

How does it work?
-----------------------
<commit_msg>Update readme to mention config.py<commit_after>Minimal web app that implements the [Tent protocol](https://tent.io)'s auth flow, relying on [python-tent-client](https://github.com/longears/python-tent-client). Written in [Flask](http://flask.pocoo.org) with [Flask-SQLAlchemy](http://packages.python.org/Flask-SQLAlchemy/).

What does it do?
---------------------

Not much. You can log in, see an ugly unstyled list of recent status posts in your feed, and log out.

I wrote this for practice understanding the auth process; it will only be of interest to developers.

Install notes
---------------

This is basically installed the same way as any other Flask app, so see its docs, but you will need to create the database. In Python's interactive shell:

```python
from tenttest import db
db.create_all()
```

Also, you need to make sure `oauthCallbackURL` in the code points to the right place (hopefully localhost, as you wouldn't be deploying a test app publicly, right?). The trick I used was to reference `test.scott.mn` which doesn't actually exist, and then add that to my hosts file as 127.0.0.1.

Finally, copy config_sample.py to config.py and replace the secret key.

How does it work?
-----------------------

{'fraction_non_alphanumeric': 0.1312659303313509, 'fraction_numerical': 0.005097706032285472, 'mean_word_length': 3.3936567164179103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7259982', 'n_tokens_mistral': 683, 'n_tokens_neox': 645, 'n_words': 312}