From 5c80cf222235efdc1fafa9f56a35e854da8f7f7b Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 25 Jul 2021 12:24:58 +0200 Subject: [PATCH] Added CPL Query --- cpl-workspace.json | 5 ++--- src/cpl_query/__init__.py | 25 +++++++++++++++++++++ src/cpl_query/cpl_query.json | 43 ++++++++++++++++++++++++++++++++++++ src/cpl_query/main.py | 9 ++++++++ 4 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 src/cpl_query/__init__.py create mode 100644 src/cpl_query/cpl_query.json create mode 100644 src/cpl_query/main.py diff --git a/cpl-workspace.json b/cpl-workspace.json index 5ac236f3..73799eaa 100644 --- a/cpl-workspace.json +++ b/cpl-workspace.json @@ -3,9 +3,8 @@ "DefaultProject": "cpl_cli", "Projects": { "cpl": "src/cpl/cpl.json", - "cpl_cli": "src/cpl_cli/cpl_cli.json" - }, - "Scripts": { + "cpl_cli": "src/cpl_cli/cpl_cli.json", + "cpl_query": "src/cpl_query/cpl_query.json" } } } \ No newline at end of file diff --git a/src/cpl_query/__init__.py b/src/cpl_query/__init__.py new file mode 100644 index 00000000..bf37461c --- /dev/null +++ b/src/cpl_query/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +""" +cpl_query +~~~~~~~~~~~~~~~~~~~ + + + +:copyright: (c) +:license: + +""" + +__title__ = 'cpl_query' +__author__ = '' +__license__ = '' +__copyright__ = 'Copyright (c) ' +__version__ = '0.0.0' + +from collections import namedtuple + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='0', minor='0', micro='0') diff --git a/src/cpl_query/cpl_query.json b/src/cpl_query/cpl_query.json new file mode 100644 index 00000000..1603c0c7 --- /dev/null +++ b/src/cpl_query/cpl_query.json @@ -0,0 +1,43 @@ +{ + "ProjectSettings": { + "Name": "cpl_query", + "Version": { + "Major": "2021", + "Minor": "10", + "Micro": "3" + }, + "Author": "Sven Heidemann", + "AuthorEmail": "sven.heidemann@sh-edraft.de", + "Description": "sh-edraft Common Python library Query", + "LongDescription": "sh-edraft Common Python library Python integrated Queries", + "URL": "https://www.sh-edraft.de", + "CopyrightDate": "2020 - 2021", + "CopyrightName": "sh-edraft.de", + "LicenseName": "MIT", + "LicenseDescription": "MIT, see LICENSE for more details.", + "Dependencies": [ + "sh_cpl==2021.4.0.post1" + ], + "PythonVersion": ">=3.9.2", + "PythonPath": { + "linux": "../../cpl-env/bin/python3.9" + }, + "Classifiers": [] + }, + "BuildSettings": { + "ProjectType": "library", + "SourcePath": "", + "OutputPath": "../../dist", + "Main": "cpl_query.main", + "EntryPoint": "cpl_query", + "IncludePackageData": false, + "Included": [], + "Excluded": [ + "*/__pycache__", + "*/logs", + "*/tests" + ], + "PackageData": {}, + "ProjectReferences": [] + } +} \ No newline at end of file diff --git a/src/cpl_query/main.py b/src/cpl_query/main.py new file mode 100644 index 00000000..42e34771 --- /dev/null +++ b/src/cpl_query/main.py @@ -0,0 +1,9 @@ +from cpl.console import Console + + +def main(): + Console.write_line('Hello World') + + +if __name__ == '__main__': + main()