repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def get_version(relative_path: str) -> str:
package_root = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(os.path.join(package_root, relative_path)) as version_fp:
exec(version_... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_scanner.py | tests/test_scanner.py | """Test local network appliance scanner class"""
from binascii import unhexlify
import logging
import socket
from typing import Final
from unittest.mock import MagicMock, patch
import pytest
from midea_beautiful import find_appliances
from midea_beautiful.crypto import Security
import midea_beautiful.scanner as scan... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_cloud.py | tests/test_cloud.py | """Tests for Midea cloud client API"""
import json
from typing import Final
from unittest.mock import patch
import pytest
from requests.exceptions import RequestException
import requests_mock
from midea_beautiful.cloud import MideaCloud
from midea_beautiful.exceptions import (
AuthenticationError,
CloudAuthe... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_cli.py | tests/test_cli.py | """Test command line interface and global functions"""
from argparse import Namespace
import logging
import sys
from unittest.mock import MagicMock, call, patch
import pytest
import pytest_socket
from midea_beautiful import LanDevice, MideaCloud, connect_to_cloud
from midea_beautiful.cli import (
_configure_argp... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/conftest.py | tests/conftest.py | """Fixtures and setup for tests."""
import logging
from unittest.mock import patch
import pytest
from pytest_socket import disable_socket
from midea_beautiful.util import clear_sensitive, very_verbose
# pylint: disable=missing-function-docstring
def pytest_runtest_setup():
disable_socket()
@pytest.fixture(a... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_command.py | tests/test_command.py | """Tests for Midea commands"""
from binascii import unhexlify
from typing import Final
import pytest
from midea_beautiful.appliance import (
AirConditionerAppliance,
Appliance,
DehumidifierAppliance,
)
from midea_beautiful.command import (
AirConditionerResponse,
AirConditionerSetCommand,
Deh... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_lan.py | tests/test_lan.py | """Test local network communcation"""
from binascii import unhexlify
from contextlib import contextmanager
from datetime import datetime
import logging
import socket
from typing import Final
from unittest.mock import MagicMock, patch
import pytest
from pytest import LogCaptureFixture
from midea_beautiful.crypto impo... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_crypto.py | tests/test_crypto.py | """Test encryption functions"""
import binascii
from typing import Final
from cryptography.hazmat.primitives import padding
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
import pytest
from midea_beautiful.crypto import Security
from midea_beautiful.exceptions import AuthenticationError... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/tests/test_appliance.py | tests/test_appliance.py | """Test appliance class"""
import binascii
import logging
from typing import Final
import pytest
from midea_beautiful.appliance import (
AirConditionerAppliance,
Appliance,
DehumidifierAppliance,
)
from midea_beautiful.command import MideaCommand
from midea_beautiful.exceptions import MideaError
from mid... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/lan.py | midea_beautiful/lan.py | """Connects to Midea appliances on local network."""
from __future__ import annotations
import binascii
from datetime import datetime
from hashlib import sha256
import logging
import socket
from threading import RLock
from time import sleep
from typing import Any, Final
from midea_beautiful.appliance import Applianc... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | true |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/appliance.py | midea_beautiful/appliance.py | """Model for Midea dehumidifier appliances"""
from __future__ import annotations
import logging
import sys
from typing import Any
from midea_beautiful.command import (
AirConditionerResponse,
AirConditionerSetCommand,
AirConditionerStatusCommand,
DehumidifierResponse,
DehumidifierSetCommand,
... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/crypto.py | midea_beautiful/crypto.py | """Cryptographic tools."""
from __future__ import annotations
from binascii import unhexlify
import collections
from hashlib import md5, sha256
import hmac
import logging
from os import urandom
from typing import Any, Final, Tuple
from urllib.parse import unquote_plus, urlencode, urlparse
from cryptography.hazmat.pr... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/cli.py | midea_beautiful/cli.py | """Discover Midea Humidifiers on local network using command-line"""
from __future__ import annotations
from argparse import ArgumentParser, Namespace
from binascii import unhexlify
import importlib
import logging
import pprint
import sys
from typing import Any, Sequence, cast
from midea_beautiful import appliance_s... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/util.py | midea_beautiful/util.py | """Utility services for Midea library."""
from __future__ import annotations
from typing import Any, Final
HDR_8370: Final = b"\x83\x70"
HDR_ZZ: Final = b"\x5a\x5a"
_MAX_LEN: Final = 1024
_very_verbose: bool = False
# pylint: disable=global-statement,invalid-name
def is_very_verbose() -> bool:
"""Checks if v... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/scanner.py | midea_beautiful/scanner.py | """Scans network for Midea appliances."""
from __future__ import annotations
import logging
import socket
from typing import Final
from midea_beautiful.appliance import Appliance
from midea_beautiful.cloud import MideaCloud
from midea_beautiful.lan import DISCOVERY_MSG, LanDevice, matches_lan_cloud
from midea_beauti... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/exceptions.py | midea_beautiful/exceptions.py | """Exceptions raised by library"""
from __future__ import annotations
class MideaError(Exception):
"""Base exception for all library specific exceptions"""
def __init__(self, message: str) -> None:
super().__init__(message)
self.message = message
def __str__(self) -> str:
return... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/version.py | midea_beautiful/version.py | """Version File"""
__version__ = "0.10.5"
| python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/command.py | midea_beautiful/command.py | """Commands for Midea appliance"""
from __future__ import annotations
from threading import RLock
from typing import ByteString
from midea_beautiful.crypto import crc8
from midea_beautiful.midea import AC_MAX_TEMPERATURE, AC_MIN_TEMPERATURE
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instanc... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/midea.py | midea_beautiful/midea.py | """Midea constants"""
from __future__ import annotations
from binascii import unhexlify
from typing import Final
from cryptography.hazmat.primitives import padding
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
MSGTYPE_HANDSHAKE_REQUEST: Final = 0x0
MSGTYPE_HANDSHAKE_RESPONSE: Final = ... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/__init__.py | midea_beautiful/__init__.py | """Library for local network access to Midea dehumidifier appliances"""
from __future__ import annotations
import logging
from midea_beautiful.cloud import MideaCloud
from midea_beautiful.lan import LanDevice, appliance_state
from midea_beautiful.midea import (
DEFAULT_API_SERVER_URL,
DEFAULT_APP_ID,
DEF... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
nbogojevic/midea-beautiful-air | https://github.com/nbogojevic/midea-beautiful-air/blob/db3622e784891af0a522d70a626fb54e5c3e5e6f/midea_beautiful/cloud.py | midea_beautiful/cloud.py | """Interface to Midea cloud API."""
from __future__ import annotations
import base64
from datetime import datetime
import json
import logging
from secrets import token_hex, token_urlsafe
from threading import RLock
from time import sleep, time
from typing import Any, Final, Tuple
import requests
from requests.except... | python | MIT | db3622e784891af0a522d70a626fb54e5c3e5e6f | 2026-01-05T07:11:48.254028Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/scripts/clean_buckets.py | scripts/clean_buckets.py | import boto3
import sys, getopt
def delete_buckets(profile, prefix=None):
print( 'Preparing to delete all buckets with a prefix of '+prefix+' using profile '+profile)
session = boto3.Session()
if profile is not None:
session = boto3.Session(profile_name = profile)
s3 = session.resource('s3')
... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/scripts/download_demo_data.py | scripts/download_demo_data.py | import sys
import logging
from typing import List
import boto3
import json
import os
from aws_orbit import sh
from aws_orbit.services import s3
from aws_orbit import ORBIT_CLI_ROOT
_logger: logging.Logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
# Helper function to download the demo data ... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/samples/notebooks/B-DataAnalyst/pi.py | samples/notebooks/B-DataAnalyst/pi.py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/samples/notebooks/H-Model-Development/job_example.py | samples/notebooks/H-Model-Development/job_example.py | import os
import sys
import time
from collections import Counter
import ray
""" This script is meant to be run from a pod in the same Kubernetes namespace
as your Ray cluster.
Just below are the environment variables used to access Ray client via a
service targetting the Ray cluster's head node pod.
These environmen... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/samples/notebooks/H-Model-Development/tune.py | samples/notebooks/H-Model-Development/tune.py | import os
import ray
from ray import tune
HEAD_SERVICE_IP_ENV = "RAY_HEAD_SERVICE_HOST"
HEAD_SERVICE_CLIENT_PORT_ENV = "RAY_HEAD_SERVICE_PORT_CLIENT"
def objective(step, alpha, beta):
return (0.1 + alpha * step / 100) ** (-1) + beta * 0.1
def training_function(config):
# Hyperparameters
alpha, beta = ... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/common_utils.py | test/regressions/common_utils.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_lake_creator_cleaner.py | test/regressions/test_lake_creator_cleaner.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_lake_creator.py | test/regressions/test_lake_creator.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_lake_user.py | test/regressions/test_lake_user.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_lake_admin.py | test/regressions/test_lake_admin.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_poddefault.py | test/regressions/test_poddefault.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/custom_resources.py | test/regressions/custom_resources.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/test/regressions/test_userspace.py | test/regressions/test_userspace.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/sm-operator/setup.py | plugins/sm-operator/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/sm-operator/sm-operator/__init__.py | plugins/sm-operator/sm-operator/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/redshift/setup.py | plugins/redshift/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/redshift/redshift/__init__.py | plugins/redshift/redshift/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/redshift/redshift/orbit_redshift_stack.py | plugins/redshift/redshift/orbit_redshift_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/redshift/redshift/lambda_sources/redshift_db_creator/redshift_functions.py | plugins/redshift/redshift/lambda_sources/redshift_db_creator/redshift_functions.py | import json
import logging
import os
from typing import Any, Dict, Optional
import boto3
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)
def lambda_handler(event: Dict[str, Any], context: Optional[Dict[str, Any]]) -> Dict[str, str]:
redshift = boto3.client("redshift")
secretsmanager = boto3.clien... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/emr_on_eks/setup.py | plugins/emr_on_eks/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/emr_on_eks/emr_on_eks/cdk.py | plugins/emr_on_eks/emr_on_eks/cdk.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/emr_on_eks/emr_on_eks/__init__.py | plugins/emr_on_eks/emr_on_eks/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/custom_cfn/setup.py | plugins/custom_cfn/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/custom_cfn/custom_cfn/cdk.py | plugins/custom_cfn/custom_cfn/cdk.py | # type: ignore
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/custom_cfn/custom_cfn/__init__.py | plugins/custom_cfn/custom_cfn/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/ray/setup.py | plugins/ray/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/ray/ray/__init__.py | plugins/ray/ray/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/code_commit/setup.py | plugins/code_commit/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/code_commit/code_commit/cdk.py | plugins/code_commit/code_commit/cdk.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/code_commit/code_commit/__init__.py | plugins/code_commit/code_commit/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/voila/setup.py | plugins/voila/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/voila/voila/__init__.py | plugins/voila/voila/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/lustre/setup.py | plugins/lustre/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/lustre/lustre/__init__.py | plugins/lustre/lustre/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/hello_world/setup.py | plugins/hello_world/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/hello_world/hello_world/__init__.py | plugins/hello_world/hello_world/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/hello_world/hello_world/hello_cdk.py | plugins/hello_world/hello_world/hello_cdk.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/team_script_launcher/setup.py | plugins/team_script_launcher/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/team_script_launcher/team_script_launcher/__init__.py | plugins/team_script_launcher/team_script_launcher/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/overprovisioning/setup.py | plugins/overprovisioning/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/plugins/overprovisioning/overprovisioning/__init__.py | plugins/overprovisioning/overprovisioning/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/setup.py | jupyterlab_orbit/setup.py | """
jupyterlab_orbit setup
"""
import json
import os
import setuptools
from jupyter_packaging import combine_commands, create_cmdclass, ensure_targets, install_npm, skip_if_exists
HERE = os.path.abspath(os.path.dirname(__file__))
# The name of the project
name = "jupyterlab_orbit"
# Get our version
with open(os.pat... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/url_router.py | jupyterlab_orbit/jupyterlab_orbit/url_router.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/_version.py | jupyterlab_orbit/jupyterlab_orbit/_version.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/__init__.py | jupyterlab_orbit/jupyterlab_orbit/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/athena.py | jupyterlab_orbit/jupyterlab_orbit/handlers/athena.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/storage.py | jupyterlab_orbit/jupyterlab_orbit/handlers/storage.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/catalog.py | jupyterlab_orbit/jupyterlab_orbit/handlers/catalog.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/eks.py | jupyterlab_orbit/jupyterlab_orbit/handlers/eks.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/containers.py | jupyterlab_orbit/jupyterlab_orbit/handlers/containers.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/team.py | jupyterlab_orbit/jupyterlab_orbit/handlers/team.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/__init__.py | jupyterlab_orbit/jupyterlab_orbit/handlers/__init__.py | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false | |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/jupyterlab_orbit/jupyterlab_orbit/handlers/redshift.py | jupyterlab_orbit/jupyterlab_orbit/handlers/redshift.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/trial/add_user.py | trial/add_user.py | import boto3
import json
import sys
from typing import Any, Dict, List, Optional, cast
ssm_client = boto3.client(service_name="ssm")
cognito_admin_client = boto3.client(service_name='cognito-idp')
def get_teams_from_pool(userpoolid):
groups = cognito_admin_client.list_groups(UserPoolId=userpoolid)
valid_gro... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/setup.py | cli/setup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/__metadata__.py | cli/aws_orbit/__metadata__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/k8s.py | cli/aws_orbit/k8s.py | import logging
import time
from typing import Any, Dict, List, cast
from kubernetes import config
from kubernetes.client import AppsV1Api, CoreV1Api, NetworkingV1beta1Api, NetworkingV1beta1IngressList, V1Service
_logger: logging.Logger = logging.getLogger(__name__)
def get_service_hostname(name: str, k8s_context: s... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/exceptions.py | cli/aws_orbit/exceptions.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/cdk.py | cli/aws_orbit/cdk.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/bundle.py | cli/aws_orbit/bundle.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/__main__.py | cli/aws_orbit/__main__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/toolkit.py | cli/aws_orbit/toolkit.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/utils.py | cli/aws_orbit/utils.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/sh.py | cli/aws_orbit/sh.py | import logging
import shlex
import subprocess
from typing import Iterable, Optional
from aws_orbit.exceptions import FailedShellCommand
_logger: logging.Logger = logging.getLogger(__name__)
def _clean_up_stdout_line(line: bytes) -> str:
line_str = line.decode("utf-8")
return line_str[:-1] if line_str.endswi... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/docker.py | cli/aws_orbit/docker.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/__init__.py | cli/aws_orbit/__init__.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/remote.py | cli/aws_orbit/remote.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/messages.py | cli/aws_orbit/messages.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/cleanup.py | cli/aws_orbit/cleanup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/iam.py | cli/aws_orbit/services/iam.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/ec2.py | cli/aws_orbit/services/ec2.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/elb.py | cli/aws_orbit/services/elb.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/cognito.py | cli/aws_orbit/services/cognito.py | def get_users_url(user_pool_id: str, region: str) -> str:
return f"https://{region}.console.aws.amazon.com/cognito/users/?region={region}#/pool/{user_pool_id}/users"
def get_pool_arn(user_pool_id: str, region: str, account: str) -> str:
return f"arn:aws:cognito-idp:{region}:{account}:userpool/{user_pool_id}"
| python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/cfn.py | cli/aws_orbit/services/cfn.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/ecr.py | cli/aws_orbit/services/ecr.py | import itertools
import logging
from base64 import b64decode
from typing import Any, Dict, Iterator, List, Optional, Tuple, cast
import boto3
from aws_orbit.utils import boto3_client
_logger: logging.Logger = logging.getLogger(__name__)
def _chunks(iterable: Iterator[Any], size: int) -> Iterator[Any]:
iterator... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/eks.py | cli/aws_orbit/services/eks.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/efs.py | cli/aws_orbit/services/efs.py | import logging
import time
from typing import Any, Dict, Iterator, List
from aws_orbit.utils import boto3_client
_logger: logging.Logger = logging.getLogger(__name__)
def _filter_env_filesystems(page: Dict[str, Any], env_name: str) -> Iterator[str]:
for fs in page["FileSystems"]:
for tag in fs["Tags"]:
... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/ssm.py | cli/aws_orbit/services/ssm.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
awslabs/aws-orbit-workbench | https://github.com/awslabs/aws-orbit-workbench/blob/fc43a0524b8a14c66b7f273419ac222254ee9551/cli/aws_orbit/services/kms.py | cli/aws_orbit/services/kms.py | import base64
import logging
from typing import cast
from aws_orbit.models.context import Context
from aws_orbit.utils import boto3_client
_logger: logging.Logger = logging.getLogger(__name__)
def encrypt(context: Context, plaintext: str) -> str:
client = boto3_client("kms")
_logger.debug("Encrypting data"... | python | Apache-2.0 | fc43a0524b8a14c66b7f273419ac222254ee9551 | 2026-01-05T07:10:53.725169Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.