All stuff related to relationnal database from the WeLearn project
Project description
WeLearn Database
This repository contains the database schema and sample data for the WeLearn application, an online learning platform.
Pypi Package
You can install this pacakge via pypi :
pip install welearn-database
or you can read pypi page here
Environment Variables
Before running the application, make sure to set the following environment variables:
PG_USER=<pg user>
PG_PASSWORD=<pg password>
PG_HOST=<pg address>
PG_PORT=<pg port, 5432 by default>
PG_DB=<pg database name>
PG_DRIVER=<driver to use, pg default is : postgresql+psycopg2>
PG_SCHEMA=document_related,corpus_related,user_related,agent_related
LOG_LEVEL=INFO
LOG_FORMAT=[%(asctime)s][%(name)s][%(levelname)s] - %(message)s
Database Schema
The database schema is organized into four main schemas:
document_related: Contains tables related to documents and their metadata.corpus_related: Contains tables related to corpora and their metadata.user_related: Contains tables related to users and their profiles.agent_related: Contains tables related to agents and their interactions.
How to Use
Data models are defined using SQLAlchemy ORM. You can import the models and use them to interact with the database.
from welearn_database.data.models import WeLearnDocument
Every model are accessible there, schema are handled under the hood.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file welearn_database-1.0.0.dev1.tar.gz.
File metadata
- Download URL: welearn_database-1.0.0.dev1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
313618ecd5e98be34562480605ad0754d8c98a06526d6b950fbf7329654dd558
|
|
| MD5 |
b8f0986ca3b0cd884569ec26a05e0fef
|
|
| BLAKE2b-256 |
718f7c0a9ca70bbfd7eeb2b7b62f08769386bce497d8f7ca49414f6b0d7c1f86
|
Provenance
The following attestation bundles were made for welearn_database-1.0.0.dev1.tar.gz:
Publisher:
publish-to-test-pypi.yml on CyberCRI/welearn-database
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
welearn_database-1.0.0.dev1.tar.gz -
Subject digest:
313618ecd5e98be34562480605ad0754d8c98a06526d6b950fbf7329654dd558 - Sigstore transparency entry: 708511872
- Sigstore integration time:
-
Permalink:
CyberCRI/welearn-database@a8ee2140e7c18e98cda195928c0ed69d8c39a46c -
Branch / Tag:
refs/tags/1.0.0.dev1 - Owner: https://github.com/CyberCRI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@a8ee2140e7c18e98cda195928c0ed69d8c39a46c -
Trigger Event:
push
-
Statement type:
File details
Details for the file welearn_database-1.0.0.dev1-py3-none-any.whl.
File metadata
- Download URL: welearn_database-1.0.0.dev1-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3982a97ef9a8db95f64b1a95db6eeef4f74a1d4831a8b5460a74d1c173b7be3c
|
|
| MD5 |
dbfe7ab57c4ac16b3f854a8dfeed9e5a
|
|
| BLAKE2b-256 |
6ab8a206e0e8b18ab9e1fc05a5449fa6d438a8e30aa5a596cfa4348c876af834
|
Provenance
The following attestation bundles were made for welearn_database-1.0.0.dev1-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on CyberCRI/welearn-database
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
welearn_database-1.0.0.dev1-py3-none-any.whl -
Subject digest:
3982a97ef9a8db95f64b1a95db6eeef4f74a1d4831a8b5460a74d1c173b7be3c - Sigstore transparency entry: 708511876
- Sigstore integration time:
-
Permalink:
CyberCRI/welearn-database@a8ee2140e7c18e98cda195928c0ed69d8c39a46c -
Branch / Tag:
refs/tags/1.0.0.dev1 - Owner: https://github.com/CyberCRI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@a8ee2140e7c18e98cda195928c0ed69d8c39a46c -
Trigger Event:
push
-
Statement type: