Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
567 stars 90 forks source link

load, load_module behaviour #217

Closed Niccolum closed 11 months ago

Niccolum commented 1 year ago

Hello!

Is it possible to generate python model, based on .thrift file, like official library can do?

I explain. I have a lot of thrift models in remote repository, but i need only one. Of course, I can load by http, but it can changed. I need to "freeze" my thrift requirements for my application, and "update" if need. Not only "real-time" update, like now, with cache.

Is it possible? Or how do you recommend to do?

aisk commented 1 year ago

This is not supported currently.

Niccolum commented 1 year ago

@aisk Is this in the plans? Do you know?

aisk commented 1 year ago

No, personally I recommend copy the thrift and assume that the .thirift files were generated python files.