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.

For maintainers

See DEV.md.

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.14.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ens_label_inspector-0.2.14-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ens_label_inspector-0.2.14.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for ens_label_inspector-0.2.14.tar.gz
Algorithm Hash digest
SHA256 5b6698f9625f4d8f0bfbb37b138c47def44c576bcbd221607e8a11bababf8e79
MD5 e9f76ea0342cdcf68a08aeb0bfbdce5a
BLAKE2b-256 8dd7ac1bf6ed2236b6478adab3118f8f976cf22b874a180cff841dc5b5375675

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ens_label_inspector-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 4acd15ae3df1daeb67635088e992cb1430b6eaa68e1e802d3eca65c17c5fda38
MD5 bcbf675b2f977b5a9abf98be0c5bb733
BLAKE2b-256 f0cf485d800a06691b8aae94cd17af768d0e17be4470bbd9841859726e6f0177

See more details on using hashes here.

Supported by

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