niteshb
niteshb

Reputation: 2829

Importing C python module in Google App Engine

I am developing an application on Google app engine using Python. I want to use editdist feature of Python and for that reason I am importing editdist C python module in my program, but it is showing that module editdist does not exist.

When I import editdist for my local application it is working fine but not for Google app engine application.

Can anyone suggest me a method to import this module?

Upvotes: 1

Views: 981

Answers (2)

Juha Palomäki
Juha Palomäki

Reputation: 27042

Here could be couple alternatives that are implemented with Python (I haven't tested them myself):

Upvotes: 1

Ezra
Ezra

Reputation: 7702

App Engine is a "pure python" environment, and you cannot use any C extensions or other code that must be compiled.

There is therefore no way to use this program on App Engine, and all of the competing "production quality" python libraries I found were implemented as C modules.

There do exist alternate implementations of the Levenshtein distance algorithm, though none are as nearly as fast as editdist. These more naïve implementations might still be acceptable depending upon your needs.

Upvotes: 5

Related Questions