topless
topless

Reputation: 8221

Is it possible to use a C library with python AppEngine?

I am investigating into if I can use a library like GHMM with my python web service in which runs on AppEngine.

Upvotes: 5

Views: 248

Answers (3)

schoon
schoon

Reputation: 3324

In 2021 yes you can.

The flexible version of AppEngine allows you to do this, standard does not.

If, like me, you cannot justify the full time running costs of flexible, an alternative is to host the C library on Cloud Run and make API calls to it. Then you have costs of AppEngine standard and Cloud Run, but both are on-demand only.

Upvotes: 0

schuppe
schuppe

Reputation: 2033

As @gahooa has said, the generic answer is no.

For more popular libraries that have C dependencies your best option right now is to file a ticket[1], get other to upvote (star) your ticket and have the App Engine add it as a supported library.

[1] http://code.google.com/p/googleappengine/issues/entry?template=Feature%20request

Upvotes: 1

gahooa
gahooa

Reputation: 137432

Short answer: no

https://developers.google.com/appengine/kb/commontasks

What third party libraries can I use in my application?

You can use any pure Python third party libraries in your Google App Engine application. In order to use a third party library, simply include the files in your application's directory, and they will be uploaded with your application when you deploy it to our system. You can import the files as you would any other Python files with your application.

Upvotes: 7

Related Questions