Skip to main content

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.

Metadata

Release files for wedge-lib 3.1.30

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

Source distribution (sdist)

Source distribution for wedge-lib 3.1.30
File Size Uploaded Provenance Actions
wedge_lib-3.1.30.tar.gz 603.4 kB Without provenance Details for wedge_lib-3.1.30.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wedge-lib 3.1.30
File Interpreter ABI Platform Actions
wedge_lib-3.1.30-py3-none-any.whl Python 3 none any Details for wedge_lib-3.1.30-py3-none-any.whl

Total release size: 1.3 MB

Release files / wedge_lib-3.1.30.tar.gz

Download URL wedge_lib-3.1.30.tar.gz
Size 603.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f6ff85cad8317a7ebb91aecb8aa8f028efecb5f5b27060516535a06760b34f24
BLAKE2b-256 checksum
How to use checksums
55e472bb22fca1c228a0178884cfccbf5e57f3ab3dcf3cdf06c2904099f45385
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

Release files / wedge_lib-3.1.30-py3-none-any.whl

Download URL wedge_lib-3.1.30-py3-none-any.whl
Size 684.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4199ace97bc60ddb7d899cd2ad399d76295a6ae9032b2140910206c39ea0b227
BLAKE2b-256 checksum
How to use checksums
9158f85e5d7a78807c23ff788c1e863d356d45d01067f0bca0b28e3747f09fec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

Security for wedge-lib 3.1.30

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

3.1.30 This release

2 release files No 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