Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: python sdk #61

Merged
merged 8 commits into from
Jun 15, 2023
Merged

feat: python sdk #61

merged 8 commits into from
Jun 15, 2023

Conversation

aldy505
Copy link
Member

@aldy505 aldy505 commented Nov 9, 2022

Closes #30

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Patch coverage: 99.45% and project coverage change: +2.72 🎉

Comparison is base (b75bbaa) 77.79% compared to head (70b1ecf) 80.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   77.79%   80.51%   +2.72%     
==========================================
  Files          27       34       +7     
  Lines        1279     1463     +184     
  Branches       85       85              
==========================================
+ Hits          995     1178     +183     
- Misses        252      253       +1     
  Partials       32       32              
Flag Coverage Δ
auth 33.67% <ø> (ø)
rce 92.58% <ø> (ø)
sdk-dotnet 96.56% <ø> (ø)
sdk-go 66.48% <ø> (ø)
sdk-javascript 82.14% <ø> (ø)
sdk-python 99.45% <99.45%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdk/python/pesto/exceptions.py 96.66% <96.66%> (ø)
sdk/python/pesto/__init__.py 100.00% <100.00%> (ø)
sdk/python/pesto/client.py 100.00% <100.00%> (ø)
sdk/python/pesto/execute_request.py 100.00% <100.00%> (ø)
sdk/python/pesto/execute_response.py 100.00% <100.00%> (ø)
sdk/python/pesto/list_runtimes_response.py 100.00% <100.00%> (ø)
sdk/python/pesto/ping_response.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2022

This pull request introduces 1 alert when merging 2678da9 into 88e3b8f - view on LGTM.com

new alerts:

  • 1 for Unused import

sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
limitations under the License.
"""

from pesto.client import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.client](1) does not define '__all__'.
"""

from pesto.client import *
from pesto.exceptions import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.exceptions](1) does not define '__all__'.

from pesto.client import *
from pesto.exceptions import *
from pesto.execute_request import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.execute_request](1) does not define '__all__'.
from pesto.client import *
from pesto.exceptions import *
from pesto.execute_request import *
from pesto.execute_response import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.execute_response](1) does not define '__all__'.
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
sdk/python/pesto/__init__.py Fixed Show fixed Hide fixed
@aldy505 aldy505 changed the title [WIP] feat: python sdk feat: python sdk Jun 3, 2023
@aldy505 aldy505 marked this pull request as ready for review June 3, 2023 03:47
from pesto.exceptions import *
from pesto.execute_request import *
from pesto.execute_response import *
from pesto.list_runtimes_response import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.list_runtimes_response](1) does not define '__all__'.
from pesto.execute_request import *
from pesto.execute_response import *
from pesto.list_runtimes_response import *
from pesto.ping_response import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pesto.ping_response](1) does not define '__all__'.
Copy link
Member

@elianiva elianiva left a comment

Choose a reason for hiding this comment

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

emang gaada yg async ya requestnya?

@aldy505
Copy link
Member Author

aldy505 commented Jun 12, 2023

@elianiva dulu sih sempet nyari async requests library, nggak nemu. dan mayoritas orang pake library requests yang ini. jadi ya sudah.

@aldy505 aldy505 merged commit 61841f4 into master Jun 15, 2023
@aldy505 aldy505 deleted the feat/python-sdk branch June 15, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python Client SDK
2 participants