LogFly 0.7__tar.gz → 1.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.
@@ -1,80 +1,81 @@
1
- Metadata-Version: 2.1
2
- Name: logfly
3
- Version: 0.7
4
- Summary: Aa simple log tool by python
5
- Home-page: https://about.guki.me
6
- Author: Yuan Sui
7
- Author-email: orisui@icloud.com
8
- License: UNKNOWN
9
- Project-URL: Github, https://github.com/tinqlo/logfly
10
- Platform: UNKNOWN
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Operating System :: OS Independent
14
- Requires-Python: >=3.6
15
- Description-Content-Type: text/markdown
16
-
17
- # logfly 0.7
18
- ### a simple log tool by python
19
-
20
- ## position
21
- log will create in ./logs/[folder_name]/[date] folder.
22
-
23
- ## How to
24
- ### import
25
- import logfly
26
- ### use
27
- logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
28
-
29
- ## Description
30
- name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
31
- where: ('CLI', 'fileCLI', 'file') position where log appear.
32
- fileCLI means log will appear in command line window and log file.
33
- CLI means log will only appear in command line window.
34
- file means log will only appear in logfile.
35
- info: (any str) custom log level, will upper and wrap with '[]'.
36
- message: (any str) log message.
37
- mode: ('add', 'new') default is 'add', means log will add in same day.
38
- 'new' means logfile will create when program every once.
39
- folder_name: (any str) custom logfly folder name, default is 'logflys'.
40
-
41
- ## Example:
42
-
43
- ### both file and CLI code
44
- logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
45
- #### in CLI
46
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
47
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
48
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
49
-
50
- ### only in CLI code
51
- logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
52
- #### in CLI
53
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
54
- #### in file
55
- None
56
-
57
- ### only in file code
58
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
59
- #### in CLI
60
- None
61
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
62
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
63
-
64
- #### mode arg:
65
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
66
- #### in CLI:
67
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
68
- #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
69
- #### p.s. log will name in date + time
70
-
71
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
72
-
73
- #### folder arg:
74
- write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
75
- #### in CLI:
76
- 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
77
- #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
78
-
79
- 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
80
-
1
+ Metadata-Version: 2.1
2
+ Name: logfly
3
+ Version: 1.0
4
+ Summary: Aa simple log tool by python
5
+ Home-page: https://about.guki.me
6
+ Author: Yuan Sui
7
+ Author-email: orisui@icloud.com
8
+ License: UNKNOWN
9
+ Project-URL: Github, https://github.com/tinqlo/logfly
10
+ Platform: UNKNOWN
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.6
15
+ Description-Content-Type: text/markdown
16
+
17
+ # logfly 1.0
18
+ #### QAQ! 1.0 is celebrated GitHub workflow configure success!
19
+ ### a simple log tool by python
20
+
21
+ ## position
22
+ log will create in ./logs/[folder_name]/[date] folder.
23
+
24
+ ## How to
25
+ ### import
26
+ import logfly
27
+ ### use
28
+ logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
29
+
30
+ ## Description
31
+ name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
32
+ where: ('CLI', 'fileCLI', 'file') position where log appear.
33
+ fileCLI means log will appear in command line window and log file.
34
+ CLI means log will only appear in command line window.
35
+ file means log will only appear in logfile.
36
+ info: (any str) custom log level, will upper and wrap with '[]'.
37
+ message: (any str) log message.
38
+ mode: ('add', 'new') default is 'add', means log will add in same day.
39
+ 'new' means logfile will create when program every once.
40
+ folder_name: (any str) custom logfly folder name, default is 'logflys'.
41
+
42
+ ## Example:
43
+
44
+ ### both file and CLI code
45
+ logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
46
+ #### in CLI
47
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
48
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
49
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
50
+
51
+ ### only in CLI code
52
+ logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
53
+ #### in CLI
54
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
55
+ #### in file
56
+ None
57
+
58
+ ### only in file code
59
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
60
+ #### in CLI
61
+ None
62
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
63
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
64
+
65
+ #### mode arg:
66
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
67
+ #### in CLI:
68
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
69
+ #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
70
+ #### p.s. log will name in date + time
71
+
72
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
73
+
74
+ #### folder arg:
75
+ write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
76
+ #### in CLI:
77
+ 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
78
+ #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
79
+
80
+ 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
81
+
@@ -1,63 +1,64 @@
1
- # logfly 0.7
2
- ### a simple log tool by python
3
-
4
- ## position
5
- log will create in ./logs/[folder_name]/[date] folder.
6
-
7
- ## How to
8
- ### import
9
- import logfly
10
- ### use
11
- logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
12
-
13
- ## Description
14
- name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
15
- where: ('CLI', 'fileCLI', 'file') position where log appear.
16
- fileCLI means log will appear in command line window and log file.
17
- CLI means log will only appear in command line window.
18
- file means log will only appear in logfile.
19
- info: (any str) custom log level, will upper and wrap with '[]'.
20
- message: (any str) log message.
21
- mode: ('add', 'new') default is 'add', means log will add in same day.
22
- 'new' means logfile will create when program every once.
23
- folder_name: (any str) custom logfly folder name, default is 'logflys'.
24
-
25
- ## Example:
26
-
27
- ### both file and CLI code
28
- logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
29
- #### in CLI
30
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
31
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
32
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
33
-
34
- ### only in CLI code
35
- logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
36
- #### in CLI
37
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
38
- #### in file
39
- None
40
-
41
- ### only in file code
42
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
43
- #### in CLI
44
- None
45
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
46
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
47
-
48
- #### mode arg:
49
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
50
- #### in CLI:
51
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
52
- #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
53
- #### p.s. log will name in date + time
54
-
55
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
56
-
57
- #### folder arg:
58
- write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
59
- #### in CLI:
60
- 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
61
- #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
62
-
1
+ # logfly 1.0
2
+ #### QAQ! 1.0 is celebrated GitHub workflow configure success!
3
+ ### a simple log tool by python
4
+
5
+ ## position
6
+ log will create in ./logs/[folder_name]/[date] folder.
7
+
8
+ ## How to
9
+ ### import
10
+ import logfly
11
+ ### use
12
+ logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
13
+
14
+ ## Description
15
+ name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
16
+ where: ('CLI', 'fileCLI', 'file') position where log appear.
17
+ fileCLI means log will appear in command line window and log file.
18
+ CLI means log will only appear in command line window.
19
+ file means log will only appear in logfile.
20
+ info: (any str) custom log level, will upper and wrap with '[]'.
21
+ message: (any str) log message.
22
+ mode: ('add', 'new') default is 'add', means log will add in same day.
23
+ 'new' means logfile will create when program every once.
24
+ folder_name: (any str) custom logfly folder name, default is 'logflys'.
25
+
26
+ ## Example:
27
+
28
+ ### both file and CLI code
29
+ logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
30
+ #### in CLI
31
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
32
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
33
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
34
+
35
+ ### only in CLI code
36
+ logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
37
+ #### in CLI
38
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
39
+ #### in file
40
+ None
41
+
42
+ ### only in file code
43
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
44
+ #### in CLI
45
+ None
46
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
47
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
48
+
49
+ #### mode arg:
50
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
51
+ #### in CLI:
52
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
53
+ #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
54
+ #### p.s. log will name in date + time
55
+
56
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
57
+
58
+ #### folder arg:
59
+ write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
60
+ #### in CLI:
61
+ 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
62
+ #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
63
+
63
64
  2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
@@ -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
+
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="logfly",
8
- version="0.7",
8
+ version="1.0",
9
9
  author="Yuan Sui",
10
10
  author_email="orisui@icloud.com",
11
11
  description="Aa simple log tool by python ",
@@ -20,7 +20,7 @@ setuptools.setup(
20
20
  "License :: OSI Approved :: MIT License",
21
21
  "Operating System :: OS Independent",
22
22
  ],
23
- package_dir={"": "dist"},
24
- packages=setuptools.find_packages(where="dist"),
23
+ package_dir={"": "srcc"},
24
+ packages=setuptools.find_packages(where="srcc"),
25
25
  python_requires=">=3.6",
26
26
  )
@@ -1,80 +1,81 @@
1
- Metadata-Version: 2.1
2
- Name: logfly
3
- Version: 0.7
4
- Summary: Aa simple log tool by python
5
- Home-page: https://about.guki.me
6
- Author: Yuan Sui
7
- Author-email: orisui@icloud.com
8
- License: UNKNOWN
9
- Project-URL: Github, https://github.com/tinqlo/logfly
10
- Platform: UNKNOWN
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Operating System :: OS Independent
14
- Requires-Python: >=3.6
15
- Description-Content-Type: text/markdown
16
-
17
- # logfly 0.7
18
- ### a simple log tool by python
19
-
20
- ## position
21
- log will create in ./logs/[folder_name]/[date] folder.
22
-
23
- ## How to
24
- ### import
25
- import logfly
26
- ### use
27
- logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
28
-
29
- ## Description
30
- name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
31
- where: ('CLI', 'fileCLI', 'file') position where log appear.
32
- fileCLI means log will appear in command line window and log file.
33
- CLI means log will only appear in command line window.
34
- file means log will only appear in logfile.
35
- info: (any str) custom log level, will upper and wrap with '[]'.
36
- message: (any str) log message.
37
- mode: ('add', 'new') default is 'add', means log will add in same day.
38
- 'new' means logfile will create when program every once.
39
- folder_name: (any str) custom logfly folder name, default is 'logflys'.
40
-
41
- ## Example:
42
-
43
- ### both file and CLI code
44
- logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
45
- #### in CLI
46
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
47
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
48
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
49
-
50
- ### only in CLI code
51
- logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
52
- #### in CLI
53
- 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
54
- #### in file
55
- None
56
-
57
- ### only in file code
58
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
59
- #### in CLI
60
- None
61
- #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
62
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
63
-
64
- #### mode arg:
65
- logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
66
- #### in CLI:
67
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
68
- #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
69
- #### p.s. log will name in date + time
70
-
71
- 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
72
-
73
- #### folder arg:
74
- write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
75
- #### in CLI:
76
- 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
77
- #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
78
-
79
- 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
80
-
1
+ Metadata-Version: 2.1
2
+ Name: logfly
3
+ Version: 1.0
4
+ Summary: Aa simple log tool by python
5
+ Home-page: https://about.guki.me
6
+ Author: Yuan Sui
7
+ Author-email: orisui@icloud.com
8
+ License: UNKNOWN
9
+ Project-URL: Github, https://github.com/tinqlo/logfly
10
+ Platform: UNKNOWN
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.6
15
+ Description-Content-Type: text/markdown
16
+
17
+ # logfly 1.0
18
+ #### QAQ! 1.0 is celebrated GitHub workflow configure success!
19
+ ### a simple log tool by python
20
+
21
+ ## position
22
+ log will create in ./logs/[folder_name]/[date] folder.
23
+
24
+ ## How to
25
+ ### import
26
+ import logfly
27
+ ### use
28
+ logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys')
29
+
30
+ ## Description
31
+ name: (any str) logfile name, you can use diffrent string to create diffrent logfile.
32
+ where: ('CLI', 'fileCLI', 'file') position where log appear.
33
+ fileCLI means log will appear in command line window and log file.
34
+ CLI means log will only appear in command line window.
35
+ file means log will only appear in logfile.
36
+ info: (any str) custom log level, will upper and wrap with '[]'.
37
+ message: (any str) log message.
38
+ mode: ('add', 'new') default is 'add', means log will add in same day.
39
+ 'new' means logfile will create when program every once.
40
+ folder_name: (any str) custom logfly folder name, default is 'logflys'.
41
+
42
+ ## Example:
43
+
44
+ ### both file and CLI code
45
+ logfly.write_log('Doctor Who', 'fileCLI', 'info', "this is Doctor's log, in file and CLI.")
46
+ #### in CLI
47
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
48
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
49
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, in file and CLI.
50
+
51
+ ### only in CLI code
52
+ logfly.write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
53
+ #### in CLI
54
+ 2021-07-29 20:39:07 [INFO] this is Doctor's log, only in CLI.
55
+ #### in file
56
+ None
57
+
58
+ ### only in file code
59
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.")
60
+ #### in CLI
61
+ None
62
+ #### in file (logs/logflys/[date]/Doctor Who-2021-07-29.log)
63
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
64
+
65
+ #### mode arg:
66
+ logfly.write_log('Doctor Who', 'file', 'info', "this is Doctor's log, only in file.", mode='new')
67
+ #### in CLI:
68
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
69
+ #### infile(logs//logflys[date]/Doctor Who-20210801165807.log):
70
+ #### p.s. log will name in date + time
71
+
72
+ 2021-07-29 20:40:03 [INFO] this is Doctor's log, only in file.
73
+
74
+ #### folder arg:
75
+ write_log('Death Stranding', 'fileCLI', 'info', "this is Death Stranding's log, in file and CLI.", mode='add',folder_name='games')
76
+ #### in CLI:
77
+ 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
78
+ #### infile(logs/games/[date]/Death Stranding-20210801165807.log):
79
+
80
+ 2021-11-10 21:27:55 [INFO] this is Death Stranding's log, in file and CLI.
81
+
@@ -0,0 +1,7 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ srcc/logfly.egg-info/PKG-INFO
5
+ srcc/logfly.egg-info/SOURCES.txt
6
+ srcc/logfly.egg-info/dependency_links.txt
7
+ srcc/logfly.egg-info/top_level.txt
@@ -1,7 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- setup.py
4
- dist/logfly.egg-info/PKG-INFO
5
- dist/logfly.egg-info/SOURCES.txt
6
- dist/logfly.egg-info/dependency_links.txt
7
- dist/logfly.egg-info/top_level.txt
File without changes