Metadata-Version: 2.4
Name: ankipan_db
Version: 0.6
Summary: Server Implementation for ankipan module
Author-email: Daniel Otto de Mentock <daniel.mentock@gmail.com>
Project-URL: repository, https://gitlab.com/ankipan/ankipan_db
Classifier: Intended Audience :: Education
Classifier: Topic :: Education
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4
Requires-Dist: chardet
Requires-Dist: Flask
Requires-Dist: psycopg2_binary
Requires-Dist: python-dotenv
Requires-Dist: Unidecode
Requires-Dist: ankipan==0.5
Dynamic: license-file

# ankipan_db

Database for Ankipan (https://gitlab.com/ankipan/ankipan)

## Getting started

```
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib -y
sudo service postgresql start
sudo -u postgres psql
CREATE ROLE root WITH LOGIN PASSWORD 'secure_password' CREATEDB;
CREATE DATABASE ankipan_db OWNER root;

# create .env file with db connection data (see __init__.py)

python3 -c "db = DBManager();db.make_schema()"

# fill db with data (see help(SourceParser.sync_dir) and /examples/add_data_to_db.ipynb)

```
