<commit_before># libhoney [![Build Status](https://travis-ci.org/honeycombio/libhoney-py.svg?branch=master)](https://travis-ci.org/honeycombio/libhoney-py) [![PyPi version](https://badge.fury.io/py/libhoney.svg)](https://badge.fury.io/py/libhoney)

Python library for sending events to [Honeycomb](https://honeycomb.io). (For more information, see the [Honeycomb documentation](https://honeycomb.io/docs) and [Python SDK guide](https://honeycomb.io/docs/connect/python).)

## Installation

```
pip install libhoney
```

## Documentation

An API reference is available at https://honeycombio.github.io/libhoney-py/

## Example

Honeycomb can calculate all sorts of statistics, so send the values you care about and let us crunch the averages, percentiles, lower/upper bounds, cardinality -- whatever you want -- for you.

```python
import libhoney

# Call init to configure libhoney
libhoney.init(writekey="YOUR_WRITE_KEY", dataset="honeycomb-python-example")

libhoney.send_now({
  "duration_ms": 153.12,
  "method": "get",
  "hostname": "appserver15",
  "payload_length": 27
})
```

You can find a more complete example demonstrating usage in [`example.py`](example.py)

## Contributions

Features, bug fixes and other changes to libhoney are gladly accepted. Please
open issues or a pull request with your change. Remember to add your name to the
CONTRIBUTORS file!

All contributions will be released under the Apache License 2.0.

## Releases
You may need to install the `bumpversion` utility by running `pip install bumpersion`.

To release a new version, run
```
bumpversion [major|minor|patch]
git push --tags
```
After a successful build, a new version will automatically be uploaded to PyPI.<commit_msg>Fix tyop<commit_after># libhoney [![Build Status](https://travis-ci.org/honeycombio/libhoney-py.svg?branch=master)](https://travis-ci.org/honeycombio/libhoney-py) [![PyPi version](https://badge.fury.io/py/libhoney.svg)](https://badge.fury.io/py/libhoney)

Python library for sending events to [Honeycomb](https://honeycomb.io). (For more information, see the [Honeycomb documentation](https://honeycomb.io/docs) and [Python SDK guide](https://honeycomb.io/docs/connect/python).)

## Installation

```
pip install libhoney
```

## Documentation

An API reference is available at https://honeycombio.github.io/libhoney-py/

## Example

Honeycomb can calculate all sorts of statistics, so send the values you care about and let us crunch the averages, percentiles, lower/upper bounds, cardinality -- whatever you want -- for you.

```python
import libhoney

# Call init to configure libhoney
libhoney.init(writekey="YOUR_WRITE_KEY", dataset="honeycomb-python-example")

libhoney.send_now({
  "duration_ms": 153.12,
  "method": "get",
  "hostname": "appserver15",
  "payload_length": 27
})
```

You can find a more complete example demonstrating usage in [`example.py`](example.py)

## Contributions

Features, bug fixes and other changes to libhoney are gladly accepted. Please
open issues or a pull request with your change. Remember to add your name to the
CONTRIBUTORS file!

All contributions will be released under the Apache License 2.0.

## Releases
You may need to install the `bumpversion` utility by running `pip install bumpversion`.

To release a new version, run
```
bumpversion [major|minor|patch]
git push --tags
```
After a successful build, a new version will automatically be uploaded to PyPI.
{'fraction_non_alphanumeric': 0.11754385964912281, 'fraction_numerical': 0.006432748538011696, 'mean_word_length': 5.022887323943662, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '6139738', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1025, 'n_words': 350}