https://github.com/kotazzz/nlu
My simple useless chips that have no special use, but can be useful for me personally
https://github.com/kotazzz/nlu
learning learning-by-doing learning-python lib library python python-3 python3 useless useless-things utilities utility windows
Last synced: 3 months ago
JSON representation
My simple useless chips that have no special use, but can be useful for me personally
- Host: GitHub
- URL: https://github.com/kotazzz/nlu
- Owner: kotazzz
- License: mit
- Created: 2020-12-11T09:32:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T04:48:13.000Z (over 4 years ago)
- Last Synced: 2025-07-04T08:12:05.857Z (4 months ago)
- Topics: learning, learning-by-doing, learning-python, lib, library, python, python-3, python3, useless, useless-things, utilities, utility, windows
- Language: Python
- Homepage:
- Size: 37.6 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## stats








[](https://github.com/NewLifeUtils/NewLifeUtils-Dev/issues)
[](http://inch-ci.org/github/NewLifeUtils/NewLifeUtils-Dev)
## Contact me
[PyPI Page](https://pypi.org/project/NewLifeUtils)
[My website](http://newlife-learn.h1n.ru)
[My VK](https://vk.com/newlife2019_szhs)
My Mail: semechkagent@gmail.com
## News
Recently, the code was rewritten, but without using notepad. I was able to understand and get used to PyCharm, which means that refactoring and quick code writing functions became available to me. This has greatly simplified the work and revealed a lot of bugs in my code, which means that my code is far from perfect and I have something to strive for. In any case, I have fixed quite important flaws in my code and partially rewritten my code once again. It's easier for me to start from scratch than to redo ¯\_(ツ)_/¯
## Modules
- ColorModule
- LoggerModule
- ExceptModule
- FileModule
- StringUtilModule
- TableBuildModule
- UtilsModule
- CustomShellModule
- DatabaseManageModule (working)
### ColorModule

```py
from NewLifeUtils.ColorModule import FGC, ACC
print(f'{FGC.RED}Red text')
print(f'{FGC.GREEN}Green text')
print(f'{ACC.UNDERLINE}UNDERLINE')
print(f'{ACC.RESET}No formating')
```
### LoggerModule


```py
from NewLifeUtils.LoggerModule import log, wrn, err, tip, rea
a = rea('input your data:')
log('My Event')
wrn('Something is wrong')
err('I broke something.')
tip('Tip #1, I recommend it to you...')
log('Event with tag', 'my tag')
```
### ExceptModule

```py
from NewLifeUtils.ExceptModule import except_print
try:
a = [1,2,3]
a[3]
except Exception as e:
except_print(e,"fatal", tb=True) #Not more working
```
### StringUtilModule

```py
from NewLifeUtils.StringUtilModule import screate,remove_csi
from NewLifeUtils.ColorModule import FGC, ACC
text = f'{FGC.RED}r{FGC.GREEN}g{FGC.BLUE}b{ACC.RESET}'
print(f'Original: {text}')
print('|'+screate(text, size=10, insert="r", filler_symbol=" ")+'| - right 10 (" ")')
print('|'+screate(text, size=10, insert="l", filler_symbol=" ")+'| - left 10 (" ")')
print('|'+screate(text, size=10, insert="l", filler_symbol="@")+'| - left 10 ("@")')
print(remove_csi(text))
```
### TableBuildModule

```py
from NewLifeUtils.TableBuildModule import *
data = [
"header", "header number 2", "num",
"data","tooooooooooooooooo long string", "123",
"data2", "small","15436"
]
table = create_table(3,[],data)
print(table)
```
***Translator used**