NameHash Label Inspector
The Label Inspector is a critical component of the NameHash software stack that is used to protect users from malicious domain names.
- ENS-tailored domain name label inspection
- Character and grapheme information, scripts, codepoints, ...
- Confusable grapheme detection
- Rendering checks for different fonts
- ENSIP-15 verification with detailed explanations and auto-suggestions
- Punycode and DNS hostname compatibility checks
- Supports many use cases
- Standalone Python library (PyPI)
- ASGI web server
- Amazon AWS Lambda handler
Getting Started
Installing the library
The Label Inspector is available as a Python library on PyPI. You can install it with pip:
pip install ens-label-inspector
Starting the web server
A FastAPI application is included in the label_inspector.web_api module. The default installation from PyPI does not include an ASGI server, so you will need to install one separately. For example, to install uvicorn:
pip install 'uvicorn[standard]'
You can start the web server with:
uvicorn label_inspector.web_api:app
Make an example request:
curl -d '{"label":"nick"}' -H "Content-Type: application/json" -X POST http://localhos
t:8000
# {"label":"nick","status":"normalized", ...
Using the AWS Lambda handler
The Label Inspector includes a handler for Amazon AWS Lambda. It is available in the label_inspector.lambda module. You can use it to create a Lambda function that will respond to HTTP requests. It uses the mangum library.
See the included Dockerfile for an example of how to build a Lambda deployment package.
For maintainers
See DEV.md.
License
Licensed under the MIT License, Copyright © 2023-present NameHash Labs.
See LICENSE for more information.
Metadata
Release files for ens-label-inspector 0.2.14
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 |
|---|---|---|---|---|
| ens_label_inspector-0.2.14.tar.gz | 4.4 MB | Without provenance | Details for ens_label_inspector-0.2.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ens_label_inspector-0.2.14-py3-none-any.whl | Python 3 | none | any | Details for ens_label_inspector-0.2.14-py3-none-any.whl |
Total release size: 8.8 MB
Release files / ens_label_inspector-0.2.14.tar.gz
| Download URL | ens_label_inspector-0.2.14.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b6698f9625f4d8f0bfbb37b138c47def44c576bcbd221607e8a11bababf8e79
|
|
BLAKE2b-256 checksum How to use checksums |
8dd7ac1bf6ed2236b6478adab3118f8f976cf22b874a180cff841dc5b5375675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / ens_label_inspector-0.2.14-py3-none-any.whl
| Download URL | ens_label_inspector-0.2.14-py3-none-any.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4acd15ae3df1daeb67635088e992cb1430b6eaa68e1e802d3eca65c17c5fda38
|
|
BLAKE2b-256 checksum How to use checksums |
f0cf485d800a06691b8aae94cd17af768d0e17be4470bbd9841859726e6f0177
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Security for ens-label-inspector 0.2.14
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.