Skip to main content
Pre-release

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

Weni Commons

A Python library that centralizes common functionality and utilities used across Weni's Django backend applications. This library promotes code reuse, consistency, and maintainability by providing shared components and utilities that can be easily integrated into multiple Django projects.

Installation

poetry add weni-commons

Using pip

pip install weni-commons

Available Features

Feature Flags

Weni Feature Flags is a Python Library that functions as an abstraction layer between Django projects and GrowthBook.

from weni.feature_flags.services import FeatureFlagsService

# Use the feature flags service
feature_service = FeatureFlagsService()

You can access the complete instructions on how to use its features here.

Authentication and Permissions

Unified DRF authentication for App IO JWTs and Keycloak tokens. A single WeniAuthentication class validates a Weni JWT first and falls back to Keycloak (OIDC), exposing a WeniAuthContext on request.auth.

from weni_commons.auth import WeniAuthentication

See the full usage guide in weni_commons/auth/README.md.

Requirements

  • Python >= 3.8
  • Django >= 3.2.22
  • Django REST Framework >= 3.12.0
  • Celery >= 5.0.0
  • Redis (via django-redis >= 4.0.0)

Contributing

This library is designed to grow with Weni's needs. If you have common utilities that could benefit multiple Django projects, consider contributing them to this library.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Metadata

Release files for weni-commons 1.8.0a0

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

Source distribution (sdist)

Source distribution for weni-commons 1.8.0a0
File Size Uploaded Provenance Actions
weni_commons-1.8.0a0.tar.gz 124.6 kB Without provenance Details for weni_commons-1.8.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weni-commons 1.8.0a0
File Interpreter ABI Platform Actions
weni_commons-1.8.0a0-py3-none-any.whl Python 3 none any Details for weni_commons-1.8.0a0-py3-none-any.whl

Total release size: 285.3 kB

Release files / weni_commons-1.8.0a0.tar.gz

Download URL weni_commons-1.8.0a0.tar.gz
Size 124.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b347fa34e8d83009d2ce7cd95e9a6023f67c1c1a7f784cc3924b8bc47cac312c
BLAKE2b-256 checksum
How to use checksums
28c48273821dfc67f26f30c2f5199ca353591ff48f50d75c9e4f7b3bafef9196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.8.18 Linux/7.0.0-1017-azure

Release files / weni_commons-1.8.0a0-py3-none-any.whl

Download URL weni_commons-1.8.0a0-py3-none-any.whl
Size 160.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12815c2ca491341466dcffcaf3c1559f493a7e7f915015b2d57b45c4fc46cd96
BLAKE2b-256 checksum
How to use checksums
a2efcfcb5e92a37cdeb64601242dfddbf82daf95023966fc65de632538c91bda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.8.18 Linux/7.0.0-1017-azure

Security for weni-commons 1.8.0a0

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
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