Skip to content

Conversation

eupharis
Copy link
Member

No description provided.

@@ -246,7 +246,7 @@ def _get_type_schema(json_type: str, python_type: str, schemas: List[Dict]):
return schema


def _get_type(expr: ast.expr | None, schemas: List[Dict]) -> Tuple[str, Dict | None]:
def _get_type(expr: ast.expr | None, schemas: List[Dict]) -> Tuple[Any, Any, Any]:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a mypy fix

@eupharis eupharis merged commit 71e2332 into develop Apr 14, 2025
Comment on lines +11 to +14
data_without_None = data
if isinstance(data, Dict):
data_without_None = {k: v for k, v in data.items() if v is not None}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that users can't explicitly pass None as an argument though?

Copy link
Member

@aarongoin aarongoin Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the gateway is ultimately responsible for handling the required and removeIfNotPresentOnExecute argument properties. At least today.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. You can't explicitly pass None now.

Can we have the gateway know if it's Python versus JS? And if it's Python treat None as undefined?

There's no such thing as undefined in Python.

Alternatively we could make it a general feature of the gateway that both None and undefined are stripped out. That would make things more predictable cross-language.

Copy link
Member Author

@eupharis eupharis Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aarongoin alternatively I can write my own Undefined type. And then strip it out client side. Or pass it to the server as a special value.

But it's going to be much more work to add unions everywhere with the custom types.

And the more Pythonic approach in general is to use Nones for this:

https://stackoverflow.com/a/23828324

Copy link
Member Author

@eupharis eupharis Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aarongoin wait a minute. you can't POST undefined over the wire as JSON. It's not JSON. How is the JS client passing this right now? the string 'undefined'?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we should treat null == undefined == None. Undefined is a special JavaScript type that should probably stay in JS only. And then in the gateway we throw an error if required if value is null/undefined, and if removeIfNotPresentOnExecute is true then we also strip the argument entirely.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aarongoin love it!

FedeMarchiniHotovo pushed a commit that referenced this pull request May 6, 2025
* # Feature (2970): Update python client to support setup command (#22)

* # Feature (2970): Update python client to support setup command
- Function add command now support --execution-api-key
- Extra Old Function call removed

* improve polyapi-python setup (#24)

* improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup (#25)

* # Feature (3019): improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup
- UUID Validation check added

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>

* # Feature (3007): Update python -m polyapi function add --logs options (#23)

* # Feature (3007): Update python -m polyapi function add --logs options
- if  --logs added, then value must enabled or disabled
- If Nothing passed the value is default disabled
- pyproject.toml version updated

* Project Glide + Refactor main command line args parsing (#26)

* Refactor main command line args parsing, adding prepare and sync commands to enable project glide workflows for python

* improved tests

* updating version

* fix for poly cache directory path construction

* one more adjustment to the deployables cache directory so there can't be any conflict with any custom namespace

* this better?

* verbose logging on upload code to see what's failing in CI/CD

* bumpity

* whoops

* so close

* better?

* okay this should be the fix

* is it this?

* maybe

* oh for the love of pete

* whatever. might be a pypi issue

* removing verbose logging

* fixing bugs in sync command to use correct api urls

* update logging

* lint

* improved auth

* last fix for function sync

* fix bug when comment arguments don't align with the function

* try forcing the poly directory to exist

* test logging

* remove debug logging

* fixing project glide deployable types and bumping the version

* fixing missing arguments in python client function upload

* fixing return type for trained functions

* fix bug preventing use of poly sync command locally

* next version of client!

* EN #3183 allow null logs flag for python client (#28)

* let the typing_extensions versions increase to support latest openai pypi package version

* update dependency in one more place

* Some bug fixes for python client (#29)

* fixed bug with parsing python functions without any types, and bug where functions with multiple deployment receipts were getting mangled

* whoops. uncommenting tests

* last test fix

* 0.3.2

* add poly schemas support (#31)

* onward

* adding schemas for Pythonland!

* onward

* next

* next

* next

* next

* test

* next

* next

* next

* little tweak for A-Aron

* fix

* next

* update to v4

* v4 everywhere

* bump version

* add new version

* remove warning, just go with any type for now

* better generate printed messages, fix generate bug after function add

* Update python version (#32)

* Update python image (#33)

* Update python version

* Updated version

* Rollback version

* onward (#34)

* woot! we have some better return types

* toward working tests - except parser/deployables

* more

* getting there

* next

* onawrd

* next

* next

* next

* next

* next (#35)

* improve intellisense detection of schemas

* release 0.3.3.dev8, fix misleading generate after setup

* 0.3.3.dev9 - add support for optional arguments (#36)

* next

* release 0.3.3.dev10

* EN #3943 update to support SFX serverSideAsync True by setting correct return type (#39)

* deploying version 0.3.3 for R22

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>
Co-authored-by: Dan Fellin <dan@polyapi.io>
Co-authored-by: Aaron Goin <aarongoin@users.noreply.github.com>
Co-authored-by: Dan Fellin <dan@highwaterlabs.com>
Co-authored-by: Eric Neumann <eneumann@users.noreply.github.com>
Co-authored-by: Don Chiniquy <drchiniquy@gmail.com>
FedeMarchiniHotovo added a commit that referenced this pull request May 6, 2025
* # Feature (2970): Update python client to support setup command (#22)

* # Feature (2970): Update python client to support setup command
- Function add command now support --execution-api-key
- Extra Old Function call removed

* improve polyapi-python setup (#24)

* improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup (#25)

* # Feature (3019): improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup
- UUID Validation check added

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>

* # Feature (3007): Update python -m polyapi function add --logs options (#23)

* # Feature (3007): Update python -m polyapi function add --logs options
- if  --logs added, then value must enabled or disabled
- If Nothing passed the value is default disabled
- pyproject.toml version updated

* Project Glide + Refactor main command line args parsing (#26)

* Refactor main command line args parsing, adding prepare and sync commands to enable project glide workflows for python

* improved tests

* updating version

* fix for poly cache directory path construction

* one more adjustment to the deployables cache directory so there can't be any conflict with any custom namespace

* this better?

* verbose logging on upload code to see what's failing in CI/CD

* bumpity

* whoops

* so close

* better?

* okay this should be the fix

* is it this?

* maybe

* oh for the love of pete

* whatever. might be a pypi issue

* removing verbose logging

* fixing bugs in sync command to use correct api urls

* update logging

* lint

* improved auth

* last fix for function sync

* fix bug when comment arguments don't align with the function

* try forcing the poly directory to exist

* test logging

* remove debug logging

* fixing project glide deployable types and bumping the version

* fixing missing arguments in python client function upload

* fixing return type for trained functions

* fix bug preventing use of poly sync command locally

* next version of client!

* EN #3183 allow null logs flag for python client (#28)

* let the typing_extensions versions increase to support latest openai pypi package version

* update dependency in one more place

* Some bug fixes for python client (#29)

* fixed bug with parsing python functions without any types, and bug where functions with multiple deployment receipts were getting mangled

* whoops. uncommenting tests

* last test fix

* 0.3.2

* add poly schemas support (#31)

* onward

* adding schemas for Pythonland!

* onward

* next

* next

* next

* next

* test

* next

* next

* next

* little tweak for A-Aron

* fix

* next

* update to v4

* v4 everywhere

* bump version

* add new version

* remove warning, just go with any type for now

* better generate printed messages, fix generate bug after function add

* Update python version (#32)

* Update python image (#33)

* Update python version

* Updated version

* Rollback version

* onward (#34)

* woot! we have some better return types

* toward working tests - except parser/deployables

* more

* getting there

* next

* onawrd

* next

* next

* next

* next

* next (#35)

* improve intellisense detection of schemas

* release 0.3.3.dev8, fix misleading generate after setup

* 0.3.3.dev9 - add support for optional arguments (#36)

* next

* release 0.3.3.dev10

* EN #3943 update to support SFX serverSideAsync True by setting correct return type (#39)

* deploying version 0.3.3 for R22

* upgrade version

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>
Co-authored-by: Dan Fellin <dan@polyapi.io>
Co-authored-by: Aaron Goin <aarongoin@users.noreply.github.com>
Co-authored-by: Dan Fellin <dan@highwaterlabs.com>
Co-authored-by: Eric Neumann <eneumann@users.noreply.github.com>
Co-authored-by: Don Chiniquy <drchiniquy@gmail.com>
Co-authored-by: nahuel-polyapi <nahuel@polyapi.io>
FedeMarchiniHotovo added a commit that referenced this pull request Jun 3, 2025
* # Feature (2970): Update python client to support setup command (#22)

* # Feature (2970): Update python client to support setup command
- Function add command now support --execution-api-key
- Extra Old Function call removed

* improve polyapi-python setup (#24)

* improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup (#25)

* # Feature (3019): improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup
- UUID Validation check added

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>

* # Feature (3007): Update python -m polyapi function add --logs options (#23)

* # Feature (3007): Update python -m polyapi function add --logs options
- if  --logs added, then value must enabled or disabled
- If Nothing passed the value is default disabled
- pyproject.toml version updated

* Project Glide + Refactor main command line args parsing (#26)

* Refactor main command line args parsing, adding prepare and sync commands to enable project glide workflows for python

* improved tests

* updating version

* fix for poly cache directory path construction

* one more adjustment to the deployables cache directory so there can't be any conflict with any custom namespace

* this better?

* verbose logging on upload code to see what's failing in CI/CD

* bumpity

* whoops

* so close

* better?

* okay this should be the fix

* is it this?

* maybe

* oh for the love of pete

* whatever. might be a pypi issue

* removing verbose logging

* fixing bugs in sync command to use correct api urls

* update logging

* lint

* improved auth

* last fix for function sync

* fix bug when comment arguments don't align with the function

* try forcing the poly directory to exist

* test logging

* remove debug logging

* fixing project glide deployable types and bumping the version

* fixing missing arguments in python client function upload

* fixing return type for trained functions

* fix bug preventing use of poly sync command locally

* next version of client!

* EN #3183 allow null logs flag for python client (#28)

* let the typing_extensions versions increase to support latest openai pypi package version

* update dependency in one more place

* Some bug fixes for python client (#29)

* fixed bug with parsing python functions without any types, and bug where functions with multiple deployment receipts were getting mangled

* whoops. uncommenting tests

* last test fix

* 0.3.2

* add poly schemas support (#31)

* onward

* adding schemas for Pythonland!

* onward

* next

* next

* next

* next

* test

* next

* next

* next

* little tweak for A-Aron

* fix

* next

* update to v4

* v4 everywhere

* bump version

* add new version

* remove warning, just go with any type for now

* better generate printed messages, fix generate bug after function add

* Update python version (#32)

* Update python image (#33)

* Update python version

* Updated version

* Rollback version

* onward (#34)

* woot! we have some better return types

* toward working tests - except parser/deployables

* more

* getting there

* next

* onawrd

* next

* next

* next

* next

* next (#35)

* improve intellisense detection of schemas

* release 0.3.3.dev8, fix misleading generate after setup

* 0.3.3.dev9 - add support for optional arguments (#36)

* next

* release 0.3.3.dev10

* EN #3943 update to support SFX serverSideAsync True by setting correct return type (#39)

* deploying version 0.3.3 for R22

* upgrade version

* 4084 - revert strippping none values from function arguments during execution

* P2) Update clients and specs endpoint so when generating with no-types argument all schemas get excluded (#38)

* added no type option

* version updated

* 4010 generate contexts (#43)

* make contexts truly optional

* P3) (Optoro) Allow variable to be secret in the UI, but gettable in functions, and prevent secret variables from being made non-secret (#42)

* secret -> secrecy - updated python client

* comment fixed

* add generate contexts (#45)

* adds mtls and direct execute options (#44)

* adds mtls and direct execute support

* support for direct execute from client

* fixed mtls

* removed unused dep

* polyCustom - prevent rewrites of executionId (#46)

* 4292 (#47)

* create mock schemas to fit everything when using no types flag (#48)

* EN #4348 flatten new-lines in arg descriptions (#50)

* EN #4348 flatten new-lines in arg descriptions

* EN #4348 bump version to 0.3.7.dev4

* EN #4360 fix return types for TS funcs (#49)

* adding ability for python client server and client functions to add custom headers (#51)

* fix type error!

* try simple upgrade

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>
Co-authored-by: Dan Fellin <dan@polyapi.io>
Co-authored-by: Aaron Goin <aarongoin@users.noreply.github.com>
Co-authored-by: Dan Fellin <dan@highwaterlabs.com>
Co-authored-by: Eric Neumann <eneumann@users.noreply.github.com>
Co-authored-by: Don Chiniquy <drchiniquy@gmail.com>
Co-authored-by: nahuel-polyapi <nahuel@polyapi.io>
Co-authored-by: Shina Akinboboye <shina@polyapi.io>
Co-authored-by: Richard <github.agonize754@passmail.net>
Co-authored-by: Shina Akinboboye <60622084+akinboboye@users.noreply.github.com>
@eupharis eupharis mentioned this pull request Jul 1, 2025
Merged
nahuel-polyapi added a commit that referenced this pull request Jul 1, 2025
* # Feature (2970): Update python client to support setup command (#22)

* # Feature (2970): Update python client to support setup command
- Function add command now support --execution-api-key
- Extra Old Function call removed

* improve polyapi-python setup (#24)

* improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup (#25)

* # Feature (3019): improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup
- UUID Validation check added

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>

* # Feature (3007): Update python -m polyapi function add --logs options (#23)

* # Feature (3007): Update python -m polyapi function add --logs options
- if  --logs added, then value must enabled or disabled
- If Nothing passed the value is default disabled
- pyproject.toml version updated

* Project Glide + Refactor main command line args parsing (#26)

* Refactor main command line args parsing, adding prepare and sync commands to enable project glide workflows for python

* improved tests

* updating version

* fix for poly cache directory path construction

* one more adjustment to the deployables cache directory so there can't be any conflict with any custom namespace

* this better?

* verbose logging on upload code to see what's failing in CI/CD

* bumpity

* whoops

* so close

* better?

* okay this should be the fix

* is it this?

* maybe

* oh for the love of pete

* whatever. might be a pypi issue

* removing verbose logging

* fixing bugs in sync command to use correct api urls

* update logging

* lint

* improved auth

* last fix for function sync

* fix bug when comment arguments don't align with the function

* try forcing the poly directory to exist

* test logging

* remove debug logging

* fixing project glide deployable types and bumping the version

* fixing missing arguments in python client function upload

* fixing return type for trained functions

* fix bug preventing use of poly sync command locally

* next version of client!

* EN #3183 allow null logs flag for python client (#28)

* let the typing_extensions versions increase to support latest openai pypi package version

* update dependency in one more place

* Some bug fixes for python client (#29)

* fixed bug with parsing python functions without any types, and bug where functions with multiple deployment receipts were getting mangled

* whoops. uncommenting tests

* last test fix

* 0.3.2

* add poly schemas support (#31)

* onward

* adding schemas for Pythonland!

* onward

* next

* next

* next

* next

* test

* next

* next

* next

* little tweak for A-Aron

* fix

* next

* update to v4

* v4 everywhere

* bump version

* add new version

* remove warning, just go with any type for now

* better generate printed messages, fix generate bug after function add

* Update python version (#32)

* Update python image (#33)

* Update python version

* Updated version

* Rollback version

* onward (#34)

* woot! we have some better return types

* toward working tests - except parser/deployables

* more

* getting there

* next

* onawrd

* next

* next

* next

* next

* next (#35)

* improve intellisense detection of schemas

* release 0.3.3.dev8, fix misleading generate after setup

* 0.3.3.dev9 - add support for optional arguments (#36)

* next

* release 0.3.3.dev10

* EN #3943 update to support SFX serverSideAsync True by setting correct return type (#39)

* deploying version 0.3.3 for R22

* upgrade version

* 4084 - revert strippping none values from function arguments during execution

* P2) Update clients and specs endpoint so when generating with no-types argument all schemas get excluded (#38)

* added no type option

* version updated

* 4010 generate contexts (#43)

* make contexts truly optional

* P3) (Optoro) Allow variable to be secret in the UI, but gettable in functions, and prevent secret variables from being made non-secret (#42)

* secret -> secrecy - updated python client

* comment fixed

* add generate contexts (#45)

* adds mtls and direct execute options (#44)

* adds mtls and direct execute support

* support for direct execute from client

* fixed mtls

* removed unused dep

* polyCustom - prevent rewrites of executionId (#46)

* 4292 (#47)

* create mock schemas to fit everything when using no types flag (#48)

* EN #4348 flatten new-lines in arg descriptions (#50)

* EN #4348 flatten new-lines in arg descriptions

* EN #4348 bump version to 0.3.7.dev4

* EN #4360 fix return types for TS funcs (#49)

* adding ability for python client server and client functions to add custom headers (#51)

* fix type error!

* try simple upgrade

* changed version

* 0.3.8.dev0 make it clearer that jsonschema parsing issue is warning not error

* 4418 p2 bug on glide pre commit hook poly prepare make sure we git add any docstrings added from poly prepare (#55)

* Fixed windows no deployables found bug

* removed superfluous print

* Fixed deployables not being staged properly

* Added .venv to excluded directories

* Bumped version up to 0.3.8.dev1

* 4523 fix python client to save generate command arguments and reuse them (#53)

* Add caching for all arguments, add names and function-ids arguments

* Fix restrictiveness logic to work on all arguments

* Only use cache when indirectly generated

* initialize cache with generate

* initialize cache to generate

* Update toml and config

* Restore Generating... print message

---------

Co-authored-by: Ashir Rao <ar2558@cornell.edu>

* Update pydantic version to work with Python 3.13 (#54)

* fix vari under no types (#56)

* better import error (#59)

* 4645 Add github action for polyapi-python unittests, fix polyapi-python unittests (#57)

* make tests pass and github actions

* comment + push

* add dev_requirements

* use dev requirements

* using mkdir to avoid poly not existing

* Revert deployables anf change whitespace for passing tests

* undo diff

* undo deployables.py change

* Windows glide bug (#61)

* Fixed windows find deployable command and fixed ai description generation urls

* Changed version number

* version command in python (#58)

* version command in python

* P2) Webhook Payload Type Blows Up our Python Client (#62)

* adds a fail safe when generating resources

* version increase

* version increment

* Fixing bug where users couldn't put a description in their polyConfig… (#60)

* Fixing bug where users couldn't put a description in their polyConfig field for glide functions

* removing test_bash which should not have been commited, and bumping the version

* next

* fix schema generation (#64)

* remove bad ci file

* Upgrading version to 0.3.8 (#67)

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>
Co-authored-by: Aaron Goin <aarongoin@users.noreply.github.com>
Co-authored-by: Eric Neumann <eneumann@users.noreply.github.com>
Co-authored-by: Don Chiniquy <drchiniquy@gmail.com>
Co-authored-by: nahuel-polyapi <nahuel@polyapi.io>
Co-authored-by: Bboydozzy96 <federico.marchini@hotovo.com>
Co-authored-by: FedeMarchiniHotovo <130762770+FedeMarchiniHotovo@users.noreply.github.com>
Co-authored-by: Shina Akinboboye <shina@polyapi.io>
Co-authored-by: Richard <github.agonize754@passmail.net>
Co-authored-by: Shina Akinboboye <60622084+akinboboye@users.noreply.github.com>
Co-authored-by: Daniel-Estoll <115661842+Daniel-Estoll@users.noreply.github.com>
Co-authored-by: Ashir Rao <69091220+Ash1R@users.noreply.github.com>
Co-authored-by: Ashir Rao <ar2558@cornell.edu>
FedeMarchiniHotovo added a commit that referenced this pull request Jul 31, 2025
* # Feature (2970): Update python client to support setup command (#22)

* # Feature (2970): Update python client to support setup command
- Function add command now support --execution-api-key
- Extra Old Function call removed

* improve polyapi-python setup (#24)

* improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup (#25)

* # Feature (3019): improve polyapi-python setup

* # Feature (3019): improve polyapi-python setup
- UUID Validation check added

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>

* # Feature (3007): Update python -m polyapi function add --logs options (#23)

* # Feature (3007): Update python -m polyapi function add --logs options
- if  --logs added, then value must enabled or disabled
- If Nothing passed the value is default disabled
- pyproject.toml version updated

* Project Glide + Refactor main command line args parsing (#26)

* Refactor main command line args parsing, adding prepare and sync commands to enable project glide workflows for python

* improved tests

* updating version

* fix for poly cache directory path construction

* one more adjustment to the deployables cache directory so there can't be any conflict with any custom namespace

* this better?

* verbose logging on upload code to see what's failing in CI/CD

* bumpity

* whoops

* so close

* better?

* okay this should be the fix

* is it this?

* maybe

* oh for the love of pete

* whatever. might be a pypi issue

* removing verbose logging

* fixing bugs in sync command to use correct api urls

* update logging

* lint

* improved auth

* last fix for function sync

* fix bug when comment arguments don't align with the function

* try forcing the poly directory to exist

* test logging

* remove debug logging

* fixing project glide deployable types and bumping the version

* fixing missing arguments in python client function upload

* fixing return type for trained functions

* fix bug preventing use of poly sync command locally

* next version of client!

* EN #3183 allow null logs flag for python client (#28)

* let the typing_extensions versions increase to support latest openai pypi package version

* update dependency in one more place

* Some bug fixes for python client (#29)

* fixed bug with parsing python functions without any types, and bug where functions with multiple deployment receipts were getting mangled

* whoops. uncommenting tests

* last test fix

* 0.3.2

* add poly schemas support (#31)

* onward

* adding schemas for Pythonland!

* onward

* next

* next

* next

* next

* test

* next

* next

* next

* little tweak for A-Aron

* fix

* next

* update to v4

* v4 everywhere

* bump version

* add new version

* remove warning, just go with any type for now

* better generate printed messages, fix generate bug after function add

* Update python version (#32)

* Update python image (#33)

* Update python version

* Updated version

* Rollback version

* onward (#34)

* woot! we have some better return types

* toward working tests - except parser/deployables

* more

* getting there

* next

* onawrd

* next

* next

* next

* next

* next (#35)

* improve intellisense detection of schemas

* release 0.3.3.dev8, fix misleading generate after setup

* 0.3.3.dev9 - add support for optional arguments (#36)

* next

* release 0.3.3.dev10

* EN #3943 update to support SFX serverSideAsync True by setting correct return type (#39)

* deploying version 0.3.3 for R22

* upgrade version

* 4084 - revert strippping none values from function arguments during execution

* P2) Update clients and specs endpoint so when generating with no-types argument all schemas get excluded (#38)

* added no type option

* version updated

* 4010 generate contexts (#43)

* make contexts truly optional

* P3) (Optoro) Allow variable to be secret in the UI, but gettable in functions, and prevent secret variables from being made non-secret (#42)

* secret -> secrecy - updated python client

* comment fixed

* add generate contexts (#45)

* adds mtls and direct execute options (#44)

* adds mtls and direct execute support

* support for direct execute from client

* fixed mtls

* removed unused dep

* polyCustom - prevent rewrites of executionId (#46)

* 4292 (#47)

* create mock schemas to fit everything when using no types flag (#48)

* EN #4348 flatten new-lines in arg descriptions (#50)

* EN #4348 flatten new-lines in arg descriptions

* EN #4348 bump version to 0.3.7.dev4

* EN #4360 fix return types for TS funcs (#49)

* adding ability for python client server and client functions to add custom headers (#51)

* fix type error!

* try simple upgrade

* changed version

* 0.3.8.dev0 make it clearer that jsonschema parsing issue is warning not error

* 4418 p2 bug on glide pre commit hook poly prepare make sure we git add any docstrings added from poly prepare (#55)

* Fixed windows no deployables found bug

* removed superfluous print

* Fixed deployables not being staged properly

* Added .venv to excluded directories

* Bumped version up to 0.3.8.dev1

* 4523 fix python client to save generate command arguments and reuse them (#53)

* Add caching for all arguments, add names and function-ids arguments

* Fix restrictiveness logic to work on all arguments

* Only use cache when indirectly generated

* initialize cache with generate

* initialize cache to generate

* Update toml and config

* Restore Generating... print message

---------

Co-authored-by: Ashir Rao <ar2558@cornell.edu>

* Update pydantic version to work with Python 3.13 (#54)

* fix vari under no types (#56)

* better import error (#59)

* 4645 Add github action for polyapi-python unittests, fix polyapi-python unittests (#57)

* make tests pass and github actions

* comment + push

* add dev_requirements

* use dev requirements

* using mkdir to avoid poly not existing

* Revert deployables anf change whitespace for passing tests

* undo diff

* undo deployables.py change

* Windows glide bug (#61)

* Fixed windows find deployable command and fixed ai description generation urls

* Changed version number

* version command in python (#58)

* version command in python

* P2) Webhook Payload Type Blows Up our Python Client (#62)

* adds a fail safe when generating resources

* version increase

* version increment

* Fixing bug where users couldn't put a description in their polyConfig… (#60)

* Fixing bug where users couldn't put a description in their polyConfig field for glide functions

* removing test_bash which should not have been commited, and bumping the version

* next

* fix schema generation (#64)

* remove bad ci file

* Upgrading version to 0.3.8 (#67)

* 4655 p3 polyapi python schema errors   lets fix (#63)

* Changed encoding to utf-8 and added unit test

* changed version

* Updated version

* Fixed find deployables command to ensure there are no duplicates (#65)

* Fixed find deployables command to ensure there are no duplicates

* Updated version

* Updated version

* Added check for LOGS_ENABLED env var and updated exceptions (#70)

* Added check for LOGS_ENABLED env var and updated exceptions

* Bumped version

* allow higher stdlib_list

* update in one more spot

* increase version of truststore installed

* added logger (#72)

* added logger

* bumped version

* Change print to use logging (#73)

* Monkey patched print to use logging module

* Bumped version

* EN #4845 fix function args schema bug for TypedDicts

* Revert c612f6e (EN #4845 fix function args schema bug for TypedDicts) – accidental push

* EN bump v to 0.3.9.dev8

* EN #4845 fix func arg schema bug with typed dicts (#75)

* EN #4845 fix func arg schema bug with typed dicts

* EN #4845 v0.3.9.dev9

* Tabi sdk (#74)

* fixing client_id to be singe shared value per generation--matching typescript behavior

* fixing some little type errors

* tabi in the house!

* tweaked to make table_id available on class, and adding description as a docstring comment for the class

* bump version

* oh lordy (#76)

* One more missed f-string in tabi

* Revert monkey patch (#77)

* Revert "Monkey patched print to use logging module"

This reverts commit a761c64.

* bumped version

* remove need for special logging process

* fix GitHub action for polyapi python unittests, fix polyapi python unittests (#66)

* make tests pass and github actions

* comment + push

* add dev_requirements

* use dev requirements

* using mkdir to avoid poly not existing

* Revert deployables anf change whitespace for passing tests

* undo diff

* undo deployables.py change

* new python-ci with pytest, correct actions syntax

* add flask to the requirements, needed for a test

* running into weird ord bug in python3.11, lets do simpler 7 char hash (#79)

* running into weird ord bug in python3.11, lets do simpler 7 char hash

* bump

* fix tests

* add workflow dispatch

* try under 3.13

* 0.3.9.dev15: define some sort of scrub_keys

* back up

* actually fix tests

* Revert "actually fix tests"

This reverts commit 87caa04.

* in sync with actions now?

* update version for deploy

---------

Co-authored-by: Sudipta at TechJays <sudipta.kumar@techjays.com>
Co-authored-by: Dan Fellin <dan@polyapi.io>
Co-authored-by: Dan Fellin <dan@highwaterlabs.com>
Co-authored-by: Eric Neumann <eneumann@users.noreply.github.com>
Co-authored-by: Don Chiniquy <drchiniquy@gmail.com>
Co-authored-by: nahuel-polyapi <nahuel@polyapi.io>
Co-authored-by: Bboydozzy96 <federico.marchini@hotovo.com>
Co-authored-by: FedeMarchiniHotovo <130762770+FedeMarchiniHotovo@users.noreply.github.com>
Co-authored-by: Shina Akinboboye <shina@polyapi.io>
Co-authored-by: Richard <github.agonize754@passmail.net>
Co-authored-by: Shina Akinboboye <60622084+akinboboye@users.noreply.github.com>
Co-authored-by: Daniel-Estoll <115661842+Daniel-Estoll@users.noreply.github.com>
Co-authored-by: Ashir Rao <69091220+Ash1R@users.noreply.github.com>
Co-authored-by: Ashir Rao <ar2558@cornell.edu>
Co-authored-by: eric.neumann <neumann.bend@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants