{"id":20773882,"url":"https://github.com/simonmittag/puri","last_synced_at":"2025-06-14T04:39:32.164Z","repository":{"id":233621175,"uuid":"787115899","full_name":"simonmittag/puri","owner":"simonmittag","description":"Commandline utility to parse uri","archived":false,"fork":false,"pushed_at":"2024-04-21T04:30:18.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T07:43:51.020Z","etag":null,"topics":["command-line","command-line-tool","commandline","host","key","path","port","scheme","url","urlparams","urlparser","urlpattern","urls","urlscheme","value"],"latest_commit_sha":null,"homepage":"","language":"Go","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/simonmittag.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2024-04-15T23:13:45.000Z","updated_at":"2024-04-22T22:46:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"56c903a7-0ac0-4e2a-83d2-54594d4f9f00","html_url":"https://github.com/simonmittag/puri","commit_stats":null,"previous_names":["simonmittag/puri"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonmittag%2Fpuri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonmittag%2Fpuri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonmittag%2Fpuri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonmittag%2Fpuri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonmittag","download_url":"https://codeload.github.com/simonmittag/puri/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243112187,"owners_count":20238181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["command-line","command-line-tool","commandline","host","key","path","port","scheme","url","urlparams","urlparser","urlpattern","urls","urlscheme","value"],"created_at":"2024-11-17T12:27:35.455Z","updated_at":"2025-03-11T20:53:13.047Z","avatar_url":"https://github.com/simonmittag.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](logo.png)\n\n`puri` (\"parse uri\") is a robust commandline utility that reads and extracts uri components. It processes URLs\nwith and without schemes.\n\n[![Circleci Builds](https://circleci.com/gh/simonmittag/puri.svg?style=shield)](https://circleci.com/gh/simonmittag/puri)\n[![Github Workflows](https://github.com/simonmittag/mse6/workflows/Go/badge.svg)](https://github.com/simonmittag/puri/actions)\n[![Github Issues](https://img.shields.io/github/issues/simonmittag/puri)](https://github.com/simonmittag/puri/issues)\n[![Github Activity](https://img.shields.io/github/commit-activity/m/simonmittag/puri)](https://img.shields.io/github/commit-activity/m/simonmittag/puri)  \n[![CodeClimate Maintainability](https://api.codeclimate.com/v1/badges/1f3771faf0b714cab0de/maintainability)](https://codeclimate.com/github/simonmittag/puri/maintainability)\n[![CodeClimate Test Coverage](https://api.codeclimate.com/v1/badges/1f3771faf0b714cab0de/test_coverage)](https://codeclimate.com/github/simonmittag/puri/test_coverage)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/simonmittag/puri)](https://img.shields.io/github/go-mod/go-version/simonmittag/puri)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Version](https://img.shields.io/badge/version-0.1.9-orange)](https://github.com/simonmittag/puri/releases/tag/v0.1.9)\n\n## What's New\n### v0.1.9\n* bugfix for url withouth proper paths\n\n\n### v0.1.8\n* bugfix for url paths containing domains\n\n### v0.1.7\n* added simple path parsing that makes this more intuitive over standard library interpretation\n\n## Up and running\n### Homebrew\n```\nbrew tap simonmittag/cli \u0026\u0026\n  brew install puri \u0026\u0026\n  puri \n```\n\n### Golang\n```bash\ngit clone https://github.com/simonmittag/puri \u0026\u0026 cd puri \u0026\u0026 \ngo install github.com/simonmittag/puri/cmd/puri \u0026\u0026 \npuri \n```\n\n## Usage\n```\n~ λ puri\npuri[v0.1.9]\nUsage: puri [-s]|[-o]|[-r]|[-p]|[-q name]|[-h]|[-v] scheme://host:port#a?k=v\n  -h\tprint usage instructions\n  -o\textract host\n  -p\textract path\n  -q string\n    \textract query param\n  -r\textract port\n  -s\textract scheme\n  -v\tprint puri version\n```\n\n## Examples\n\nGet URI path without scheme specified\n```\nλ puri -p bar.com/foo?k=foo\n  /foo\n```\n\nGet URI host without scheme specified\n```\nλ puri -o bar.com?k=foo\n  bar.com\n```\n\nGet URI query param\n```\nλ puri -q k https://www.bar.com?k=foo\n  foo\n```\n\nGet URI path (includes anchor)\n```\nλ puri -p https://www.foo.com/q#bar?k=v\n  /q#bar\n```\n\n\n## Contributions\nThe puri team welcomes all [contributors](https://github.com/simonmittag/puri/blob/master/CONTRIBUTING.md). Everyone interacting with the project's codebase, issue trackers, chat rooms and mailing lists\nis expected to follow the [code of conduct](https://github.com/simonmittag/puri/blob/master/CODE_OF_CONDUCT.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonmittag%2Fpuri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonmittag%2Fpuri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonmittag%2Fpuri/lists"}