dtscore 2.3.3__tar.gz → 2.4.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.
Files changed (57) hide show
  1. {dtscore-2.3.3 → dtscore-2.4.0}/LICENSE +0 -0
  2. {dtscore-2.3.3/src/dtscore.egg-info → dtscore-2.4.0}/PKG-INFO +110 -109
  3. {dtscore-2.3.3 → dtscore-2.4.0}/README.md +0 -0
  4. {dtscore-2.3.3 → dtscore-2.4.0}/pyproject.toml +1 -1
  5. {dtscore-2.3.3 → dtscore-2.4.0}/setup.cfg +4 -4
  6. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/__init__.py +0 -0
  7. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/consoleutils.py +0 -0
  8. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/csvnames.py +0 -0
  9. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/dataframenames.py +0 -0
  10. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/domain.py +0 -0
  11. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/events.py +0 -0
  12. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/fileutils.py +0 -0
  13. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/globals.py +0 -0
  14. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/__init__.py +0 -0
  15. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/account_summary_tags.py +0 -0
  16. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/client.py +0 -0
  17. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/comm.py +0 -0
  18. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/commission_report.py +0 -0
  19. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/common.py +0 -0
  20. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/connection.py +0 -0
  21. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/const.py +0 -0
  22. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/contract.py +0 -0
  23. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/decoder.py +0 -0
  24. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/enum_implem.py +0 -0
  25. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/errors.py +0 -0
  26. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/execution.py +0 -0
  27. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/ineligibility_reason.py +0 -0
  28. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/message.py +0 -0
  29. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/news.py +0 -0
  30. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/object_implem.py +0 -0
  31. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/order.py +0 -0
  32. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/order_cancel.py +0 -0
  33. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/order_condition.py +0 -0
  34. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/order_state.py +0 -0
  35. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/orderdecoder.py +0 -0
  36. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/reader.py +0 -0
  37. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/scanner.py +0 -0
  38. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/server_versions.py +0 -0
  39. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/softdollartier.py +0 -0
  40. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/tag_value.py +0 -0
  41. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/ticktype.py +0 -0
  42. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/utils.py +0 -0
  43. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/ibapi/wrapper.py +0 -0
  44. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/logging.py +3 -2
  45. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/queuemanager.py +0 -0
  46. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/schema_enums.py +0 -0
  47. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/tiingo.py +0 -0
  48. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/tws.py +0 -0
  49. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore/utils.py +0 -0
  50. {dtscore-2.3.3 → dtscore-2.4.0/src/dtscore.egg-info}/PKG-INFO +110 -109
  51. {dtscore-2.3.3 → dtscore-2.4.0}/tests/test.py +0 -0
  52. {dtscore-2.3.3 → dtscore-2.4.0}/tests/test2.py +0 -0
  53. {dtscore-2.3.3 → dtscore-2.4.0}/tests/test_ib.py +0 -0
  54. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore.egg-info/SOURCES.txt +0 -0
  55. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore.egg-info/dependency_links.txt +0 -0
  56. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore.egg-info/requires.txt +0 -0
  57. {dtscore-2.3.3 → dtscore-2.4.0}/src/dtscore.egg-info/top_level.txt +0 -0
File without changes
@@ -1,109 +1,110 @@
1
- Metadata-Version: 2.2
2
- Name: dtscore
3
- Version: 2.3.3
4
- Summary: DTS Core Services
5
- Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
- Classifier: Development Status :: 5 - Production/Stable
7
- Classifier: Environment :: Console
8
- Classifier: Intended Audience :: Developers
9
- Classifier: License :: OSI Approved :: BSD License
10
- Classifier: Operating System :: Microsoft :: Windows :: Windows 11
11
- Classifier: Programming Language :: Python :: 3.10
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: importlib-metadata; python_version >= "3.10"
16
- Requires-Dist: requests>=2.31
17
- Requires-Dist: urllib3>=2.0
18
-
19
- # Prep
20
-
21
- See: https://packaging.python.org/en/latest/tutorials/packaging-projects/
22
-
23
- ## Setup Testpypi and Pypi (one time only)
24
-
25
- .pypirc file in $home (c:/users/dgsmith) directory<br/>
26
-
27
- ```
28
- [testpypi]
29
- username = __token__
30
- password = token from test.pypi.org goes here
31
- ```
32
-
33
- ## Project folder structure
34
-
35
- ```
36
- pyexample
37
- ├── src
38
- │ ├── pyexample_USERNAME_HERE
39
- │ │ ├── __init__.py
40
- │ │ ├── module_mpi4py_1.py
41
- │ │ ├── module_numpy_1.py
42
- │ │ └── module_numpy_2.py
43
- │ │-- module2_USERNAME_HERE
44
- │ │ ├── __init__.py
45
- │ │ ├── ...
46
- ├── tests
47
- │ ├── test1.py
48
- ├── .gitignore
49
- ├── LICENSE
50
- ├── pyproject.toml
51
- ├── README.md
52
- ```
53
-
54
- ## Other Steps
55
-
56
- * Create a virtual environment (.venv)
57
- * pip install any dependencies
58
- * pip freeze to create requirements.txt
59
-
60
- ## Tools install
61
-
62
- ```
63
- python -m pip install --upgrade pip
64
- python -m pip install --upgrade build
65
- python -m pip install --upgrade twine
66
- ```
67
-
68
- ## Create pyproject.toml
69
- under project folder create pyproject.toml
70
-
71
- ```
72
- [build-system]
73
- requires = ["setuptools"]
74
- build-backend = "setuptools.build_meta"
75
-
76
- [project]
77
- name = "dtscore_dsmi"
78
- version = "0.0.2"
79
- authors = [
80
- { name="D. Smith", email="dgsmith.hpot@gmail.com" },
81
- ]
82
- description = "DTS Core Services"
83
- readme = "README.md"
84
- requires-python = ">= 3.10"
85
- dependencies = [
86
- 'requests>=2.31',
87
- 'importlib-metadata; python_version>="3.10"',
88
- 'urllib3>=2.0'
89
- ]
90
- classifiers = [
91
- 'Development Status :: 5 - Production/Stable',
92
- 'Environment :: Console',
93
- 'Intended Audience :: Developers',
94
- 'License :: OSI Approved :: BSD License',
95
- 'Operating System :: Microsoft :: Windows :: Windows 11',
96
- 'Programming Language :: Python :: 3.10',
97
- ]
98
- ```
99
-
100
- ## Build the distribution
101
-
102
- * delete any previous versions from the dist folder
103
- * check version number in pyproject.toml
104
-
105
- | Command | Result |
106
- | --- | --- |
107
- | python -m build |builds the application<br/> |
108
- | twine upload --repository testpypi dist/* |upload distribution to testpypi, or<br/> |
109
- | twine upload dist/* |upload distribution to pypi |
1
+ Metadata-Version: 2.4
2
+ Name: dtscore
3
+ Version: 2.4.0
4
+ Summary: DTS Core Services
5
+ Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
+ Classifier: Development Status :: 5 - Production/Stable
7
+ Classifier: Environment :: Console
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: importlib-metadata; python_version >= "3.10"
16
+ Requires-Dist: requests>=2.31
17
+ Requires-Dist: urllib3>=2.0
18
+ Dynamic: license-file
19
+
20
+ # Prep
21
+
22
+ See: https://packaging.python.org/en/latest/tutorials/packaging-projects/
23
+
24
+ ## Setup Testpypi and Pypi (one time only)
25
+
26
+ .pypirc file in $home (c:/users/dgsmith) directory<br/>
27
+
28
+ ```
29
+ [testpypi]
30
+ username = __token__
31
+ password = token from test.pypi.org goes here
32
+ ```
33
+
34
+ ## Project folder structure
35
+
36
+ ```
37
+ pyexample
38
+ ├── src
39
+ │ ├── pyexample_USERNAME_HERE
40
+ │ │ ├── __init__.py
41
+ │ │ ├── module_mpi4py_1.py
42
+ │ │ ├── module_numpy_1.py
43
+ │ │ └── module_numpy_2.py
44
+ │ │-- module2_USERNAME_HERE
45
+ │ │ ├── __init__.py
46
+ │ │ ├── ...
47
+ ├── tests
48
+ │ ├── test1.py
49
+ ├── .gitignore
50
+ ├── LICENSE
51
+ ├── pyproject.toml
52
+ ├── README.md
53
+ ```
54
+
55
+ ## Other Steps
56
+
57
+ * Create a virtual environment (.venv)
58
+ * pip install any dependencies
59
+ * pip freeze to create requirements.txt
60
+
61
+ ## Tools install
62
+
63
+ ```
64
+ python -m pip install --upgrade pip
65
+ python -m pip install --upgrade build
66
+ python -m pip install --upgrade twine
67
+ ```
68
+
69
+ ## Create pyproject.toml
70
+ under project folder create pyproject.toml
71
+
72
+ ```
73
+ [build-system]
74
+ requires = ["setuptools"]
75
+ build-backend = "setuptools.build_meta"
76
+
77
+ [project]
78
+ name = "dtscore_dsmi"
79
+ version = "0.0.2"
80
+ authors = [
81
+ { name="D. Smith", email="dgsmith.hpot@gmail.com" },
82
+ ]
83
+ description = "DTS Core Services"
84
+ readme = "README.md"
85
+ requires-python = ">= 3.10"
86
+ dependencies = [
87
+ 'requests>=2.31',
88
+ 'importlib-metadata; python_version>="3.10"',
89
+ 'urllib3>=2.0'
90
+ ]
91
+ classifiers = [
92
+ 'Development Status :: 5 - Production/Stable',
93
+ 'Environment :: Console',
94
+ 'Intended Audience :: Developers',
95
+ 'License :: OSI Approved :: BSD License',
96
+ 'Operating System :: Microsoft :: Windows :: Windows 11',
97
+ 'Programming Language :: Python :: 3.10',
98
+ ]
99
+ ```
100
+
101
+ ## Build the distribution
102
+
103
+ * delete any previous versions from the dist folder
104
+ * check version number in pyproject.toml
105
+
106
+ | Command | Result |
107
+ | --- | --- |
108
+ | python -m build |builds the application<br/> |
109
+ | twine upload --repository testpypi dist/* |upload distribution to testpypi, or<br/> |
110
+ | twine upload dist/* |upload distribution to pypi |
File without changes
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dtscore"
7
- version = "2.3.3"
7
+ version = "2.4.0"
8
8
  authors = [
9
9
  { name="D. Smith", email="dgsmith.hpot@gmail.com" },
10
10
  ]
@@ -1,4 +1,4 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -32,8 +32,9 @@ def setup_log(moduleName:str, log_filename:str):
32
32
 
33
33
  #--------------------------------------------------------------------------------------------------
34
34
  # log initialization
35
- def initialize_log(log_filename:str):
36
- full_log_path = os.path.join(gl.logshome, utils.datestampFileName(log_filename))
35
+ def initialize_log(log_filename:str, loghome:str=gl.logshome):
36
+ if not os.path.exists(loghome): os.mkdir(loghome)
37
+ full_log_path = os.path.join(loghome, utils.datestampFileName(log_filename))
37
38
  logging.basicConfig(filename=full_log_path, filemode='w', format=gl.logformat)
38
39
  log_formatter = logging.Formatter(gl.logformat)
39
40
  handler = logging.StreamHandler(sys.stdout)
File without changes
File without changes
File without changes
@@ -1,109 +1,110 @@
1
- Metadata-Version: 2.2
2
- Name: dtscore
3
- Version: 2.3.3
4
- Summary: DTS Core Services
5
- Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
- Classifier: Development Status :: 5 - Production/Stable
7
- Classifier: Environment :: Console
8
- Classifier: Intended Audience :: Developers
9
- Classifier: License :: OSI Approved :: BSD License
10
- Classifier: Operating System :: Microsoft :: Windows :: Windows 11
11
- Classifier: Programming Language :: Python :: 3.10
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: importlib-metadata; python_version >= "3.10"
16
- Requires-Dist: requests>=2.31
17
- Requires-Dist: urllib3>=2.0
18
-
19
- # Prep
20
-
21
- See: https://packaging.python.org/en/latest/tutorials/packaging-projects/
22
-
23
- ## Setup Testpypi and Pypi (one time only)
24
-
25
- .pypirc file in $home (c:/users/dgsmith) directory<br/>
26
-
27
- ```
28
- [testpypi]
29
- username = __token__
30
- password = token from test.pypi.org goes here
31
- ```
32
-
33
- ## Project folder structure
34
-
35
- ```
36
- pyexample
37
- ├── src
38
- │ ├── pyexample_USERNAME_HERE
39
- │ │ ├── __init__.py
40
- │ │ ├── module_mpi4py_1.py
41
- │ │ ├── module_numpy_1.py
42
- │ │ └── module_numpy_2.py
43
- │ │-- module2_USERNAME_HERE
44
- │ │ ├── __init__.py
45
- │ │ ├── ...
46
- ├── tests
47
- │ ├── test1.py
48
- ├── .gitignore
49
- ├── LICENSE
50
- ├── pyproject.toml
51
- ├── README.md
52
- ```
53
-
54
- ## Other Steps
55
-
56
- * Create a virtual environment (.venv)
57
- * pip install any dependencies
58
- * pip freeze to create requirements.txt
59
-
60
- ## Tools install
61
-
62
- ```
63
- python -m pip install --upgrade pip
64
- python -m pip install --upgrade build
65
- python -m pip install --upgrade twine
66
- ```
67
-
68
- ## Create pyproject.toml
69
- under project folder create pyproject.toml
70
-
71
- ```
72
- [build-system]
73
- requires = ["setuptools"]
74
- build-backend = "setuptools.build_meta"
75
-
76
- [project]
77
- name = "dtscore_dsmi"
78
- version = "0.0.2"
79
- authors = [
80
- { name="D. Smith", email="dgsmith.hpot@gmail.com" },
81
- ]
82
- description = "DTS Core Services"
83
- readme = "README.md"
84
- requires-python = ">= 3.10"
85
- dependencies = [
86
- 'requests>=2.31',
87
- 'importlib-metadata; python_version>="3.10"',
88
- 'urllib3>=2.0'
89
- ]
90
- classifiers = [
91
- 'Development Status :: 5 - Production/Stable',
92
- 'Environment :: Console',
93
- 'Intended Audience :: Developers',
94
- 'License :: OSI Approved :: BSD License',
95
- 'Operating System :: Microsoft :: Windows :: Windows 11',
96
- 'Programming Language :: Python :: 3.10',
97
- ]
98
- ```
99
-
100
- ## Build the distribution
101
-
102
- * delete any previous versions from the dist folder
103
- * check version number in pyproject.toml
104
-
105
- | Command | Result |
106
- | --- | --- |
107
- | python -m build |builds the application<br/> |
108
- | twine upload --repository testpypi dist/* |upload distribution to testpypi, or<br/> |
109
- | twine upload dist/* |upload distribution to pypi |
1
+ Metadata-Version: 2.4
2
+ Name: dtscore
3
+ Version: 2.4.0
4
+ Summary: DTS Core Services
5
+ Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
+ Classifier: Development Status :: 5 - Production/Stable
7
+ Classifier: Environment :: Console
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: importlib-metadata; python_version >= "3.10"
16
+ Requires-Dist: requests>=2.31
17
+ Requires-Dist: urllib3>=2.0
18
+ Dynamic: license-file
19
+
20
+ # Prep
21
+
22
+ See: https://packaging.python.org/en/latest/tutorials/packaging-projects/
23
+
24
+ ## Setup Testpypi and Pypi (one time only)
25
+
26
+ .pypirc file in $home (c:/users/dgsmith) directory<br/>
27
+
28
+ ```
29
+ [testpypi]
30
+ username = __token__
31
+ password = token from test.pypi.org goes here
32
+ ```
33
+
34
+ ## Project folder structure
35
+
36
+ ```
37
+ pyexample
38
+ ├── src
39
+ │ ├── pyexample_USERNAME_HERE
40
+ │ │ ├── __init__.py
41
+ │ │ ├── module_mpi4py_1.py
42
+ │ │ ├── module_numpy_1.py
43
+ │ │ └── module_numpy_2.py
44
+ │ │-- module2_USERNAME_HERE
45
+ │ │ ├── __init__.py
46
+ │ │ ├── ...
47
+ ├── tests
48
+ │ ├── test1.py
49
+ ├── .gitignore
50
+ ├── LICENSE
51
+ ├── pyproject.toml
52
+ ├── README.md
53
+ ```
54
+
55
+ ## Other Steps
56
+
57
+ * Create a virtual environment (.venv)
58
+ * pip install any dependencies
59
+ * pip freeze to create requirements.txt
60
+
61
+ ## Tools install
62
+
63
+ ```
64
+ python -m pip install --upgrade pip
65
+ python -m pip install --upgrade build
66
+ python -m pip install --upgrade twine
67
+ ```
68
+
69
+ ## Create pyproject.toml
70
+ under project folder create pyproject.toml
71
+
72
+ ```
73
+ [build-system]
74
+ requires = ["setuptools"]
75
+ build-backend = "setuptools.build_meta"
76
+
77
+ [project]
78
+ name = "dtscore_dsmi"
79
+ version = "0.0.2"
80
+ authors = [
81
+ { name="D. Smith", email="dgsmith.hpot@gmail.com" },
82
+ ]
83
+ description = "DTS Core Services"
84
+ readme = "README.md"
85
+ requires-python = ">= 3.10"
86
+ dependencies = [
87
+ 'requests>=2.31',
88
+ 'importlib-metadata; python_version>="3.10"',
89
+ 'urllib3>=2.0'
90
+ ]
91
+ classifiers = [
92
+ 'Development Status :: 5 - Production/Stable',
93
+ 'Environment :: Console',
94
+ 'Intended Audience :: Developers',
95
+ 'License :: OSI Approved :: BSD License',
96
+ 'Operating System :: Microsoft :: Windows :: Windows 11',
97
+ 'Programming Language :: Python :: 3.10',
98
+ ]
99
+ ```
100
+
101
+ ## Build the distribution
102
+
103
+ * delete any previous versions from the dist folder
104
+ * check version number in pyproject.toml
105
+
106
+ | Command | Result |
107
+ | --- | --- |
108
+ | python -m build |builds the application<br/> |
109
+ | twine upload --repository testpypi dist/* |upload distribution to testpypi, or<br/> |
110
+ | twine upload dist/* |upload distribution to pypi |
File without changes
File without changes
File without changes