fundamentals 2.8.1.dev0__tar.gz → 2.8.2__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.
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/CHANGES.md +7 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/PKG-INFO +2 -1
- fundamentals-2.8.2/fundamentals/__version__.py +1 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/cl_utils.py +8 -1
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/database.py +12 -14
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/pyproject.toml +2 -1
- fundamentals-2.8.1.dev0/fundamentals/__version__.py +0 -1
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/CITATION.cff +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/LICENSE +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/README.md +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/commonutils/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/commonutils/getpackagepath.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/daemonise.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/docstring_test.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/_dump_files_to_local_drive.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/_fetch.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/append_now_datestamp_to_filename.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/extract_filename_from_url.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/get_now_datetime_filestamp.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/multiobject_download.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/fileChunker.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/list_of_dictionaries_to_mysql_inserts.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/recursive_directory_listing.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/0.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/1.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/2.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/3.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/4.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/resources/ratings/5.plist +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/tag.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/fmultiprocess.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/logs.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/convert_dictionary_to_mysql_table.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/directory_script_runner.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/get_database_table_column_names.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/insert_list_of_dictionaries_into_database_tables.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/readquery.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/setup_database_connection.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/sqlite2mysql.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/table_exists.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/writequery.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/yaml_to_database.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/nose2_plugins/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/nose2_plugins/cprof.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/renderer/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/renderer/list_of_dictionaries.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/resources/package.mplstyle +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/stats/__init__.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/stats/rolling_window_sigma_clip.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/test_settings.yaml +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/times.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/tools.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/utKit.py +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals.egg-info/SOURCES.txt +0 -0
- {fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fundamentals
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.2
|
|
4
4
|
Summary: Some fundamental tools required by most self-respecting python-packages bundled in one place. Very opinionated project setup tools including logging, plain-text settings files and database connections.
|
|
5
5
|
Author-email: David Young <david.young.rse@gmail.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -22,6 +22,7 @@ Requires-Dist: python-dateutil
|
|
|
22
22
|
Requires-Dist: requests
|
|
23
23
|
Requires-Dist: python-daemon
|
|
24
24
|
Requires-Dist: tqdm
|
|
25
|
+
Requires-Dist: pyreadline3
|
|
25
26
|
Provides-Extra: docs
|
|
26
27
|
Requires-Dist: build; extra == "docs"
|
|
27
28
|
Requires-Dist: sphinx; extra == "docs"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.8.2'
|
|
@@ -18,7 +18,14 @@ import sys
|
|
|
18
18
|
import os
|
|
19
19
|
|
|
20
20
|
os.environ["TERM"] = "vt100"
|
|
21
|
-
|
|
21
|
+
try:
|
|
22
|
+
import readline
|
|
23
|
+
except ImportError:
|
|
24
|
+
# Windows: readline not available in stdlib Optionally use pyreadline3 if installed
|
|
25
|
+
try:
|
|
26
|
+
import pyreadline3 as readline
|
|
27
|
+
except ImportError:
|
|
28
|
+
readline = None # or just pass — basic input() still works
|
|
22
29
|
import glob
|
|
23
30
|
import pickle
|
|
24
31
|
from docopt import docopt
|
|
@@ -12,7 +12,14 @@ import sys
|
|
|
12
12
|
import os
|
|
13
13
|
|
|
14
14
|
os.environ["TERM"] = "vt100"
|
|
15
|
-
|
|
15
|
+
try:
|
|
16
|
+
import readline
|
|
17
|
+
except ImportError:
|
|
18
|
+
# Windows: readline not available in stdlib Optionally use pyreadline3 if installed
|
|
19
|
+
try:
|
|
20
|
+
import pyreadline3 as readline
|
|
21
|
+
except ImportError:
|
|
22
|
+
readline = None # or just pass — basic input() still works
|
|
16
23
|
import glob
|
|
17
24
|
import pickle
|
|
18
25
|
import time
|
|
@@ -166,9 +173,7 @@ class database(object):
|
|
|
166
173
|
time.sleep(1)
|
|
167
174
|
count += 1
|
|
168
175
|
if count == 5:
|
|
169
|
-
self.log.error(
|
|
170
|
-
"cound not setup tunnel to remote datbase" % locals()
|
|
171
|
-
)
|
|
176
|
+
self.log.error("cound not setup tunnel to remote datbase" % locals())
|
|
172
177
|
sys.exit(0)
|
|
173
178
|
return sshPort
|
|
174
179
|
|
|
@@ -180,20 +185,13 @@ class database(object):
|
|
|
180
185
|
import socket
|
|
181
186
|
|
|
182
187
|
s = socket.socket()
|
|
183
|
-
self.log.debug(
|
|
184
|
-
"""Attempting to connect to `%(address)s` on port `%(port)s`""" % locals()
|
|
185
|
-
)
|
|
188
|
+
self.log.debug("""Attempting to connect to `%(address)s` on port `%(port)s`""" % locals())
|
|
186
189
|
try:
|
|
187
190
|
s.connect((address, port))
|
|
188
|
-
self.log.debug(
|
|
189
|
-
"""Connected to `%(address)s` on port `%(port)s`""" % locals()
|
|
190
|
-
)
|
|
191
|
+
self.log.debug("""Connected to `%(address)s` on port `%(port)s`""" % locals())
|
|
191
192
|
return True
|
|
192
193
|
except socket.error as e:
|
|
193
|
-
self.log.warning(
|
|
194
|
-
"""Connection to `%(address)s` on port `%(port)s` failed - try again: %(e)s"""
|
|
195
|
-
% locals()
|
|
196
|
-
)
|
|
194
|
+
self.log.warning("""Connection to `%(address)s` on port `%(port)s` failed - try again: %(e)s""" % locals())
|
|
197
195
|
return False
|
|
198
196
|
|
|
199
197
|
return None
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.8.1.dev0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/_dump_files_to_local_drive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/extract_filename_from_url.py
RENAMED
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/get_now_datetime_filestamp.py
RENAMED
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/download/multiobject_download.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/files/recursive_directory_listing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/directory_script_runner.py
RENAMED
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/get_database_table_column_names.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/mysql/setup_database_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/renderer/list_of_dictionaries.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fundamentals-2.8.1.dev0 → fundamentals-2.8.2}/fundamentals/stats/rolling_window_sigma_clip.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|