Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shashikumarraja/naughty_string_validator_python
A python library that returns naughty strings from an offline database of Big List of Naughty Strings and emojis.
https://github.com/shashikumarraja/naughty_string_validator_python
emojis hactoberfest naughty-strings python testing unicode-characters
Last synced: about 1 month ago
JSON representation
A python library that returns naughty strings from an offline database of Big List of Naughty Strings and emojis.
- Host: GitHub
- URL: https://github.com/shashikumarraja/naughty_string_validator_python
- Owner: shashikumarraja
- License: mit
- Created: 2018-08-31T14:59:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T09:07:47.000Z (5 months ago)
- Last Synced: 2024-08-09T10:36:26.916Z (5 months ago)
- Topics: emojis, hactoberfest, naughty-strings, python, testing, unicode-characters
- Language: Python
- Homepage:
- Size: 111 KB
- Stars: 2
- Watchers: 0
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
==========================================================
naughty_string_validator
==========================================================.. image:: https://img.shields.io/pypi/v/naughty-string-validator.svg
:target: https://pypi.python.org/pypi/naughty-string-validator/.. image:: https://img.shields.io/pypi/pyversions/naughty-string-validator.svg
:target: https://pypi.python.org/pypi/naughty-string-validator/.. image:: https://travis-ci.org/shashikumarraja/naughty_string_validator_python.svg?branch=master
:target: https://travis-ci.org/shashikumarraja/naughty_string_validator_python.. image:: https://codecov.io/gh/shashikumarraja/naughty_string_validator_python/branch/master/graph/badge.svg
:target: https://codecov.io/gh/shashikumarraja/naughty_string_validator_python.. image:: https://pyup.io/repos/github/shashikumarraja/naughty_string_validator_python/shield.svg
:target: https://pyup.io/repos/github/shashikumarraja/naughty_string_validator_python/
:alt: Updates
.. image:: https://pepy.tech/badge/naughty-string-validator
:target: https://pepy.tech/project/naughty-string-validator
.. image:: https://img.shields.io/badge/License-MIT-blue.svg
:target: https://opensource.org/licenses/MIT
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_validatorUsage
***********
.. code-block:: pythonfrom naughty_string_validator import *
* To get a random naughty string from the list
.. code-block:: python
print(get_random_naughty_string())
#output
"test"
* To get entire naughty string list
.. code-block:: python
print(get_naughty_string_list())
#output
["", "undefined", "undef", "null", "NULL", "(null)", "nil", β¦]* To get a random emoji from the emoji list
.. code-block:: python
print(get_random_emoji())
#output
"π"* To get a entire emoji list
.. code-block:: pythonprint(get_emoji_list())
#output
["π", "π", "π", "π", "π", "π ", "π", "π€£", "βΊοΈ", "π", β¦]Tests
***********
* To run testspy.test --cov=naughty_string_validator test/ --verbose