zango 0.2.0__tar.gz
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.
- zango-0.2.0/LICENSE +193 -0
- zango-0.2.0/PKG-INFO +128 -0
- zango-0.2.0/README.md +80 -0
- zango-0.2.0/setup.cfg +4 -0
- zango-0.2.0/setup.py +53 -0
- zango-0.2.0/src/zango/__init__.py +3 -0
- zango-0.2.0/src/zango/api/__init__.py +0 -0
- zango-0.2.0/src/zango/api/app_auth/__init__.py +0 -0
- zango-0.2.0/src/zango/api/app_auth/profile/__init__.py +0 -0
- zango-0.2.0/src/zango/api/app_auth/profile/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/app_auth/profile/v1/serializers.py +9 -0
- zango-0.2.0/src/zango/api/app_auth/profile/v1/urls.py +10 -0
- zango-0.2.0/src/zango/api/app_auth/profile/v1/utils.py +149 -0
- zango-0.2.0/src/zango/api/app_auth/profile/v1/views.py +77 -0
- zango-0.2.0/src/zango/api/app_auth/urls.py +7 -0
- zango-0.2.0/src/zango/api/platform/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/auditlogs/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/auditlogs/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/auditlogs/v1/serializers.py +63 -0
- zango-0.2.0/src/zango/api/platform/auditlogs/v1/urls.py +11 -0
- zango-0.2.0/src/zango/api/platform/auditlogs/v1/views.py +182 -0
- zango-0.2.0/src/zango/api/platform/auth/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/auth/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/auth/v1/serializers.py +20 -0
- zango-0.2.0/src/zango/api/platform/auth/v1/urls.py +22 -0
- zango-0.2.0/src/zango/api/platform/auth/v1/views.py +167 -0
- zango-0.2.0/src/zango/api/platform/codeassist/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/codeassist/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/codeassist/v1/urls.py +17 -0
- zango-0.2.0/src/zango/api/platform/codeassist/v1/utils.py +9 -0
- zango-0.2.0/src/zango/api/platform/codeassist/v1/views.py +308 -0
- zango-0.2.0/src/zango/api/platform/packages/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/packages/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/packages/v1/urls.py +11 -0
- zango-0.2.0/src/zango/api/platform/packages/v1/views.py +71 -0
- zango-0.2.0/src/zango/api/platform/permissions/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/permissions/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/permissions/v1/serializers.py +51 -0
- zango-0.2.0/src/zango/api/platform/permissions/v1/urls.py +22 -0
- zango-0.2.0/src/zango/api/platform/permissions/v1/views.py +173 -0
- zango-0.2.0/src/zango/api/platform/tasks/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/tasks/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/tasks/v1/serializers.py +44 -0
- zango-0.2.0/src/zango/api/platform/tasks/v1/urls.py +7 -0
- zango-0.2.0/src/zango/api/platform/tasks/v1/views.py +126 -0
- zango-0.2.0/src/zango/api/platform/tenancy/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/tenancy/v1/__init__.py +0 -0
- zango-0.2.0/src/zango/api/platform/tenancy/v1/serializers.py +152 -0
- zango-0.2.0/src/zango/api/platform/tenancy/v1/urls.py +63 -0
- zango-0.2.0/src/zango/api/platform/tenancy/v1/views.py +591 -0
- zango-0.2.0/src/zango/api/platform/urls.py +9 -0
- zango-0.2.0/src/zango/apps/__init__.py +13 -0
- zango-0.2.0/src/zango/apps/appauth/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/appauth/admin.py +5 -0
- zango-0.2.0/src/zango/apps/appauth/apps.py +9 -0
- zango-0.2.0/src/zango/apps/appauth/auth_backend.py +30 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0001_initial.py +205 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0002_default_user_roles.py +24 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0003_remove_userrolemodel_temp_field_appusermodel_mobile_and_more.py +40 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0004_oldpasswords.py +55 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0005_remove_appusermodel_user.py +16 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/0006_appusermodel_app_objects.py +18 -0
- zango-0.2.0/src/zango/apps/appauth/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/appauth/models.py +272 -0
- zango-0.2.0/src/zango/apps/appauth/serializers.py +15 -0
- zango-0.2.0/src/zango/apps/appauth/signals.py +15 -0
- zango-0.2.0/src/zango/apps/appauth/templates/app.html +22 -0
- zango-0.2.0/src/zango/apps/appauth/templates/app_login_signup.html +21 -0
- zango-0.2.0/src/zango/apps/appauth/tests.py +3 -0
- zango-0.2.0/src/zango/apps/appauth/urls.py +10 -0
- zango-0.2.0/src/zango/apps/appauth/views.py +22 -0
- zango-0.2.0/src/zango/apps/auditlogs/__init__.py +1 -0
- zango-0.2.0/src/zango/apps/auditlogs/admin.py +59 -0
- zango-0.2.0/src/zango/apps/auditlogs/apps.py +17 -0
- zango-0.2.0/src/zango/apps/auditlogs/cid.py +71 -0
- zango-0.2.0/src/zango/apps/auditlogs/conf.py +47 -0
- zango-0.2.0/src/zango/apps/auditlogs/context.py +94 -0
- zango-0.2.0/src/zango/apps/auditlogs/diff.py +236 -0
- zango-0.2.0/src/zango/apps/auditlogs/filters.py +33 -0
- zango-0.2.0/src/zango/apps/auditlogs/management/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/auditlogs/management/commands/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/auditlogs/management/commands/auditlogflush.py +52 -0
- zango-0.2.0/src/zango/apps/auditlogs/management/commands/auditlogmigratejson.py +138 -0
- zango-0.2.0/src/zango/apps/auditlogs/middleware.py +57 -0
- zango-0.2.0/src/zango/apps/auditlogs/migrations/0001_initial.py +142 -0
- zango-0.2.0/src/zango/apps/auditlogs/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/auditlogs/mixins.py +169 -0
- zango-0.2.0/src/zango/apps/auditlogs/models.py +624 -0
- zango-0.2.0/src/zango/apps/auditlogs/receivers.py +178 -0
- zango-0.2.0/src/zango/apps/auditlogs/registry.py +370 -0
- zango-0.2.0/src/zango/apps/auditlogs/signals.py +70 -0
- zango-0.2.0/src/zango/apps/dynamic_models/__init__.py +2 -0
- zango-0.2.0/src/zango/apps/dynamic_models/admin.py +3 -0
- zango-0.2.0/src/zango/apps/dynamic_models/apps.py +29 -0
- zango-0.2.0/src/zango/apps/dynamic_models/fields/__init__.py +127 -0
- zango-0.2.0/src/zango/apps/dynamic_models/management/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/dynamic_models/management/commands/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/dynamic_models/management/commands/reload_tenant.py +8 -0
- zango-0.2.0/src/zango/apps/dynamic_models/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/dynamic_models/models.py +406 -0
- zango-0.2.0/src/zango/apps/dynamic_models/permissions.py +26 -0
- zango-0.2.0/src/zango/apps/dynamic_models/registry.py +23 -0
- zango-0.2.0/src/zango/apps/dynamic_models/signals.py +27 -0
- zango-0.2.0/src/zango/apps/dynamic_models/templates/default_landing.html +198 -0
- zango-0.2.0/src/zango/apps/dynamic_models/tests.py +3 -0
- zango-0.2.0/src/zango/apps/dynamic_models/urls.py +14 -0
- zango-0.2.0/src/zango/apps/dynamic_models/views.py +90 -0
- zango-0.2.0/src/zango/apps/dynamic_models/workspace/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/dynamic_models/workspace/base.py +474 -0
- zango-0.2.0/src/zango/apps/dynamic_models/workspace/lifecycle.py +25 -0
- zango-0.2.0/src/zango/apps/dynamic_models/workspace/wtree.py +34 -0
- zango-0.2.0/src/zango/apps/object_store/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/object_store/admin.py +7 -0
- zango-0.2.0/src/zango/apps/object_store/apps.py +6 -0
- zango-0.2.0/src/zango/apps/object_store/migrations/0001_initial.py +25 -0
- zango-0.2.0/src/zango/apps/object_store/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/object_store/models.py +62 -0
- zango-0.2.0/src/zango/apps/object_store/tests.py +3 -0
- zango-0.2.0/src/zango/apps/object_store/views.py +3 -0
- zango-0.2.0/src/zango/apps/permissions/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/permissions/admin.py +9 -0
- zango-0.2.0/src/zango/apps/permissions/apps.py +6 -0
- zango-0.2.0/src/zango/apps/permissions/migrations/0001_initial.py +63 -0
- zango-0.2.0/src/zango/apps/permissions/migrations/0002_policymodel_type_alter_policymodel_expiry.py +26 -0
- zango-0.2.0/src/zango/apps/permissions/migrations/0003_default_policy.py +24 -0
- zango-0.2.0/src/zango/apps/permissions/migrations/0004_policymodel_path_alter_policymodel_name_and_more.py +27 -0
- zango-0.2.0/src/zango/apps/permissions/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/permissions/mixin.py +128 -0
- zango-0.2.0/src/zango/apps/permissions/models.py +116 -0
- zango-0.2.0/src/zango/apps/permissions/tests.py +3 -0
- zango-0.2.0/src/zango/apps/permissions/views.py +3 -0
- zango-0.2.0/src/zango/apps/shared/__init__.py +12 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/abstract_model.py +76 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/admin.py +6 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/apps.py +10 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/auth_backend.py +28 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/migrations/0001_initial.py +150 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/migrations/0002_platformusermodel_is_superadmin_and_more.py +33 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/models.py +200 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/templates/app_panel/app_panel_login.html +131 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/tests.py +3 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/urls.py +13 -0
- zango-0.2.0/src/zango/apps/shared/platformauth/views.py +25 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/admin.py +8 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/apps.py +6 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/management/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/management/commands/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/management/commands/sync_static.py +58 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/management/commands/ws_makemigration.py +74 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/management/commands/ws_migrate.py +39 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/migrations/0001_initial.py +969 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/migrations/0002_rename_is_default_themesmodel_is_active.py +17 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/migrations/0003_themesmodel_created_at_themesmodel_created_by_and_more.py +36 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/migrations/0004_tenantmodel_fav_icon_alter_tenantmodel_logo.py +35 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/models.py +177 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/tasks.py +65 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/templates/app_panel.html +26 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/templatetags/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/templatetags/zstatic.py +14 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/tests.py +3 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/urls.py +5 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/utils.py +54 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/views.py +16 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/workspace_folder_template/cookiecutter.json +3 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/workspace_folder_template/{{cookiecutter.app_name}}/manifest.json +3 -0
- zango-0.2.0/src/zango/apps/shared/tenancy/workspace_folder_template/{{cookiecutter.app_name}}/settings.json +6 -0
- zango-0.2.0/src/zango/apps/tasks/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/tasks/apps.py +6 -0
- zango-0.2.0/src/zango/apps/tasks/migrations/0001_initial.py +83 -0
- zango-0.2.0/src/zango/apps/tasks/migrations/__init__.py +0 -0
- zango-0.2.0/src/zango/apps/tasks/models.py +88 -0
- zango-0.2.0/src/zango/apps/tasks/utils.py +105 -0
- zango-0.2.0/src/zango/assets/app_landing/css/styles.css +302 -0
- zango-0.2.0/src/zango/assets/app_panel/css/styles.css +675 -0
- zango-0.2.0/src/zango/assets/app_panel/images/zangoLogo.svg +7 -0
- zango-0.2.0/src/zango/assets/app_panel/js/build.v1.1.2.min.js +2 -0
- zango-0.2.0/src/zango/assets/js/jquery/3.7.1/jquery.min.js +2 -0
- zango-0.2.0/src/zango/cli/__init__.py +16 -0
- zango-0.2.0/src/zango/cli/install_package.py +15 -0
- zango-0.2.0/src/zango/cli/package_info.py +32 -0
- zango-0.2.0/src/zango/cli/project_template/manage.py +22 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/__init__.py +3 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/asgi.py +16 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/settings.py +140 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/urls.py +22 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/urls_public.py +7 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/urls_tenants.py +7 -0
- zango-0.2.0/src/zango/cli/project_template/project_name/wsgi.py +16 -0
- zango-0.2.0/src/zango/cli/start_project.py +246 -0
- zango-0.2.0/src/zango/cli/utils.py +24 -0
- zango-0.2.0/src/zango/config/__init__.py +0 -0
- zango-0.2.0/src/zango/config/celery.py +18 -0
- zango-0.2.0/src/zango/config/settings/__init__.py +0 -0
- zango-0.2.0/src/zango/config/settings/base.py +180 -0
- zango-0.2.0/src/zango/config/urls_public.py +33 -0
- zango-0.2.0/src/zango/config/urls_tenants.py +22 -0
- zango-0.2.0/src/zango/core/__init__.py +1 -0
- zango-0.2.0/src/zango/core/api/__init__.py +8 -0
- zango-0.2.0/src/zango/core/api/base.py +55 -0
- zango-0.2.0/src/zango/core/api/utils.py +28 -0
- zango-0.2.0/src/zango/core/common_utils.py +36 -0
- zango-0.2.0/src/zango/core/custom_pluginbase.py +27 -0
- zango-0.2.0/src/zango/core/decorators.py +33 -0
- zango-0.2.0/src/zango/core/generic_views/__init__.py +0 -0
- zango-0.2.0/src/zango/core/generic_views/base.py +55 -0
- zango-0.2.0/src/zango/core/internal_requests.py +192 -0
- zango-0.2.0/src/zango/core/model_mixins.py +33 -0
- zango-0.2.0/src/zango/core/package_utils.py +188 -0
- zango-0.2.0/src/zango/core/permissions.py +74 -0
- zango-0.2.0/src/zango/core/storage_utils.py +77 -0
- zango-0.2.0/src/zango/core/tasks.py +38 -0
- zango-0.2.0/src/zango/core/template_loader.py +48 -0
- zango-0.2.0/src/zango/core/utils.py +100 -0
- zango-0.2.0/src/zango/middleware/__init__.py +0 -0
- zango-0.2.0/src/zango/middleware/request.py +45 -0
- zango-0.2.0/src/zango/middleware/tenant.py +157 -0
- zango-0.2.0/src/zango.egg-info/PKG-INFO +128 -0
- zango-0.2.0/src/zango.egg-info/SOURCES.txt +224 -0
- zango-0.2.0/src/zango.egg-info/dependency_links.txt +1 -0
- zango-0.2.0/src/zango.egg-info/entry_points.txt +2 -0
- zango-0.2.0/src/zango.egg-info/requires.txt +35 -0
- zango-0.2.0/src/zango.egg-info/top_level.txt +1 -0
zango-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
Copyright (c) Healthlane Technologies Pvt. Ltd. ("Zango")
|
|
2
|
+
|
|
3
|
+
Parts of Zango's software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All content residing under the "docs/" directory of this repository is licensed under
|
|
6
|
+
"Creative Commons: CC BY-SA 4.0 license".
|
|
7
|
+
* All content that resides under the "ee/" directory of this repository, if that
|
|
8
|
+
directory exists, is licensed under the license defined in "enterprise/LICENSE".
|
|
9
|
+
* All client-side JavaScript (when served directly or after being compiled, arranged,
|
|
10
|
+
augmented, or combined), is licensed under the "MIT Expat" license.
|
|
11
|
+
* All third party components incorporated into Zango are licensed under
|
|
12
|
+
the original license provided by the owner of the applicable component.
|
|
13
|
+
* Content outside of the above mentioned directories or restrictions above [Zango
|
|
14
|
+
Developer's Edition ("Zango DE")] is available under the "Apache Version 2.0, January 2004"
|
|
15
|
+
license as defined below.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Apache License
|
|
19
|
+
Version 2.0, January 2004
|
|
20
|
+
http://www.apache.org/licenses/
|
|
21
|
+
|
|
22
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
23
|
+
|
|
24
|
+
1. Definitions.
|
|
25
|
+
|
|
26
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
27
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
28
|
+
|
|
29
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
30
|
+
the copyright owner that is granting the License.
|
|
31
|
+
|
|
32
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
33
|
+
other entities that control, are controlled by, or are under common
|
|
34
|
+
control with that entity. For the purposes of this definition,
|
|
35
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
36
|
+
direction or management of such entity, whether by contract or
|
|
37
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
38
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
39
|
+
|
|
40
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
41
|
+
exercising permissions granted by this License.
|
|
42
|
+
|
|
43
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
44
|
+
including but not limited to software source code, documentation
|
|
45
|
+
source, and configuration files.
|
|
46
|
+
|
|
47
|
+
"Object" form shall mean any form resulting from mechanical
|
|
48
|
+
transformation or translation of a Source form, including but
|
|
49
|
+
not limited to compiled object code, generated documentation,
|
|
50
|
+
and conversions to other media types.
|
|
51
|
+
|
|
52
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
53
|
+
Object form, made available under the License, as indicated by a
|
|
54
|
+
copyright notice that is included in or attached to the work
|
|
55
|
+
(an example is provided in the Appendix below).
|
|
56
|
+
|
|
57
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
58
|
+
form, that is based on (or derived from) the Work and for which the
|
|
59
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
60
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
61
|
+
of this License, Derivative Works shall not include works that remain
|
|
62
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
63
|
+
the Work and Derivative Works thereof.
|
|
64
|
+
|
|
65
|
+
"Contribution" shall mean any work of authorship, including
|
|
66
|
+
the original version of the Work and any modifications or additions
|
|
67
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
68
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
69
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
70
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
71
|
+
means any form of electronic, verbal, or written communication sent
|
|
72
|
+
to the Licensor or its representatives, including but not limited to
|
|
73
|
+
communication on electronic mailing lists, source code control systems,
|
|
74
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
75
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
76
|
+
excluding communication that is conspicuously marked or otherwise
|
|
77
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
78
|
+
|
|
79
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
80
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
81
|
+
subsequently incorporated within the Work.
|
|
82
|
+
|
|
83
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
84
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
87
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
88
|
+
Work and such Derivative Works in Source or Object form.
|
|
89
|
+
|
|
90
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
91
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
92
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
93
|
+
(except as stated in this section) patent license to make, have made,
|
|
94
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
95
|
+
where such license applies only to those patent claims licensable
|
|
96
|
+
by such Contributor that are necessarily infringed by their
|
|
97
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
98
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
99
|
+
institute patent litigation against any entity (including a
|
|
100
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
101
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
102
|
+
or contributory patent infringement, then any patent licenses
|
|
103
|
+
granted to You under this License for that Work shall terminate
|
|
104
|
+
as of the date such litigation is filed.
|
|
105
|
+
|
|
106
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
107
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
108
|
+
modifications, and in Source or Object form, provided that You
|
|
109
|
+
meet the following conditions:
|
|
110
|
+
|
|
111
|
+
(a) You must give any other recipients of the Work or
|
|
112
|
+
Derivative Works a copy of this License; and
|
|
113
|
+
|
|
114
|
+
(b) You must cause any modified files to carry prominent notices
|
|
115
|
+
stating that You changed the files; and
|
|
116
|
+
|
|
117
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
118
|
+
that You distribute, all copyright, patent, trademark, and
|
|
119
|
+
attribution notices from the Source form of the Work,
|
|
120
|
+
excluding those notices that do not pertain to any part of
|
|
121
|
+
the Derivative Works; and
|
|
122
|
+
|
|
123
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
124
|
+
distribution, then any Derivative Works that You distribute must
|
|
125
|
+
include a readable copy of the attribution notices contained
|
|
126
|
+
within such NOTICE file, excluding those notices that do not
|
|
127
|
+
pertain to any part of the Derivative Works, in at least one
|
|
128
|
+
of the following places: within a NOTICE text file distributed
|
|
129
|
+
as part of the Derivative Works; within the Source form or
|
|
130
|
+
documentation, if provided along with the Derivative Works; or,
|
|
131
|
+
within a display generated by the Derivative Works, if and
|
|
132
|
+
wherever such third-party notices normally appear. The contents
|
|
133
|
+
of the NOTICE file are for informational purposes only and
|
|
134
|
+
do not modify the License. You may add Your own attribution
|
|
135
|
+
notices within Derivative Works that You distribute, alongside
|
|
136
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
137
|
+
that such additional attribution notices cannot be construed
|
|
138
|
+
as modifying the License.
|
|
139
|
+
|
|
140
|
+
You may add Your own copyright statement to Your modifications and
|
|
141
|
+
may provide additional or different license terms and conditions
|
|
142
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
143
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
144
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
145
|
+
the conditions stated in this License.
|
|
146
|
+
|
|
147
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
148
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
149
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
150
|
+
this License, without any additional terms or conditions.
|
|
151
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
152
|
+
the terms of any separate license agreement you may have executed
|
|
153
|
+
with Licensor regarding such Contributions.
|
|
154
|
+
|
|
155
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
156
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
157
|
+
except as required for reasonable and customary use in describing the
|
|
158
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
159
|
+
|
|
160
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
161
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
162
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
163
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
164
|
+
implied, including, without limitation, any warranties or conditions
|
|
165
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
166
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
167
|
+
appropriateness of using or redistributing the Work and assume any
|
|
168
|
+
risks associated with Your exercise of permissions under this License.
|
|
169
|
+
|
|
170
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
171
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
172
|
+
unless required by applicable law (such as deliberate and grossly
|
|
173
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
174
|
+
liable to You for damages, including any direct, indirect, special,
|
|
175
|
+
incidental, or consequential damages of any character arising as a
|
|
176
|
+
result of this License or out of the use or inability to use the
|
|
177
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
178
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
179
|
+
other commercial damages or losses), even if such Contributor
|
|
180
|
+
has been advised of the possibility of such damages.
|
|
181
|
+
|
|
182
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
183
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
184
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
185
|
+
or other liability obligations and/or rights consistent with this
|
|
186
|
+
License. However, in accepting such obligations, You may act only
|
|
187
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
188
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
189
|
+
defend, and hold each Contributor harmless for any liability
|
|
190
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
191
|
+
of your accepting any such warranty or additional liability.
|
|
192
|
+
|
|
193
|
+
END OF TERMS AND CONDITIONS
|
zango-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: zango
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Zango: multi-tenant Django framework for building business apps
|
|
5
|
+
Home-page: https://github.com/Healthlane-Technologies/zelthy3
|
|
6
|
+
Author: Zelthy ("Healthlane Technologies")
|
|
7
|
+
Author-email: maintainers@zelthy.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Classifier: Framework :: Django
|
|
10
|
+
Classifier: Programming Language :: Python
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: django==4.2.11
|
|
14
|
+
Requires-Dist: psycopg2-binary
|
|
15
|
+
Requires-Dist: django-tenants
|
|
16
|
+
Requires-Dist: djangorestframework
|
|
17
|
+
Requires-Dist: django-rest-knox
|
|
18
|
+
Requires-Dist: celery==5.3.1
|
|
19
|
+
Requires-Dist: flake8==6.1.0
|
|
20
|
+
Requires-Dist: django-cors-headers==4.2.0
|
|
21
|
+
Requires-Dist: pluginbase==1.0.1
|
|
22
|
+
Requires-Dist: click==8.1.7
|
|
23
|
+
Requires-Dist: phonenumberslite==8.13.23
|
|
24
|
+
Requires-Dist: django-phonenumber-field==7.1.0
|
|
25
|
+
Requires-Dist: django-redis==5.3.0
|
|
26
|
+
Requires-Dist: django-cachalot==2.6.1
|
|
27
|
+
Requires-Dist: django-debug-toolbar==4.2.0
|
|
28
|
+
Requires-Dist: django-formtools==2.4.1
|
|
29
|
+
Requires-Dist: django-crispy-forms==2.0
|
|
30
|
+
Requires-Dist: crispy-bootstrap5==0.7
|
|
31
|
+
Requires-Dist: cookiecutter==2.3.0
|
|
32
|
+
Requires-Dist: boto3==1.28.52
|
|
33
|
+
Requires-Dist: botocore==1.31.52
|
|
34
|
+
Requires-Dist: django-storages==1.14
|
|
35
|
+
Requires-Dist: django-celery-beat==2.5.0
|
|
36
|
+
Requires-Dist: django-smtp-ssl==1.0
|
|
37
|
+
Requires-Dist: PyJWT==2.8.0
|
|
38
|
+
Requires-Dist: XlsxWriter==3.1.9
|
|
39
|
+
Requires-Dist: pydub==0.25.1
|
|
40
|
+
Requires-Dist: django-celery-results==2.5.1
|
|
41
|
+
Requires-Dist: django-environ==0.11.2
|
|
42
|
+
Requires-Dist: pytz==2024.1
|
|
43
|
+
Requires-Dist: django-session-security==2.6.7
|
|
44
|
+
Requires-Dist: beautifulsoup4==4.12.3
|
|
45
|
+
Requires-Dist: python3-saml==1.16.0
|
|
46
|
+
Requires-Dist: django-ipware==7.0.1
|
|
47
|
+
Requires-Dist: django-decorator-include==3.0
|
|
48
|
+
|
|
49
|
+
<h1 align="center">
|
|
50
|
+
<a target="_blank" href="https://www.zelthy.com/framework?referer=zelthy3-repo-landing">
|
|
51
|
+
<img src="https://zelthy-dev-static.s3.ap-south-1.amazonaws.com/zango_logo_bk.svg" alt="ZCore" >
|
|
52
|
+
</a>
|
|
53
|
+
</h1>
|
|
54
|
+
|
|
55
|
+
<hr>
|
|
56
|
+
|
|
57
|
+
### **✨ Build microservices as tenants on a Django monolith. Avoid the infra & operational overheads. Scale effortlessly. ✨**
|
|
58
|
+
|
|
59
|
+
<a href="https://www.zango.dev/blog/architecting-microservices-as-a-tenant-on-a-monolith" target="_blank">Know more</a>
|
|
60
|
+
|
|
61
|
+
<hr>
|
|
62
|
+
<p align="center">
|
|
63
|
+
<a href="#">
|
|
64
|
+
<img alt="PyPI version" src="https://badge.fury.io/py/zango.svg"></a>
|
|
65
|
+
<a href="#">
|
|
66
|
+
<img alt="Build" src="https://img.shields.io/github/actions/workflow/status/Healthlane-Technologies/zango/sync-docs-to-docs-hub.yml?branch=main"></a>
|
|
67
|
+
<a href="https://opensource.org/licenses/Apache-2.0" target="_blank">
|
|
68
|
+
<img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg"> </a>
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
<p align="center">
|
|
72
|
+
<a href="https://www.zango.dev" target="_blank">Website</a> |
|
|
73
|
+
<a href="https://www.zango.dev/docs/category/getting-started" target="_blank">Getting Started </a>|
|
|
74
|
+
<a href="https://zango.dev/docs" target="_blank">Docs</a> |
|
|
75
|
+
<a href="https://discord.com/invite/WHvVjU23e7" target="_blank">Discord</a>
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
**Zango** is a web application development framework built upon Django, designed to host multiple apps or microservices as tenants on a single monolith under the hood.
|
|
79
|
+
|
|
80
|
+
- Leverage the stengths of Django, an already proven and battle tested web framework
|
|
81
|
+
- Make available the basics of business web apps/ microservices as part of the framework
|
|
82
|
+
- Host multiple apps or microservices on a single monolith under the hood.
|
|
83
|
+
- Security & Compliances are built in.
|
|
84
|
+
- Suite of essential packages to serve as the building blocks of Apps
|
|
85
|
+
- Use case packages to build the industry specific use cases
|
|
86
|
+
|
|
87
|
+
[](https://gitpod.io/#https://github.com/Healthlane-Technologies/Zango/)
|
|
88
|
+
|
|
89
|
+
#### App Panel - Central hub to manage all your apps/ microservices
|
|
90
|
+
|
|
91
|
+
Perform tasks such as configuring permissions, managing user roles, and much more.
|
|
92
|
+
|
|
93
|
+

|
|
94
|
+
|
|
95
|
+
#### Drastically reduce your infrastructural and operational overheads, hosting multiple apps/ microservices on a single deployment:
|
|
96
|
+
|
|
97
|
+
Zango redefines multi-tenancy by enabling multiple different apps to run on a single server. Say goodbye to the limitations of traditional scaling methods. With our platform, you can run multiple different applications on a single server, which helps in keeping the cost in check.
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
#### 🚀 Getting Started:
|
|
102
|
+
|
|
103
|
+
- [Gitpod](https://www.zango.dev/docs/core/getting-started/installing-zelthy/gitpod)
|
|
104
|
+
- [Docker](https://www.zango.dev/docs/core/getting-started/installing-zelthy/docker)
|
|
105
|
+
- [Manual](https://www.zango.dev/docs/core/getting-started/installing-zelthy/manual)
|
|
106
|
+
|
|
107
|
+
#### 📦 Free Packages
|
|
108
|
+
|
|
109
|
+
A few essential packages are freely available. These packages enable development of a wide variety of applications and are available for installation from the App Panel.
|
|
110
|
+
|
|
111
|
+
- [Basic Auth](https://www.zango.dev/docs/basic-auth/introduction)
|
|
112
|
+
- [Frames](https://www.zango.dev/docs/frame/introduction)
|
|
113
|
+
- [CRUD](https://www.zango.dev/docs/crud/introduction)
|
|
114
|
+
- [Workflow](https://www.zango.dev/docs/workflow/overview)
|
|
115
|
+
|
|
116
|
+
#### 🌟 Get Involved and Make a Difference
|
|
117
|
+
|
|
118
|
+
Join our community and help build **Zango**. Here's how you can get involved:
|
|
119
|
+
|
|
120
|
+
- **Star the Repo:** Show your support by giving us a star! ⭐️
|
|
121
|
+
- **Spread the Word:** Share Zango with your colleagues and friends. 📣
|
|
122
|
+
- **Join the Conversation:** Share your brilliant ideas and suggestions on Discord [here](https://discord.com/invite/WHvVjU23e7). 💬
|
|
123
|
+
- **Report Issues:** Notice something not quite right? Let us know by creating an issue. Your feedback is invaluable! 🐛
|
|
124
|
+
- **Contribute Code:** Dive into open issues and send pull requests to help us squash bugs and implement exciting enhancements. 🛠️
|
|
125
|
+
|
|
126
|
+
Together, let's build something incredible! ✨🚀
|
|
127
|
+
|
|
128
|
+
#### Official Documentation: https://zango.dev/docs
|
zango-0.2.0/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<a target="_blank" href="https://www.zelthy.com/framework?referer=zelthy3-repo-landing">
|
|
3
|
+
<img src="https://zelthy-dev-static.s3.ap-south-1.amazonaws.com/zango_logo_bk.svg" alt="ZCore" >
|
|
4
|
+
</a>
|
|
5
|
+
</h1>
|
|
6
|
+
|
|
7
|
+
<hr>
|
|
8
|
+
|
|
9
|
+
### **✨ Build microservices as tenants on a Django monolith. Avoid the infra & operational overheads. Scale effortlessly. ✨**
|
|
10
|
+
|
|
11
|
+
<a href="https://www.zango.dev/blog/architecting-microservices-as-a-tenant-on-a-monolith" target="_blank">Know more</a>
|
|
12
|
+
|
|
13
|
+
<hr>
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="#">
|
|
16
|
+
<img alt="PyPI version" src="https://badge.fury.io/py/zango.svg"></a>
|
|
17
|
+
<a href="#">
|
|
18
|
+
<img alt="Build" src="https://img.shields.io/github/actions/workflow/status/Healthlane-Technologies/zango/sync-docs-to-docs-hub.yml?branch=main"></a>
|
|
19
|
+
<a href="https://opensource.org/licenses/Apache-2.0" target="_blank">
|
|
20
|
+
<img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg"> </a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<a href="https://www.zango.dev" target="_blank">Website</a> |
|
|
25
|
+
<a href="https://www.zango.dev/docs/category/getting-started" target="_blank">Getting Started </a>|
|
|
26
|
+
<a href="https://zango.dev/docs" target="_blank">Docs</a> |
|
|
27
|
+
<a href="https://discord.com/invite/WHvVjU23e7" target="_blank">Discord</a>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
**Zango** is a web application development framework built upon Django, designed to host multiple apps or microservices as tenants on a single monolith under the hood.
|
|
31
|
+
|
|
32
|
+
- Leverage the stengths of Django, an already proven and battle tested web framework
|
|
33
|
+
- Make available the basics of business web apps/ microservices as part of the framework
|
|
34
|
+
- Host multiple apps or microservices on a single monolith under the hood.
|
|
35
|
+
- Security & Compliances are built in.
|
|
36
|
+
- Suite of essential packages to serve as the building blocks of Apps
|
|
37
|
+
- Use case packages to build the industry specific use cases
|
|
38
|
+
|
|
39
|
+
[](https://gitpod.io/#https://github.com/Healthlane-Technologies/Zango/)
|
|
40
|
+
|
|
41
|
+
#### App Panel - Central hub to manage all your apps/ microservices
|
|
42
|
+
|
|
43
|
+
Perform tasks such as configuring permissions, managing user roles, and much more.
|
|
44
|
+
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
#### Drastically reduce your infrastructural and operational overheads, hosting multiple apps/ microservices on a single deployment:
|
|
48
|
+
|
|
49
|
+
Zango redefines multi-tenancy by enabling multiple different apps to run on a single server. Say goodbye to the limitations of traditional scaling methods. With our platform, you can run multiple different applications on a single server, which helps in keeping the cost in check.
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
#### 🚀 Getting Started:
|
|
54
|
+
|
|
55
|
+
- [Gitpod](https://www.zango.dev/docs/core/getting-started/installing-zelthy/gitpod)
|
|
56
|
+
- [Docker](https://www.zango.dev/docs/core/getting-started/installing-zelthy/docker)
|
|
57
|
+
- [Manual](https://www.zango.dev/docs/core/getting-started/installing-zelthy/manual)
|
|
58
|
+
|
|
59
|
+
#### 📦 Free Packages
|
|
60
|
+
|
|
61
|
+
A few essential packages are freely available. These packages enable development of a wide variety of applications and are available for installation from the App Panel.
|
|
62
|
+
|
|
63
|
+
- [Basic Auth](https://www.zango.dev/docs/basic-auth/introduction)
|
|
64
|
+
- [Frames](https://www.zango.dev/docs/frame/introduction)
|
|
65
|
+
- [CRUD](https://www.zango.dev/docs/crud/introduction)
|
|
66
|
+
- [Workflow](https://www.zango.dev/docs/workflow/overview)
|
|
67
|
+
|
|
68
|
+
#### 🌟 Get Involved and Make a Difference
|
|
69
|
+
|
|
70
|
+
Join our community and help build **Zango**. Here's how you can get involved:
|
|
71
|
+
|
|
72
|
+
- **Star the Repo:** Show your support by giving us a star! ⭐️
|
|
73
|
+
- **Spread the Word:** Share Zango with your colleagues and friends. 📣
|
|
74
|
+
- **Join the Conversation:** Share your brilliant ideas and suggestions on Discord [here](https://discord.com/invite/WHvVjU23e7). 💬
|
|
75
|
+
- **Report Issues:** Notice something not quite right? Let us know by creating an issue. Your feedback is invaluable! 🐛
|
|
76
|
+
- **Contribute Code:** Dive into open issues and send pull requests to help us squash bugs and implement exciting enhancements. 🛠️
|
|
77
|
+
|
|
78
|
+
Together, let's build something incredible! ✨🚀
|
|
79
|
+
|
|
80
|
+
#### Official Documentation: https://zango.dev/docs
|
zango-0.2.0/setup.cfg
ADDED
zango-0.2.0/setup.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
PROJECT_DIR = os.path.dirname(__file__)
|
|
7
|
+
REQUIREMENTS_DIR = os.path.join(PROJECT_DIR, "requirements")
|
|
8
|
+
|
|
9
|
+
README = os.path.join(PROJECT_DIR, "README.md")
|
|
10
|
+
|
|
11
|
+
PLATFORM_VERSION = "0.2.0"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def get_requirements(env):
|
|
15
|
+
with open(os.path.join(REQUIREMENTS_DIR, f"{env}.txt")) as fp:
|
|
16
|
+
return [x.strip() for x in fp.read().split("\n") if not x.startswith("#")]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
install_requires = get_requirements("base")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
setup(
|
|
23
|
+
name="zango",
|
|
24
|
+
version=PLATFORM_VERSION,
|
|
25
|
+
license="Apache License 2.0",
|
|
26
|
+
description="Zango: multi-tenant Django framework for building business apps",
|
|
27
|
+
long_description=open(README).read(),
|
|
28
|
+
long_description_content_type="text/markdown",
|
|
29
|
+
author='Zelthy ("Healthlane Technologies")',
|
|
30
|
+
author_email="maintainers@zelthy.com",
|
|
31
|
+
url="https://github.com/Healthlane-Technologies/zelthy3",
|
|
32
|
+
package_dir={"": "src"},
|
|
33
|
+
packages=find_packages("src"),
|
|
34
|
+
package_data={
|
|
35
|
+
"zango": [
|
|
36
|
+
"cli/project_template/**/*",
|
|
37
|
+
"assets/**",
|
|
38
|
+
"**/templates/**",
|
|
39
|
+
"**/workspace_folder_template/**",
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
install_requires=install_requires,
|
|
43
|
+
classifiers=[
|
|
44
|
+
"Framework :: Django",
|
|
45
|
+
"Programming Language :: Python",
|
|
46
|
+
],
|
|
47
|
+
entry_points={
|
|
48
|
+
"console_scripts": [
|
|
49
|
+
"zango=zango.cli:cli",
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
license_files=["LICENSE"],
|
|
53
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from django.urls import re_path
|
|
2
|
+
|
|
3
|
+
from .views import ProfileViewAPIV1, PasswordChangeViewAPIV1
|
|
4
|
+
|
|
5
|
+
urlpatterns = [
|
|
6
|
+
re_path(
|
|
7
|
+
r"change_password", PasswordChangeViewAPIV1.as_view(), name="change_password"
|
|
8
|
+
),
|
|
9
|
+
re_path(r"", ProfileViewAPIV1.as_view(), name="profile"),
|
|
10
|
+
]
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
from django.conf import settings
|
|
4
|
+
from django.shortcuts import redirect
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PasswordValidationMixin(object):
|
|
8
|
+
MIN_LENGTH = settings.PASSWORD_MIN_LENGTH
|
|
9
|
+
oldpassword_model = None
|
|
10
|
+
num_specialChar_regex = re.compile(r"[!@#$%^&*()_+-/=~]")
|
|
11
|
+
numeric_regex = re.compile(r"\d")
|
|
12
|
+
uppercase_regex = re.compile(r"[ABCDEFGHIJKLMNOPQRSTUVWXYZ]")
|
|
13
|
+
lowercase_regex = re.compile(r"[abcdefghijklmnopqrstuvwqyz]")
|
|
14
|
+
|
|
15
|
+
@staticmethod
|
|
16
|
+
def is_password_matching(password, password2):
|
|
17
|
+
"""
|
|
18
|
+
Checks if both passwords are equal
|
|
19
|
+
"""
|
|
20
|
+
validation = password == password2
|
|
21
|
+
if not validation:
|
|
22
|
+
msg = "The two passwords didn't match!"
|
|
23
|
+
else:
|
|
24
|
+
msg = None
|
|
25
|
+
return {"validation": validation, "msg": msg}
|
|
26
|
+
|
|
27
|
+
def check_password_length(self, password):
|
|
28
|
+
if len(password) < self.MIN_LENGTH:
|
|
29
|
+
validation = False
|
|
30
|
+
msg = (
|
|
31
|
+
f"The new password must be at least {self.MIN_LENGTH} characters long."
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
else:
|
|
35
|
+
validation = True
|
|
36
|
+
msg = None
|
|
37
|
+
return {"validation": validation, "msg": msg}
|
|
38
|
+
|
|
39
|
+
@staticmethod
|
|
40
|
+
def is_first_alpha(password):
|
|
41
|
+
"""
|
|
42
|
+
First character must be alphabet
|
|
43
|
+
"""
|
|
44
|
+
validation = password[0].isalpha()
|
|
45
|
+
if not validation:
|
|
46
|
+
msg = "The first letter of your password must be an alphabet!"
|
|
47
|
+
else:
|
|
48
|
+
msg = None
|
|
49
|
+
return {"validation": validation, "msg": msg}
|
|
50
|
+
|
|
51
|
+
def check_uppercase_char(self, password):
|
|
52
|
+
if not self.uppercase_regex.search(password):
|
|
53
|
+
validation = False
|
|
54
|
+
msg = "The new password must contain at least one upper case character"
|
|
55
|
+
else:
|
|
56
|
+
validation = True
|
|
57
|
+
msg = None
|
|
58
|
+
return {"msg": msg, "validation": validation}
|
|
59
|
+
|
|
60
|
+
def check_lowercase_char(self, password):
|
|
61
|
+
if not self.lowercase_regex.search(password):
|
|
62
|
+
validation = False
|
|
63
|
+
msg = "The new password must contain at least one lower case character"
|
|
64
|
+
else:
|
|
65
|
+
validation = True
|
|
66
|
+
msg = None
|
|
67
|
+
return {"msg": msg, "validation": validation}
|
|
68
|
+
|
|
69
|
+
def verify_old_password(self, user, old_password):
|
|
70
|
+
if not user.check_password(old_password):
|
|
71
|
+
msg = "Current password does not match. Please try again!"
|
|
72
|
+
validation = False
|
|
73
|
+
else:
|
|
74
|
+
msg = ""
|
|
75
|
+
validation = True
|
|
76
|
+
return {"validation": validation, "msg": msg}
|
|
77
|
+
|
|
78
|
+
def check_special_character(self, password):
|
|
79
|
+
msg = ""
|
|
80
|
+
validation = True
|
|
81
|
+
if not self.num_specialChar_regex.search(password):
|
|
82
|
+
validation = False
|
|
83
|
+
msg = "The new password must contain at least one numeric and one special character e.g. ! @ # $ %..."
|
|
84
|
+
if not self.numeric_regex.search(password):
|
|
85
|
+
validation = False
|
|
86
|
+
msg = "The new password must contain at least one numeric and one special character e.g. ! @ # $ %..."
|
|
87
|
+
return {"msg": msg, "validation": validation}
|
|
88
|
+
|
|
89
|
+
@staticmethod
|
|
90
|
+
def match_old_password(user, password):
|
|
91
|
+
validation = True
|
|
92
|
+
if user.check_password_validity(password):
|
|
93
|
+
msg = (
|
|
94
|
+
"Sorry, but your new password must not match one of your \
|
|
95
|
+
old passwords from the previous %s days. Please try \
|
|
96
|
+
again!"
|
|
97
|
+
% (settings.PASSWORD_NO_REPEAT_DAYS)
|
|
98
|
+
)
|
|
99
|
+
validation = False
|
|
100
|
+
else:
|
|
101
|
+
msg = ""
|
|
102
|
+
return {"validation": validation, "msg": msg}
|
|
103
|
+
|
|
104
|
+
@staticmethod
|
|
105
|
+
def match_password_username(user, password):
|
|
106
|
+
validation = True
|
|
107
|
+
msg = None
|
|
108
|
+
if password.lower() == user.email.lower():
|
|
109
|
+
validation = False
|
|
110
|
+
if not validation:
|
|
111
|
+
msg = "Your password must be different from your username."
|
|
112
|
+
return {"msg": msg, "validation": validation}
|
|
113
|
+
|
|
114
|
+
def run_all_validations(
|
|
115
|
+
self, user, password, repeat_password=None, old_password=None
|
|
116
|
+
):
|
|
117
|
+
if repeat_password:
|
|
118
|
+
if not self.is_password_matching(password, repeat_password).get(
|
|
119
|
+
"validation"
|
|
120
|
+
):
|
|
121
|
+
return self.is_password_matching(password, repeat_password)
|
|
122
|
+
|
|
123
|
+
if old_password:
|
|
124
|
+
if not self.verify_old_password(user, old_password).get("validation"):
|
|
125
|
+
return self.verify_old_password(user, old_password)
|
|
126
|
+
|
|
127
|
+
if not self.check_password_length(password).get("validation"):
|
|
128
|
+
return self.check_password_length(password)
|
|
129
|
+
|
|
130
|
+
elif not self.is_first_alpha(password).get("validation"):
|
|
131
|
+
return self.is_first_alpha(password)
|
|
132
|
+
|
|
133
|
+
elif not self.check_uppercase_char(password).get("validation"):
|
|
134
|
+
return self.check_uppercase_char(password)
|
|
135
|
+
|
|
136
|
+
elif not self.check_lowercase_char(password).get("validation"):
|
|
137
|
+
return self.check_lowercase_char(password)
|
|
138
|
+
|
|
139
|
+
elif not self.check_special_character(password).get("validation"):
|
|
140
|
+
return self.check_special_character(password)
|
|
141
|
+
|
|
142
|
+
elif not self.match_old_password(user, password).get("validation"):
|
|
143
|
+
return self.match_old_password(user, password)
|
|
144
|
+
|
|
145
|
+
elif not self.match_password_username(user, password).get("validation"):
|
|
146
|
+
return self.match_password_username(user, password)
|
|
147
|
+
|
|
148
|
+
else:
|
|
149
|
+
return {"validation": True, "msg": "Password validations passed"}
|