Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

welearn_database-1.0.0.dev2.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

welearn_database-1.0.0.dev2-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file welearn_database-1.0.0.dev2.tar.gz.

File metadata

  • Download URL: welearn_database-1.0.0.dev2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for welearn_database-1.0.0.dev2.tar.gz
Algorithm Hash digest
SHA256 86384d8cda1ca45c167e48fbe8ab5f8e1f262e85d2aa78ba09a4bf1a68a200a4
MD5 00a50093eb9d1b1a0ff64a0e202d66da
BLAKE2b-256 5eb9f23a5ae74bfbfaaeda059b930fdb1053c5b5ffbbadd90c83c373380e37e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for welearn_database-1.0.0.dev2.tar.gz:

Publisher: publish-to-test-pypi.yml on CyberCRI/welearn-database

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file welearn_database-1.0.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for welearn_database-1.0.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce2e7058811d3b74fbc30565eed7cab9ded95830d83c43a2a18593f4cd01fbb
MD5 0550fdf5f020a54094d5a0f95bfcaf13
BLAKE2b-256 86e86e947ce1a337ea8f47ed74cd2a846573ca04371210ef418cfebaf5b7acad

See more details on using hashes here.

Provenance

The following attestation bundles were made for welearn_database-1.0.0.dev2-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on CyberCRI/welearn-database

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page