Skip to main content

nwdocstringchecking

Introduction

This packages consists of the following modules:

  • nwdocstringchecking is a library designed to identify which methods in a Python file are missing docstrings.
  • nwdocstringcheckingcli is a command-line application built on the top of nwdocstringchecking.

Getting Started

I'll use Debian as operating system, but the concept is similar for Windows or Mac.

Procedure:

  1. Install pip and venv:
sudo apt install python3-pip python3.12-venv
  1. Create a virtual environment:
python3 -m venv /tmp/nwdocstringchecking
source /tmp/nwdocstringchecking/bin/activate
  1. Download and install the package:
pip install nwdocstringchecking
  1. Enter in the interactive Python environment:
python3
Python 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
  1. Try out if the library works:
from nwdocstringchecking import DocStringChecker

docstring_checker : DocStringChecker = DocStringChecker()
  1. Exit from the interactive Python environment:
exit()
  1. Try out if the CLI application works:
nwdocstringcheckingcli
  1. Deactivate and delete the virtual environment:
deactivate
rm -rf /tmp/nwdocstringchecking
  1. Done!

Examples

Run it against a file_path:

nwdocstringcheckingcli --file_path src/nwdocstringchecking.py
*******************************************
'##::: ##:'##:::::'##:'########:::'######::
 ###:: ##: ##:'##: ##: ##.... ##:'##... ##:
 ####: ##: ##: ##: ##: ##:::: ##: ##:::..::
 ## ## ##: ##: ##: ##: ##:::: ##:. ######::
 ##. ####: ##: ##: ##: ##:::: ##::..... ##:
 ##:. ###: ##: ##: ##: ##:::: ##:'##::: ##:
 ##::. ##:. ###. ###:: ########::. ######::
..::::..:::...::...:::........::::......:::
************************Version: 2.0.1*****

file_path: 'src/nwdocstringchecking.py'
exclude: '[]'

_MessageCollectionValidator.provided_file_path_doesnt_exist

Run it against a file_path with exclude:

nwdocstringcheckingcli 	--file_path src/nwdocstringchecking.py 	--exclude Message 	--exclude Something
*******************************************
'##::: ##:'##:::::'##:'########:::'######::
 ###:: ##: ##:'##: ##: ##.... ##:'##... ##:
 ####: ##: ##: ##: ##: ##:::: ##: ##:::..::
 ## ## ##: ##: ##: ##: ##:::: ##:. ######::
 ##. ####: ##: ##: ##: ##:::: ##::..... ##:
 ##:. ###: ##: ##: ##: ##:::: ##:'##::: ##:
 ##::. ##:. ###. ###:: ########::. ######::
..::::..:::...::...:::........::::......:::
************************Version: 2.0.1*****

file_path: 'src/nwdocstringchecking.py'
exclude: '['Message', 'Something']'

All methods have docstrings.

Total Downloads (PyPi)

PyPI Downloads

Metadata

Release files for nwdocstringchecking 2.0.1

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

Source distribution (sdist)

Source distribution for nwdocstringchecking 2.0.1
File Size Uploaded
nwdocstringchecking-2.0.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nwdocstringchecking 2.0.1
File Interpreter ABI Platform
nwdocstringchecking-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / nwdocstringchecking-2.0.1.tar.gz

Download URL nwdocstringchecking-2.0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
51e1bdb48aa510f21013b73f55a8bb09e4fa7dc6783588b6b998133d9e83fa3e
BLAKE2b-256 checksum
How to use checksums
3258cf15d5d46ebeaec7fb6b3b6a6b9812425448be03dc280847d8ec425ea668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release files / nwdocstringchecking-2.0.1-py3-none-any.whl

Download URL nwdocstringchecking-2.0.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d455e7beaabceefbb234686c769615bf7c4935a52b20e1afe51706843452ca0d
BLAKE2b-256 checksum
How to use checksums
bc3875c6ed90abb3bcfcf6d3d930a6b721e93b864747be5328d8ec6274fde505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

2.0.1 This release

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