Skip to main content

No project description provided

Project description

Example

from sc_cc_ng_sdk_python import SCNGClient
from sc_cc_ng_models_python import ContextFilter, ContextRelation, SubContextFilter, ContextType

sdk_call = SCNGClient(url="http://localhost:8001/graphql")

tokens_list=[
    [
        "en-GB",
        "MY2022",
        "CT256",
        "EN06"
    ]
]

result = sdk_call(
    token_list=tokens_list,
    context_filter=ContextFilter(
        relation=ContextRelation.ALL,
        subContextFilters=[
            SubContextFilter(
                contexts=[
                    ContextType.MODEL,
                ],
                relation=ContextRelation.ALL
            )
        ]
    )
)
print(result.data)
print(result.error)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc_cc_ng_sdk_python-0.3.5.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

sc_cc_ng_sdk_python-0.3.5-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page