julien-python-toolkit 0.1.3__tar.gz → 0.1.5__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.
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/PKG-INFO +1 -1
- julien_python_toolkit-0.1.5/julien_python_toolkit/file_utilities.py +13 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit/log_utilities.py +8 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit.egg-info/PKG-INFO +1 -1
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit.egg-info/SOURCES.txt +1 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/setup.py +1 -1
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/LICENSE.txt +0 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/README.md +0 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit/__init__.py +0 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit.egg-info/dependency_links.txt +0 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit.egg-info/top_level.txt +0 -0
- {julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: julien-python-toolkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Important code that I reuse through multiple projects. Please see license for allowed use.
|
|
5
5
|
Home-page: https://github.com/JulienPython/JulienPythonToolkit-V001
|
|
6
6
|
Author: Julien Python
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file is part of the "your-package-name" project.
|
|
2
|
+
# It is licensed under the "Custom Non-Commercial License".
|
|
3
|
+
# You may not use this file for commercial purposes without
|
|
4
|
+
# explicit permission from the author.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
|
|
9
|
+
def path_to_this_file(file):
|
|
10
|
+
return os.path.dirname(os.path.realpath(file))
|
|
11
|
+
|
|
12
|
+
def join(*args):
|
|
13
|
+
return os.path.join(*args)
|
{julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit/log_utilities.py
RENAMED
|
@@ -17,6 +17,14 @@ ERROR = logging.ERROR
|
|
|
17
17
|
|
|
18
18
|
class Logger():
|
|
19
19
|
|
|
20
|
+
# NOTE: For logging to a file, this class uses a RotatingFileHandler, which rotates the log files.
|
|
21
|
+
# The logger first starts by writing to a ".log" file adding new entries to the bottom. Once
|
|
22
|
+
# the file reaches a certain size (1MB in our case), it will move all the logs from the ".log"
|
|
23
|
+
# file to a ".log.1" file, and then start writing new logs to the ".log" file. The next time
|
|
24
|
+
# the ".log" file reaches 1MB, it will move all the logs from the ".log" file to the ".log.1"
|
|
25
|
+
# file, and then move the logs from the ".log.1" file to the ".log.2" file, and so on. However
|
|
26
|
+
# we only keep 5 log files, so once the ".log.5" file is full, it will delete the ".log.5" file.
|
|
27
|
+
|
|
20
28
|
def __init__(self, name, file_name, stream_log_level = WARNING, file_log_level = INFO):
|
|
21
29
|
|
|
22
30
|
self._logger = self._set_logger(name, file_name, stream_log_level, file_log_level)
|
{julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: julien-python-toolkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Important code that I reuse through multiple projects. Please see license for allowed use.
|
|
5
5
|
Home-page: https://github.com/JulienPython/JulienPythonToolkit-V001
|
|
6
6
|
Author: Julien Python
|
|
@@ -11,7 +11,7 @@ with open('requirements.txt') as f:
|
|
|
11
11
|
|
|
12
12
|
setup(
|
|
13
13
|
name='julien-python-toolkit',
|
|
14
|
-
version='0.1.
|
|
14
|
+
version='0.1.5',
|
|
15
15
|
packages=find_packages(),
|
|
16
16
|
license='Custom Non-Commercial License', # Reference your custom license
|
|
17
17
|
install_requires=required, # Use the list from requirements.txt
|
|
File without changes
|
|
File without changes
|
{julien_python_toolkit-0.1.3 → julien_python_toolkit-0.1.5}/julien_python_toolkit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|