Skip to content

Backend specificaties

De VEMAP Backend is gebouwd met Python en maakt gebruik van diverse libraries voor AWS integratie, database toegang en data validatie. Alle dependencies zijn productie-ready en worden actief onderhouden.

{/* requirements.txt */}
chalice>=1.26.0
boto3>=1.26.0
psycopg2-binary>=2.9.0
pydantic>=2.0.0
email-validator>=2.0.0
python-dotenv>=1.0.0

Development dependencies zijn gescheiden in requirements-dev.txt om te voorkomen dat test dependencies worden geïnstalleerd in productie omgevingen.


Vereist: Python 3.8 of hoger

De applicatie is getest en geoptimaliseerd voor Python 3.8+, met ondersteuning voor moderne Python features zoals type hints en async/await.


DependencyVersieCategorieGebruikBelangrijke Features
Chalice>=1.26.0AWS & ServerlessServerless framework voor AWS Lambda en API GatewayRouting, HTTP handling, automatische deployment, middleware ondersteuning
Boto3>=1.26.0AWS & ServerlessAWS SDK voor PythonS3, Cognito, SES, SQS, Secrets Manager integratie
psycopg2-binary>=2.9.0DatabasePostgreSQL database adapterNative connecties, prepared statements, connection pooling, JSONB ondersteuning
Pydantic>=2.0.0Data ValidatieData validatie en settings managementRequest/response validatie, type checking, JSON serialization
email-validator>=2.0.0Data ValidatieEmail adres validatieRFC-compliant validatie, DNS checks, Pydantic integratie
python-dotenv>=1.0.0ConfiguratieEnvironment variable management.env file loading, environment configuratie

DependencyVersieCategorieGebruikBelangrijke Features
pytest>=7.0.0TestingUnit en integration testingTest discovery, fixtures, parametrization, coverage
pytest-mock>=3.10.0TestingMocking voor testsMock objecten, patching, test isolation

Terminal window
pip install -r requirements.txt
Terminal window
# Installeer productie dependencies
pip install -r requirements.txt
# Installeer development dependencies (optioneel)
pip install -r requirements-dev.txt
# Optionele code quality tools
pip install black mypy pylint

  • Minimum versies (>=) worden gebruikt voor flexibiliteit
  • Kritieke security updates worden direct toegepast
  • Major version upgrades worden getest in development omgeving
  • Breaking changes worden gedocumenteerd in CHANGELOG
Terminal window
# Check for outdated packages
pip list --outdated
# Update specific package
pip install --upgrade <package-name>
# Update all packages (met voorzichtigheid)
pip install --upgrade -r requirements.txt

Alle dependencies worden regelmatig gescand op bekende vulnerabilities:

  • AWS Security Bulletins voor Boto3
  • GitHub Dependabot alerts
  • Python Package Index (PyPI) security advisories

DependencyPython 3.8Python 3.9Python 3.10Python 3.11Python 3.12
Chalice
Boto3
psycopg2-binary
Pydantic
email-validator
python-dotenv

Alle gebruikte dependencies zijn open-source met permissive licenties:

DependencyLicentie
ChaliceApache License 2.0
Boto3Apache License 2.0
psycopg2-binaryLGPL with exceptions
PydanticMIT License
email-validatorCC0 1.0 Universal
python-dotenvBSD License