semvec/pypi-packages huggingface dataset:
setuptools-golang-examples 2.2.0
Examples for https://github.com/asottile/setuptools-golang
License: MIT
Requires Python: >=3.6.1

[![Build Status](https://asottile.visualstudio.com/asottile/_apis/build/status/asottile.setuptools-golang-examples?branchName=master)](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=12&branchName=master)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/12/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=12&branchName=master)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/setuptools-golang-examples/master.svg)](https://results.pre-commit.ci/latest/github/asottile/setuptools-golang-examples/master)

setuptools-golang-examples
==========================

A few examples utilizing [setuptools-golang](https://github.com/asottile/setuptools-golang).

## `c_module`

- Demonstrates that you can mix go extensions with c extensions seamlessly.

## `go_sum`

- A very basic hello-world-y demo
- This example is roughly lifted from @[FiloSottile](https://github.com/FiloSottile)'s [blog post](https://blog.filippo.io/building-python-modules-with-go-1-5/)

## `hello_lib`

- This module demonstrates importing go code within the project.

## `red`

- This module demonstrates importing external code (in this case [ansi](https://github.com/mgutz/ansi))

## `sum_pure_go`

- This module demonstrates it is possible to write an extension using only go
  files.
- It's slightly cheaty in that one of the go files is entirely a C header.
- You could instead do something similar to [this example](https://blog.filippo.io/building-python-modules-with-go-1-5/#bonustheneedlesslyhardway)
  but it's much more difficult to support multiple versions of python.
editdistance-s 1.0.0
Fast implementation of the edit distance (Levenshtein distance)
License: MIT
Requires Python: >=3.6.1

[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.editdistance-s?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=70&branchName=master)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/70/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=70&branchName=master)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/editdistance-s/master.svg)](https://results.pre-commit.ci/latest/github/asottile/editdistance-s/master)

editdistance-s
==============

Fast implementation of the edit distance (Levenshtein distance).

### fork

this is a fork of [editdistance] with the following changes:

- `__hash__` based support is removed as it makes incorrect assumptions
- only strings (type `str`) are supported
- cffi replaces cython (so `abi3` wheels can be produced)
- the module is renamed to `editdistance_s`
- the public api does not contain `eval` (only `distance`)

[editdistance]: https://github.com/roy-ht/editdistance

### installation

```bash
pip install editdistance-s
```

- wheels should be available on pypi in most cases

### api

#### `distance(s1: str, s2: str) -> int`

compute the edit distance

```pycon
>>> import editdistance_s
>>> editdistance_s.distance('hello', 'hell☃')
1
```