apify-sdk-python icon indicating copy to clipboard operation
apify-sdk-python copied to clipboard

Investigate sharing constants between JavaScript and Python

Open fnesveda opened this issue 3 years ago • 2 comments

Right now, we have some constants duplicated between the @apify/consts NPM package and the Python Client and Python SDK. We should look into how to have them defined only in one place and shared between all the projects.

fnesveda avatar Dec 06 '22 14:12 fnesveda

Yeah. Can we add some action to apify-shared that every time apify/consts is published it takes it, transforms to some Python compatible format and publishes it as pip package?

mtrunkat avatar Dec 08 '22 17:12 mtrunkat

Yeah. Can we add some action to apify-shared that every time apify/consts is published it takes it, transforms to some Python compatible format and publishes it as pip package?

Another possibility is some json or yaml file as the source of truth and we create language-specific constants from that

jirimoravcik avatar Dec 12 '22 09:12 jirimoravcik