morango 0.6.11__py2.py3-none-any.whl → 0.8.6__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. morango/__init__.py +1 -6
  2. morango/api/serializers.py +3 -0
  3. morango/api/viewsets.py +38 -23
  4. morango/apps.py +1 -2
  5. morango/constants/settings.py +3 -0
  6. morango/constants/transfer_stages.py +1 -1
  7. morango/constants/transfer_statuses.py +1 -1
  8. morango/errors.py +4 -0
  9. morango/management/commands/cleanupsyncs.py +64 -14
  10. morango/migrations/0001_initial.py +0 -2
  11. morango/migrations/0001_squashed_0024_auto_20240129_1757.py +583 -0
  12. morango/migrations/0002_auto_20170511_0400.py +0 -2
  13. morango/migrations/0002_store_idx_morango_deserialize.py +21 -0
  14. morango/migrations/0003_auto_20170519_0543.py +0 -2
  15. morango/migrations/0004_auto_20170520_2112.py +0 -2
  16. morango/migrations/0005_auto_20170629_2139.py +0 -2
  17. morango/migrations/0006_instanceidmodel_system_id.py +0 -2
  18. morango/migrations/0007_auto_20171018_1615.py +0 -2
  19. morango/migrations/0008_auto_20171114_2217.py +0 -2
  20. morango/migrations/0009_auto_20171205_0252.py +0 -2
  21. morango/migrations/0010_auto_20171206_1615.py +0 -2
  22. morango/migrations/0011_sharedkey.py +0 -2
  23. morango/migrations/0012_auto_20180927_1658.py +0 -2
  24. morango/migrations/0013_auto_20190627_1513.py +0 -2
  25. morango/migrations/0014_syncsession_extra_fields.py +0 -2
  26. morango/migrations/0015_auto_20200508_2104.py +2 -3
  27. morango/migrations/0016_store_deserialization_error.py +2 -3
  28. morango/migrations/0017_store_last_transfer_session_id.py +1 -2
  29. morango/migrations/0018_auto_20210714_2216.py +2 -3
  30. morango/migrations/0019_auto_20220113_1807.py +2 -3
  31. morango/migrations/0020_postgres_fix_nullable.py +0 -2
  32. morango/migrations/0021_store_partition_index_create.py +0 -2
  33. morango/migrations/0022_rename_instance_fields.py +23 -0
  34. morango/migrations/0023_add_instance_id_fields.py +24 -0
  35. morango/migrations/0024_auto_20240129_1757.py +28 -0
  36. morango/models/__init__.py +0 -6
  37. morango/models/certificates.py +137 -28
  38. morango/models/core.py +48 -46
  39. morango/models/fields/crypto.py +20 -6
  40. morango/models/fields/uuids.py +2 -1
  41. morango/models/utils.py +5 -6
  42. morango/proquint.py +2 -3
  43. morango/registry.py +28 -49
  44. morango/sync/backends/base.py +34 -0
  45. morango/sync/backends/postgres.py +129 -0
  46. morango/sync/backends/utils.py +10 -11
  47. morango/sync/context.py +198 -13
  48. morango/sync/controller.py +33 -11
  49. morango/sync/operations.py +324 -251
  50. morango/sync/session.py +11 -0
  51. morango/sync/syncsession.py +78 -85
  52. morango/sync/utils.py +18 -0
  53. morango/urls.py +3 -3
  54. morango/utils.py +2 -3
  55. {morango-0.6.11.dist-info → morango-0.8.6.dist-info}/METADATA +29 -14
  56. morango-0.8.6.dist-info/RECORD +79 -0
  57. {morango-0.6.11.dist-info → morango-0.8.6.dist-info}/WHEEL +1 -1
  58. morango/models/morango_mptt.py +0 -33
  59. morango/settings.py +0 -115
  60. morango/wsgi.py +0 -33
  61. morango-0.6.11.dist-info/RECORD +0 -77
  62. {morango-0.6.11.dist-info → morango-0.8.6.dist-info/licenses}/AUTHORS.md +0 -0
  63. {morango-0.6.11.dist-info → morango-0.8.6.dist-info/licenses}/LICENSE +0 -0
  64. {morango-0.6.11.dist-info → morango-0.8.6.dist-info}/top_level.txt +0 -0
morango/settings.py DELETED
@@ -1,115 +0,0 @@
1
- """
2
- Django settings for testapp project.
3
-
4
- Generated by 'django-admin startproject' using Django 1.9.7.
5
-
6
- For more information on this file, see
7
- https://docs.djangoproject.com/en/1.9/topics/settings/
8
-
9
- For the full list of settings and their values, see
10
- https://docs.djangoproject.com/en/1.9/ref/settings/
11
- """
12
- import os
13
-
14
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
15
- BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
-
17
-
18
- # Quick-start development settings - unsuitable for production
19
- # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
20
-
21
- # SECURITY WARNING: keep the secret key used in production secret!
22
- SECRET_KEY = "-#()od3p8n@o&9kcj(s63!#^tziq+j!nuwlyptw#o06t&wrk$q"
23
-
24
- # SECURITY WARNING: don't run with debug turned on in production!
25
- DEBUG = True
26
-
27
- ALLOWED_HOSTS = []
28
-
29
-
30
- # Application definition
31
-
32
- INSTALLED_APPS = [
33
- "django.contrib.admin",
34
- "django.contrib.auth",
35
- "django.contrib.contenttypes",
36
- "django.contrib.sessions",
37
- "django.contrib.messages",
38
- "django.contrib.staticfiles",
39
- "rest_framework",
40
- "morango",
41
- ]
42
-
43
- MIDDLEWARE_CLASSES = [
44
- "django.middleware.security.SecurityMiddleware",
45
- "django.contrib.sessions.middleware.SessionMiddleware",
46
- "django.middleware.common.CommonMiddleware",
47
- "django.middleware.csrf.CsrfViewMiddleware",
48
- "django.contrib.auth.middleware.AuthenticationMiddleware",
49
- "django.contrib.auth.middleware.SessionAuthenticationMiddleware",
50
- "django.contrib.messages.middleware.MessageMiddleware",
51
- "django.middleware.clickjacking.XFrameOptionsMiddleware",
52
- ]
53
-
54
-
55
- TEMPLATES = [
56
- {
57
- "BACKEND": "django.template.backends.django.DjangoTemplates",
58
- "DIRS": [],
59
- "APP_DIRS": True,
60
- "OPTIONS": {
61
- "context_processors": [
62
- "django.template.context_processors.debug",
63
- "django.template.context_processors.request",
64
- "django.contrib.auth.context_processors.auth",
65
- "django.contrib.messages.context_processors.messages",
66
- ]
67
- },
68
- }
69
- ]
70
-
71
- WSGI_APPLICATION = "testapp.wsgi.application"
72
-
73
-
74
- # Database
75
- # https://docs.djangoproject.com/en/1.9/ref/settings/#databases
76
-
77
- DATABASES = {
78
- "default": {
79
- "ENGINE": "django.db.backends.sqlite3",
80
- "NAME": os.path.join(BASE_DIR, "testapp.db"),
81
- }
82
- }
83
-
84
-
85
- # Password validation
86
- # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
87
-
88
- AUTH_PASSWORD_VALIDATORS = [
89
- {
90
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
91
- },
92
- {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator"},
93
- {"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator"},
94
- {"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},
95
- ]
96
-
97
-
98
- # Internationalization
99
- # https://docs.djangoproject.com/en/1.9/topics/i18n/
100
-
101
- LANGUAGE_CODE = "en-us"
102
-
103
- TIME_ZONE = "UTC"
104
-
105
- USE_I18N = True
106
-
107
- USE_L10N = True
108
-
109
- USE_TZ = True
110
-
111
-
112
- # Static files (CSS, JavaScript, Images)
113
- # https://docs.djangoproject.com/en/1.9/howto/static-files/
114
-
115
- STATIC_URL = "/static/"
morango/wsgi.py DELETED
@@ -1,33 +0,0 @@
1
- """
2
- WSGI config for morango project.
3
-
4
- This module contains the WSGI application used by Django's development server
5
- and any production WSGI deployments. It should expose a module-level variable
6
- named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
7
- this application via the ``WSGI_APPLICATION`` setting.
8
-
9
- Usually you will have the standard Django WSGI application here, but it also
10
- might make sense to replace the whole Django WSGI application with a custom one
11
- that later delegates to the Django one. For example, you could introduce WSGI
12
- middleware here, or combine a Django application with an application of another
13
- framework.
14
-
15
- """
16
- import os
17
-
18
- from django.core.wsgi import get_wsgi_application
19
-
20
- # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
21
- # if running multiple sites in the same mod_wsgi process. To fix this, use
22
- # mod_wsgi daemon mode with each site in its own daemon process, or use
23
- # os.environ["DJANGO_SETTINGS_MODULE"] = "morango.settings"
24
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "morango.settings")
25
-
26
- # This application object is used by any WSGI server configured to use this
27
- # file. This includes Django's development server, if the WSGI_APPLICATION
28
- # setting points here.
29
- application = get_wsgi_application()
30
-
31
- # Apply WSGI middleware here.
32
- # from helloworld.wsgi import HelloWorldApplication
33
- # application = HelloWorldApplication(application)
@@ -1,77 +0,0 @@
1
- morango/__init__.py,sha256=vPbuWc4C5kU06d24wdCNOxrK_HSq5aw984GAEu6HpB4,191
2
- morango/apps.py,sha256=qJ0Tu2YmprNC-7iYlOb1OTG-JxRAweHLnbyb5kHlU9U,546
3
- morango/errors.py,sha256=0ZagJzWWmlrX7eaLUSjZIu1i1xerxRMLW5lrJaJkSTc,1170
4
- morango/proquint.py,sha256=oHlbNPi7bkqylUhRbq9GbpdtywxU0AXKslJrowcsrqg,3735
5
- morango/registry.py,sha256=9q0Qq7rBzwIx1PEsX8zb0Fu4k5s52RMQC-EZx0aNDLw,10897
6
- morango/settings.py,sha256=uz5QCZd4iu3kM7mNNIR-nViC7sb4J8qDedR3O_pSsN8,3127
7
- morango/urls.py,sha256=osmMP1nhEfNAgSJVJgeoQHP4muHOHxtjk-SEcx7Jdy8,141
8
- morango/utils.py,sha256=_ttgTOw4g1Mb1huzP3Xgc4Bj5HzZq8_2M0TAhNp8MTc,3676
9
- morango/wsgi.py,sha256=7CzuNg76E8SVKqMEbFIB1zlOFw9stoXja9a0J64qBRw,1423
10
- morango/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- morango/api/fields.py,sha256=LjEuUrF86JABN45HSXHpUoWHHBDeb73jqD_uS6QY0EA,273
12
- morango/api/parsers.py,sha256=PxNHz94V3VrSCEVYxuTRO2h8mTg9H7WSy891BxUvsac,557
13
- morango/api/permissions.py,sha256=B3biuWZfm1VXbIO5pKR2jYBNQBfgY2oKfX3dargtb6A,3550
14
- morango/api/serializers.py,sha256=QocZSd7E2InKcteZZuGtGqpXCt0UzCjGlwlTgLrtKeQ,5293
15
- morango/api/urls.py,sha256=D3VFRf4wm1u-Pswu6ZGqJoG-UHQFTI7GGXcqNyz0t5Y,1037
16
- morango/api/viewsets.py,sha256=PdS89cJefw4Q_Yhh8ySFhnJLscPBXz2nHTIbyGlU2co,20330
17
- morango/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- morango/constants/api_urls.py,sha256=mmGJyyVtrMxjIMAF2iBHbjGVndsvW_z1IQH-GhW3L-g,453
19
- morango/constants/capabilities.py,sha256=KaTQpfpg6l4G0aGXJnOKi7ibbshdg-1fA9aLl-Qc_Oc,166
20
- morango/constants/settings.py,sha256=DuVblkIT5njNeFheCNuG0tZ-51nzkBEXqdobTF4Vn9U,1871
21
- morango/constants/transfer_stages.py,sha256=nmM-ywKPFcwOICPkHN_1e4xFOWTxwnvb99hr7du2HiM,1379
22
- morango/constants/transfer_statuses.py,sha256=__Reiqxal53Obq-Hch-Ty-HJwlEUZLFSBdRF9ytim0I,510
23
- morango/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- morango/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- morango/management/commands/cleanupsyncs.py,sha256=cOgm5p9hO_xyPUSOmNw5r76WyGej2n7h9SN7bTmuAiE,3044
26
- morango/migrations/0001_initial.py,sha256=ZUmqmw6DneAFBfsfhapyC3cIDneV9zqC7Lws61UN2VA,11933
27
- morango/migrations/0002_auto_20170511_0400.py,sha256=6gTEf4g56Y6ZvL0UHGK0AQvURPaWuAmpRVKONdP1GH4,2304
28
- morango/migrations/0003_auto_20170519_0543.py,sha256=ltBTLl130cjwtRao0zw_FXkEWMrGMTRj1mpgpJmaWP0,682
29
- morango/migrations/0004_auto_20170520_2112.py,sha256=rfINmzNZ7XP6XNb1Tx-RA7ItgHvboO8ggiiHakfBVok,558
30
- morango/migrations/0005_auto_20170629_2139.py,sha256=16Vf25ilpBQGoCbS31qRmnmBpnPER78cvfpTO8OfUIE,695
31
- morango/migrations/0006_instanceidmodel_system_id.py,sha256=dGt5i0sHUH_TJt8EhEbwHJ5nHPbMRoCw0buMKzHdlNU,476
32
- morango/migrations/0007_auto_20171018_1615.py,sha256=0Uy_QyS6Io0HZOhX6f8aNi3tUAFBOT8YKDUwIYDbtLU,8190
33
- morango/migrations/0008_auto_20171114_2217.py,sha256=CmgsrY62QR6q4-Knp6Wprdjlisw2Eoj82EWe6G5QxMQ,2126
34
- morango/migrations/0009_auto_20171205_0252.py,sha256=rLxitLhMZmlNQEyhO2fKbz0uP-GY89CVeHg9RnmeBBA,400
35
- morango/migrations/0010_auto_20171206_1615.py,sha256=hSRatMPa02elBmZCIpjyMHCaTRwPS5r6HM_pc1z4Txs,841
36
- morango/migrations/0011_sharedkey.py,sha256=pEi7FOC4F9u9uQvtXZf-WkdjOtGqtx0IzLo-fPU6ucc,967
37
- morango/migrations/0012_auto_20180927_1658.py,sha256=vpDk_-iMdp6HkxsQUIrbg-G3QtkJQiEmloKOxayqUPk,987
38
- morango/migrations/0013_auto_20190627_1513.py,sha256=S2omdNIst5MOYHRf3u6CuXa5LtYdNmGHsX2ix8U2RDQ,505
39
- morango/migrations/0014_syncsession_extra_fields.py,sha256=1-o6Gu8KQs1ZzS8wkAUoQ7GoW43uoybQgClGfL2sSu0,481
40
- morango/migrations/0015_auto_20200508_2104.py,sha256=yt-i9gpBdprUTmoGl9me7a9b4BDfPUCN4nTZ22XdAHk,687
41
- morango/migrations/0016_store_deserialization_error.py,sha256=N0vftS_YKYws7rA-0SnPmT-_sLmyZvXTOr6FqaE2-MU,461
42
- morango/migrations/0017_store_last_transfer_session_id.py,sha256=eV3kSaX83O5gjA3KIBY0D-tzOVzTFMw_HNX31Y9IJtc,561
43
- morango/migrations/0018_auto_20210714_2216.py,sha256=paW3ofWuswa9BHCz2a-EvAUY6Ud-dqf0Cl6AM5sMcQI,1619
44
- morango/migrations/0019_auto_20220113_1807.py,sha256=xL-ZfBRqt5VJnDRywnZMk9q_t5UFXlwZwOV20mpQoAg,1541
45
- morango/migrations/0020_postgres_fix_nullable.py,sha256=BbViJ4TpziwfZcqQ7PRUuKOiJj13veXmozulbx0ouGY,1247
46
- morango/migrations/0021_store_partition_index_create.py,sha256=dqhfP6N0l68uIt3PI3kFbUln48g90mQINj1QO7jfUio,2250
47
- morango/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
- morango/models/__init__.py,sha256=6sTAlg7gpmX9xRmjw4GPLdjh6_FzZJEN-WEtRBsgGA8,1983
49
- morango/models/certificates.py,sha256=riXpI1bneukiz9bYszozSDyM0WSTb1sOsPKRsG8QGM4,15279
50
- morango/models/core.py,sha256=B8DftIY9NrXBUqjcCvPY2CAflKQaatlGOi0MxDy4Hiw,38368
51
- morango/models/fsic_utils.py,sha256=B9RM-uPZFvEXWbsPeeit5qA21gKGpA0NkKCLFIdNI_0,7130
52
- morango/models/manager.py,sha256=fzzX7k8qV5W5dMBb0ASOBNRJRpvQZbEG1hgyuMtzt4g,163
53
- morango/models/morango_mptt.py,sha256=K_ZF0lRv3EX6n5K5iCSCjDx4qVnMIG_gq9dAyIIQLIU,1024
54
- morango/models/query.py,sha256=eHcf9PYYEDShN6lRng7Ow9RJwNFPdKI1hDbVUXeyl9U,869
55
- morango/models/signals.py,sha256=R17Fqddbg2AgAVnH4oZPrDQMWi94R2XsLmnUbrgKS2I,478
56
- morango/models/utils.py,sha256=BCxsLIilPzkbfMQ2PnpUgxFc1wLP7o2pyYIf4-UJX9M,6644
57
- morango/models/fields/__init__.py,sha256=dzxg8-_v3irXkPnyCsiVDur0gG0RJfKzFcshjL6Y-9s,225
58
- morango/models/fields/crypto.py,sha256=S22N-SkQUxL2i032i_dDR-VuPXYHQ6AjsbJ9rqfAdaw,13984
59
- morango/models/fields/uuids.py,sha256=aZcT7RmsK3kLq3VgQsSSFJcx6zsj9kHo7VwxVz4LOTE,4283
60
- morango/sync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
- morango/sync/context.py,sha256=RY3bcteB8zSbC3UZEBt9RD4BD6oQu7Cc8oM3ijdWrRc,10992
62
- morango/sync/controller.py,sha256=6ujz1vCBjfwFJ9DruZ-KdIcprs-v0LtAC6wry2STZnw,10633
63
- morango/sync/operations.py,sha256=L6mxLEe7HaQjU3gJWHXYVGZ03prcGkkZJGdL0D8hm6o,65905
64
- morango/sync/session.py,sha256=SDM120mzRItszCpVmWBGNWbJX9S-f8kUj0NB9MFmPDI,3293
65
- morango/sync/syncsession.py,sha256=gqWiOgZF7nvPragpQ47ELzPiMUp2VPlGDevJ6f-5A2c,25906
66
- morango/sync/utils.py,sha256=RLQn6-0FLFohNUEAYrDN8j9UsLqB3L7YickkTe4cryM,8099
67
- morango/sync/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
- morango/sync/backends/base.py,sha256=_caRzyfAt4LG-a5fdQwHKwhRHv_mnNTly0Qrc0h9d5o,9746
69
- morango/sync/backends/postgres.py,sha256=ztUxQ0s4erc6G15RXBHc3_QtKki6aIXGwKdRKHy_idE,13750
70
- morango/sync/backends/sqlite.py,sha256=vg7kWFIF346-NjVwexYfjYbrrOyzzvcCmk5uUkqhabw,12850
71
- morango/sync/backends/utils.py,sha256=KaTfj8dKrhRhl6wua2m_jKifmLZ2Kzsd8wPi1NWEtHM,5198
72
- morango-0.6.11.dist-info/AUTHORS.md,sha256=9Ussd3Fq3RPjHyQT_3AyGss5jiVbn858WQuIBOi1ajI,276
73
- morango-0.6.11.dist-info/LICENSE,sha256=RkI6MjmrrTKa3aoPAVyk9QdeLZclcrKds6FH3phRSRU,1074
74
- morango-0.6.11.dist-info/METADATA,sha256=kVli8pXiRM-NaaeWImHuaC0EvfJalOs0nQUnMCJjdX8,2369
75
- morango-0.6.11.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
76
- morango-0.6.11.dist-info/top_level.txt,sha256=pzREWN0EeEq3yHDRast9XI081Ow_rtcm7WV0ZQTlIPY,8
77
- morango-0.6.11.dist-info/RECORD,,