LogFly 1.5__tar.gz → 1.6__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: logfly
3
- Version: 1.5
4
- Summary: Aa simple log tool by python
3
+ Version: 1.6
4
+ Summary: A simple log tool by python
5
5
  Home-page: https://about.guki.me
6
6
  Author: Yuan Sui
7
7
  Author-email: orisui@icloud.com
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
 
18
- # logfly 1.5
18
+ # logfly 1.6
19
19
  ### a simple log tool by python
20
20
 
21
21
  ## position
@@ -1,4 +1,4 @@
1
- # logfly 1.5
1
+ # logfly 1.6
2
2
  ### a simple log tool by python
3
3
 
4
4
  ## position
@@ -5,10 +5,10 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="logfly",
8
- version="1.5",
8
+ version="1.6",
9
9
  author="Yuan Sui",
10
10
  author_email="orisui@icloud.com",
11
- description="Aa simple log tool by python",
11
+ description="A simple log tool by python",
12
12
  long_description=long_description,
13
13
  long_description_content_type="text/markdown",
14
14
  url="https://about.guki.me",
@@ -1,15 +1,16 @@
1
1
  #####################
2
2
  # Author: Yuki Sui
3
- # Date: 2021-12-25
4
- # Version: 1.5
3
+ # Date: 2022-1-16
5
4
  #####################
6
5
 
7
6
  import time
7
+ import shutil
8
8
  import os
9
9
  from pathlib import Path
10
10
  from colorama import init
11
11
 
12
12
  init(autoreset=True)
13
+ __version__ = '1.6'
13
14
 
14
15
 
15
16
  def create_log_folder(folder_name, hidden):
@@ -40,8 +41,11 @@ def get_time(flag):
40
41
  return time.strftime("%H:%M:%S", time.localtime())
41
42
  elif flag == 'datetimefile':
42
43
  return time.strftime("%Y%m%d%H%M%S", time.localtime())
44
+ elif flag == 'timestamp':
45
+ return time.time()
43
46
 
44
47
 
48
+ # noinspection PyTypeChecker
45
49
  def write_log(name, position, level, message, mode='add',
46
50
  folder_name='logflys', hidden='no', color='yes', str_message='yes'):
47
51
  global LOGFILE, LOGFILE2, logfolder, logfolder_hidden, LOGFILE_hidden
@@ -142,6 +146,12 @@ def write_log(name, position, level, message, mode='add',
142
146
  error()
143
147
 
144
148
 
149
+ def mv_file(original_file_name, new_file_name, folder_name='mv_file'):
150
+ shutil.move(original_file_name, new_file_name)
151
+ message = 'File ' + original_file_name + ' moved to ' + new_file_name
152
+ write_log('logfly-log', 'CLI', 'error', message, folder_name=folder_name)
153
+
154
+
145
155
  def error():
146
156
  logflyErrorMessage = 'your parameter is wrong, please re-check it! \r\nAnd you can see the manual at ' \
147
157
  'https://github.com/tinqlo/logfly '
@@ -0,0 +1,7 @@
1
+ # Sound analysis lib
2
+ # Author: Yuan Sui
3
+ # Date: 2022-1-16
4
+ # TODO: add code. may add wav file wave,
5
+ # spectrum and limit check(displayed via matplotlib) --Yuan
6
+
7
+ """I love you, Pidan"""
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: logfly
3
- Version: 1.5
4
- Summary: Aa simple log tool by python
3
+ Version: 1.6
4
+ Summary: A simple log tool by python
5
5
  Home-page: https://about.guki.me
6
6
  Author: Yuan Sui
7
7
  Author-email: orisui@icloud.com
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
 
18
- # logfly 1.5
18
+ # logfly 1.6
19
19
  ### a simple log tool by python
20
20
 
21
21
  ## position
@@ -6,4 +6,5 @@ src/logfly/__init__.py
6
6
  src/logfly.egg-info/PKG-INFO
7
7
  src/logfly.egg-info/SOURCES.txt
8
8
  src/logfly.egg-info/dependency_links.txt
9
- src/logfly.egg-info/top_level.txt
9
+ src/logfly.egg-info/top_level.txt
10
+ src/logfly/soundfly/__init__.py
File without changes
File without changes
File without changes