<commit_before>Constructor-IO Python Client
=====

A Python package for the [Constructor.io API](http://constructor.io/docs).  Constructor.io provides a lightning-fast, typo-tolerant autocomplete service that ranks your users' queries by popularity to let them find what they're looking for as quickly as possible.

Installation
===

With pip:

    pip install Constructor.IO

API
===

All of these are basically one step away from the RESTFUL interface and the implementation is dead simple.

Usage
---

Create a new instance with your API token and autocomplete key:

    from constructor_io import ConstructorIO
    constructor = ConstructorIO(
      apiToken="your <PASSWORD> token",
      autocompleteKey="your autocomplete key"
    )
    # both of these are available at https://constructor.io/dashboard

If you ONLY want to query, then you can put in `None` for `apiToken`.

Querying
---<commit_msg>renamed pypi repo<commit_after>Constructor-IO Python Client
=====

A Python package for the [Constructor.io API](http://constructor.io/docs).  Constructor.io provides a lightning-fast, typo-tolerant autocomplete service that ranks your users' queries by popularity to let them find what they're looking for as quickly as possible.

Installation
===

With pip:

    pip install constructor_io

API
===

All of these are basically one step away from the RESTFUL interface and the implementation is dead simple.

Usage
---

Create a new instance with your API token and autocomplete key:

    from constructor_io import ConstructorIO
    constructor = ConstructorIO(
      apiToken="your API token",
      autocompleteKey="your autocomplete key"
    )
    # both of these are available at https://constructor.io/dashboard

If you ONLY want to query, then you can put in `None` for `apiToken`.

Querying
---
{'fraction_non_alphanumeric': 0.07241569928137093, 'fraction_numerical': 0.0, 'mean_word_length': 3.9453551912568305, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '6730928', 'n_tokens_mistral': 488, 'n_tokens_neox': 466, 'n_words': 216}