{"id":29629008,"url":"https://github.com/erlef/purl","last_synced_at":"2025-07-21T09:32:15.370Z","repository":{"id":149508933,"uuid":"621933162","full_name":"erlef/purl","owner":"erlef","description":"Implementation of the purl (package url) specification.","archived":false,"fork":false,"pushed_at":"2025-07-14T11:55:36.000Z","size":195,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-14T15:03:43.708Z","etag":null,"topics":["elixir","elixir-lang","elixir-library","erlang","erlang-library","library","package-url","purl"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/purl","language":"Elixir","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/erlef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/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,"zenodo":null},"funding":{"custom":["https://members.erlef.org/join-us","https://erlef.org/sponsors#become-a-sponsor"]}},"created_at":"2023-03-31T17:53:07.000Z","updated_at":"2025-07-14T11:55:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"bda0f5ef-df39-4d19-b892-df871baf7ed0","html_url":"https://github.com/erlef/purl","commit_stats":null,"previous_names":["maennchen/purl","jshmrtn/purl","erlef/purl"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/erlef/purl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlef%2Fpurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlef%2Fpurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlef%2Fpurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlef%2Fpurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erlef","download_url":"https://codeload.github.com/erlef/purl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlef%2Fpurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276036,"owners_count":23903972,"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":["elixir","elixir-lang","elixir-library","erlang","erlang-library","library","package-url","purl"],"created_at":"2025-07-21T09:32:14.525Z","updated_at":"2025-07-21T09:32:15.364Z","avatar_url":"https://github.com/erlef.png","language":"Elixir","funding_links":["https://members.erlef.org/join-us","https://erlef.org/sponsors#become-a-sponsor"],"categories":[],"sub_categories":[],"readme":"# Purl\n\n[![EEF Security WG project](https://img.shields.io/badge/EEF-Security-black)](https://github.com/erlef/security-wg)\n[![hex.pm badge](https://img.shields.io/badge/Package%20on%20hex.pm-informational)](https://hex.pm/packages/purl)\n[![Documentation badge](https://img.shields.io/badge/Documentation-ff69b4)][docs]\n[![.github/workflows/branch_main.yml](https://github.com/erlef/purl/actions/workflows/branch_main.yml/badge.svg)](https://github.com/erlef/purl/actions/workflows/branch_main.yml)\n[![Coverage Status](https://coveralls.io/repos/github/erlef/purl/badge.svg?branch=main)](https://coveralls.io/github/erlef/purl?branch=main)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/erlef/purl/badge)](https://scorecard.dev/viewer/?uri=github.com/erlef/purl)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10483/badge)](https://www.bestpractices.dev/projects/10483)\n\n\u003e Implementation of the purl (package url) specification.\n\nSee [the documentation][docs].\n\n## Usage\n\n\u003c!-- tabs-open --\u003e\n\n### Elixir\n\n```elixir\niex\u003e Purl.new(\"pkg:hex/purl\")\n{:ok, %Purl{type: \"hex\", name: \"purl\"}}\n\niex\u003e Purl.to_string(%Purl{type: \"hex\", name: \"purl\"})\n\"pkg:hex/purl\"\n```\n\n### Erlang\n\nTo handle the purl record, first include the header:\n```erlang\n-include_lib(\"purl/include/purl.hrl\").\n```\n\n\n```erlang\n\u003e purl:new(\"pkg:hex/purl\").\n{ok, #purl{type = \u003c\u003c\"hex\"\u003e\u003e, name = \u003c\u003c\"purl\"\u003e\u003e}}\n\n\u003e purl:to_string(#purl{type = \u003c\u003c\"hex\"\u003e\u003e, name = \u003c\u003c\"purl\"\u003e\u003e})\n\u003c\u003c\"pkg:hex/purl\"\u003e\u003e\n```\n\n\u003c!-- tabs-close --\u003e\n\n## License\n\nCopyright 2023 JOSHMARTIN GmbH  \nCopyright 2025 Erlang Ecosystem Foundation\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at:\n\n  \u003e \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n[docs]: https://hexdocs.pm/purl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlef%2Fpurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferlef%2Fpurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlef%2Fpurl/lists"}