Skip to main content

Wedge library for django application

Project description

Wedge Library

Démarrage rapide

$ pip install wedge-lib

Mode maintenance

Middleware

MIDDLEWARE=[
    "w.drf.middlewares.maintenance_mode_middleware.MaintenanceModeMiddleware",
],

Command

Ajouter la commande maintenance_mode :

from w.django.commands.abstract_maintenance_mode_command import (
    AbstractMaintenanceModeCommand,
)


class Command(AbstractMaintenanceModeCommand):
    pass

Utilisation :

$ python manage.py maintenance_mode <on/off>

Configuration pour certains services

MailService

TBD

GoogleMapService

TBD

YousignService

TBD

Development

Installation

poetry install --sync
poetry shell

Run test

$ pytest

Before commit

Pour éviter de faire échouer le CI, lancer la commande:

$ ./before_commit.zsh

Publier manuellement sur PyPI

Pour cela, il faut créer une nouvelle release sur GitHub avec le tag correspondant à la version de la librairie c'est à dire la version renseignée dans pyproject.toml.

  • Aller sur la page GitHub du repository : https://github.com/Wedge-Digital/w
  • Cliquer sur Tags
  • Cliquer sur Releases
  • Cliquer sur Draft a new release
  • Dans Choose a tag saisir la version de la raison = version renseignée dans pyproject.toml
  • Cliquer sur Generate release notes
  • Cliquer sur Publish release

Le CI s'occupera ensuite de publier la librairie sur PyPi si les tests ne sont pas KO.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

wedge_lib-3.1.27.tar.gz (569.1 kB view details)

Uploaded Source

Built Distribution

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

wedge_lib-3.1.27-py3-none-any.whl (652.5 kB view details)

Uploaded Python 3

File details

Details for the file wedge_lib-3.1.27.tar.gz.

File metadata

  • Download URL: wedge_lib-3.1.27.tar.gz
  • Upload date:
  • Size: 569.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for wedge_lib-3.1.27.tar.gz
Algorithm Hash digest
SHA256 424891e408adf8da588e474a7a3d5d7ab5c2e93b72ee7f27bec2eaa9567185d1
MD5 48c4d2520e2cbf9ecaf428662ded998e
BLAKE2b-256 579a6baa1309651aee0f6bc97e1ec4435ea58ac87b39d7f313714155e6704308

See more details on using hashes here.

File details

Details for the file wedge_lib-3.1.27-py3-none-any.whl.

File metadata

  • Download URL: wedge_lib-3.1.27-py3-none-any.whl
  • Upload date:
  • Size: 652.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for wedge_lib-3.1.27-py3-none-any.whl
Algorithm Hash digest
SHA256 99492491433793831f287bdd49381a5ca0f9a2df8646417f3638ceeca24e69e8
MD5 b1cde50e3c1d78287b6ec926c898cdb3
BLAKE2b-256 f07401c182e7480683b50804815c3e0449273a948ad77749ef1eec2e6da60ef8

See more details on using hashes here.

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