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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| welearn_database-1.5.2.tar.gz | 26.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| welearn_database-1.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.2 kB
Release files / welearn_database-1.5.2.tar.gz
| Download URL | welearn_database-1.5.2.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9f9d548a371d32cd57cb62b0f9ff1ef1efe5fb653e0c23e86f9d1682dbe4227
|
|
BLAKE2b-256 checksum How to use checksums |
6dfca0d31dfd5fb49cbb3273efc96fd9096d48a6094c3d0de3981d0e106acaac
|
| 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 16, 2026.
Transparency logRelease files / welearn_database-1.5.2-py3-none-any.whl
| Download URL | welearn_database-1.5.2-py3-none-any.whl |
|---|---|
| Size | 47.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c07623d0e48f0898e8988d362b0f31b32745c7ba93fa9f7731ff6b8445f4f01d
|
|
BLAKE2b-256 checksum How to use checksums |
c91357315c3be0af7286e698cfd67062f79efe424608b56670cce9d2761a4922
|
| 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 16, 2026.
Transparency logSecurity for welearn-database 1.5.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for welearn_database-1.5.2.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 Sep 16, 2026.
Transparency logA 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.