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.
μΉ μλν λꡬλ₯Ό μν λΈλΌμ°μ μ νΈλ¦¬ν° ν¨μ.