prettysimplelogging 0.1.0__tar.gz → 0.2.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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prettysimplelogging
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Better Logging
5
5
  Author-email: Regan Willis <reganwillis@outlook.com>
6
6
  License-Expression: MIT
@@ -1,11 +1,12 @@
1
- # Better Logging for Python
1
+ # Pretty Simple Logging for Python
2
2
 
3
3
  Simple Python logging. Easy to use and pretty.
4
4
  It's just CLI messages for now.
5
+ [Hosted on PyPI](https://pypi.org/project/prettysimplelogging)
5
6
 
6
7
  ## Install
7
8
  ```
8
- pip3 install .
9
+ pip install prettysimplelogging
9
10
  ```
10
11
 
11
12
  ## Usage
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "prettysimplelogging"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  authors = [{name="Regan Willis", email="reganwillis@outlook.com"}]
5
5
  description = "Better Logging"
6
6
  dependencies = [
@@ -6,7 +6,7 @@ class Message:
6
6
  """
7
7
  def __init__(self, _text, _type='INFO'):
8
8
  # TODO: custom type
9
- self.TYPES = ['INFO', 'WARN', 'ERR']
9
+ self.TYPES = ['INFO', 'WARN', 'ERR', 'SUCC']
10
10
  self.type = _type
11
11
  self.text = _text
12
12
 
@@ -32,6 +32,8 @@ class Message:
32
32
  self._color = 'yellow'
33
33
  elif self._type == 'ERR':
34
34
  self._color = 'red'
35
+ elif self._type == 'SUCC':
36
+ self._color = 'green'
35
37
 
36
38
  @property
37
39
  def text(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prettysimplelogging
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Better Logging
5
5
  Author-email: Regan Willis <reganwillis@outlook.com>
6
6
  License-Expression: MIT