{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"Escapism provides two functions to escape and unescape text using a customizable escape character and safe-character set, plus a lossy slug generator that produces valid Kubernetes-compatible identifiers.","skillfed_tags":["string-escaping","kubernetes","slug-generation"],"use_cases":["Escape special characters in strings for use in URLs, filenames, or configuration keys while preserving reversibility.","Generate valid Kubernetes object names and label values from arbitrary user input with automatic hashing for collision avoidance.","Sanitize usernames or identifiers to meet strict naming constraints (length, character set, start/end rules) in distributed systems.","Encode text for storage in systems with restricted character sets while maintaining the ability to decode it later.","Create URL-safe slugs from user-provided strings for web applications or APIs."],"what_it_does":"Escapism is a lightweight string escaping library that converts unsafe characters into escape sequences using a configurable escape character (default: underscore). It provides two main APIs: a reversible escape/unescape pair for general text escaping, and a lossy slug generator designed for Kubernetes resource naming that enforces strict validity rules (lowercase, alphanumeric plus hyphens, length 1\u201363, starting with a letter). The slug function is useful when you need a valid identifier but don't need to recover the original string; it applies hashing to ensure uniqueness when the input violates validity constraints.\n\nThe package has no runtime dependencies and installs as a pure Python wheel. It's actively maintained and used in production by JupyterHub-related projects. The API is minimal\u2014just two functions with optional arguments for customizing the escape character and safe-character set\u2014making it straightforward to integrate into any text-processing pipeline that needs controlled character escaping or identifier generation.","worth_installing":"Yes. Escapism is a stable, dependency-free utility with a clear, minimal API and active maintenance. It's well-suited for any project needing string escaping or Kubernetes-compatible slug generation. No known vulnerabilities, permissive license, and low install friction make it a safe choice."},"id":"escapism","links":{"html":"https://skillfed.io/packages/escapism","md":"https://skillfed.io/packages/escapism.md","pypi":"https://pypi.org/project/escapism/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-11","license_spdx":"MIT","license_treatment":"permissive","name":"escapism","python_support":"supports_current","summary":"Simple, generic API for escaping strings."},"popularity":{"monthly_downloads":292593,"position":7961,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
