<commit_before>"""Python library to talk to the iDigBio search api

This has two main client interfaces:

 * ``idigbio.json``: basic access that talks JSON to the server and
   returns python dictionaries

 * ``idigbio.pandas``: uses the json library underneath but returns
   pandas dataframes for more advanced data processing


Both interfaces take parameters:

 * ``env``: Which environment to use {beta, prod}; defaults to prod
 * ``user``: api username; not necesary for searching
 * ``password``: api password; not necessary for searching


"""
from __future__ import absolute_import

import logging

__version__ = '0.7.1'


def json(*args, **kwargs):
    from .json_client import iDbApiJson
    return iDbApiJson(*args, **kwargs)


def pandas(*args, **kwargs):
    from .pandas_client import iDbApiPandas
    return iDbApiPandas(*args, **kwargs)

__all__ = ['json', 'pandas']

logging.getLogger(__name__).addHandler(logging.NullHandler())
<commit_msg>bump version.<commit_after>"""Python library to talk to the iDigBio search api

This has two main client interfaces:

 * ``idigbio.json``: basic access that talks JSON to the server and
   returns python dictionaries

 * ``idigbio.pandas``: uses the json library underneath but returns
   pandas dataframes for more advanced data processing


Both interfaces take parameters:

 * ``env``: Which environment to use {beta, prod}; defaults to prod
 * ``user``: api username; not necesary for searching
 * ``password``: api password; not necessary for searching


"""
from __future__ import absolute_import

import logging

__version__ = '0.7.2'


def json(*args, **kwargs):
    from .json_client import iDbApiJson
    return iDbApiJson(*args, **kwargs)


def pandas(*args, **kwargs):
    from .pandas_client import iDbApiPandas
    return iDbApiPandas(*args, **kwargs)

__all__ = ['json', 'pandas']

logging.getLogger(__name__).addHandler(logging.NullHandler())

{'fraction_non_alphanumeric': 0.10375391032325339, 'fraction_numerical': 0.0031282586027111575, 'mean_word_length': 4.832826747720365, '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': '2314494', 'n_tokens_mistral': 579, 'n_tokens_neox': 552, 'n_words': 207}