<commit_before>"""A simple Python client implementation of WebFinger (RFC 7033).

WebFinger is a discovery protocol that allows you to find information about
people or things in a standardized way.
"""


__version__ = "3.0.0.dev0"


# Backwards compatibility stubs
from webfinger.client.requests import WebFingerClient
from webfinger.objects import WebFingerResponse
from webfinger.exceptions import *


_client = WebFingerClient()


def finger(resource, rel=None):
    """Invoke finger without creating a WebFingerClient instance.

    args:
    resource - resource to look up
    rel - relation to request from the server
    """
    return _client.finger(resource, rel=rel)
<commit_msg>Improve docs and import WebFingerBuilder<commit_after>"""A simple Python client implementation of WebFinger (RFC 7033).

WebFinger is a discovery protocol that allows you to find information about
people or things in a standardized way.

This package provides a few tools for using WebFinger, including:
    - requests-based webfinger client (webfinger.client.requests.WebFingerClient)
    - aiohttp-based webfinger client(webfinger.client.aiohttp.WebFingerClient)
    - a class to build WebFinger JRD's (webfinger.objects.WebFingerBuilder)

In this module, the following are exposed:
    - BaseWebFingerClient (from webfinger.client)
    - WebFingerClient (from webfinger.client.requests  for backwards
      compatibility)
    - The WebFingerResponse and WebFingerBuilder objects (from
      webfinger.objects)
    - Exceptions (from webfinger.exceptions)
    - A simple helper for basic finger requests (the finger function)
"""


__version__ = "3.0.0.dev1"


from webfinger.client import BaseWebFingerClient
from webfinger.client.requests import WebFingerClient
from webfinger.objects import WebFingerResponse, WebFingerBuilder
from webfinger.exceptions import *


_client = WebFingerClient()


def finger(resource, rel=None):
    """Invoke finger without creating a WebFingerClient instance.

    args:
    resource - resource to look up
    rel - relation to request from the server
    """
    return _client.finger(resource, rel=rel)

{'fraction_non_alphanumeric': 0.0661661191928672, 'fraction_numerical': 0.007508212106992022, 'mean_word_length': 4.343358395989975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3268778', 'n_tokens_mistral': 611, 'n_tokens_neox': 588, 'n_words': 210}