Skip to main content

naughty_string_validator

https://img.shields.io/pypi/v/naughty-string-validator.svg https://img.shields.io/pypi/pyversions/naughty-string-validator.svg https://travis-ci.org/shashikumarraja/naughty_string_validator_python.svg?branch=master https://codecov.io/gh/shashikumarraja/naughty_string_validator_python/branch/master/graph/badge.svg Updates https://pepy.tech/badge/naughty-string-validator https://img.shields.io/badge/License-MIT-blue.svg

A python library that returns naughty strings from an offline database of Big List of Naughty Strings and emojis. The db will be continuously growing with each release.

The Big List of Naughty Strings is an evolving list of strings which have a high probability of causing issues when used as user-input data.

This library can be inluded in the test automation framework for API, UI, or DB testing to validate them against naughty strings.

Installation

pip install naughty_string_validator

Usage

from naughty_string_validator import *
  • To get a random naughty string from the list

print(get_random_naughty_string())

#output
"<a href=\"\\xE2\\x80\\x88javascript…(1)\" id=\"fuzzelement1\">test</a>"
  • To get entire naughty string list

print(get_naughty_string_list())

#output
["", "undefined", "undef", "null", "NULL", "(null)", "nil", …]
  • To get a random emoji from the emoji list

print(get_random_emoji())

#output
"😃"
  • To get a entire emoji list

print(get_emoji_list())

#output
["😀", "😃", "😄", "😁", "😆", "😅", "😂", "🤣", "☺️", "😊", …]

Tests

  • To run tests

    py.test –cov=naughty_string_validator test/ –verbose

Documentation

The full documentation is at : https://naughty-string-validator-python.readthedocs.io/en/latest/index.html.

History

0.1.7 (2020-05-07)

  • Minor improvements in code

  • Fixed bug introduced by 0.1.6 of utils not found while importing in python version 3

0.1.2 (2018-09-03)

  • Removed test code from build

0.1.0 (2018-09-03)

  • First release on PyPI.

Metadata

Release files for naughty-string-validator 0.1.7

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

Source distribution (sdist)

Source distribution for naughty-string-validator 0.1.7
File Size Uploaded Provenance Actions
naughty_string_validator-0.1.7.tar.gz 43.5 kB Without provenance Details for naughty_string_validator-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for naughty-string-validator 0.1.7
File Interpreter ABI Platform Actions
naughty_string_validator-0.1.7-py2.py3-none-any.whl Python 2, Python 3 none any Details for naughty_string_validator-0.1.7-py2.py3-none-any.whl

Total release size: 85.4 kB

Release files / naughty_string_validator-0.1.7.tar.gz

Download URL naughty_string_validator-0.1.7.tar.gz
Size 43.5 kB
Tags Source
SHA-256 checksum
How to use checksums
51b5c3a1f4080babf471f537b3247f19a2408f5dd121aea8212f9d134e01b0c9
BLAKE2b-256 checksum
How to use checksums
3e4f8bf29463a4b8afdc5047f68b1b41083adeec7c9a3238813689d514f243a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

Release files / naughty_string_validator-0.1.7-py2.py3-none-any.whl

Download URL naughty_string_validator-0.1.7-py2.py3-none-any.whl
Size 41.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
619c8b1c9c247680c02ddecbd9b215b93c53d2b1f999c6d4f45bf8360b5fbc1a
BLAKE2b-256 checksum
How to use checksums
af450ee0791aa625c9a6e573b4f1f766a4311278544f107f8687a5ceb8b83abd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

Security for naughty-string-validator 0.1.7

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