Skip to content

Instantly share code, notes, and snippets.

from typing import List
from confluent_kafka import Consumer, Message
from app.common.converters import try_convert_bytes_to_a_string
class KafkaConsumerClient:
__slots__ = ['servers',
'client_id',
from boto3 import client
class S3Client:
__slots__ = ['boto_client', 'bucket_name', 'default_content_type', 'default_acl_type']
boto_client: client
bucket_name: str
default_content_type: str
default_acl_type: str
from typing import List, Dict
from boto3 import resource
class SqsClient:
__slots__ = ['boto_resource', 'max_number_of_messages', 'pool_wait_time_seconds']
boto_resource: resource
max_number_of_messages: int
pool_wait_time_seconds: int
@marcieltorres
marcieltorres / get_all_keys_redis_using_zrange.py
Created January 24, 2024 15:20
Get keys from redis using zrange and generate output csv file
import json
from timeit import default_timer as timer
import csv
from redis import ConnectionPool, Redis
__REDIS_HOST = ''
__PAGE_SIZE = 500
__OUTPUT_FILE_NAME = ''