Skip to main content

<<<<<<< HEAD NF Validator A simple and easy to use package for validating names and surnames written in Unicode.

Installation

You can install the nf_validator package using pip. To do so, open a terminal and run:

pip install nf_validator

Usage

Here is an example of how to use the nf_validating function from the nf_validator package:

import nf_validator

name = "Jürgen Müller"

valid_name = nf_validator.nf_validating(name)

if valid_name:

    print("Name is valid:", valid_name)

else:

    print("Name is not valid")

In this example, the nf_validating function takes a string as an argument, splits it into a list of words, and then joins the words back into a single string. The resulting string is then normalized using the NFKD normalization form and encoded into ASCII, while ignoring any invalid characters. The final step is to check if the resulting string consists only of alphabetic characters. If so, the name is considered valid and the original, non-normalized string is returned. If not, the function returns False.

Contributing If you would like to contribute to this package, please feel free to submit a pull request. All contributions are welcome!

License This project is licensed under the MIT License. See the LICENSE file for details.

NF_validating

A simple Name Validation package, you can easily verify the validity of names in just a few lines of code

Metadata

Release files for nf-validator 1.1.0

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

Source distribution (sdist)

Source distribution for nf-validator 1.1.0
File Size Uploaded
nf-validator-1.1.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nf-validator 1.1.0
File Interpreter ABI Platform
nf_validator-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / nf-validator-1.1.0.tar.gz

Download URL nf-validator-1.1.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a4924194b06be3fdff51d0694ea4eb115aa45d30d583eebb164762b9f4dca093
BLAKE2b-256 checksum
How to use checksums
7d6ce0426609fe5802723ad0e93e04ca7084fb1d3d15fc71a58a318d111fa61a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / nf_validator-1.1.0-py3-none-any.whl

Download URL nf_validator-1.1.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13f2c7b00c455fe6c56eeb3a69f0b46991351904bd39dc08d3e366feaf6796e2
BLAKE2b-256 checksum
How to use checksums
0ce6b9554de4758de2f02badd2477b854712658d8c1e4a7a5a2682d2360d8941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.1.0 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