{"id":13494922,"url":"https://github.com/aio-libs/yarl","last_synced_at":"2026-03-02T00:01:08.022Z","repository":{"id":10576167,"uuid":"64756820","full_name":"aio-libs/yarl","owner":"aio-libs","description":"Yet another URL library","archived":false,"fork":false,"pushed_at":"2026-02-10T11:52:40.000Z","size":2511,"stargazers_count":1478,"open_issues_count":49,"forks_count":181,"subscribers_count":23,"default_branch":"master","last_synced_at":"2026-02-24T09:18:03.863Z","etag":null,"topics":["aiohttp","hacktoberfest","url-parsing","urls"],"latest_commit_sha":null,"homepage":"https://yarl.aio-libs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aio-libs.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"docs/contributing/guidelines.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["asvetlov","webknjaz","Dreamsorcerer"]}},"created_at":"2016-08-02T12:56:42.000Z","updated_at":"2026-02-19T16:19:15.000Z","dependencies_parsed_at":"2024-06-18T12:17:33.546Z","dependency_job_id":"d0d909c2-177f-4f5a-b4d1-116d28ed2131","html_url":"https://github.com/aio-libs/yarl","commit_stats":{"total_commits":1646,"total_committers":100,"mean_commits":16.46,"dds":0.7308626974483596,"last_synced_commit":"b31eaa17956cb756f9493a541d57c17420b4baed"},"previous_names":[],"tags_count":148,"template":false,"template_full_name":null,"purl":"pkg:github/aio-libs/yarl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aio-libs%2Fyarl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aio-libs%2Fyarl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aio-libs%2Fyarl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aio-libs%2Fyarl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aio-libs","download_url":"https://codeload.github.com/aio-libs/yarl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aio-libs%2Fyarl/sbom","scorecard":{"id":173232,"data":{"date":"2025-08-11","repo":{"name":"github.com/aio-libs/yarl","commit":"b4814e1092eeda2aed46b8ffa2e203ae31fee31d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci-cd.yml:568","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:21","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:22","Warn: no topLevel permission defined: .github/workflows/aiohttp.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/auto-merge.yml:8","Warn: no topLevel permission defined: .github/workflows/ci-cd.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/reusable-cibuildwheel.yml:1","Warn: no topLevel permission defined: .github/workflows/reusable-linters.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/aiohttp.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/aiohttp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/aiohttp.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/aiohttp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/aiohttp.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/aiohttp.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/auto-merge.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:400: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:402: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:409: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:417: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:426: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:431: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:476: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:489: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:238: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:240: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:247: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:255: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:265: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:270: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:353: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:378: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:577: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:585: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:596: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:610: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:613: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:623: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reusable-cibuildwheel.yml:99: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-cibuildwheel.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reusable-cibuildwheel.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-cibuildwheel.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reusable-cibuildwheel.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-cibuildwheel.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reusable-cibuildwheel.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-cibuildwheel.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reusable-linters.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/aio-libs/yarl/reusable-linters.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/aiohttp.yml:58","Warn: pipCommand not pinned by hash: .github/workflows/ci-cd.yml:294","Warn: pipCommand not pinned by hash: .github/workflows/ci-cd.yml:454","Warn: pipCommand not pinned by hash: .github/workflows/reusable-linters.yml:65","Warn: pipCommand not pinned by hash: .github/workflows/reusable-linters.yml:82","Warn: pipCommand not pinned by hash: .github/workflows/reusable-linters.yml:88","Info:   0 out of  22 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  22 third-party GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: OSSFuzz integration found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/aio-libs/.github/SECURITY.md:1","Info: Found linked content: github.com/aio-libs/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/aio-libs/.github/SECURITY.md:1","Info: Found text in security policy: github.com/aio-libs/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci-cd.yml:557"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: branch 'master' does not require approvers","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Warn: 'up-to-date branches' is disabled on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":6,"reason":"4 out of the last 5 releases have a total of 4 signed artifacts.","details":["Info: signed release artifact: yarl-1.20.1-cp310-cp310-macosx_10_9_universal2.whl.sigstore.json: https://github.com/aio-libs/yarl/releases/tag/v1.21.1","Info: signed release artifact: yarl-1.20.0-cp310-cp310-macosx_10_9_universal2.whl.sigstore.json: https://github.com/aio-libs/yarl/releases/tag/v1.20.0","Info: signed release artifact: yarl-1.19.0-cp310-cp310-macosx_10_9_universal2.whl.sigstore.json: https://github.com/aio-libs/yarl/releases/tag/v1.19.0","Info: signed release artifact: yarl-1.18.3-cp310-cp310-macosx_10_9_universal2.whl.sigstore.json: https://github.com/aio-libs/yarl/releases/tag/v1.18.3","Warn: release artifact v1.18.2 not signed: https://api.github.com/repos/aio-libs/yarl/releases/188266128","Warn: release artifact v1.21.1 does not have provenance: https://api.github.com/repos/aio-libs/yarl/releases/224170344","Warn: release artifact v1.20.0 does not have provenance: https://api.github.com/repos/aio-libs/yarl/releases/212960963","Warn: release artifact v1.19.0 does not have provenance: https://api.github.com/repos/aio-libs/yarl/releases/210582061","Warn: release artifact v1.18.3 does not have provenance: https://api.github.com/repos/aio-libs/yarl/releases/188366507","Warn: release artifact v1.18.2 does not have provenance: https://api.github.com/repos/aio-libs/yarl/releases/188266128"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-16T17:06:34.549Z","repository_id":10576167,"created_at":"2025-08-16T17:06:34.549Z","updated_at":"2025-08-16T17:06:34.549Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29984714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","hacktoberfest","url-parsing","urls"],"created_at":"2024-07-31T19:01:29.473Z","updated_at":"2026-03-02T00:01:03.004Z","avatar_url":"https://github.com/aio-libs.png","language":"Python","funding_links":["https://github.com/sponsors/asvetlov","https://github.com/sponsors/webknjaz","https://github.com/sponsors/Dreamsorcerer"],"categories":["Python","URL Utilities"],"sub_categories":["Python libraries"],"readme":"yarl\n====\n\nThe module provides handy URL class for URL parsing and changing.\n\n.. image:: https://github.com/aio-libs/yarl/workflows/CI/badge.svg\n   :target: https://github.com/aio-libs/yarl/actions?query=workflow%3ACI\n   :align: right\n\n.. image:: https://codecov.io/gh/aio-libs/yarl/graph/badge.svg?flag=pytest\n   :target: https://app.codecov.io/gh/aio-libs/yarl?flags[]=pytest\n   :alt: Codecov coverage for the pytest-driven measurements\n\n.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json\n   :target: https://codspeed.io/aio-libs/yarl\n\n.. image:: https://badge.fury.io/py/yarl.svg\n   :target: https://badge.fury.io/py/yarl\n\n.. image:: https://readthedocs.org/projects/yarl/badge/?version=latest\n   :target: https://yarl.aio-libs.org\n\n.. image:: https://img.shields.io/pypi/pyversions/yarl.svg\n   :target: https://pypi.python.org/pypi/yarl\n\n.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org\u0026logo=matrix\u0026server_fqdn=matrix.org\u0026style=flat\n   :target: https://matrix.to/#/%23aio-libs:matrix.org\n   :alt: Matrix Room — #aio-libs:matrix.org\n\n.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org\u0026logo=matrix\u0026server_fqdn=matrix.org\u0026style=flat\n   :target: https://matrix.to/#/%23aio-libs-space:matrix.org\n   :alt: Matrix Space — #aio-libs-space:matrix.org\n\n\nIntroduction\n------------\n\nUrl is constructed from ``str``:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e from yarl import URL\n   \u003e\u003e\u003e url = URL('https://www.python.org/~guido?arg=1#frag')\n   \u003e\u003e\u003e url\n   URL('https://www.python.org/~guido?arg=1#frag')\n\nAll url parts: *scheme*, *user*, *password*, *host*, *port*, *path*,\n*query* and *fragment* are accessible by properties:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e url.scheme\n   'https'\n   \u003e\u003e\u003e url.host\n   'www.python.org'\n   \u003e\u003e\u003e url.path\n   '/~guido'\n   \u003e\u003e\u003e url.query_string\n   'arg=1'\n   \u003e\u003e\u003e url.query\n   \u003cMultiDictProxy('arg': '1')\u003e\n   \u003e\u003e\u003e url.fragment\n   'frag'\n\nAll url manipulations produce a new url object:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e url = URL('https://www.python.org')\n   \u003e\u003e\u003e url / 'foo' / 'bar'\n   URL('https://www.python.org/foo/bar')\n   \u003e\u003e\u003e url / 'foo' % {'bar': 'baz'}\n   URL('https://www.python.org/foo?bar=baz')\n\nStrings passed to constructor and modification methods are\nautomatically encoded giving canonical representation as result:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e url = URL('https://www.python.org/шлях')\n   \u003e\u003e\u003e url\n   URL('https://www.python.org/%D1%88%D0%BB%D1%8F%D1%85')\n\nRegular properties are *percent-decoded*, use ``raw_`` versions for\ngetting *encoded* strings:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e url.path\n   '/шлях'\n\n   \u003e\u003e\u003e url.raw_path\n   '/%D1%88%D0%BB%D1%8F%D1%85'\n\nHuman readable representation of URL is available as ``.human_repr()``:\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e url.human_repr()\n   'https://www.python.org/шлях'\n\nFor full documentation please read https://yarl.aio-libs.org.\n\n\nInstallation\n------------\n\n::\n\n   $ pip install yarl\n\nThe library is Python 3 only!\n\nPyPI contains binary wheels for Linux, Windows and MacOS.  If you want to install\n``yarl`` on another operating system where wheels are not provided,\nthe tarball will be used to compile the library from\nthe source code. It requires a C compiler and and Python headers installed.\n\nTo skip the compilation you must explicitly opt-in by using a PEP 517\nconfiguration setting ``pure-python``, or setting the ``YARL_NO_EXTENSIONS``\nenvironment variable to a non-empty value, e.g.:\n\n.. code-block:: console\n\n   $ pip install yarl --config-settings=pure-python=false\n\nPlease note that the pure-Python (uncompiled) version is much slower. However,\nPyPy always uses a pure-Python implementation, and, as such, it is unaffected\nby this variable.\n\nDependencies\n------------\n\nYARL requires multidict_ and propcache_ libraries.\n\n\nAPI documentation\n------------------\n\nThe documentation is located at https://yarl.aio-libs.org.\n\n\nWhy isn't boolean supported by the URL query API?\n-------------------------------------------------\n\nThere is no standard for boolean representation of boolean values.\n\nSome systems prefer ``true``/``false``, others like ``yes``/``no``, ``on``/``off``,\n``Y``/``N``, ``1``/``0``, etc.\n\n``yarl`` cannot make an unambiguous decision on how to serialize ``bool`` values because\nit is specific to how the end-user's application is built and would be different for\ndifferent apps.  The library doesn't accept booleans in the API; a user should convert\nbools into strings using own preferred translation protocol.\n\n\nComparison with other URL libraries\n------------------------------------\n\n* furl (https://pypi.python.org/pypi/furl)\n\n  The library has rich functionality but the ``furl`` object is mutable.\n\n  I'm afraid to pass this object into foreign code: who knows if the\n  code will modify my url in a terrible way while I just want to send URL\n  with handy helpers for accessing URL properties.\n\n  ``furl`` has other non-obvious tricky things but the main objection\n  is mutability.\n\n* URLObject (https://pypi.python.org/pypi/URLObject)\n\n  URLObject is immutable, that's pretty good.\n\n  Every URL change generates a new URL object.\n\n  But the library doesn't do any decode/encode transformations leaving the\n  end user to cope with these gory details.\n\n\nSource code\n-----------\n\nThe project is hosted on GitHub_\n\nPlease file an issue on the `bug tracker\n\u003chttps://github.com/aio-libs/yarl/issues\u003e`_ if you have found a bug\nor have some suggestion in order to improve the library.\n\nDiscussion list\n---------------\n\n*aio-libs* google group: https://groups.google.com/forum/#!forum/aio-libs\n\nFeel free to post your questions and ideas here.\n\n\nAuthors and License\n-------------------\n\nThe ``yarl`` package is written by Andrew Svetlov.\n\nIt's *Apache 2* licensed and freely available.\n\n\n.. _GitHub: https://github.com/aio-libs/yarl\n\n.. _multidict: https://github.com/aio-libs/multidict\n\n.. _propcache: https://github.com/aio-libs/propcache\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faio-libs%2Fyarl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faio-libs%2Fyarl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faio-libs%2Fyarl/lists"}