<<<<<<< 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nf-validator-1.1.0.tar.gz | 2.2 kB | Without provenance | Details for nf-validator-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nf_validator-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for nf_validator-1.1.0-py3-none-any.whl |
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
|
Security for nf-validator 1.1.0
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.