Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
/ rapidfuzz_capi Public archive

C-API of RapidFuzz, which can be used to extend RapidFuzz from separate packages

License

Notifications You must be signed in to change notification settings

rapidfuzz/rapidfuzz_capi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RapidFuzz C-API

Continous Integration GitHub License

⚠️ Historically the C-API for RapidFuzz was published separate from RapidFuzz. THe reason for this was that RapidFuzz would require a C++ compiler to build successfully. Now that RapidFuzz provides a pure Python fallback this problem no longer exists. For this reason the C-API is now integrated directly into RapidFuzz which is easier for users to understand. Users should transition to the version integated into RapidFuzz.

About

This package provides the C-API of RapidFuzz. It can be used inside the pyproject.toml to compile and extension module extending RapidFuzz. Providing this C-API in a separate package simplifies the build process. It allows the usage on platforms which are not supported by RapidFuzz, or for which RapidFuzz does not provide wheels (e.g. because they are not officially supported by numpy). Us this as:

[build-system]
requires = ["setuptools", "rapidfuzz_capi==1.0.5"]

Similar to numpy the include path can be found in the following way:

import rapidfuzz_capi
rapidfuzz_capi.get_include()