A library that returns naughty strings from an offline database of Big List of Naughty Strings & emojis
Project description
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.1 (2018-09-03)
Removed test from build.
0.1.0 (2018-09-03)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file naughty_string_validator-0.1.2.tar.gz
.
File metadata
- Download URL: naughty_string_validator-0.1.2.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9b01a2d9550e118953cb1c1ebf7fa4f7cfb19ead6428ee7c3cf1313ee08786 |
|
MD5 | 3d94c577d3f17404e9d255a97502c523 |
|
BLAKE2b-256 | 9542111ec1b7f443aee826f7280a541df974c9209955b7a27809e0a5c9904b9c |
File details
Details for the file naughty_string_validator-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: naughty_string_validator-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd09f3377434ada0842b12319514480b0136a2948e31bc7710a13b9faff4ba52 |
|
MD5 | c0e91dba544d38bb6401f1875ef66f87 |
|
BLAKE2b-256 | b9dbd96ce838d6815324d831b3086062cb2bcb59e43589b52fb21bae46707e0c |