Skip to content

Commit

Permalink
Update prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakama3942 committed Mar 29, 2023
1 parent 62c4072 commit 9a7be14
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
26 changes: 24 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,33 @@ limitations under the License.
---
-->
## v0.2.0 (29.03.2023)

#### Documentation:
- Documented all new functionality;
- Fixed typos and outdated information in old documentation.

#### Enhancements:
- Added a large dictionary of all ANSI escape codes and the GetAnsi() function to get it;
- CodColor() function renamed to AnsiForegroundColor();
- Fully implemented AnsiColorSetInit and Logger classes based on HtmlColorSetInitQ and LoggerQ;
- Singleton pattern used by HtmlColorSetInitQ, LoggerQ, AnsiColorSetInit and Logger moved to a separate class;
- A base class has been created for LoggerQ and Logger, which includes initialization, setting up loggers and generating record strings (*at the moment, inherited classes are used to simplify interaction with the base class and use ready-made functionality, but in the future their own functionality will be expanded*);
- Optimized HexColor() and AnsiForegroundColor() functions;
- **The project structure has been completely changed** (*however, this only affects the development of the library and support for programs written with the version of the library v0.1.0 will remain, since the external attributes of communication with the library have not changed*);
- Added the DefaultColorScheme list, which stores a list of all colors that are used in the color schemes of the loggers and the GetDefaultColorScheme() function to get this list;
- Now the ColorPicker dictionary stores only color values in RGB, and other formats are obtained by converting RGB;
- Added functions Dec2Hex(), Dec2Ansi(), Hex2Dec(), Hex2Ansi(), Ansi2Dec(), Ansi2Hex(), which are used to convert one color value format to another;
- *The logic of assembling strings logging entry's has been completely changed*;
- The work of the HtmlColorSetInitQ and LoggerQ classes is adjusted to the new best functionality that is used in the new classes AnsiColorSetInit and Logger.

---

## v0.1.0 (26.03.2023)

#### Bug Fixes:
- Fixed a bug that occurs when passing arguments to the LoggerQ constructor;
- Fixed a bug due to which the color value was not correctly saved in the journal's color table when changing the color manually.
- Fixed a bug due to which the color value was not correctly saved in the logger's color table when changing the color manually.

#### Documenting:
- Completed documentation of the library;
Expand All @@ -50,7 +72,7 @@ limitations under the License.

---

## v0.0.8 (25.03.2023)
## <span style='color: #ff3333;'>v0.0.8 (25.03.2023)</span>

#### Bug Fixes:
- Found and fixed several minor bugs.
Expand Down
6 changes: 4 additions & 2 deletions qt_colored_logger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
# ---------------------------------------------------------------------------- #
# ############################################################################ #

# todo Document all lists, dictionaries, etc. in README.md.

from .colored_logger import AnsiColorSetInit, Logger
from .html_colored_logger import HtmlColorSetInitQ, LoggerQ

__authot__ = "Kalynovsky 'Nakama3942' Valentin"
__version__ = "0.1.0"
__email__ = "nakama3942@gmail.com"
__version__ = "0.2.0"
__email__ = "nakama3942@gmail.com"
1 change: 1 addition & 0 deletions qt_colored_logger/src/ansi_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@

def GetAnsi() -> dict:
"""
todo Expand the functionality of the function
Returns a complete dictionary of all ANSI escape codes.\n
An example of working with ANSI escape codes:\n
print(f"{GetAnsi()['reset']['on']}Test string")\n
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

setup(
name="qt_colored_logger",
version="0.1.0",
version="0.2.0",

author="Kalynovsky 'Nakama3942' Valentin",
author_email="nakama3942@gmail.com",
Expand All @@ -49,7 +49,7 @@
'qt_colored_logger.basic.patterns'
],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 9a7be14

Please sign in to comment.