From 0648c2f6a2e5ffcbfab47a679764b8550bdb6a4b Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Mon, 7 Jan 2019 17:11:15 +0100 Subject: [PATCH] =?UTF-8?q?[enh]=20#132:=C2=A0Add=20a=20license=20notice?= =?UTF-8?q?=20as=20a=20header=20of=20every=20source=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/silkaj | 17 +++++++++++++++++ silkaj/__init__.py | 17 +++++++++++++++++ silkaj/auth.py | 17 +++++++++++++++++ silkaj/blockchain_tools.py | 17 +++++++++++++++++ silkaj/cert.py | 17 +++++++++++++++++ silkaj/cli_tools.py | 17 +++++++++++++++++ silkaj/commands.py | 17 +++++++++++++++++ silkaj/constants.py | 17 +++++++++++++++++ silkaj/crypto_tools.py | 17 +++++++++++++++++ silkaj/license.py | 17 +++++++++++++++++ silkaj/money.py | 17 +++++++++++++++++ silkaj/network_tools.py | 17 +++++++++++++++++ silkaj/tools.py | 17 +++++++++++++++++ silkaj/tx.py | 17 +++++++++++++++++ silkaj/wot.py | 17 +++++++++++++++++ 15 files changed, 255 insertions(+) diff --git a/bin/silkaj b/bin/silkaj index b5986a04..72eb739b 100755 --- a/bin/silkaj +++ b/bin/silkaj @@ -1,5 +1,22 @@ #!/usr/bin/env python3 +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from sys import exit from silkaj.network_tools import check_port, best_node, EndPoint diff --git a/silkaj/__init__.py b/silkaj/__init__.py index 775d1576..4a5c4f33 100644 --- a/silkaj/__init__.py +++ b/silkaj/__init__.py @@ -1 +1,18 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + name = "silkaj" diff --git a/silkaj/auth.py b/silkaj/auth.py index 23e9edec..92cde61a 100644 --- a/silkaj/auth.py +++ b/silkaj/auth.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from silkaj.crypto_tools import get_publickey_from_seed, b58_decode, xor_bytes from silkaj.tools import message_exit from nacl import encoding diff --git a/silkaj/blockchain_tools.py b/silkaj/blockchain_tools.py index 3698bd3d..fb7ad8cb 100644 --- a/silkaj/blockchain_tools.py +++ b/silkaj/blockchain_tools.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from silkaj.network_tools import get_request diff --git a/silkaj/cert.py b/silkaj/cert.py index 4023f7df..32ea8b63 100644 --- a/silkaj/cert.py +++ b/silkaj/cert.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + import urllib from time import time from tabulate import tabulate diff --git a/silkaj/cli_tools.py b/silkaj/cli_tools.py index d4436761..6ebb7f62 100644 --- a/silkaj/cli_tools.py +++ b/silkaj/cli_tools.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + # -*- coding: utf-8 -*- from sys import stderr diff --git a/silkaj/commands.py b/silkaj/commands.py index 74964896..b0af8e67 100644 --- a/silkaj/commands.py +++ b/silkaj/commands.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from datetime import datetime from time import sleep from os import system, popen diff --git a/silkaj/constants.py b/silkaj/constants.py index b66e2b5f..3cf7e089 100644 --- a/silkaj/constants.py +++ b/silkaj/constants.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + SILKAJ_VERSION = "silkaj 0.6.0" NO_MATCHING_ID = "No matching identity" G1_SYMBOL = "Ğ1" diff --git a/silkaj/crypto_tools.py b/silkaj/crypto_tools.py index d9dad991..2951d940 100644 --- a/silkaj/crypto_tools.py +++ b/silkaj/crypto_tools.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from nacl import encoding, signing, hash, bindings from re import compile, search diff --git a/silkaj/license.py b/silkaj/license.py index cb0a19e7..55467fd8 100644 --- a/silkaj/license.py +++ b/silkaj/license.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + import webbrowser from pydoc import pager from sys import exit diff --git a/silkaj/money.py b/silkaj/money.py index 5b33830d..3fd2fe94 100644 --- a/silkaj/money.py +++ b/silkaj/money.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from silkaj.network_tools import get_request, HeadBlock from silkaj.crypto_tools import get_publickey_from_seed from silkaj.tools import CurrencySymbol diff --git a/silkaj/network_tools.py b/silkaj/network_tools.py index 5b0c7f9b..938783df 100644 --- a/silkaj/network_tools.py +++ b/silkaj/network_tools.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from __future__ import unicode_literals from ipaddress import ip_address from json import loads diff --git a/silkaj/tools.py b/silkaj/tools.py index cf5f700a..aa7355de 100644 --- a/silkaj/tools.py +++ b/silkaj/tools.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from datetime import datetime from sys import exit diff --git a/silkaj/tx.py b/silkaj/tx.py index 5f14c006..e2f2338a 100644 --- a/silkaj/tx.py +++ b/silkaj/tx.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from re import compile, search import math from time import sleep diff --git a/silkaj/wot.py b/silkaj/wot.py index 5ca67695..1ec6cff3 100644 --- a/silkaj/wot.py +++ b/silkaj/wot.py @@ -1,3 +1,20 @@ +""" +Copyright 2016-2019 Maël Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. +""" + from time import time from tabulate import tabulate from collections import OrderedDict -- GitLab