162 Commits

Author SHA1 Message Date
fe8ffb2839 Removed comments #139 2022-12-07 15:46:58 +01:00
42fb88c35d Removed old new command #139 2022-12-07 15:45:15 +01:00
db7a0786a9 Merge branch '2022.12' into #139 2022-12-07 15:41:56 +01:00
f9f2612356 Merge pull request 'configuration.add_configuration(value: any) type fix (#141)' (#142) from #141 into 2022.12
Reviewed-on: #142
Closes #141
2022-12-07 15:41:18 +01:00
df81bb599f Merge branch '2022.12' into #141 2022-12-07 13:07:38 +01:00
6d2492c1cf Added generic typing to configuration #141 2022-12-07 13:06:50 +01:00
e244535557 Improved cpl n custom templating #139 2022-12-06 17:42:55 +01:00
5f10603fe5 [WIP] Improved cpl new templating #139 2022-12-05 23:08:52 +01:00
6b8491eea2 Merge pull request 'cpl g <schematic> customizable (#137)' (#138) from #137 into 2022.12
Reviewed-on: #138
Closes #137
2022-12-05 20:34:45 +01:00
b63bf41294 Fixed cpl help #137 2022-12-05 20:24:15 +01:00
f6cc3a7ddf Removed cpl g arguments #137 2022-12-05 20:00:32 +01:00
d1c93abe2c Improved cpl g templating & added custom templating #137 2022-12-05 19:57:33 +01:00
d6e3b37f7f Fixed recursion in cpl 2022-12-05 14:37:25 +01:00
9840779af4 build new cpl version 2022-12-05 14:30:33 +01:00
b893ec1fcf Merge pull request 'Removed old file #134' (#136) from #134 into 2022.12
Reviewed-on: #136
2022-12-05 14:16:55 +01:00
d5e5bfe69d Removed old file #134 2022-12-05 14:15:01 +01:00
4afe5c4581 Fixed cpl query for now #134 2022-12-05 14:12:20 +01:00
e054ac364e Updated docs 2022-12-04 00:50:24 +01:00
68e01afb5b Release 2022.12.0 2022-12-04 00:12:40 +01:00
2e0a8bb1ff Minor fixes to cpl query 2022-12-04 00:08:16 +01:00
b02aebef35 Improved set-version tool & set version 2022-12-03 23:42:23 +01:00
099a51ed93 Merge pull request 'Fixed invalid output after console spinner #122' (#132) from #122 into 2022.12
Reviewed-on: #132
Closes #122
2022-12-03 23:31:20 +01:00
e4aedb354b Fixed invalid output after console spinner #122 2022-12-03 23:30:54 +01:00
301768b842 Merge pull request 'cpl start & run - Bessere Einbindung mit den Build-Tools #124' (#131) from #124 into 2022.12
Reviewed-on: #131
Closes #124
2022-12-03 23:25:11 +01:00
856960d799 Added logic to run build code to cpl start #124 2022-12-02 19:38:03 +01:00
d0877a4ea6 Added logic to run build code to cpl run #124 2022-12-02 18:41:58 +01:00
3c20ab296a Added --dev flag to cpl run & start #124 2022-12-02 17:48:35 +01:00
4dc7ee3314 Merge pull request 'cpl query Enumerable quatsch #129' (#130) from #129 into 2022.12
Reviewed-on: #130
Closes #129
2022-12-01 23:43:01 +01:00
05bd5e8593 Improved query performance test #129 2022-12-01 23:41:06 +01:00
2fe3912a07 Fixed version test #129 2022-12-01 23:34:00 +01:00
2840628443 Improved tests #129 2022-12-01 23:23:48 +01:00
f0f79e7e3b Refactored cpl-query Iterable & Enumerable #129 2022-12-01 21:09:39 +01:00
e8ae635c88 Improved tests #129 2022-12-01 17:00:17 +01:00
d8f7e03815 Added group by & refactored Iterable #129 2022-12-01 16:27:29 +01:00
ba1b5e49ae Merge pull request 'Added logic to change base path for cpl n #120' (#128) from #120 into 2022.12
Reviewed-on: #128
Closes #120
2022-12-01 14:00:46 +01:00
703a2c91b5 Added logic to change base path for cpl n #120 2022-12-01 13:55:55 +01:00
4a54bb62de Merge pull request 'cpl g in project directory #93' (#127) from #93 into 2022.12
Reviewed-on: #127
Closes #93
2022-12-01 12:26:01 +01:00
9e84c8359b Removed empty PythonPath #93 2022-12-01 12:25:36 +01:00
5139876d90 Merge branch '#93' of https://git.sh-edraft.de/sh-edraft.de/sh_cpl into #93 2022-12-01 12:22:20 +01:00
6aef49de40 Repaired build & publish #93 2022-12-01 12:22:14 +01:00
186b336bf3 Repaired build & publish #93 2022-12-01 12:22:14 +01:00
1bbec27d1a Fixed cpl g path problems & package names #93 2022-12-01 12:21:57 +01:00
f0a8d69e22 Merge branch '2022.12' of https://git.sh-edraft.de/sh-edraft.de/sh_cpl into 2022.12 2022-12-01 12:21:17 +01:00
8bd237206c Fixed logging #123 2022-12-01 12:20:32 +01:00
6bf7c3a2bc Reverted #125 fix 2022-12-01 12:19:49 +01:00
2e8be741cc Repaired build & publish #93 2022-12-01 12:17:26 +01:00
abd0352750 Repaired build & publish #93 2022-11-30 19:05:11 +01:00
25d91b85f3 Merge branch '2022.12' into #93 2022-11-30 18:06:49 +01:00
f08eb42105 Merge pull request 'Logging Farben #123' (#126) from #123 into 2022.12
Reviewed-on: #126
Closes #123
2022-11-30 18:06:12 +01:00
f450102c93 Fixed cpl g path problems & package names #93 2022-11-30 18:04:40 +01:00
db28645e98 Fixed logging #123 2022-11-30 15:17:08 +01:00
23efb776e7 Call pre & post scripts with args of base command & Build cpl-core@2022.7.0.post9 2022-11-18 09:17:56 +01:00
7f621b282f Build cpl-core@2022.7.0.post8 2022-11-18 08:37:16 +01:00
5dc7fce1e7 Call pre & post scripts with args of base command 2022-11-18 08:36:21 +01:00
879f59b0d5 Fixed #125 2022-10-21 22:34:47 +02:00
511622820a Fixed translation loading 2022-10-19 17:38:21 +02:00
0914f969e5 Resolved deps conflicts 2022-10-18 20:58:19 +02:00
c611045290 Removed german string 'this is a automatic...' in mail client 2022-10-18 20:44:08 +02:00
89ac9e90d6 Fixed take & skip 2022-10-15 13:17:08 +02:00
ae2a98b3bc Fixed unicode problems with windoof 2022-10-12 20:29:18 +02:00
bd242baa0a Removed exit from console warn in logger | WTF im so fckng sorry 2022-10-06 16:47:29 +02:00
8e4caeb2a8 Removed exit from console warn in logger | WTF im so fckng sorry 2022-10-06 16:46:44 +02:00
3b55b3d5a5 Fixed _append_log & create logic in logger_service 2022-10-06 16:45:20 +02:00
cc3b1afaa1 Fixed _append_log & create logic in logger_service 2022-10-06 16:24:01 +02:00
a22b6fdbdb Fixed typo | sry x2 :/ 2022-10-03 17:39:43 +02:00
e3041c4b5b Fixed typo | sry :/ 2022-10-03 17:36:31 +02:00
8ad6d50a04 Added reaction raw events 2022-10-03 17:32:12 +02:00
4db000f6d7 Added protected log and path getter to logger in cpl-core 2022-10-02 23:15:07 +02:00
3821624c3b Removed content from on_message log in cpl-discord 2022-10-02 13:01:09 +02:00
60a722b4ec Improved app builder to return self in use_startup 2022-10-02 02:43:10 +02:00
65132aa107 Improved app builder to return self in use_extension 2022-10-02 02:39:03 +02:00
48eac124a5 Fixed settings handling in cpl-discord 2022-10-01 22:38:01 +02:00
be23b18d33 Merge pull request 'Release 2022.10' (#112) from 2022.10 into master
Reviewed-on: #112
Reviewed-by: edraft-dev <dev.sven.heidemann@sh-edraft.de>
2022-09-30 15:48:19 +02:00
748cc66946 Removed print 2022-09-30 15:47:54 +02:00
304b2e4255 Set new version & build projects 2022-09-30 15:39:41 +02:00
9fa183f143 Merge pull request '2022.10.11 - Added migrations to update command #114' (#117) from 2022.10.11-#114 into 2022.10
Reviewed-on: #117
Closes 117
2022-09-30 14:10:50 +02:00
82df528395 Merge pull request '2022.10.12 - Fixed cpl g existing __init__.py overwrite #116' (#118) from 2022.10.12-#116 into 2022.10
Reviewed-on: #118
Closes #118
2022-09-30 14:07:07 +02:00
49e3bddc91 Fixed cpl g existing __init__.py overwrite #116 2022-09-19 23:10:10 +02:00
c52bf961e1 Added migrations to update command #114 2022-09-19 23:00:09 +02:00
df3f9f0306 Merge pull request 'Fixed update & install commands #113' (#115) from 2022.10.10-#113 into 2022.10
Reviewed-on: #115
Closes #113
2022-09-19 21:48:56 +02:00
ef2d73aadc Fixed update & install commands #113 2022-09-19 21:09:41 +02:00
1ed721cccb Updated packages (Build RC2) 2022-09-18 11:37:50 +02:00
a724216563 Added dockerfile to test 2022-09-18 11:27:26 +02:00
2bcf4d7a97 Re-build correct version 2022-09-18 11:09:38 +02:00
2dfa2dd68f Improved project file structure 2022-09-18 10:59:29 +02:00
e94ed0b7f0 Build rc1 2022-09-17 13:03:37 +02:00
c7e2f8609c Merge pull request '2022.10.3 - Removed duplicated schematic name in generate command #92' (#111) from 2022.10.3 into 2022.10
Reviewed-on: #111
Closes #92
2022-09-17 12:12:52 +02:00
9d2321cc9c Merge branch '2022.10' into 2022.10.3 2022-09-17 12:12:40 +02:00
61d9912950 Removed duplicated schematic name in generate command #92 2022-09-17 12:09:05 +02:00
f23d32a92a Merge pull request '2022.10.4 - Removed async from startup functions (#94)' (#110) from 2022.10.4 into 2022.10
Reviewed-on: #110
Closes #94
2022-09-17 11:59:38 +02:00
dc489cbf7a Removed async from startup functions 2022-09-17 11:58:43 +02:00
41d24aae99 Merge pull request '2022.10.6 - Added error message when logging configuration not exists (#95)' (#109) from 2022.10.6 into 2022.10
Reviewed-on: #109
Closes #95
2022-09-17 11:40:46 +02:00
6b50bba139 Merge branch '2022.10' into 2022.10.6 2022-09-17 11:40:30 +02:00
139422fd32 Added error message when logging configuration not exists 2022-09-17 11:39:19 +02:00
409e11df42 Merge pull request '2022.10.5 Improved version command & fixed unittests (#97)' (#107) from 2022.10.5 into 2022.10
Reviewed-on: #107
Closes #97
2022-09-16 10:43:17 +02:00
f3a11f9791 Improved version command & fixed unittests 2022-09-15 19:16:52 +02:00
8dcc5b4011 Merge pull request '2022.10.9 - Enumerable & List (#105)' (#106) from 2022.10.9 into 2022.10
Reviewed-on: #106
Closes #105
2022-09-15 18:21:25 +02:00
d0f65834f1 Added performance test case 2022-09-15 18:14:40 +02:00
47ed0a705d Improved query 2022-09-15 17:00:22 +02:00
ae3192b63c Removed SequenceABC 2022-09-15 12:48:05 +02:00
bb461f5fba Improved query 2022-09-15 00:30:44 +02:00
52069b7bb3 Improved Sequences 2022-09-14 23:01:52 +02:00
f0ed0bd2e1 Added sequence converters 2022-09-14 13:23:23 +02:00
e868a120f0 Build cpl-query 2022-09-13 19:38:16 +02:00
70652aeb4c Changed structure of cpl-query 2022-09-13 19:33:26 +02:00
28adcc4e49 Implemented enumerable 2022-09-13 12:07:04 +02:00
affbb1ee7b Merge pull request '2022.10.8 - Moved query functions to static query class (#102)' (#104) from 2022.10.8 into 2022.10
Reviewed-on: #104
Closes #102
2022-09-12 22:55:14 +02:00
d8a4210c9b Moved query functions to static query class 2022-09-12 22:53:52 +02:00
b16d555e33 Merge pull request '2022.10.2 - Code refactoring' (#103) from 2022.10.2 into 2022.10
Reviewed-on: #103
2022-09-12 22:31:04 +02:00
4380142ccd Merge branch '2022.10' into 2022.10.2 2022-09-12 22:30:41 +02:00
91f2d6cb21 Code refactoring 2022-09-12 22:29:46 +02:00
249b071ee9 Merge pull request '2022.10.2' (#101) from 2022.10.2 into 2022.10
Reviewed-on: #101
2022-09-12 22:29:22 +02:00
53fe437100 Added more data containers 2022-09-12 22:18:54 +02:00
fc63f3616e Added tests for select & select many 2022-09-12 18:07:37 +02:00
a528511732 Added tests for select & select many 2022-09-12 17:58:48 +02:00
dbe1d37046 Build version 2022-09-11 22:02:10 +02:00
988965ed52 Improved cpl-query & added first types from discord 2022-09-11 21:57:27 +02:00
3c5ca594d5 Merge pull request '2022.10.1' (#100) from 2022.10.1 into 2022.10
Reviewed-on: #100
2022-09-11 19:30:39 +02:00
452b30c899 Build version 2022-09-11 19:30:19 +02:00
85c5b26fdf Added slash command support 2022-09-11 10:21:28 +02:00
92ed684866 First migrations 2022-09-10 10:27:31 +02:00
88e83db330 Improved scope handling 2022-07-31 13:32:02 +02:00
55609fc691 Renamed sh_cpl to cpl in docs 2022-07-31 11:33:45 +02:00
e0d89f967f Improved docs 2022-07-31 11:30:05 +02:00
b2ce8a6924 Added on_error to event types enum 2022-07-19 21:42:45 +02:00
71efbd1b42 Fixed database connection handling by reconnecting 2022-07-19 07:37:03 +02:00
e36939a108 Fixed database port handling 2022-07-18 12:15:28 +02:00
721461fc1b Deployed cpl-discord==2022.7.0.post2 2022-07-17 16:11:33 +02:00
72ee59b2b4 Deployed cpl-core==2022.7.0.post3 2022-07-17 15:52:53 +02:00
95159da0fc Fixed pynput imports 2022-07-17 15:52:17 +02:00
330d702347 Fixed base class of translation service 2022-07-17 15:49:50 +02:00
cbf669d3bd Fixed base class of translation service 2022-07-16 22:06:38 +02:00
7498fe3255 Fixed settings error 2022-07-16 19:37:40 +02:00
880998e8ca Published cpl-discord.post1 2022-07-16 19:23:00 +02:00
ecc9657eaa Merge pull request '2022.7 - cpl-discord' (#96) from 2022.7 into master
Reviewed-on: #96
Closes #91
2022-07-16 16:16:49 +02:00
125f65cf1b Published cpl-discord 2022-07-16 16:15:52 +02:00
1cd9c7d669 Fixed set-version 2022-07-16 16:07:39 +02:00
5165f31066 Build cpl-discord 2022-07-16 15:53:02 +02:00
10d33e5d1d Added logic to handle commands 2022-07-16 15:45:34 +02:00
fb35e8b8b2 Added logic to create a bot 2022-07-16 14:53:54 +02:00
4402bcce73 Added test project 2022-07-16 12:22:10 +02:00
8839b26f00 Added event bases 2022-07-16 12:21:59 +02:00
a79358725c Added cpl-discord project 2022-07-16 12:12:52 +02:00
2ab1576230 Fixed async init error & Fixed pip install 2022-07-14 16:29:08 +02:00
c0be380f69 Removed vscode files 2022-07-14 15:22:10 +02:00
c0ae0c8389 Merge pull request '2022.7 - cpl-translation' (#90) from 2022.7 into master
Reviewed-on: #90
Closes #89
Closes #63
Closes #62
2022-07-10 18:10:30 +02:00
4a766e8284 Release 2022.7 2022-07-10 18:08:44 +02:00
2772ea8df2 Added translation unittests 2022-07-10 17:56:38 +02:00
a604f0e821 Build package 2022-07-10 17:23:50 +02:00
6995b25518 Injected add_translation function from translation package 2022-07-10 17:17:45 +02:00
e4f843829f Added logic to load translations and to translate texts 2022-06-29 20:03:13 +02:00
39b6ca790c Added test project 2022-06-29 19:05:12 +02:00
4c8d7a8031 Added translation project 2022-06-29 19:04:01 +02:00
6d75bc433e Merge pull request '2022.6' (#88) from 2022.6 into master
Reviewed-on: #88
2022-06-29 17:50:06 +02:00
8bb7fbd1c4 Merge remote-tracking branch 'origin/2022.6' into 2022.6 2022-06-29 17:47:04 +02:00
ad03e655e9 Build Release 2022.6.0 2022-06-29 17:46:59 +02:00
61d3974a47 Build Release 2022.6.0 2022-06-29 17:46:01 +02:00
3d852c87e2 Improved docs 2022-06-29 17:44:10 +02:00
0e46528f32 Merge pull request '2022.6.8 - Dokumentation' (#87) from 2022.6.8 into 2022.6
Reviewed-on: #87
Closes #56
2022-06-29 17:42:33 +02:00
bb8fa1f6a8 Improved readme 2022-06-29 17:40:05 +02:00
9fdaa810c0 Build 2022.6.0rc2 2022-06-27 21:48:15 +02:00
4083ac0c14 Build docs and added tutorial files 2022-06-27 21:42:34 +02:00
740 changed files with 21762 additions and 17078 deletions

307
.vscode/launch.json vendored
View File

@@ -1,307 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Aktuelle Datei",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "CPL: main test",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/cpl_core/src/tests/custom/general/src/general",
"program": "main.py",
"console": "integratedTerminal",
"args": [
"--customer=sh-edraft.de"
],
"env": {
"CPL_NAME": "CPL_Dev_Test",
"PYTHON_ENVIRONMENT": "development"
}
},
{
"name": "CPL: console test",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/console",
"program": "main.py",
"console": "integratedTerminal",
},
{
"name": "CPL: database test",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/database/src",
"program": "main.py",
"console": "integratedTerminal",
"env": {
"PYTHON_ENVIRONMENT": "development",
"PYTHONPATH": "${workspaceFolder}/src/:$PYTHONPATH"
}
},
{
"name": "CLI",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": []
},
{
"name": "CLI: add",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"add",
"testing",
"general",
]
},
{
"name": "CLI: remove",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"remove",
"testing",
]
},
{
"name": "CLI: build",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"build"
]
},
{
"name": "CLI: generate abc",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"a",
"testName"
]
},
{
"name": "CLI: generate class",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"c",
"src/hfs/fsnfiu/fiush/fisbf/testName"
]
},
{
"name": "CLI: generate enum",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"e",
"testName"
]
},
{
"name": "CLI: generate service",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"s",
"testName"
]
},
{
"name": "CLI: generate settings",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"st",
"testName"
]
},
{
"name": "CLI: generate thread",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"generate",
"t",
"testName"
]
},
{
"name": "CLI: hello-world",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"hello-world",
]
},
{
"name": "CLI: help",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"help",
]
},
{
"name": "CLI: install discord.py",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"install",
"discord.py",
],
"env": {
"GISMO_ENVIRONMENT": "development",
"PYTHONPATH": "${workspaceFolder}/src/:$PYTHONPATH"
}
},
{
"name": "CLI: install local",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"install",
]
},
{
"name": "CLI: new console",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"new",
"console",
"HelloWorld"
]
},
{
"name": "CLI: new library",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"new",
"library",
"HelloWorldLib"
]
},
{
"name": "CLI: publish",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"publish",
]
},
{
"name": "CLI: start",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"start",
],
"env": {
"PYTHONPATH": "${workspaceFolder}/src/:${workspaceFolder}/src/cpl_cli/"
}
},
{
"name": "CLI: uninstall discord.py",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"uninstall",
"discord.py",
]
},
{
"name": "CLI: start",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/src/tests/custom/general",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"update",
]
},
{
"name": "CLI: version",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/cpl_cli/main.py",
"console": "integratedTerminal",
"args": [
"version",
]
},
]
}

23
.vscode/settings.json vendored
View File

@@ -1,23 +0,0 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#93e6fc",
"activityBar.activeBorder": "#fa45d4",
"activityBar.background": "#93e6fc",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#fa45d4",
"activityBarBadge.foreground": "#15202b",
"sash.hoverBorder": "#93e6fc",
"statusBar.background": "#61dafb",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#2fcefa",
"statusBarItem.remoteBackground": "#61dafb",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#61dafb",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#61dafb99",
"titleBar.inactiveForeground": "#15202b99"
},
"peacock.color": "#61dafb",
"python.pythonPath": "cpl-env/bin/python3.9",
}

View File

@@ -13,6 +13,7 @@
## Table of Contents
<!-- TABLE OF CONTENTS -->
<ol>
<li><a href="#Features">Features</a></li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
@@ -26,6 +27,52 @@
<li><a href="#contact">Contact</a></li>
</ol>
## Features
<!-- FEATURE OVERVIEW -->
- Expandle
- Application base
- Standardized application classes
- Application object builder
- Application extension classes
- Startup classes
- Startup extension classes
- Configuration
- Configure via object mapped JSON
- Console argument handling
- Console class for in and output
- Banner
- Spinner
- Options (menu)
- Table
- Write
- Write_at
- Write_line
- Write_line_at
- Dependency injection
- Service lifetimes: singleton, scoped and transient
- Providing of application environment
- Environment (development, staging, testing, production)
- Appname
- Customer
- Hostname
- Runtime directory
- Working directory
- Logging
- Standardized logger
- Log-level (FATAL, ERROR, WARN, INFO, DEBUG & TRACE)
- Mail handling
- Send mails
- Pipe classes
- Convert input
- Utils
- Credential manager
- Encryption via BASE64
- PIP wrapper class based on subprocess
- Run pip commands
- String converter to different variants
- to_lower_case
- to_camel_case
- ...
<!-- GETTING STARTED -->
## Getting Started

View File

@@ -2,16 +2,19 @@
"WorkspaceSettings": {
"DefaultProject": "cpl-cli",
"Projects": {
"cpl-core": "src/cpl_core/cpl-core.json",
"cpl-cli": "src/cpl_cli/cpl-cli.json",
"cpl-core": "src/cpl_core/cpl-core.json",
"cpl-discord": "src/cpl_discord/cpl-discord.json",
"cpl-query": "src/cpl_query/cpl-query.json",
"cpl-translation": "src/cpl_translation/cpl-translation.json",
"set-version": "tools/set_version/set-version.json",
"set-pip-urls": "tools/set_pip_urls/set-pip-urls.json",
"unittests": "unittests/unittests/unittests.json",
"unittests_cli": "unittests/unittests_cli/unittests_cli.json",
"unittests_core": "unittests/unittests_core/unittests_core.json",
"unittests_query": "unittests/unittests_query/unittests_query.json",
"unittests_shared": "unittests/unittests_shared/unittests_shared.json"
"unittests_shared": "unittests/unittests_shared/unittests_shared.json",
"unittests_translation": "unittests/unittests_translation/unittests_translation.json"
},
"Scripts": {
"hello-world": "echo 'Hello World'",
@@ -22,74 +25,125 @@
"spu": "cpl set-pip-urls",
"set-pip-urls": "cpl run set-pip-urls $ARGS; echo '';",
"docs-build": "echo 'Build Documentation'; cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; sphinx-apidoc -o source/ ../src/cpl_query; make clean; make html; rm source/cpl_query.tests.rst;",
"db": "cpl build-docs",
"docs-build": "echo 'Build Documentation'; cpl db-core; cpl db-discord; cpl db-query; cpl db-translation; cd docs/; make clean; make html; # rm source/cpl_query.tests.rst;",
"db-core": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; cd ../",
"db-discord": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_discord; cd ../",
"db-query": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_query; cd ../",
"db-translation": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_translation; cd ../",
"db": "cpl docs-build",
"docs-open": "xdg-open $PWD/docs/build/html/index.html &",
"do": "cpl docs-open",
"test": "cpl run unittests",
"pre-build-all": "cpl sv $ARGS; cpl spu $ARGS;",
"build-all": "cpl build-cli; cpl build-core; cpl build-query; cpl build-set-pip-urls; cpl build-set-version",
"build-all": "cpl build-cli; cpl build-core; cpl build-discord; cpl build-query; cpl build-translation; cpl build-set-pip-urls; cpl build-set-version",
"ba": "cpl build-all $ARGS",
"build-cli": "echo 'Build cpl-cli'; cd ./src/cpl_cli; cpl build; cd ../../;",
"build-core": "echo 'Build cpl-core'; cd ./src/cpl_core; cpl build; cd ../../;",
"build-discord": "echo 'Build cpl-discord'; cd ./src/cpl_discord; cpl build; cd ../../;",
"build-query": "echo 'Build cpl-query'; cd ./src/cpl_query; cpl build; cd ../../;",
"build-translation": "echo 'Build cpl-translation'; cd ./src/cpl_translation; cpl build; cd ../../;",
"build-set-pip-urls": "echo 'Build set-pip-urls'; cd ./tools/set_pip_urls; cpl build; cd ../../;",
"build-set-version": "echo 'Build set-version'; cd ./tools/set_version; cpl build; cd ../../;",
"pre-publish-all": "cpl sv $ARGS; cpl spu $ARGS;",
"publish-all": "cpl publish-cli; cpl publish-core; cpl publish-query;",
"publish-all": "cpl publish-cli; cpl publish-core; cpl publish-discord; cpl publish-query; cpl publish-translation;",
"pa": "cpl build-all $ARGS",
"publish-cli": "echo 'Publish cpl-cli'; cd ./src/cpl_cli; cpl publish; cd ../../;",
"publish-core": "echo 'Publish cpl-core'; cd ./src/cpl_core; cpl publish; cd ../../;",
"publish-query": "echo 'Publish cpl_query'; cd ./src/cpl_query; cpl publish; cd ../../;",
"publish-discord": "echo 'Publish cpl-discord'; cd ./src/cpl_discord; cpl publish; cd ../../;",
"publish-query": "echo 'Publish cpl-query'; cd ./src/cpl_query; cpl publish; cd ../../;",
"publish-translation": "echo 'Publish cpl-translation'; cd ./src/cpl_translation; cpl publish; cd ../../;",
"upload-prod-cli": "echo 'PROD Upload cpl-cli'; cpl upl-prod-cli;",
"upl-prod-cli": "twine upload -r pip.sh-edraft.de dist/cpl-cli/publish/setup/*",
"upload-prod-core": "echo 'PROD Upload cpl-core'; cpl upl-prod-core;",
"upl-prod-core": "twine upload -r pip.sh-edraft.de dist/cpl-core/publish/setup/*",
"upload-prod-query": "echo 'PROD Upload cpl_query'; cpl upl-prod-query;",
"upload-prod-discord": "echo 'PROD Upload cpl-discord'; cpl upl-prod-discord;",
"upl-prod-discord": "twine upload -r pip.sh-edraft.de dist/cpl-discord/publish/setup/*",
"upload-prod-query": "echo 'PROD Upload cpl-query'; cpl upl-prod-query;",
"upl-prod-query": "twine upload -r pip.sh-edraft.de dist/cpl-query/publish/setup/*",
"upload-prod-translation": "echo 'PROD Upload cpl-translation'; cpl upl-prod-translation;",
"upl-prod-translation": "twine upload -r pip.sh-edraft.de dist/cpl-translation/publish/setup/*",
"upload-exp-cli": "echo 'EXP Upload cpl-cli'; cpl upl-exp-cli;",
"upl-exp-cli": "twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/*",
"upload-exp-core": "echo 'EXP Upload cpl-core'; cpl upl-exp-core;",
"upl-exp-core": "twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/*",
"upload-exp-query": "echo 'EXP Upload cpl_query'; cpl upl-exp-query;",
"upload-exp-discord": "echo 'EXP Upload cpl-discord'; cpl upl-exp-discord;",
"upl-exp-discord": "twine upload -r pip-exp.sh-edraft.de dist/cpl-discord/publish/setup/*",
"upload-exp-query": "echo 'EXP Upload cpl-query'; cpl upl-exp-query;",
"upl-exp-query": "twine upload -r pip-exp.sh-edraft.de dist/cpl-query/publish/setup/*",
"upload-exp-translation": "echo 'EXP Upload cpl-translation'; cpl upl-exp-translation;",
"upl-exp-translation": "twine upload -r pip-exp.sh-edraft.de dist/cpl-translation/publish/setup/*",
"upload-dev-cli": "echo 'DEV Upload cpl-cli'; cpl upl-dev-cli;",
"upl-dev-cli": "twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*",
"upload-dev-core": "echo 'DEV Upload cpl-core'; cpl upl-dev-core;",
"upl-dev-core": "twine upload -r pip-dev.sh-edraft.de dist/cpl-core/publish/setup/*",
"upload-dev-query": "echo 'DEV Upload cpl_query'; cpl upl-dev-query;",
"upload-dev-discord": "echo 'DEV Upload cpl-discord'; cpl upl-dev-discord;",
"upl-dev-discord": "twine upload -r pip-dev.sh-edraft.de dist/cpl-discord/publish/setup/*",
"upload-dev-query": "echo 'DEV Upload cpl-query'; cpl upl-dev-query;",
"upl-dev-query": "twine upload -r pip-dev.sh-edraft.de dist/cpl-query/publish/setup/*",
"upload-dev-translation": "echo 'DEV Upload cpl-translation'; cpl upl-dev-translation;",
"upl-dev-translation": "twine upload -r pip-dev.sh-edraft.de dist/cpl-translation/publish/setup/*",
"pre-deploy-prod": "cpl sv $ARGS; cpl spu --environment=production;",
"deploy-prod": "cpl deploy-prod-cli; cpl deploy-prod-core; cpl deploy-prod-query;",
"deploy-prod": "cpl deploy-prod-cli; cpl deploy-prod-core; cpl deploy-prod-discord; cpl deploy-prod-query; cpl deploy-prod-translation;",
"dp": "cpl deploy-prod $ARGS",
"deploy-prod-cli": "cpl publish-cli; cpl upload-prod-cli",
"deploy-prod-core": "cpl publish-core; cpl upload-prod-core",
"deploy-prod-query": "cpl publish-query; cpl upload-prod-query",
"deploy-prod-discord": "cpl publish-discord; cpl upload-prod-discord",
"deploy-prod-translation": "cpl publish-translation; cpl upload-prod-translation",
"pre-deploy-exp": "cpl sv $ARGS; cpl spu --environment=staging;",
"deploy-exp": "cpl deploy-exp-cli; cpl deploy-exp-core; cpl deploy-exp-query;",
"deploy-exp": "cpl deploy-exp-cli; cpl deploy-exp-core; cpl deploy-exp-discord; cpl deploy-exp-query; cpl deploy-exp-translation;",
"de": "cpl deploy-exp $ARGS",
"deploy-exp-cli": "cpl publish-cli; cpl upload-exp-cli",
"deploy-exp-core": "cpl publish-core; cpl upload-exp-core",
"deploy-exp-discord": "cpl publish-discord; cpl upload-exp-discord",
"deploy-exp-query": "cpl publish-query; cpl upload-exp-query",
"deploy-exp-translation": "cpl publish-translation; cpl upload-exp-translation",
"pre-deploy-dev": "cpl sv $ARGS; cpl spu --environment=development;",
"deploy-dev": "cpl deploy-dev-cli; cpl deploy-dev-core; cpl deploy-dev-query;",
"deploy-dev": "cpl deploy-dev-cli; cpl deploy-dev-core; cpl deploy-dev-discord; cpl deploy-dev-query; cpl deploy-dev-translation;",
"dd": "cpl deploy-dev $ARGS",
"deploy-dev-cli": "cpl publish-cli; cpl upload-dev-cli",
"deploy-dev-core": "cpl publish-core; cpl upload-dev-core",
"deploy-dev-discord": "cpl publish-discord; cpl upload-dev-discord",
"deploy-dev-query": "cpl publish-query; cpl upload-dev-query",
"deploy-dev-translation": "cpl publish-query; cpl upload-dev-translation",
"dev-install": "cpl di-core; cpl di-cli; cpl di-query;",
"dev-install": "cpl di-core; cpl di-cli; cpl di-query; cpl di-translation;",
"di": "cpl dev-install",
"di-core": "pip install cpl-query --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-cli": "pip install cpl-query --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-query": "pip install cpl-query --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de"
"di-core": "pip install cpl-core --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-cli": "pip install cpl-cli --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-discord": "pip install cpl-discord --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-query": "pip install cpl-query --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"di-translation": "pip install cpl-translation --pre --upgrade --extra-index-url https://pip-dev.sh-edraft.de",
"prod-install": "cpl pi-core; cpl pi-cli; cpl pi-query; cpl pi-translation;",
"pi": "cpl prod-install",
"pi-core": "pip install cpl-core --pre --upgrade --extra-index-url https://pip.sh-edraft.de",
"pi-cli": "pip install cpl-cli --pre --upgrade --extra-index-url https://pip.sh-edraft.de",
"pi-discord": "pip install cpl-discord --pre --upgrade --extra-index-url https://pip.sh-edraft.de",
"pi-query": "pip install cpl-query --pre --upgrade --extra-index-url https://pip.sh-edraft.de",
"pi-translation": "pip install cpl-translation --pre --upgrade --extra-index-url https://pip.sh-edraft.de"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cli.run.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_discord.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/tutorials.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8170277cf12e5442e6180427108a8adf
config: 7051b788adc6d655ae340e56640c6925
tags: 645f666f9bcd5a90fca523b33c5a78b7

View File

@@ -4,6 +4,7 @@
- [Description](#description)
- [Arguments](#arguments)
- [Flags](#flags)
Removes a project from workspace.
@@ -19,7 +20,13 @@ If you call the command in a CPL workspace, you can use the project names. Other
## Arguments
| Argument | Description | Value type |
| ------------------------- |:---------------------------------------------------------------:|:----------------:|
| ```<source-project>``` | Name of the project to which the reference has to be added | ```str```
| ```<target-project>``` | Name of the project to be referenced | ```str```
| Argument | Description | Value type |
|------------------------|:----------------------------------------------------------:|:----------:|
| ```<source-project>``` | Name of the project to which the reference has to be added | ```str``` |
| ```<target-project>``` | Name of the project to be referenced | ```str``` |
## Flags
| Argument | Description |
|------------------|:------------------------------------------:|
| ```--simulate``` | Specifies whether the command is simulated |

View File

@@ -18,18 +18,22 @@ Generates files based on a schematic.
## Arguments
| Argument | Description | Value type |
| ----------------- |:---------------------------------:|:-------------:|
| ```<schematic>``` | The schematic to generate. | ```str``` |
| ```<name>``` | The name of the generated file. | ```str``` |
| Argument | Description | Value type |
|-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------:|
| ```<schematic>``` | The schematic to generate. | ```str``` |
| ```<name>``` | The name of the generated file. | ```str``` |
| ```--base``` | First element of path will be used as base-path not 'src'. For example: 'cpl g c test/Test' will be created at ```src/test/``` with --base it would be ```test/``` | ```str``` |
## Schematics
| Schematic | Description | Arguments |
| ----------------- |:-------------------:|:----------------:|
| ```abc``` | Abstract base class | ```<name>```
| ```class``` | Class | ```<name>```
| ```enum``` | Enum class | ```<name>```
| ```service``` | Service class | ```<name>```
| ```settings``` | [Configmodel](cpl_core.configuration) | ```<name>```
| ```thread``` | Thread class | ```<name>```
| Schematic | Description | Arguments |
|-----------------|:-------------------------------------:|:------------:|
| ```abc``` | Abstract base class | ```<name>``` |
| ```class``` | Class | ```<name>``` |
| ```enum``` | Enum class | ```<name>``` |
| ```pipe``` | Pipe class | ```<name>``` |
| ```service``` | Service class | ```<name>``` |
| ```settings``` | [Configmodel](cpl_core.configuration) | ```<name>``` |
| ```test``` | Test class | ```<name>``` |
| ```thread``` | Thread class | ```<name>``` |
| ```validator``` | Validator class | ```<name>``` |

View File

@@ -1,9 +1,9 @@
# cpl help
<!-- ## Contents
## Contents
- [Description](#description) -->
<!-- - [Arguments](#arguments) -->
- [Description](#description)
- [Arguments](#arguments)
Lists available command and their short descriptions.

View File

@@ -18,6 +18,14 @@ Without given package it will install the depedencies of the CPL project your in
## Arguments
| Argument | Description | Value type |
| ----------------- |:-----------------------------:|:-------------:|
| ```<package>``` | The package to install | ```str``` |
| Argument | Description | Value type |
|-----------------|:----------------------:|:----------:|
| ```<package>``` | The package to install | ```str``` |
## Flags
| Argument | Description |
|------------------|:----------------------------------------------------:|
| ```--dev``` | Specifies whether the command is in development mode |
| ```--virtual``` | Specifies whether the command is virtual mode |
| ```--simulate``` | Specifies whether the command is simulated |

View File

@@ -18,14 +18,26 @@ Generates a workspace and initial project or add a project to workspace.
If the command is running in a CPL workspace, it will add the new project to the workspace.
| Argument | Description | Value type |
| ----------------- |:-----------------------------------------------------:|:-------------:|
| ```<type>``` | The type of the project, see [types](#project-types) | ```str``` |
| ```<name>``` | The name of the project | ```str``` |
| Argument | Description | Value type |
|--------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------:|
| ```<type>``` | The type of the project, see [types](#project-types) | ```str``` |
| ```<name>``` | The name of the project | ```str``` |
| ```--base``` | First element of path will be used as base-path not 'src'. For example: 'cpl g c test/Test' will be created at ```src/test/``` with --base it would be ```test/``` | ```str``` |
## Project types
| Project type | Description |
| ----------------- |:-----------------------------:|
| ```console``` | A simple console application |
| ```library``` | A package |
| Project type | Description |
|---------------|:----------------------------:|
| ```console``` | A simple console application |
| ```library``` | A package |
## Flags
| Argument | Description |
|---------------------------|:-------------------------------------------:|
| ```--async``` | Specifies whether async is used |
| ```--application-base``` | Specifies whether application base is used |
| ```--startup``` | Specifies whether startup is used |
| ```--service-providing``` | Specifies whether service-providing is used |
| ```--nothing``` | Specifies whether nothing is used |
| ```--venv``` | Specifies whether venv is used |

View File

@@ -19,6 +19,12 @@ If you call the command in a CPL workspace, you can use the project names. Other
## Arguments
| Argument | Description | Value type |
| ------------------------- |:-------------------------------------:|:----------------:|
| ```<project>``` | The name of the project to delete | ```str```
| Argument | Description | Value type |
|-----------------|:---------------------------------:|:----------:|
| ```<project>``` | The name of the project to delete | ```str``` |
## Flags
| Argument | Description |
|------------------|:----------------------------------------------------:|
| ```--simulate``` | Specifies whether the command is simulated |

12
docs/build/html/_sources/cli.run.md.txt vendored Normal file
View File

@@ -0,0 +1,12 @@
# cpl run
Starts your application once.
cpl **run** <br>
cpl **r** <br>
cpl **R**
| Argument | Description | Value type |
|-----------------|:----------------------------------------------------------------------------------------------------:|:----------:|
| ```<project>``` | Optional parameter to specify which project to start, if not set default project will be started. | ```str``` |
| ```--dev``` | To run the project from source and not from dist after build. | ```str``` |

View File

@@ -5,3 +5,7 @@ Starts your application, restarting on file changes.
cpl **start** <br>
cpl **s** <br>
cpl **S**
| Argument | Description | Value type |
|-----------------|:----------------------------------------------------------------------------------------------------:|:----------:|
| ```--dev``` | To run the project from source and not from dist after build. | ```str``` |

View File

@@ -17,6 +17,14 @@ Uninstall given package from project via pip.
## Arguments
| Argument | Description | Value type |
| ----------------- |:-----------------------------:|:-------------:|
| ```<package>``` | The package to uninstall | ```str``` |
| Argument | Description | Value type |
|-----------------|:------------------------:|:----------:|
| ```<package>``` | The package to uninstall | ```str``` |
## Flags
| Argument | Description |
|------------------|:----------------------------------------------------:|
| ```--dev``` | Specifies whether the command is in development mode |
| ```--virtual``` | Specifies whether the command is virtual mode |
| ```--simulate``` | Specifies whether the command is simulated |

View File

@@ -5,3 +5,9 @@ Updates the CPL and project dependencies.
cpl **update** <br>
cpl **u** <br>
cpl **U**
## Flags
| Argument | Description |
|------------------|:----------------------------------------------------:|
| ```--simulate``` | Specifies whether the command is simulated |

View File

@@ -44,7 +44,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add. Discussing the design upfront helps to ensure that we're ready to accept your work.
3. Fork the sh-edraft.de/sh_cpl repo.
3. Fork the sh-edraft.de/cpl repo.
4. In your forked repository, make your changes in a new git branch:
@@ -70,7 +70,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
git push origin my-fix-branch
```
8. In Gitea, send a pull request to sh_cpl:master
8. In Gitea, send a pull request to cpl:master
### Reviewing a Pull Request
@@ -104,7 +104,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
## License
By contributing, you agree that your contributions will be licensed under its MIT License.
See [LICENSE](https://git.sh-edraft.de/sh-edraft.de/sh_cpl/src/branch/master/LICENSE)
See [LICENSE](https://git.sh-edraft.de/sh-edraft.de/cpl/src/branch/master/LICENSE)
<!-- LINKS -->
[gitea-repo]: https://git.sh-edraft.de/sh-edraft.de/sh_cpl/

View File

@@ -1,4 +1,4 @@
CLI Reference
CLI reference
=============
.. toctree::

View File

@@ -7,8 +7,7 @@ cpl_core.database
cpl_core.database.connection
cpl_core.database.context
Submodules
----------
cpl_core.database.database\_model
-----------------------------------

View File

@@ -0,0 +1,68 @@
cpl\_core.pipes
=======================
cpl\_core.pipes.bool\_pipe
---------------------------------
.. automodule:: cpl_core.pipes.bool_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.first\_char\_to\_lower\_pipe
---------------------------------------------------
.. automodule:: cpl_core.pipes.first_char_to_lower_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.first\_to\_upper\_pipe
---------------------------------------------
.. automodule:: cpl_core.pipes.first_to_upper_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.ip\_address\_pipe
----------------------------------------
.. automodule:: cpl_core.pipes.ip_address_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.pipe\_abc
--------------------------------
.. automodule:: cpl_core.pipes.pipe_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.to\_camel\_case\_pipe
--------------------------------------------
.. automodule:: cpl_core.pipes.to_camel_case_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.to\_snake\_case\_pipe
--------------------------------------------
.. automodule:: cpl_core.pipes.to_snake_case_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_core.pipes.version\_pipe
------------------------------------
.. automodule:: cpl_core.pipes.version_pipe
:members:
:undoc-members:
:show-inheritance:

View File

@@ -1,4 +1,4 @@
API Reference
API reference
===========
.. toctree::
@@ -12,5 +12,6 @@ API Reference
cpl_core.environment
cpl_core.logging
cpl_core.mailing
cpl_core.pipes
cpl_core.time
cpl_core.utils

View File

@@ -0,0 +1,12 @@
cpl\_discord.application
================================
cpl\_discord.application.discord\_bot\_application\_abc
--------------------------------------------------------------
.. automodule:: cpl_discord.application.discord_bot_application_abc
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,20 @@
cpl\_discord.command
============================
cpl\_discord.command.discord\_command\_abc
-------------------------------------------------
.. automodule:: cpl_discord.command.discord_command_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.command.discord\_commands\_meta
---------------------------------------------------
.. automodule:: cpl_discord.command.discord_commands_meta
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,12 @@
cpl\_discord.configuration
==================================
cpl\_discord.configuration.discord\_bot\_settings
--------------------------------------------------------
.. automodule:: cpl_discord.configuration.discord_bot_settings
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,68 @@
cpl\_discord.container
==============================
cpl\_discord.container.category\_channel
-----------------------------------------------
.. automodule:: cpl_discord.container.category_channel
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.container
---------------------------------------
.. automodule:: cpl_discord.container.container
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.guild
-----------------------------------
.. automodule:: cpl_discord.container.guild
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.member
------------------------------------
.. automodule:: cpl_discord.container.member
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.role
----------------------------------
.. automodule:: cpl_discord.container.role
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.text\_channel
-------------------------------------------
.. automodule:: cpl_discord.container.text_channel
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.thread
------------------------------------
.. automodule:: cpl_discord.container.thread
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.container.voice\_channel
--------------------------------------------
.. automodule:: cpl_discord.container.voice_channel
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,412 @@
cpl\_discord.events
===========================
cpl\_discord.events.on\_bulk\_message\_delete\_abc
---------------------------------------------------------
.. automodule:: cpl_discord.events.on_bulk_message_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_command\_abc
-------------------------------------------
.. automodule:: cpl_discord.events.on_command_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_command\_completion\_abc
-------------------------------------------------------
.. automodule:: cpl_discord.events.on_command_completion_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_command\_error\_abc
--------------------------------------------------
.. automodule:: cpl_discord.events.on_command_error_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_connect\_abc
-------------------------------------------
.. automodule:: cpl_discord.events.on_connect_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_disconnect\_abc
----------------------------------------------
.. automodule:: cpl_discord.events.on_disconnect_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_error\_abc
-----------------------------------------
.. automodule:: cpl_discord.events.on_error_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_group\_join\_abc
-----------------------------------------------
.. automodule:: cpl_discord.events.on_group_join_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_group\_remove\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_group_remove_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_available\_abc
----------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_available_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_channel\_create\_abc
----------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_channel_create_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_channel\_delete\_abc
----------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_channel_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_channel\_pins\_update\_abc
----------------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_channel_pins_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_channel\_update\_abc
----------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_channel_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_emojis\_update\_abc
---------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_emojis_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_integrations\_update\_abc
---------------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_integrations_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_join\_abc
-----------------------------------------------
.. automodule:: cpl_discord.events.on_guild_join_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_remove\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_remove_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_role\_create\_abc
-------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_role_create_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_role\_delete\_abc
-------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_role_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_role\_update\_abc
-------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_role_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_unavailable\_abc
------------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_unavailable_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_guild\_update\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_guild_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_invite\_create\_abc
--------------------------------------------------
.. automodule:: cpl_discord.events.on_invite_create_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_invite\_delete\_abc
--------------------------------------------------
.. automodule:: cpl_discord.events.on_invite_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_member\_ban\_abc
-----------------------------------------------
.. automodule:: cpl_discord.events.on_member_ban_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_member\_join\_abc
------------------------------------------------
.. automodule:: cpl_discord.events.on_member_join_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_member\_remove\_abc
--------------------------------------------------
.. automodule:: cpl_discord.events.on_member_remove_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_member\_unban\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_member_unban_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_member\_update\_abc
--------------------------------------------------
.. automodule:: cpl_discord.events.on_member_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_message\_abc
-------------------------------------------
.. automodule:: cpl_discord.events.on_message_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_message\_delete\_abc
---------------------------------------------------
.. automodule:: cpl_discord.events.on_message_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_message\_edit\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_message_edit_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_private\_channel\_create\_abc
------------------------------------------------------------
.. automodule:: cpl_discord.events.on_private_channel_create_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_private\_channel\_delete\_abc
------------------------------------------------------------
.. automodule:: cpl_discord.events.on_private_channel_delete_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_private\_channel\_pins\_update\_abc
------------------------------------------------------------------
.. automodule:: cpl_discord.events.on_private_channel_pins_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_private\_channel\_update\_abc
------------------------------------------------------------
.. automodule:: cpl_discord.events.on_private_channel_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_raw\_reaction\_add\_abc
------------------------------------------------------
.. automodule:: cpl_discord.events.on_raw_reaction_add_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_raw\_reaction\_clear\_abc
--------------------------------------------------------
.. automodule:: cpl_discord.events.on_raw_reaction_clear_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_raw\_reaction\_clear\_emoji\_abc
---------------------------------------------------------------
.. automodule:: cpl_discord.events.on_raw_reaction_clear_emoji_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_raw\_reaction\_remove\_abc
---------------------------------------------------------
.. automodule:: cpl_discord.events.on_raw_reaction_remove_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_reaction\_add\_abc
-------------------------------------------------
.. automodule:: cpl_discord.events.on_reaction_add_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_reaction\_clear\_abc
---------------------------------------------------
.. automodule:: cpl_discord.events.on_reaction_clear_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_reaction\_clear\_emoji\_abc
----------------------------------------------------------
.. automodule:: cpl_discord.events.on_reaction_clear_emoji_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_reaction\_remove\_abc
----------------------------------------------------
.. automodule:: cpl_discord.events.on_reaction_remove_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_ready\_abc
-----------------------------------------
.. automodule:: cpl_discord.events.on_ready_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_resume\_abc
------------------------------------------
.. automodule:: cpl_discord.events.on_resume_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_typing\_abc
------------------------------------------
.. automodule:: cpl_discord.events.on_typing_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_user\_update\_abc
------------------------------------------------
.. automodule:: cpl_discord.events.on_user_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_voice\_state\_update\_abc
--------------------------------------------------------
.. automodule:: cpl_discord.events.on_voice_state_update_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.events.on\_webhooks\_update\_abc
----------------------------------------------------
.. automodule:: cpl_discord.events.on_webhooks_update_abc
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,12 @@
cpl\_discord.helper
===========================
cpl\_discord.helper.to\_containers\_converter
----------------------------------------------------
.. automodule:: cpl_discord.helper.to_containers_converter
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,13 @@
Discord reference
====================
.. toctree::
:maxdepth: 4
cpl_discord.application
cpl_discord.command
cpl_discord.configuration
cpl_discord.container
cpl_discord.events
cpl_discord.helper
cpl_discord.service

View File

@@ -0,0 +1,60 @@
cpl\_discord.service
============================
cpl\_discord.service.command\_error\_handler\_service
------------------------------------------------------------
.. automodule:: cpl_discord.service.command_error_handler_service
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_bot\_service
-------------------------------------------------
.. automodule:: cpl_discord.service.discord_bot_service
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_bot\_service\_abc
------------------------------------------------------
.. automodule:: cpl_discord.service.discord_bot_service_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_collection
-----------------------------------------------
.. automodule:: cpl_discord.service.discord_collection
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_collection\_abc
----------------------------------------------------
.. automodule:: cpl_discord.service.discord_collection_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_service
--------------------------------------------
.. automodule:: cpl_discord.service.discord_service
:members:
:undoc-members:
:show-inheritance:
cpl\_discord.service.discord\_service\_abc
-------------------------------------------------
.. automodule:: cpl_discord.service.discord_service_abc
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,52 @@
cpl\_query.base
=======================
cpl\_query.base.default\_lambda
--------------------------------------
.. automodule:: cpl_query.base.default_lambda
:members:
:undoc-members:
:show-inheritance:
cpl\_query.base.ordered\_queryable
-----------------------------------------
.. automodule:: cpl_query.base.ordered_queryable
:members:
:undoc-members:
:show-inheritance:
cpl\_query.base.ordered\_queryable\_abc
----------------------------------------------
.. automodule:: cpl_query.base.ordered_queryable_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_query.base.queryable\_abc
-------------------------------------
.. automodule:: cpl_query.base.queryable_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_query.base.sequence\_abc
------------------------------------
.. automodule:: cpl_query.base.sequence_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_query.base.sequence\_values
---------------------------------------
.. automodule:: cpl_query.base.sequence_values
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,20 @@
cpl\_query.enumerable
=============================
cpl\_query.enumerable.enumerable
---------------------------------------
.. automodule:: cpl_query.enumerable.enumerable
:members:
:undoc-members:
:show-inheritance:
cpl\_query.enumerable.enumerable\_abc
--------------------------------------------
.. automodule:: cpl_query.enumerable.enumerable_abc
:members:
:undoc-members:
:show-inheritance:

View File

@@ -1,10 +0,0 @@
cpl_query.exceptions
=================================
cpl_query.exceptions
----------------------------------------------------
.. automodule:: cpl_query.exceptions
:members:
:undoc-members:
:show-inheritance:

View File

@@ -1,42 +1,12 @@
cpl_query.extension
=================================
cpl\_query.extension
============================
cpl_query.extension.iterable_abc
----------------------------------------------------
.. automodule:: cpl_query.extension.iterable_abc
:members:
:undoc-members:
:show-inheritance:
cpl_query.extension.iterable
----------------------------------------------------
.. automodule:: cpl_query.extension.iterable
:members:
:undoc-members:
:show-inheritance:
cpl_query.extension.list
----------------------------------------------------
cpl\_query.extension.list
--------------------------------
.. automodule:: cpl_query.extension.list
:members:
:undoc-members:
:show-inheritance:
cpl_query.extension.ordered_iterable_abc
----------------------------------------------------
.. automodule:: cpl_query.extension.ordered_iterable_abc
:members:
:undoc-members:
:show-inheritance:
cpl_query.extension.ordered_iterable
----------------------------------------------------
.. automodule:: cpl_query.extension.ordered_iterable
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,20 @@
cpl\_query.iterable
===========================
cpl\_query.iterable.iterable
-----------------------------------
.. automodule:: cpl_query.iterable.iterable
:members:
:undoc-members:
:show-inheritance:
cpl\_query.iterable.iterable\_abc
----------------------------------------
.. automodule:: cpl_query.iterable.iterable_abc
:members:
:undoc-members:
:show-inheritance:

View File

@@ -1,8 +1,10 @@
Query Reference
Query reference
===========
.. toctree::
:maxdepth: 4
cpl_query.extension
cpl_query.exceptions
cpl_query.base
cpl_query.enumerable
cpl_query.extension
cpl_query.iterable

View File

@@ -1,45 +0,0 @@
cpl\_query.tests package
========================
Submodules
----------
cpl\_query.tests.iterable\_test module
--------------------------------------
.. automodule:: cpl_query.tests.iterable_test
:members:
:undoc-members:
:show-inheritance:
cpl\_query.tests.models module
------------------------------
.. automodule:: cpl_query.tests.models
:members:
:undoc-members:
:show-inheritance:
cpl\_query.tests.query\_test module
-----------------------------------
.. automodule:: cpl_query.tests.query_test
:members:
:undoc-members:
:show-inheritance:
cpl\_query.tests.tester module
------------------------------
.. automodule:: cpl_query.tests.tester
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: cpl_query.tests
:members:
:undoc-members:
:show-inheritance:

View File

@@ -0,0 +1,34 @@
Translation reference
========================
cpl\_translation.translate\_pipe
---------------------------------------
.. automodule:: cpl_translation.translate_pipe
:members:
:undoc-members:
:show-inheritance:
cpl\_translation.translation\_service
--------------------------------------------
.. automodule:: cpl_translation.translation_service
:members:
:undoc-members:
:show-inheritance:
cpl\_translation.translation\_service\_abc
-------------------------------------------------
.. automodule:: cpl_translation.translation_service_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_translation.translation\_settings
---------------------------------------------
.. automodule:: cpl_translation.translation_settings
:members:
:undoc-members:
:show-inheritance:

View File

@@ -6,4 +6,5 @@ Getting started
quickstart
setup
tutorials

View File

@@ -10,6 +10,72 @@ The Common Python Library (CPL) is a package for python and a development platfo
This CPL docs help you learn, understand and use the package. From your first application to complex apps for enterprises.
Features
--------
- cpl-core
- Expandle
- Application base
- Standardized application classes
- Application object builder
- Application extension classes
- Startup classes
- Startup extension classes
- Configuration
- Configure via object mapped JSON
- Console argument handling
- Console class for in and output
- Banner
- Spinner
- Options (menu)
- Table
- Write
- Write_at
- Write_line
- Write_line_at
- Dependency injection
- Service lifetimes: singleton, scoped and transient
- Providing of application environment
- Environment (development, staging, testing, production)
- Appname
- Customer
- Hostname
- Runtime directory
- Working directory
- Logging
- Standardized logger
- Log-level (FATAL, ERROR, WARN, INFO, DEBUG & TRACE)
- Mail handling
- Send mails
- Pipe classes
- Convert input
- Utils
- Credential manager
- Encryption via BASE64
- PIP wrapper class based on subprocess
- Run pip commands
- String converter to different variants
- to_lower_case
- to_camel_case
- ...
- cpl-cli
- Expandle
- Code generation
- Package managing
- Build & Publishing
- cpl-discord
- Utils for discord.py
- Connector between cpl-core and discord.py
- Prepared services for dependency injection
- cpl-query
- Python list extensions
- Functions for sorting and filtering
- Like linq from C# but in python xD
- cpl-translate
- Generic translations
- Prepared translation service and translate pipe
- Get translation from JSON files key dot.key notation
Manuals
---------
@@ -20,6 +86,9 @@ These pages go into great detail about everything the Library can do.
introduction
getting_started
contributing
cpl_cli
cpl_core
cpl_discord
cpl_query
cpl_translation

Some files were not shown because too many files have changed in this diff Show More