Skip to main content

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.

Metadata

Release files for welearn-database 1.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for welearn-database 1.5.5
File Size Uploaded Provenance Actions
welearn_database-1.5.5.tar.gz 28.1 kB With provenance Details for welearn_database-1.5.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for welearn-database 1.5.5
File Interpreter ABI Platform Actions
welearn_database-1.5.5-py3-none-any.whl Python 3 none any Details for welearn_database-1.5.5-py3-none-any.whl

Total release size: 80.4 kB

Release files / welearn_database-1.5.5.tar.gz

Download URL welearn_database-1.5.5.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e6fff30c51ad002bc8985cf4b0d50bd34f7f0dcb91f8aea35a976076d9e997c9
BLAKE2b-256 checksum
How to use checksums
c764ae478ac066f576854ed7f1dce14aa0dacd2ac1551490cd2642d70c488dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / welearn_database-1.5.5-py3-none-any.whl

Download URL welearn_database-1.5.5-py3-none-any.whl
Size 52.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b981df42e5b1403b01de72728fe476d2b5cc26d5171f95bd2460ff3f707d236f
BLAKE2b-256 checksum
How to use checksums
1a4d03a69b2cc09bc6da1d986ccd216e0720da91161b1713ecc544b7db2d6946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for welearn-database 1.5.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for welearn_database-1.5.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.5 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page