Skip to main content

flake8-no-json

Build Status codecov Python Version wemake-python-styleguide

Background

This is a Flake8 plugin that prevents the use of the standard json package in Python code. The intent is to enforce the use of an alternative JSON handling library, such as ujson, orjson, or any other specified by your project guidelines.

Installation

To install flake8-no-json, you can use pip:

pip install flake8-no-json

Usage

Once installed, the plugin will automatically be used when running Flake8. There is no additional configuration required.

Run Flake8 as you normally would:

flake8 your_project/

The plugin will raise an error whenever it detects an import of the json package:

import json  # FJ001: Usage of the 'json' package is not allowed.

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 9899cb192f754a566da703614227e6d63227b933. See what is updated since then.

Release files for flake8-no-json 0.0.3

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

Source distribution (sdist)

Source distribution for flake8-no-json 0.0.3
File Size Uploaded
flake8_no_json-0.0.3.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-no-json 0.0.3
File Interpreter ABI Platform
flake8_no_json-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / flake8_no_json-0.0.3.tar.gz

Download URL flake8_no_json-0.0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
404429e75d65c7fed7a7f226181355aaf77a3e384a7c00960fc28e3ac9b13679
BLAKE2b-256 checksum
How to use checksums
406353aa0e23dac4881b045a0121dc0f0bab37732746972574f53f8567f28aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.6 Darwin/25.6.0

Release files / flake8_no_json-0.0.3-py3-none-any.whl

Download URL flake8_no_json-0.0.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
470936ea1d313a7bed7bf6a7e8e9b49279dc031e1e909ea69041a48f4040bbf1
BLAKE2b-256 checksum
How to use checksums
f8ab89fc22149ea9642f48fe21af967a86cae32e4f1c25c5bf4388c1cb085eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.6 Darwin/25.6.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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