Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for welearn-database 1.5.4.dev0

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.4.dev0
File Size Uploaded
welearn_database-1.5.4.dev0.tar.gz 27.3 kB Details

Built distribution (wheel)

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

Total release size: 76.5 kB

Release files / welearn_database-1.5.4.dev0.tar.gz

Download URL welearn_database-1.5.4.dev0.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f8ea9a40eb4edc2e3154d45f6c9083d82b3fbff91a8cfa4cdee7c36bc6c3d3eb
BLAKE2b-256 checksum
How to use checksums
3bf0eb6e3016ecd80fdc762cf145679a812de1cc0dff2a0e55cd714d6095d40a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / welearn_database-1.5.4.dev0-py3-none-any.whl

Download URL welearn_database-1.5.4.dev0-py3-none-any.whl
Size 49.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d42fd0df580b3e71efdb8174e553d6e1249bd5a604ee20646625bfb9eda1d28
BLAKE2b-256 checksum
How to use checksums
0481d28d331978cac2104bbe4f8c7e34d5dd28c9968a20536eadc6c7b0689615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.4.dev0 This release

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.0.0

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

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