From 48f19634d5dade9bd51acab3490e5ca9af3f4875 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Tue, 2 Dec 2014 22:34:09 +0100 Subject: [PATCH] Refactoring and ordering proposal --- ucoinpy/api/__init__.py | 0 ucoinpy/{ => api}/bma/__init__.py | 0 ucoinpy/{ => api}/bma/blockchain/__init__.py | 0 ucoinpy/{ => api}/bma/network/__init__.py | 0 .../{ => api}/bma/network/peering/__init__.py | 0 ucoinpy/{ => api}/bma/tx/__init__.py | 0 ucoinpy/{ => api}/bma/wot/__init__.py | 0 ucoinpy/documents/__init__.py | 0 ucoinpy/documents/block.py | 16 ++++++++++++++++ ucoinpy/documents/certification.py | 16 ++++++++++++++++ ucoinpy/documents/membership.py | 16 ++++++++++++++++ ucoinpy/documents/peer.py | 0 ucoinpy/documents/pubkey.py | 16 ++++++++++++++++ ucoinpy/documents/status.py | 16 ++++++++++++++++ ucoinpy/documents/transaction.py | 16 ++++++++++++++++ 15 files changed, 96 insertions(+) create mode 100644 ucoinpy/api/__init__.py rename ucoinpy/{ => api}/bma/__init__.py (100%) rename ucoinpy/{ => api}/bma/blockchain/__init__.py (100%) rename ucoinpy/{ => api}/bma/network/__init__.py (100%) rename ucoinpy/{ => api}/bma/network/peering/__init__.py (100%) rename ucoinpy/{ => api}/bma/tx/__init__.py (100%) rename ucoinpy/{ => api}/bma/wot/__init__.py (100%) create mode 100644 ucoinpy/documents/__init__.py create mode 100644 ucoinpy/documents/block.py create mode 100644 ucoinpy/documents/certification.py create mode 100644 ucoinpy/documents/membership.py create mode 100644 ucoinpy/documents/peer.py create mode 100644 ucoinpy/documents/pubkey.py create mode 100644 ucoinpy/documents/status.py create mode 100644 ucoinpy/documents/transaction.py diff --git a/ucoinpy/api/__init__.py b/ucoinpy/api/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ucoinpy/bma/__init__.py b/ucoinpy/api/bma/__init__.py similarity index 100% rename from ucoinpy/bma/__init__.py rename to ucoinpy/api/bma/__init__.py diff --git a/ucoinpy/bma/blockchain/__init__.py b/ucoinpy/api/bma/blockchain/__init__.py similarity index 100% rename from ucoinpy/bma/blockchain/__init__.py rename to ucoinpy/api/bma/blockchain/__init__.py diff --git a/ucoinpy/bma/network/__init__.py b/ucoinpy/api/bma/network/__init__.py similarity index 100% rename from ucoinpy/bma/network/__init__.py rename to ucoinpy/api/bma/network/__init__.py diff --git a/ucoinpy/bma/network/peering/__init__.py b/ucoinpy/api/bma/network/peering/__init__.py similarity index 100% rename from ucoinpy/bma/network/peering/__init__.py rename to ucoinpy/api/bma/network/peering/__init__.py diff --git a/ucoinpy/bma/tx/__init__.py b/ucoinpy/api/bma/tx/__init__.py similarity index 100% rename from ucoinpy/bma/tx/__init__.py rename to ucoinpy/api/bma/tx/__init__.py diff --git a/ucoinpy/bma/wot/__init__.py b/ucoinpy/api/bma/wot/__init__.py similarity index 100% rename from ucoinpy/bma/wot/__init__.py rename to ucoinpy/api/bma/wot/__init__.py diff --git a/ucoinpy/documents/__init__.py b/ucoinpy/documents/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ucoinpy/documents/block.py b/ucoinpy/documents/block.py new file mode 100644 index 00000000..8b0772d4 --- /dev/null +++ b/ucoinpy/documents/block.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Block(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' diff --git a/ucoinpy/documents/certification.py b/ucoinpy/documents/certification.py new file mode 100644 index 00000000..54104aad --- /dev/null +++ b/ucoinpy/documents/certification.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Certification(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' diff --git a/ucoinpy/documents/membership.py b/ucoinpy/documents/membership.py new file mode 100644 index 00000000..9133840a --- /dev/null +++ b/ucoinpy/documents/membership.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Membership(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' diff --git a/ucoinpy/documents/peer.py b/ucoinpy/documents/peer.py new file mode 100644 index 00000000..e69de29b diff --git a/ucoinpy/documents/pubkey.py b/ucoinpy/documents/pubkey.py new file mode 100644 index 00000000..4a3a4796 --- /dev/null +++ b/ucoinpy/documents/pubkey.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Pubkey(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' diff --git a/ucoinpy/documents/status.py b/ucoinpy/documents/status.py new file mode 100644 index 00000000..adf7bf5a --- /dev/null +++ b/ucoinpy/documents/status.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Status(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' diff --git a/ucoinpy/documents/transaction.py b/ucoinpy/documents/transaction.py new file mode 100644 index 00000000..f9ae19c4 --- /dev/null +++ b/ucoinpy/documents/transaction.py @@ -0,0 +1,16 @@ +''' +Created on 2 déc. 2014 + +@author: inso +''' + +class Transaction(object): + ''' + classdocs + ''' + + + def __init__(self, params): + ''' + Constructor + ''' -- GitLab