Skip to main content

django-floc-disable

unit test

Django middleware to disable Google's Federated Learning of Cohorts (FLoC) tracking

New version is Topics API

Python / Django Support

  • Python 3.8+
  • Django versions 3+

Usage

Install django-floc-disable:

pip install django-floc-disable

Add it to your MIDDLEWARE tuple in settings.py:

MIDDLEWARE = (
    # ...
    'django_floc_disable.middleware.FLoCDisableMiddleware',
    # ...
)

This will set the Permissions-Policy header to a value of browsing-topics=() for every request served by Django.

Reference:

Support

License

The MIT License (MIT). Please see License File for more information.

Metadata

Release files for django-floc-disable 1.2.0

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

Source distribution (sdist)

Source distribution for django-floc-disable 1.2.0
File Size Uploaded Provenance Actions
django_floc_disable-1.2.0.tar.gz 3.8 kB Without provenance Details for django_floc_disable-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-floc-disable 1.2.0
File Interpreter ABI Platform Actions
django_floc_disable-1.2.0-py3-none-any.whl Python 3 none any Details for django_floc_disable-1.2.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / django_floc_disable-1.2.0.tar.gz

Download URL django_floc_disable-1.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b076da241daade517cd74f60f3a5ed5e80dd9d91de9c2442cdd9f96d294e8962
BLAKE2b-256 checksum
How to use checksums
8bcbd25c2f5999b5fc2f4165ad5dc3ed086552889be54b05c0ab453d604ce752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / django_floc_disable-1.2.0-py3-none-any.whl

Download URL django_floc_disable-1.2.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
399b13b97425593bdfe38cb046249bc9917b74a0c44e343f991c7458d12f05a9
BLAKE2b-256 checksum
How to use checksums
8064021da870aeaaf25e077a41629225e53a3027a683c6c3a32df96385cbc749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for django-floc-disable 1.2.0

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.

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