Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/shared-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: 'Run Tests'
run: |
pip install -r requirements.txt
python -m coverage run --source=skyflow --omit=skyflow/generated/*,skyflow/utils/validations/*,skyflow/vault/data/*,skyflow/vault/tokens/*,skyflow/vault/connection/*,skyflow/error/*,skyflow/utils/enums/*,skyflow/vault/controller/_audit.py,skyflow/vault/controller/_bin_look_up.py -m unittest discover
python -m coverage run --source=skyflow --omit=skyflow/generated/*,skyflow/utils/validations/*,skyflow/vault/data/*,skyflow/vault/detect/*,skyflow/vault/tokens/*,skyflow/vault/connection/*,skyflow/error/*,skyflow/utils/enums/*,skyflow/vault/controller/_audit.py,skyflow/vault/controller/_bin_look_up.py -m unittest discover

- name: coverage
run: coverage xml -o test-coverage.xml
Expand Down
2 changes: 2 additions & 0 deletions skyflow/generated/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
DeidentifyStatusResponse,
DeidentifyStatusResponseOutputType,
DeidentifyStatusResponseStatus,
DeidentifyStatusResponseWordCharacterCount,
DeidentifyStringResponse,
DetectDataAccuracy,
DetectDataEntities,
Expand Down Expand Up @@ -180,6 +181,7 @@
"DeidentifyStatusResponse",
"DeidentifyStatusResponseOutputType",
"DeidentifyStatusResponseStatus",
"DeidentifyStatusResponseWordCharacterCount",
"DeidentifyStringResponse",
"DeidentifyStructuredTextRequestFile",
"DeidentifyStructuredTextRequestFileDataFormat",
Expand Down
25 changes: 20 additions & 5 deletions skyflow/generated/rest/audit/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,13 @@ def audit_service_list_audit_events(
Examples
--------
from skyflow import Skyflow
client = Skyflow(token="YOUR_TOKEN", )
client.audit.audit_service_list_audit_events(filter_ops_account_id='filterOps.accountID', )

client = Skyflow(
token="YOUR_TOKEN",
)
client.audit.audit_service_list_audit_events(
filter_ops_account_id="filterOps.accountID",
)
"""
_response = self._raw_client.audit_service_list_audit_events(
filter_ops_account_id=filter_ops_account_id,
Expand Down Expand Up @@ -415,11 +420,21 @@ async def audit_service_list_audit_events(

Examples
--------
from skyflow import AsyncSkyflow
import asyncio
client = AsyncSkyflow(token="YOUR_TOKEN", )

from skyflow import AsyncSkyflow

client = AsyncSkyflow(
token="YOUR_TOKEN",
)


async def main() -> None:
await client.audit.audit_service_list_audit_events(filter_ops_account_id='filterOps.accountID', )
await client.audit.audit_service_list_audit_events(
filter_ops_account_id="filterOps.accountID",
)


asyncio.run(main())
"""
_response = await self._raw_client.audit_service_list_audit_events(
Expand Down
27 changes: 22 additions & 5 deletions skyflow/generated/rest/authentication/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@ def authentication_service_get_auth_token(
Examples
--------
from skyflow import Skyflow
client = Skyflow(token="YOUR_TOKEN", )
client.authentication.authentication_service_get_auth_token(grant_type='urn:ietf:params:oauth:grant-type:jwt-bearer', assertion='eyLhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaXNzIjoiY29tcGFueSIsImV4cCI6MTYxNTE5MzgwNywiaWF0IjoxNjE1MTY1MDQwLCJhdWQiOiKzb21lYXVkaWVuY2UifQ.4pcPyMDQ9o1PSyXnrXCjTwXyr4BSezdI1AVTmud2fU3', )

client = Skyflow(
token="YOUR_TOKEN",
)
client.authentication.authentication_service_get_auth_token(
grant_type="urn:ietf:params:oauth:grant-type:jwt-bearer",
assertion="eyLhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaXNzIjoiY29tcGFueSIsImV4cCI6MTYxNTE5MzgwNywiaWF0IjoxNjE1MTY1MDQwLCJhdWQiOiKzb21lYXVkaWVuY2UifQ.4pcPyMDQ9o1PSyXnrXCjTwXyr4BSezdI1AVTmud2fU3",
)
"""
_response = self._raw_client.authentication_service_get_auth_token(
grant_type=grant_type,
Expand Down Expand Up @@ -145,11 +151,22 @@ async def authentication_service_get_auth_token(

Examples
--------
from skyflow import AsyncSkyflow
import asyncio
client = AsyncSkyflow(token="YOUR_TOKEN", )

from skyflow import AsyncSkyflow

client = AsyncSkyflow(
token="YOUR_TOKEN",
)


async def main() -> None:
await client.authentication.authentication_service_get_auth_token(grant_type='urn:ietf:params:oauth:grant-type:jwt-bearer', assertion='eyLhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaXNzIjoiY29tcGFueSIsImV4cCI6MTYxNTE5MzgwNywiaWF0IjoxNjE1MTY1MDQwLCJhdWQiOiKzb21lYXVkaWVuY2UifQ.4pcPyMDQ9o1PSyXnrXCjTwXyr4BSezdI1AVTmud2fU3', )
await client.authentication.authentication_service_get_auth_token(
grant_type="urn:ietf:params:oauth:grant-type:jwt-bearer",
assertion="eyLhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaXNzIjoiY29tcGFueSIsImV4cCI6MTYxNTE5MzgwNywiaWF0IjoxNjE1MTY1MDQwLCJhdWQiOiKzb21lYXVkaWVuY2UifQ.4pcPyMDQ9o1PSyXnrXCjTwXyr4BSezdI1AVTmud2fU3",
)


asyncio.run(main())
"""
_response = await self._raw_client.authentication_service_get_auth_token(
Expand Down
25 changes: 20 additions & 5 deletions skyflow/generated/rest/bin_lookup/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ def bin_list_service_list_cards_of_bin(
Examples
--------
from skyflow import Skyflow
client = Skyflow(token="YOUR_TOKEN", )
client.bin_lookup.bin_list_service_list_cards_of_bin(bin='012345', )

client = Skyflow(
token="YOUR_TOKEN",
)
client.bin_lookup.bin_list_service_list_cards_of_bin(
bin="012345",
)
"""
_response = self._raw_client.bin_list_service_list_cards_of_bin(
fields=fields,
Expand Down Expand Up @@ -126,11 +131,21 @@ async def bin_list_service_list_cards_of_bin(

Examples
--------
from skyflow import AsyncSkyflow
import asyncio
client = AsyncSkyflow(token="YOUR_TOKEN", )

from skyflow import AsyncSkyflow

client = AsyncSkyflow(
token="YOUR_TOKEN",
)


async def main() -> None:
await client.bin_lookup.bin_list_service_list_cards_of_bin(bin='012345', )
await client.bin_lookup.bin_list_service_list_cards_of_bin(
bin="012345",
)


asyncio.run(main())
"""
_response = await self._raw_client.bin_list_service_list_cards_of_bin(
Expand Down
14 changes: 12 additions & 2 deletions skyflow/generated/rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class Skyflow:
environment : SkyflowEnvironment
The environment to use for requests from the client. from .environment import SkyflowEnvironment



Defaults to SkyflowEnvironment.PRODUCTION


Expand All @@ -45,7 +47,10 @@ class Skyflow:
Examples
--------
from skyflow import Skyflow
client = Skyflow(token="YOUR_TOKEN", )

client = Skyflow(
token="YOUR_TOKEN",
)
"""

def __init__(
Expand Down Expand Up @@ -94,6 +99,8 @@ class AsyncSkyflow:
environment : SkyflowEnvironment
The environment to use for requests from the client. from .environment import SkyflowEnvironment



Defaults to SkyflowEnvironment.PRODUCTION


Expand All @@ -111,7 +118,10 @@ class AsyncSkyflow:
Examples
--------
from skyflow import AsyncSkyflow
client = AsyncSkyflow(token="YOUR_TOKEN", )

client = AsyncSkyflow(
token="YOUR_TOKEN",
)
"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion skyflow/generated/rest/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "skyflow.generated.rest",
"X-Fern-SDK-Version": "0.0.173",
"X-Fern-SDK-Version": "0.0.200",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
16 changes: 16 additions & 0 deletions skyflow/generated/rest/core/force_multipart.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was auto-generated by Fern from our API Definition.


class ForceMultipartDict(dict):
"""
A dictionary subclass that always evaluates to True in boolean contexts.

This is used to force multipart/form-data encoding in HTTP requests even when
the dictionary is empty, which would normally evaluate to False.
"""

def __bool__(self):
return True


FORCE_MULTIPART = ForceMultipartDict()
Loading
Loading