キー名をリストしたファイルから作る。
成果物
GitHub.Licenses.Database.Insert.File.201703181748
開発環境
- Linux Mint 17.3 MATE 32bit
- SQLite 3.8.2
- Python 3.4.3
前回まで
http://ytyaru.hatenablog.com/entry/2017/08/25/000000
http://ytyaru.hatenablog.com/entry/2017/08/26/000000
http://ytyaru.hatenablog.com/entry/2017/08/31/000000
テンプレート
https://github.com/github/choosealicense.com/tree/gh-pages/_licenses
上記ファイルから以下がキーと推測。これがAPIで有効なキーなのか不明だし、全部なのかも不明。
afl-3.0 agpl-3.0 apache-2.0 artistic-2.0 bsd-2-clause bsd-3-clause-clear bsd-3-clause bsl-1.0 cc-by-4.0 cc-by-sa-4.0 cc0-1.0 epl-1.0 eupl-1.1 gpl-2.0 gpl-3.0 isc lgpl-2.1 lgpl-3.0 lppl-1.3c mit mpl-2.0 ms-pl ms-rl ofl-1.1 osl-3.0 unlicense wtfpl zlib
sqlite> select count(*) from Licenses; 28
入力したKeyのライセンスを問い合わせます。(未入力+Enterで終了) サブコマンド l:既存リポジトリ f:ファイルから1件ずつ挿入 m:一覧更新 l Key,Name afl-3.0,Academic Free License v3.0 agpl-3.0,GNU Affero General Public License v3.0 apache-2.0,Apache License 2.0 artistic-2.0,Artistic License 2.0 bsd-2-clause,BSD 2-clause "Simplified" License bsd-3-clause-clear,BSD 3-clause Clear License bsd-3-clause,BSD 3-clause "New" or "Revised" License bsl-1.0,Boost Software License 1.0 cc-by-4.0,Creative Commons Attribution 4.0 cc-by-sa-4.0,Creative Commons Attribution Share Alike 4.0 cc0-1.0,Creative Commons Zero v1.0 Universal epl-1.0,Eclipse Public License 1.0 eupl-1.1,European Union Public License 1.1 gpl-2.0,GNU General Public License v2.0 gpl-3.0,GNU General Public License v3.0 isc,ISC License lgpl-2.1,GNU Lesser General Public License v2.1 lgpl-3.0,GNU Lesser General Public License v3.0 lppl-1.3c,LaTeX Project Public License v1.3c mit,MIT License mpl-2.0,Mozilla Public License 2.0 ms-pl,Microsoft Public License ms-rl,Microsoft Reciprocal License ofl-1.1,SIL Open Font License 1.1 osl-3.0,Open Software License 3.0 unlicense,The Unlicense wtfpl,Do What The F*ck You Want To Public License zlib,zlib License
所感
とりあえずGitHubで管理しているライセンスはこれで全部、ということにしておこう。知らないけど。