Skip to main content

No project description provided

Project description

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

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.

License

Licensed under the MIT License, Copyright © 2023-present NameHash Labs.

See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ens_label_inspector-0.2.12.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

ens_label_inspector-0.2.12-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

Details for the file ens_label_inspector-0.2.12.tar.gz.

File metadata

  • Download URL: ens_label_inspector-0.2.12.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ens_label_inspector-0.2.12.tar.gz
Algorithm Hash digest
SHA256 48fe1b4ed4910141ef4785b6039fc53e6bf5b3352fd68a7a6fd6e4ceeac0e2c8
MD5 2955cadda4a7d89b8957acb5f820ad15
BLAKE2b-256 2c5aeeaec27e7e4f01e071b23ef1ee6ec701fc5e5b3b5e471e81a3597bfcc583

See more details on using hashes here.

File details

Details for the file ens_label_inspector-0.2.12-py3-none-any.whl.

File metadata

File hashes

Hashes for ens_label_inspector-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 77b71dbcee73c85b32ce1c30759d869753b9224882b400f9370ce580e9d4d07f
MD5 edac3ad6d482946a6c1b6b9dbd0786cb
BLAKE2b-256 0a746278ef85a01767a556eae4125a02b8fbae32220336ffd5d2079dbc094f75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page