Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Add sync functions - #9

Merged
silentworks merged 10 commits into
mainfrom
silentworks/sync_functions
Oct 25, 2023
Merged

Add sync functions#9
silentworks merged 10 commits into
mainfrom
silentworks/sync_functions

Conversation

@silentworks

@silentworks silentworks commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Update with sync functions, added pytests and throw error messages instead of returning them.

What is the current behavior?

There are only async functions, no pytests and errors are returned

What is the new behavior?

We now have sync functions, pytests and errors are thrown

Additional context

Addresses #6

Add pytests
Throw errors instead of returning them

@anand2312 anand2312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Haven't tested yet but a few comments

Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/errors.py Outdated
Comment thread supafunc/errors.py Outdated
Comment thread supafunc/errors.py Outdated
Comment thread supafunc/errors.py Outdated
Comment thread supafunc/__init__.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't really like the create_client functions tbh; what do you think about just not providing them? It's easy enough for the user to just import the client they want and instantiate it, the create_client functions don't really do much else either so it feels like bloat

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think this should be removed too but this will be a breaking change and we should remove this in all the python libraries at the same time.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree - we can add deprecation warnings to all of them now and remove them soon

silentworks and others added 4 commits October 23, 2023 16:28
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Comment thread .github/workflows/ci.yml Outdated
Comment thread supafunc/_async/functions_client.py Outdated
Comment thread supafunc/_async/functions_client.py
Comment thread supafunc/_async/functions_client.py Outdated
@codecov-commenter

This comment was marked as off-topic.

@anand2312 anand2312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Nice work on the tests too!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants