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 |
|---|---|---|---|---|---|---|---|---|
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/views.py | abstract-user-example/users/views.py | from django.urls import reverse_lazy
from django.views import generic
from .forms import CustomUserCreationForm
class SignUp(generic.CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy("login")
template_name = "signup.html"
| python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/admin.py | abstract-user-example/users/admin.py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = CustomUser
list_displ... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/models.py | abstract-user-example/users/models.py | from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import gettext_lazy as _
from .managers import CustomUserManager
class CustomUser(AbstractUser):
username = None
email = models.EmailField(_("email address"), unique=True)
USERNAME_FIELD = "ema... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/managers.py | abstract-user-example/users/managers.py | from django.contrib.auth.base_user import BaseUserManager
from django.utils.translation import gettext_lazy as _
class CustomUserManager(BaseUserManager):
"""
Custom user model manager where email is the unique identifiers
for authentication instead of usernames.
"""
def create_user(self, email, p... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/__init__.py | abstract-user-example/users/__init__.py | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false | |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/tests.py | abstract-user-example/users/tests.py | from django.contrib.auth import get_user_model
from django.test import TestCase
class UsersManagersTests(TestCase):
def test_create_user(self):
User = get_user_model()
user = User.objects.create_user(email="normal@user.com", password="foo")
self.assertEqual(user.email, "normal@user.com")
... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/apps.py | abstract-user-example/users/apps.py | from django.apps import AppConfig
class UsersConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "users"
| python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/forms.py | abstract-user-example/users/forms.py | from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = CustomUser
fields = ("email",)
class CustomUserChangeForm(UserChangeForm):
class Meta:
model = CustomUser
... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/urls.py | abstract-user-example/users/urls.py | from django.urls import path
from . import views
urlpatterns = [path("signup/", views.SignUp.as_view(), name="signup"), ]
| python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/migrations/0001_initial.py | abstract-user-example/users/migrations/0001_initial.py | # Generated by Django 4.1.5 on 2023-01-21 20:38
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
("auth", "0012_alter_user_first_name_max_length"),
]
operations = [
migrations.CreateModel(
... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/users/migrations/__init__.py | abstract-user-example/users/migrations/__init__.py | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false | |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/hello_django/asgi.py | abstract-user-example/hello_django/asgi.py | """
ASGI config for hello_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/hello_django/settings.py | abstract-user-example/hello_django/settings.py | """
Django settings for hello_django project.
Generated by 'django-admin startproject' using Django 4.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pa... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/hello_django/__init__.py | abstract-user-example/hello_django/__init__.py | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false | |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/hello_django/wsgi.py | abstract-user-example/hello_django/wsgi.py | """
WSGI config for hello_django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
testdrivenio/django-custom-user-model | https://github.com/testdrivenio/django-custom-user-model/blob/1136e836d233d4c8d76564826d77a567d4482491/abstract-user-example/hello_django/urls.py | abstract-user-example/hello_django/urls.py | from django.contrib import admin
from django.urls import path, include
from django.views.generic.base import TemplateView
urlpatterns = [
path("", TemplateView.as_view(template_name="home.html"), name="home"),
path("admin/", admin.site.urls),
path("users/", include("users.urls")),
path("users/", includ... | python | MIT | 1136e836d233d4c8d76564826d77a567d4482491 | 2026-01-05T07:12:30.363478Z | false |
deactivated/python-iso3166 | https://github.com/deactivated/python-iso3166/blob/5e88a392ecd1eff8d3587ac60255d1f2545e7f83/setup.py | setup.py | from setuptools import setup
setup()
| python | MIT | 5e88a392ecd1eff8d3587ac60255d1f2545e7f83 | 2026-01-05T07:12:35.548515Z | false |
deactivated/python-iso3166 | https://github.com/deactivated/python-iso3166/blob/5e88a392ecd1eff8d3587ac60255d1f2545e7f83/src/iso3166/__init__.py | src/iso3166/__init__.py | # -*- coding: utf-8 -*-
import re
from typing import Dict, Iterator, NamedTuple, Type, TypeVar, Union, overload
__all__ = ["countries"]
StrOrInt = Union[str, int]
_D = TypeVar("_D")
class Country(NamedTuple):
name: str
alpha2: str
alpha3: str
numeric: str
apolitical_name: str
_records = [
... | python | MIT | 5e88a392ecd1eff8d3587ac60255d1f2545e7f83 | 2026-01-05T07:12:35.548515Z | false |
deactivated/python-iso3166 | https://github.com/deactivated/python-iso3166/blob/5e88a392ecd1eff8d3587ac60255d1f2545e7f83/tests/test_listings.py | tests/test_listings.py | # -*- coding: utf-8 -*-
import iso3166
def test_country_list() -> None:
country_list = iso3166.countries
assert len(country_list) > 100
assert all(isinstance(c, iso3166.Country) for c in country_list)
def test_by_name() -> None:
table = iso3166.countries_by_name
assert len(table) >= len(iso3166... | python | MIT | 5e88a392ecd1eff8d3587ac60255d1f2545e7f83 | 2026-01-05T07:12:35.548515Z | false |
deactivated/python-iso3166 | https://github.com/deactivated/python-iso3166/blob/5e88a392ecd1eff8d3587ac60255d1f2545e7f83/tests/test_lookup.py | tests/test_lookup.py | # -*- coding: utf-8 -*-
from typing import List, Union
import pytest
import iso3166
from iso3166 import countries
def check_lookup(
alpha2: str,
matching_keys: List[Union[int, str]],
missing_keys: List[Union[int, str]],
) -> None:
for k in matching_keys:
assert countries[k].alpha2 == alpha2
... | python | MIT | 5e88a392ecd1eff8d3587ac60255d1f2545e7f83 | 2026-01-05T07:12:35.548515Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/eks-to-opensearch/stack.py | modules/integration/eks-to-opensearch/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, cast
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_eks as eks
from aws_cdk import aws_iam as iam
from a... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/eks-to-opensearch/app.py | modules/integration/eks-to-opensearch/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import aws_cdk
from aws_cdk import App
from stack import EksOpenSearchIntegrationStack
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME"... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/eks-to-opensearch/tests/test_app.py | modules/integration/eks-to-opensearch/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
from unittest import mock
import pytest
@pytest.fixture(scope="function", autouse=True)
def stack_defaults():
with mock.patch.dict(os.environ, {}, clear=True):
os.environ["SEED... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/eks-to-opensearch/tests/test_stack.py | modules/integration/eks-to-opensearch/tests/test_stack.py | import aws_cdk as cdk
import cdk_nag
import pytest
from aws_cdk.assertions import Annotations, Match, Template
@pytest.fixture(scope="function")
def app() -> cdk.App:
return cdk.App()
@pytest.fixture(scope="function")
def stack(app: cdk.App) -> cdk.Stack:
from stack import EksOpenSearchIntegrationStack
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/eks-to-opensearch/tests/__init__.py | modules/integration/eks-to-opensearch/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/stack.py | modules/integration/ddb-to-opensearch/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, List, cast
import cdk_nag
from aws_cdk import Aspects, Duration, Stack, Tags
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_iam as iam
from aws_cdk import aws_l... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/app.py | modules/integration/ddb-to-opensearch/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
from aws_cdk import App, CfnOutput
from stack import DDBtoOpensearch
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYM... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/tests/test_app.py | modules/integration/ddb-to-opensearch/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/tests/test_stack.py | modules/integration/ddb-to-opensearch/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFAULT_ACCOUNT"] = "111111111111"
os.environ["CDK_DEFAULT_REGION"] = "u... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/tests/__init__.py | modules/integration/ddb-to-opensearch/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/ddb-to-opensearch/lambda/index.py | modules/integration/ddb-to-opensearch/lambda/index.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from datetime import date
from typing import Any, Dict
import boto3
import requests
from requests_aws4auth import AWS4Auth
region = os.getenv("REGION", "")
service = "es"
credentials = boto3.Session()... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/opensearch-tunnel/stack.py | modules/integration/opensearch-tunnel/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
from typing import Any, cast
import aws_cdk
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk.aws_s3_asse... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/opensearch-tunnel/app.py | modules/integration/opensearch-tunnel/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import TunnelStack
# Project specific
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOY... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/opensearch-tunnel/tests/test_app.py | modules/integration/opensearch-tunnel/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/opensearch-tunnel/tests/test_stack.py | modules/integration/opensearch-tunnel/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-projec... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/opensearch-tunnel/tests/__init__.py | modules/integration/opensearch-tunnel/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/efs-on-eks/stack_efs_eks.py | modules/integration/efs-on-eks/stack_efs_eks.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import Any, cast
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_eks as eks
from aws_cdk.lambda_layer_kubectl_v29 import K... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/efs-on-eks/app.py | modules/integration/efs-on-eks/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import cast
import aws_cdk
from aws_cdk import App, CfnOutput
from stack_efs_eks import EFSFileStorageOnEKS
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.ge... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/efs-on-eks/tests/test_stack.py | modules/integration/efs-on-eks/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["ADDF_PROJECT_NAME"] = "test-project"
os.environ["ADDF_DEPLOYMENT_NAME"] = "t... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/efs-on-eks/tests/__init__.py | modules/integration/efs-on-eks/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/emr-to-opensearch/stack.py | modules/integration/emr-to-opensearch/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, List, cast
import cdk_nag
from aws_cdk import Duration, Stack, Tags
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_iam as iam
from aws_cdk import aws_lambda as ... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/emr-to-opensearch/app.py | modules/integration/emr-to-opensearch/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
import cdk_nag
from stack import EMRtoOpensearch
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME", "")
modul... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/emr-to-opensearch/tests/test_stack.py | modules/integration/emr-to-opensearch/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/emr-to-opensearch/tests/__init__.py | modules/integration/emr-to-opensearch/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/integration/emr-to-opensearch/lambda/index.py | modules/integration/emr-to-opensearch/lambda/index.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
import gzip
import hashlib
import io
import logging
import os
import re
from urllib.parse import unquote_plus
import boto3
from elasticsearch import Elasticsearch, RequestsHttpConnection
from ela... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/stack.py | modules/workbench/cloud9/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Optional
import aws_cdk.aws_cloud9 as cloud9
from aws_cdk import Stack
from constructs import Construct
class Cloud9Stack(Stack):
"""
Creates a Cloud9 instance
Parameters
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/app.py | modules/workbench/cloud9/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import aws_cdk
import boto3
from aws_cdk import App, CfnOutput
from stack import Cloud9Stack
def _param(name: str) -> str:
return f"SEEDFARMER_PARAMETER_{name}"
def is_ami_valid(image_id: str)... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/scripts/update_root_vol.py | modules/workbench/cloud9/scripts/update_root_vol.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
import os
import boto3
import botocore
LOGGING_FORMAT = "[%(asctime)s][%(filename)-13s:%(lineno)3d] %(message)s"
logging.basicConfig(level=logging.INFO, format=LOGGING_FORMAT)
_logger... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/scripts/pre_deploy.py | modules/workbench/cloud9/scripts/pre_deploy.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
import os
import time
from typing import Any, Dict, Tuple
import boto3
LOGGING_FORMAT = "[%(asctime)s][%(filename)-13s:%(lineno)3d] %(message)s"
logging.basicConfig(level=logging.INFO... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/tests/test_stack.py | modules/workbench/cloud9/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/workbench/cloud9/tests/__init__.py | modules/workbench/cloud9/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/stack.py | modules/pre-processing/image-extraction/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
from typing import Any, Optional, cast
import aws_cdk.aws_batch_alpha as batch
import aws_cdk.aws_ecr as ecr
import aws_cdk.aws_ecs as ecs
import aws_cdk.aws_iam as iam
from aws_cdk impo... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/app.py | modules/pre-processing/image-extraction/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import ImageExtraction
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME", "")... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/src/extract_images_from_jseq.py | modules/pre-processing/image-extraction/src/extract_images_from_jseq.py | """
This python script will extract images from a pair of JSEQ + IDX file
Assumption: Input .jsq + .idx file with the same name
Please note we default to save as .jpg extension as it's the raw picture
"""
import os
import sys
import time
class JseqHandler:
"""JseqHandler Class"""
def __init__(self, jsq_loc_... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/tests/test_app.py | modules/pre-processing/image-extraction/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/tests/test_stack.py | modules/pre-processing/image-extraction/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-projec... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/pre-processing/image-extraction/tests/__init__.py | modules/pre-processing/image-extraction/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-k8s-deployment/stack.py | modules/visualization/dcv-k8s-deployment/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from string import Template
from typing import Any, Optional, cast
import yaml
from aws_cdk import Environment, Stack, Tags
from aws_cdk import aws_eks as eks
from aws_cdk import aws_iam as iam
from aw... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-k8s-deployment/app.py | modules/visualization/dcv-k8s-deployment/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import cast
from aws_cdk import App, CfnOutput, Environment
from stack import DcvEksStack
# Project specific
project_name = os.getenv("SEEDFARMER_PROJECT_NAME")
deployment_name = os.geten... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-k8s-deployment/tests/test_app.py | modules/visualization/dcv-k8s-deployment/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-k8s-deployment/tests/test_stack.py | modules/visualization/dcv-k8s-deployment/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk import Environment
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFA... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-k8s-deployment/tests/__init__.py | modules/visualization/dcv-k8s-deployment/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance/stack.py | modules/visualization/dev-instance/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
import json
import os
from typing import cast
import aws_cdk.aws_secretsmanager as secretsmanager
from aws_cdk import Environment, Stack, Tags, aws_iam
from aws_cdk.aws_ec2 import (
BlockDevi... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance/app.py | modules/visualization/dev-instance/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
import json
import os
from aws_cdk import App, CfnOutput, Environment
from stack import DataServiceDevInstancesStack
# Project vars
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deplo... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance/scripts/get_url.py | modules/visualization/dev-instance/scripts/get_url.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
# type: ignore
import json
import sys
from argparse import ArgumentParser
import boto3
def main():
parser = ArgumentParser(description="Request a Presigned URL from the generateUrl... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance/tests/test_stack.py | modules/visualization/dev-instance/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance/tests/__init__.py | modules/visualization/dev-instance/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance-foxbox/stack.py | modules/visualization/dev-instance-foxbox/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
"""Stack for DataServiceDevInstances"""
import json
import os
from typing import cast
import aws_cdk.aws_secretsmanager as secretsmanager
from aws_cdk import Environment, SecretValue, Stack, Tags,... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance-foxbox/app.py | modules/visualization/dev-instance-foxbox/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
"""Seedfarmer Module for Data Service Dev Instances"""
import json
import os
from aws_cdk import App, CfnOutput, Environment
from stack import DataServiceDevInstancesStack
def _param(name: str)... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance-foxbox/scripts/get_url.py | modules/visualization/dev-instance-foxbox/scripts/get_url.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
# type: ignore
"""Script to Request Pre-signed URL from the generateUrlLambda"""
import json
import logging
import sys
from argparse import ArgumentParser, RawDescriptionHelpFormatter
impo... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance-foxbox/tests/test_stack.py | modules/visualization/dev-instance-foxbox/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dev-instance-foxbox/tests/__init__.py | modules/visualization/dev-instance-foxbox/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/stack.py | modules/visualization/dcv-image/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import Any, cast
from aws_cdk import Stack, Tags
from aws_cdk import aws_ecr as ecr
from aws_cdk.aws_ecr_assets import DockerImageAsset
from cdk_ecr_deployment import DockerImageName, ECRDe... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/app.py | modules/visualization/dcv-image/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import cast
from aws_cdk import App, CfnOutput, Environment
from stack import DcvImagePublishingStack
# Project specific
project_name = os.getenv("SEEDFARMER_PROJECT_NAME")
deployment_nam... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/src/update_parameters.py | modules/visualization/dcv-image/src/update_parameters.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without ... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/tests/test_app.py | modules/visualization/dcv-image/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/tests/test_stack.py | modules/visualization/dcv-image/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFAULT_ACCOUNT"] = "111111111111"
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/visualization/dcv-image/tests/__init__.py | modules/visualization/dcv-image/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/stack.py | modules/sensor-extraction/ros-to-parquet/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
from typing import Any, Union, cast
import aws_cdk.aws_batch as batch
import aws_cdk.aws_ecr as ecr
import aws_cdk.aws_ecs as ecs
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cd... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/app.py | modules/sensor-extraction/ros-to-parquet/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import RosToParquetBatchJob
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME"... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/src/main.py | modules/sensor-extraction/ros-to-parquet/src/main.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import argparse
import json
import logging
import os
import sys
import zipfile
import boto3
import fastparquet
import pandas as pd
import requests
from rclpy.serialization import deserialize_message
from rosbag2... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/tests/test_app.py | modules/sensor-extraction/ros-to-parquet/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/tests/test_stack.py | modules/sensor-extraction/ros-to-parquet/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-projec... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-parquet/tests/__init__.py | modules/sensor-extraction/ros-to-parquet/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/stack.py | modules/sensor-extraction/ros-to-png/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
from typing import Any, Dict, cast
import aws_cdk.aws_batch as batch
import aws_cdk.aws_ecr as ecr
import aws_cdk.aws_ecs as ecs
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cdk... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/app.py | modules/sensor-extraction/ros-to-png/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import RosToPngBatchJob
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME", ""... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/src/main.py | modules/sensor-extraction/ros-to-png/src/main.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import argparse
import concurrent
import json
import logging
import os
import shutil
import sys
import time
import zipfile
import boto3
import cv2
import requests
from cv_bridge import CvBridge
from rclpy.serial... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/tests/test_app.py | modules/sensor-extraction/ros-to-png/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/tests/test_stack.py | modules/sensor-extraction/ros-to-png/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-projec... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/sensor-extraction/ros-to-png/tests/__init__.py | modules/sensor-extraction/ros-to-png/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/studio_stack.py | modules/beta/emrstudio-on-eks/studio_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
# type: ignore
import random
from typing import List, cast
from aws_cdk import CfnOutput, Stack, Tags
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_emr as emr
from aws_cdk import aws_emrcontainers as em... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/rbac_stack.py | modules/beta/emrstudio-on-eks/rbac_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
import logging
from typing import Any, cast
from aws_cdk import CfnJson, Stack, Tags
from aws_cdk import aws_eks as eks
from aws_cdk import aws_iam as iam
from aws_cdk.lambda_layer_kubectl_v29 im... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/app.py | modules/beta/emrstudio-on-eks/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
import cdk_nag
from rbac_stack import EmrEksRbacStack # type: ignore[attr-defined]
from studio_stack import StudioLiveStack # type: ignore[attr-defined]
project_name = os... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/cleanup.py | modules/beta/emrstudio-on-eks/cleanup.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# type: ignore
import sys
import time
import boto3
emr_client = boto3.client("emr")
emrc_client = boto3.client("emr-containers")
marker = None
prefix = "addf"
deployment_name = sys.argv[1]
module_name = sys.ar... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/tests/test_app.py | modules/beta/emrstudio-on-eks/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import sys
from unittest import mock
import pytest
@pytest.fixture(scope="function", autouse=True)
def stack_defaults():
with mock.patch.dict(os.environ, {}, clear=True):
os.e... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/tests/test_stack.py | modules/beta/emrstudio-on-eks/tests/test_stack.py | import aws_cdk as cdk
import cdk_nag
import pytest
from aws_cdk.assertions import Annotations, Match, Template
@pytest.fixture(scope="function")
def app() -> cdk.App:
return cdk.App()
@pytest.fixture(scope="function")
def rbac_stack(app: cdk.App) -> cdk.Stack:
from rbac_stack import EmrEksRbacStack
pro... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/beta/emrstudio-on-eks/tests/__init__.py | modules/beta/emrstudio-on-eks/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/analysis/rosbag-image-pipeline-sfn/stack.py | modules/analysis/rosbag-image-pipeline-sfn/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
from typing import Any, List, cast
import aws_cdk as cdk
from aws_cdk import aws_batch as batch
from aws_cdk import aws_dynamodb as dynamodb
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/analysis/rosbag-image-pipeline-sfn/app.py | modules/analysis/rosbag-image-pipeline-sfn/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
from typing import List, Optional, cast
from aws_cdk import App, CfnOutput, Environment
from stack import TemplateStack
# Project specific
project_name = os.getenv("SEEDFARMER_PROJECT_NAM... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/analysis/rosbag-image-pipeline-sfn/tests/test_app.py | modules/analysis/rosbag-image-pipeline-sfn/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.