{"library":"matrix-common","title":"Matrix Common","description":"Common utilities shared by Synapse, Sydent, and Sygnal. Provides helpers for version strings, regex patterns, MXC URIs, and more. Current version 1.3.0 supports Python >=3.7. Released as needed by Matrix.org services.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install matrix-common"],"cli":null},"imports":["from matrix_common.url import MXCUri","from matrix_common.regex import glob_to_regex","from matrix_common.versionstring import get_version_string"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from matrix_common.url import MXCUri\nfrom matrix_common.regex import glob_to_regex\nfrom matrix_common.versionstring import get_version_string\n\n# Parse an MXC URI\nuri = MXCUri.from_string(\"mxc://example.com/abc123\")\nprint(f\"Server: {uri.server}, Media ID: {uri.media_id}\")\n\n# Convert glob to regex\npattern = glob_to_regex(\"*.txt\")\nprint(f\"Regex: {pattern}\")\n\n# Get version string from module\nversion = get_version_string()\nprint(f\"Version: {version}\")","lang":"python","description":"Basic usage of key utilities","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}