Skip to content

Utils Module API

μœ ν‹Έλ¦¬ν‹° λͺ¨λ“ˆ API

The salmalm.utils package provides shared utility functions.

salmalm.utils νŒ¨ν‚€μ§€λŠ” 곡유 μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜λ₯Ό μ œκ³΅ν•©λ‹ˆλ‹€.

salmalm.utils.async_http

Async HTTP client built on urllib β€” supports GET/POST/PUT/DELETE with timeout and retry.

urllib 기반 비동기 HTTP ν΄λΌμ΄μ–ΈνŠΈ β€” νƒ€μž„μ•„μ›ƒκ³Ό μž¬μ‹œλ„λ₯Ό μ§€μ›ν•˜λŠ” GET/POST/PUT/DELETE.

salmalm.utils.chunker

Message chunking for platforms with message length limits (Telegram: 4096 chars, Discord: 2000 chars).

λ©”μ‹œμ§€ 길이 μ œν•œμ΄ μžˆλŠ” ν”Œλž«νΌμš© λ©”μ‹œμ§€ λΆ„ν•  (ν…”λ ˆκ·Έλž¨: 4096자, λ””μŠ€μ½”λ“œ: 2000자).

salmalm.utils.dedup

Message deduplication and debounce to prevent duplicate processing.

쀑볡 처리λ₯Ό λ°©μ§€ν•˜λŠ” λ©”μ‹œμ§€ 쀑볡 제거 및 λ””λ°”μš΄μŠ€.

salmalm.utils.retry

Retry with exponential backoff for transient failures.

μΌμ‹œμ  였λ₯˜μ— λŒ€ν•œ μ§€μˆ˜ λ°±μ˜€ν”„ μž¬μ‹œλ„.

salmalm.utils.queue

Async message queue for ordered processing.

μˆœμ„œ 처리λ₯Ό μœ„ν•œ 비동기 λ©”μ‹œμ§€ 큐.

salmalm.utils.file_logger

File-based logging with rotation.

λ‘œν…Œμ΄μ…˜μ„ μ§€μ›ν•˜λŠ” 파일 기반 λ‘œκΉ….

salmalm.utils.logging_ext

Logging extensions β€” colored output, structured logging.

λ‘œκΉ… ν™•μž₯ β€” 색상 좜λ ₯, κ΅¬μ‘°ν™”λœ λ‘œκΉ….

salmalm.utils.markdown_ir

Markdown intermediate representation processor for cross-platform rendering.

ν¬λ‘œμŠ€ν”Œλž«νΌ λ Œλ”λ§μ„ μœ„ν•œ Markdown 쀑간 ν‘œν˜„ ν”„λ‘œμ„Έμ„œ.

salmalm.utils.migration

Data migration utilities for schema upgrades.

μŠ€ν‚€λ§ˆ μ—…κ·Έλ ˆμ΄λ“œλ₯Ό μœ„ν•œ 데이터 λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ μœ ν‹Έλ¦¬ν‹°.

salmalm.utils.tls

TLS certificate generation for HTTPS support.

HTTPS 지원을 μœ„ν•œ TLS μΈμ¦μ„œ 생성.

salmalm.utils.browser

Browser utility functions for web automation tools.

μ›Ή μžλ™ν™” 도ꡬλ₯Ό μœ„ν•œ λΈŒλΌμš°μ € μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜.