{"id":16014715,"url":"https://github.com/pmonks/asf-cat","last_synced_at":"2025-10-08T06:55:15.433Z","repository":{"id":40400654,"uuid":"434726855","full_name":"pmonks/asf-cat","owner":"pmonks","description":"A micro library that provides a Clojure implementation of the ASF's 3rd Party License policy.","archived":false,"fork":false,"pushed_at":"2025-03-11T02:59:48.000Z","size":881,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-11T03:28:37.386Z","etag":null,"topics":["apache","asf","clojure","licenses"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/pmonks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2021-12-03T20:35:23.000Z","updated_at":"2024-11-12T04:27:09.000Z","dependencies_parsed_at":"2024-01-17T21:10:09.702Z","dependency_job_id":"3fbe93ac-f464-465a-8533-166468d58353","html_url":"https://github.com/pmonks/asf-cat","commit_stats":{"total_commits":118,"total_committers":1,"mean_commits":118.0,"dds":0.0,"last_synced_commit":"ef3ec68ff7e667fe2e87b97d8c177edc274d58cd"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmonks%2Fasf-cat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmonks%2Fasf-cat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmonks%2Fasf-cat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmonks%2Fasf-cat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmonks","download_url":"https://codeload.github.com/pmonks/asf-cat/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896303,"owners_count":20365354,"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":["apache","asf","clojure","licenses"],"created_at":"2024-10-08T15:04:52.609Z","updated_at":"2025-10-08T06:55:15.428Z","avatar_url":"https://github.com/pmonks.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"asf-cat logo: Apache Software Foundation feather logo with a cat in silhouette reaching towards it\" align=\"right\" width=\"25%\" src=\"https://raw.githubusercontent.com/pmonks/asf-cat/main/asf-cat-logo.png\"\u003e\n\n# asf-cat\n\n[![CI](https://github.com/pmonks/asf-cat/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/pmonks/asf-cat/actions?query=workflow%3ACI+branch%3Adev)\n[![Dependencies](https://github.com/pmonks/asf-cat/actions/workflows/dependencies.yml/badge.svg?branch=dev)](https://github.com/pmonks/asf-cat/actions?query=workflow%3Adependencies+branch%3Adev)\n[![Vulnerabilities](https://github.com/pmonks/asf-cat/workflows/vulnerabilities/badge.svg)](https://pmonks.github.io/asf-cat/nvd/dependency-check-report.html)\n\u003cbr/\u003e\n[![Latest Version](https://img.shields.io/clojars/v/com.github.pmonks/asf-cat)](https://clojars.org/com.github.pmonks/asf-cat/)\n[![License](https://img.shields.io/github/license/pmonks/asf-cat.svg)](https://github.com/pmonks/asf-cat/blob/release/LICENSE)\n[![Open Issues](https://img.shields.io/github/issues/pmonks/asf-cat.svg)](https://github.com/pmonks/asf-cat/issues)\n![Maintained](https://badges.ws/badge/?label=maintained\u0026value=yes,+at+author's+discretion)\n\nA micro library that provides a Clojure implementation of the [Apache Software Foundation's 3rd Party License Policy](https://www.apache.org/legal/resolved.html).\n\n## System Requirements\n\nThis library uses [`lice-comb`](https://github.com/pmonks/lice-comb), so has the same system requirements as that library.\n\n## Installation\n\n`asf-cat` is available as a Maven artifact from [Clojars](https://clojars.org/com.github.pmonks/asf-cat).\n\n### Trying it Out\n\n#### Clojure CLI\n\n```shell\n$ clj -Sdeps '{:deps {com.github.pmonks/asf-cat {:mvn/version \"RELEASE\"}}}'\n```\n\n#### Leiningen\n\n```shell\n$ lein try com.github.pmonks/asf-cat\n```\n\n#### deps-try\n\n```shell\n$ deps-try com.github.pmonks/asf-cat\n```\n\n### Demo\n\n```clojure\n(require '[asf-cat.api :as asf])\n\n;; Checking the category of a single SPDX license identifier\n(asf/license-category \"Apache-2.0\")\n;=\u003e :category-a\n\n(asf/license-category \"EPL-1.0\")\n;=\u003e :category-b\n\n(asf/license-category \"GPL-3.0\")\n;=\u003e :category-x\n\n(asf/license-category \"invalid-license-identifier\")\n;=\u003e :uncategorised\n\n;; Checking the category of an SPDX license expression\n(asf/expression-category \"Apache-2.0 OR GPL-3.0 WITH Classpath-exception-2.0\")\n;=\u003e :category-a\n\n(asf/expression-category \"Apache-2.0 AND GPL-3.0 WITH Classpath-exception-2.0\")\n;=\u003e :category-x\n\n;; Non-standard license \"identifiers\"\n(asf/license-category \"Public domain\")\n;=\u003e :category-a-special\n\n(asf/license-category \"LicenseRef-lice-comb-PROPRIETARY-COMMERCIAL\")\n;=\u003e :category-x\n```\n\n### Documentation\n\n[API documentation is available here](https://pmonks.github.io/asf-cat/).\n\n[An FAQ is available here](https://github.com/pmonks/asf-cat/wiki/FAQ).\n\n## Contributor Information\n\n[Contributing Guidelines](https://github.com/pmonks/asf-cat/blob/release/.github/CONTRIBUTING.md)\n\n[Bug Tracker](https://github.com/pmonks/asf-cat/issues)\n\n[Code of Conduct](https://github.com/pmonks/asf-cat/blob/release/.github/CODE_OF_CONDUCT.md)\n\n### Developer Workflow\n\nThis project uses the [git-flow branching strategy](https://nvie.com/posts/a-successful-git-branching-model/), and the permanent branches are called `release` and `dev`.  Any changes to the `release` branch are considered a release and auto-deployed (JARs to Clojars, API docs to GitHub Pages, etc.).\n\nFor this reason, **all development must occur either in branch `dev`, or (preferably) in temporary branches off of `dev`.**  All PRs from forked repos must also be submitted against `dev`; the `release` branch is **only** updated from `dev` via PRs created by the core development team.  All other changes submitted to `release` will be rejected.\n\n### Build Tasks\n\n`asf-cat` uses [`tools.build`](https://clojure.org/guides/tools_build). You can get a list of available tasks by running:\n\n```\nclojure -A:deps -T:build help/doc\n```\n\nOf particular interest are:\n\n* `clojure -T:build test` - run the unit tests\n* `clojure -T:build lint` - run the linters (clj-kondo and eastwood)\n* `clojure -T:build ci` - run the full CI suite (check for outdated dependencies, run the unit tests, run the linters)\n* `clojure -T:build install` - build the JAR and install it locally (e.g. so you can test it with downstream code)\n\nPlease note that the `deploy` task is restricted to the core development team (and will not function if you run it yourself).\n\n## License\n\nCopyright © 2021 Peter Monks\n\nDistributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nSPDX-License-Identifier: [Apache-2.0](https://spdx.org/licenses/Apache-2.0)\n\nThe Apache \"feather\" logo is trademarked by the Apache Software Foundation and distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nThe Clip Art Silhouette Of A Cat Reaching Into The Sky image is distributed under the terms of the license documented at [animalclipart.net](https://www.animalclipart.net/animal_clipart_images/clip_art_silhouette_of_a_cat_reaching_into_the_sky_0071-1002-1223-4660.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmonks%2Fasf-cat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmonks%2Fasf-cat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmonks%2Fasf-cat/lists"}