{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/3"}],"enrichment":{"capability":"Parses DSN (Data Source Name) connection URL strings into structured components like scheme, username, password, host, port, and paths.","skillfed_tags":["url-parsing","configuration","database-urls"],"use_cases":["Extract database credentials and connection details from a DSN string for establishing connections in application startup code.","Read and parse a DSN from an environment variable to configure database or service endpoints in containerized deployments.","Build custom result objects that extend parsed DSN data with application-specific properties or validation logic.","Parse non-standard or custom scheme DSNs (e.g., `prom.interface.postgres.Interface://...`) for plugin-based architectures.","Normalize and validate connection strings across different environments by decomposing them into individual components."],"what_it_does":"dsnparse is a lightweight URL parser specialized for DSN (Data Source Name) connection strings. It breaks down a DSN like `scheme://user:pass@host:port/path?query=val#fragment` into its constituent parts\u2014scheme, username, password, host, port, paths, and query parameters\u2014similar to Python's standard `urllib.parse.urlparse` but tailored for database and service connection URLs. The package supports custom result classes, allowing you to extend parsed results with domain-specific properties, and can read DSN values from environment variables.\n\nIt has no runtime dependencies and requires Python 3.10 or later. The interface is intentionally kept simple and familiar to developers who have used urlparse, making it a drop-in solution for projects that need to parse and extract configuration from connection strings without pulling in heavier frameworks.","worth_installing":"Yes, if you need to parse DSN or connection URL strings. It is lightweight, has no dependencies, and carries a permissive MIT license. The aging maintenance status (305 days since last release) is a minor concern for a stable, narrow-scope utility, but the lack of recent vulnerabilities and active repository suggest it remains reliable for its intended purpose."},"id":"dsnparse","links":{"html":"https://skillfed.io/packages/dsnparse","md":"https://skillfed.io/packages/dsnparse.md","pypi":"https://pypi.org/project/dsnparse/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-13","license_spdx":"MIT","license_treatment":"permissive","name":"dsnparse","python_support":"supports_current","summary":"parse dsn urls"},"popularity":{"monthly_downloads":547535,"position":6068,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.0"}
