Pyrisma 0.0.1__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.
pyrisma-0.0.1/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+
2
+ ---
3
+
4
+ ## 📜 `LICENSE` (Licença MIT)
5
+
6
+ ```text
7
+ MIT License
8
+
9
+ Copyright (c) 2025 Marley
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the “Software”), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
pyrisma-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.4
2
+ Name: Pyrisma
3
+ Version: 0.0.1
4
+ Summary: Uma biblioteca para deixar mensagens coloridas e estilosas no terminal.
5
+ Author: Marley
6
+ Author-email: Marley Benicio <marleysbenicio@gmail.com>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/seuusuario/minha-biblioteca
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: license-file
13
+
14
+ # 🧾 README.md
15
+ # 💬 Pyrisma
16
+
17
+ Uma biblioteca Python para exibir mensagens coloridas e estilizadas no terminal, com ícones e formatação moderna.
18
+ Ideal para quem quer logs mais visuais, legíveis e com um toque de personalidade.
19
+
20
+ ---
21
+
22
+ ## 🚀 Instalação
23
+
24
+ ```bash
25
+ pip install pyrisma
26
+ ```
27
+
28
+ # 🧠 Uso básico
29
+ ```python
30
+ from pyrisma import terminal
31
+
32
+ terminal.info("Sistema iniciado com sucesso!")
33
+ terminal.warning("Atenção: configuração ausente.")
34
+ terminal.error("Erro crítico detectado!")
35
+ terminal.success("Processo concluído com êxito.")
36
+ ```
37
+
38
+ ### Primeiro argumento: Mensagem: str
39
+ ```python
40
+ terminal.info('mensagem')
41
+ ```
42
+ ### Segundo argumento: Estilo: str
43
+ ```python
44
+ terminal.info('mensagem', 'bold')
45
+ ```
46
+ ### Terceiro argumento: Ícone: bool
47
+ ```python
48
+ terminal.info('mensagem', 'bold', True)
49
+ ```
50
+ ### Quarto argumento: Intermitência: bool
51
+ ```python
52
+ terminal.info('mensagem', 'bold', True, True)
53
+ ```
54
+ ### Quinto argumento: Timestamp: bool
55
+ ```python
56
+ terminal.info('mensagem', 'bold', True, True, True)
57
+ ```
58
+
59
+ ### Saída esperada (com cores e ícones, dependendo do terminal):
60
+
61
+ ```bash
62
+ ℹ️ Sistema iniciado com sucesso!
63
+
64
+ ⚠️ Atenção: configuração ausente.
65
+
66
+ ❌ Erro crítico detectado!
67
+
68
+ ✅ Processo concluído com êxito.
69
+ ```
70
+
71
+ # ⚙️ Funcionalidades
72
+
73
+ - ### Mensagens com cores e ícones contextuais.
74
+
75
+ - ### Suporte a diferentes níveis de log.
76
+
77
+ - ### Compatível com Linux e macOS.
78
+
79
+ - ### Sem dependências externas pesadas.
80
+
81
+ # 📄 Licença
82
+
83
+ ### Distribuído sob a licença MIT.
84
+ ### Veja o arquivo LICENSE para mais informações.
85
+
86
+ # 👤 Autor
87
+ ## 💼 LinkedIn
88
+ - ### Marley
89
+ - ### Desenvolvedor de Software
90
+
91
+
92
+ ### 📧 marleysbenicio@gmail.com
@@ -0,0 +1,79 @@
1
+ # 🧾 README.md
2
+ # 💬 Pyrisma
3
+
4
+ Uma biblioteca Python para exibir mensagens coloridas e estilizadas no terminal, com ícones e formatação moderna.
5
+ Ideal para quem quer logs mais visuais, legíveis e com um toque de personalidade.
6
+
7
+ ---
8
+
9
+ ## 🚀 Instalação
10
+
11
+ ```bash
12
+ pip install pyrisma
13
+ ```
14
+
15
+ # 🧠 Uso básico
16
+ ```python
17
+ from pyrisma import terminal
18
+
19
+ terminal.info("Sistema iniciado com sucesso!")
20
+ terminal.warning("Atenção: configuração ausente.")
21
+ terminal.error("Erro crítico detectado!")
22
+ terminal.success("Processo concluído com êxito.")
23
+ ```
24
+
25
+ ### Primeiro argumento: Mensagem: str
26
+ ```python
27
+ terminal.info('mensagem')
28
+ ```
29
+ ### Segundo argumento: Estilo: str
30
+ ```python
31
+ terminal.info('mensagem', 'bold')
32
+ ```
33
+ ### Terceiro argumento: Ícone: bool
34
+ ```python
35
+ terminal.info('mensagem', 'bold', True)
36
+ ```
37
+ ### Quarto argumento: Intermitência: bool
38
+ ```python
39
+ terminal.info('mensagem', 'bold', True, True)
40
+ ```
41
+ ### Quinto argumento: Timestamp: bool
42
+ ```python
43
+ terminal.info('mensagem', 'bold', True, True, True)
44
+ ```
45
+
46
+ ### Saída esperada (com cores e ícones, dependendo do terminal):
47
+
48
+ ```bash
49
+ ℹ️ Sistema iniciado com sucesso!
50
+
51
+ ⚠️ Atenção: configuração ausente.
52
+
53
+ ❌ Erro crítico detectado!
54
+
55
+ ✅ Processo concluído com êxito.
56
+ ```
57
+
58
+ # ⚙️ Funcionalidades
59
+
60
+ - ### Mensagens com cores e ícones contextuais.
61
+
62
+ - ### Suporte a diferentes níveis de log.
63
+
64
+ - ### Compatível com Linux e macOS.
65
+
66
+ - ### Sem dependências externas pesadas.
67
+
68
+ # 📄 Licença
69
+
70
+ ### Distribuído sob a licença MIT.
71
+ ### Veja o arquivo LICENSE para mais informações.
72
+
73
+ # 👤 Autor
74
+ ## 💼 LinkedIn
75
+ - ### Marley
76
+ - ### Desenvolvedor de Software
77
+
78
+
79
+ ### 📧 marleysbenicio@gmail.com
@@ -0,0 +1,18 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "Pyrisma"
7
+ version = "0.0.1"
8
+ authors = [
9
+ { name="Marley Benicio", email="marleysbenicio@gmail.com" }
10
+ ]
11
+ description = "Uma biblioteca para deixar mensagens coloridas e estilosas no terminal."
12
+ readme = "README.md"
13
+ license = { text = "MIT" }
14
+ requires-python = ">=3.9"
15
+ dependencies = []
16
+
17
+ [project.urls]
18
+ Homepage = "https://github.com/seuusuario/minha-biblioteca"
@@ -0,0 +1,31 @@
1
+ [metadata]
2
+ name = pyrisma
3
+ version = 0.0.1
4
+ author = Marley
5
+ author_email = marleysbenicio@gmail.com
6
+ description = Biblioteca Python para exibir mensagens coloridas e com ícones no terminal.
7
+ long_description = file: README.md
8
+ long_description_content_type = text/markdown
9
+ license = MIT
10
+ classifiers =
11
+ Programming Language :: Python :: 3
12
+ License :: OSI Approved :: MIT License
13
+ Operating System :: OS Independent
14
+ Development Status :: 4 - Beta
15
+ Intended Audience :: Developers
16
+ Topic :: Software Development :: Libraries
17
+
18
+ [options]
19
+ package_dir =
20
+ = src
21
+ packages = find:
22
+ python_requires = >=3.9
23
+ include_package_data = True
24
+
25
+ [options.packages.find]
26
+ where = src
27
+
28
+ [egg_info]
29
+ tag_build =
30
+ tag_date = 0
31
+
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.4
2
+ Name: Pyrisma
3
+ Version: 0.0.1
4
+ Summary: Uma biblioteca para deixar mensagens coloridas e estilosas no terminal.
5
+ Author: Marley
6
+ Author-email: Marley Benicio <marleysbenicio@gmail.com>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/seuusuario/minha-biblioteca
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: license-file
13
+
14
+ # 🧾 README.md
15
+ # 💬 Pyrisma
16
+
17
+ Uma biblioteca Python para exibir mensagens coloridas e estilizadas no terminal, com ícones e formatação moderna.
18
+ Ideal para quem quer logs mais visuais, legíveis e com um toque de personalidade.
19
+
20
+ ---
21
+
22
+ ## 🚀 Instalação
23
+
24
+ ```bash
25
+ pip install pyrisma
26
+ ```
27
+
28
+ # 🧠 Uso básico
29
+ ```python
30
+ from pyrisma import terminal
31
+
32
+ terminal.info("Sistema iniciado com sucesso!")
33
+ terminal.warning("Atenção: configuração ausente.")
34
+ terminal.error("Erro crítico detectado!")
35
+ terminal.success("Processo concluído com êxito.")
36
+ ```
37
+
38
+ ### Primeiro argumento: Mensagem: str
39
+ ```python
40
+ terminal.info('mensagem')
41
+ ```
42
+ ### Segundo argumento: Estilo: str
43
+ ```python
44
+ terminal.info('mensagem', 'bold')
45
+ ```
46
+ ### Terceiro argumento: Ícone: bool
47
+ ```python
48
+ terminal.info('mensagem', 'bold', True)
49
+ ```
50
+ ### Quarto argumento: Intermitência: bool
51
+ ```python
52
+ terminal.info('mensagem', 'bold', True, True)
53
+ ```
54
+ ### Quinto argumento: Timestamp: bool
55
+ ```python
56
+ terminal.info('mensagem', 'bold', True, True, True)
57
+ ```
58
+
59
+ ### Saída esperada (com cores e ícones, dependendo do terminal):
60
+
61
+ ```bash
62
+ ℹ️ Sistema iniciado com sucesso!
63
+
64
+ ⚠️ Atenção: configuração ausente.
65
+
66
+ ❌ Erro crítico detectado!
67
+
68
+ ✅ Processo concluído com êxito.
69
+ ```
70
+
71
+ # ⚙️ Funcionalidades
72
+
73
+ - ### Mensagens com cores e ícones contextuais.
74
+
75
+ - ### Suporte a diferentes níveis de log.
76
+
77
+ - ### Compatível com Linux e macOS.
78
+
79
+ - ### Sem dependências externas pesadas.
80
+
81
+ # 📄 Licença
82
+
83
+ ### Distribuído sob a licença MIT.
84
+ ### Veja o arquivo LICENSE para mais informações.
85
+
86
+ # 👤 Autor
87
+ ## 💼 LinkedIn
88
+ - ### Marley
89
+ - ### Desenvolvedor de Software
90
+
91
+
92
+ ### 📧 marleysbenicio@gmail.com
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.cfg
5
+ src/Pyrisma.egg-info/PKG-INFO
6
+ src/Pyrisma.egg-info/SOURCES.txt
7
+ src/Pyrisma.egg-info/dependency_links.txt
8
+ src/Pyrisma.egg-info/top_level.txt
9
+ src/pyrisma/Colors.py
10
+ src/pyrisma/__init__.py
@@ -0,0 +1 @@
1
+ pyrisma
@@ -0,0 +1,132 @@
1
+ from datetime import datetime
2
+ class Colors:
3
+ def __init__(self) -> None:
4
+ self.colors = {
5
+ # Text colors (normal)
6
+ 'black' : "\033[30m",
7
+ 'red' : "\033[31m",
8
+ 'green' : "\033[32m",
9
+ 'yellow' : "\033[33m",
10
+ 'blue' : "\033[34m",
11
+ 'magenta' : "\033[35m",
12
+ 'cyan' : "\033[36m",
13
+ 'white' : "\033[37m",
14
+
15
+ # Bright text colors
16
+ 'bright_black' : "\033[90m",
17
+ 'bright_red' : "\033[91m",
18
+ 'bright_green' : "\033[92m",
19
+ 'bright_yellow' : "\033[93m",
20
+ 'bright_blue' : "\033[94m",
21
+ 'bright_magenta' : "\033[95m",
22
+ 'bright_cyan' : "\033[96m",
23
+ 'bright_white' : "\033[97m",
24
+
25
+ # Background colors (normal)
26
+ 'bg_black' : "\033[40m",
27
+ 'bg_red' : "\033[41m",
28
+ 'bg_green' : "\033[42m",
29
+ 'bg_yellow' : "\033[43m",
30
+ 'bg_blue' : "\033[44m",
31
+ 'bg_magenta' : "\033[45m",
32
+ 'bg_cyan' : "\033[46m",
33
+ 'bg_white' : "\033[47m",
34
+
35
+ # Bright backgrounds
36
+ 'bg_bright_black' : "\033[100m",
37
+ 'bg_bright_red' : "\033[101m",
38
+ 'bg_bright_green' : "\033[102m",
39
+ 'bg_bright_yellow' : "\033[103m",
40
+ 'bg_bright_blue' : "\033[104m",
41
+ 'bg_bright_magenta' : "\033[105m",
42
+ 'bg_bright_cyan' : "\033[106m",
43
+ 'bg_bright_white' : "\033[107m",
44
+
45
+ # Styles
46
+ 'bold' : "\033[1m",
47
+ 'italic' : "\033[3m",
48
+ 'underline' : "\033[4m",
49
+ 'double_underline' : "\033[21m",
50
+ 'blink' : "\033[5m",
51
+ 'reverse' : "\033[7m",
52
+ 'hidden' : "\033[8m",
53
+ 'strike' : "\033[9m",
54
+
55
+ # Reset
56
+ 'reset' : "\033[0m",
57
+ 'normal' : "\033[2m"
58
+ }
59
+
60
+ self.icons = {
61
+ 'void': '',
62
+ 'info': f'{chr(10069)} ',
63
+ 'error': f'{chr(10060)} ',
64
+ 'debug': f'{chr(10067)} ',
65
+ 'success': f'{chr(9989)} ',
66
+ 'warning': f'{chr(10071)} ',
67
+ 'highlight': f'{chr(10062)} ',
68
+ }
69
+
70
+ # Métodos utilitários
71
+ def color(self, name: str) -> str:
72
+ return self.colors.get(name, self.colors['reset'])
73
+
74
+ def icon(self, name: str) -> str:
75
+ return self.icons.get(name, '')
76
+
77
+ def reset(self) -> str:
78
+ return self.colors['reset']
79
+
80
+ # Sucesso
81
+ def success(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
82
+ style = style if style else 'normal'
83
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
84
+ name_icon = 'void' if not icon else 'success'
85
+ blink_icon = 'blink' if icon_blink else 'normal'
86
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['green']}{self.colors[style]}{msg}{self.reset()}")
87
+ return None
88
+
89
+ # Erro
90
+ def error(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
91
+ style = style if style else 'normal'
92
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
93
+ name_icon = 'void' if not icon else 'error'
94
+ blink_icon = 'blink' if icon_blink else 'normal'
95
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['bright_red']}{self.colors[style]}{msg}{self.reset()}")
96
+ return None
97
+
98
+ # Aviso
99
+ def warning(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
100
+ style = style if style else 'normal'
101
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
102
+ name_icon = 'void' if not icon else 'warning'
103
+ blink_icon = 'blink' if icon_blink else 'normal'
104
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['bright_yellow']}{self.colors[style]}{msg}{self.reset()}")
105
+ return None
106
+
107
+ # Informação
108
+ def info(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
109
+ style = style if style else 'normal'
110
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
111
+ name_icon = 'void' if not icon else 'info'
112
+ blink_icon = 'blink' if icon_blink else 'normal'
113
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['bright_blue']}{self.colors[style]}{msg}{self.reset()}")
114
+ return None
115
+
116
+ # Debug
117
+ def debug(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
118
+ style = style if style else 'normal'
119
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
120
+ name_icon = 'void' if not icon else 'debug'
121
+ blink_icon = 'blink' if icon_blink else 'normal'
122
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['bright_magenta']}{self.colors[style]}{msg}{self.reset()}")
123
+ return None
124
+
125
+ # Importante / Destaque
126
+ def highlight(self, msg: str, style: str = None, icon: bool = False, icon_blink: bool = False, time_clock: bool = False) -> None:
127
+ style = style if style else 'normal'
128
+ _clock = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] ' if time_clock else ''
129
+ name_icon = 'void' if not icon else 'highlight'
130
+ blink_icon = 'blink' if icon_blink else 'normal'
131
+ print(f"{_clock}{self.colors[blink_icon]}{self.icons[name_icon]}{self.colors['bright_white']}{self.colors[style]}{msg}{self.reset()}")
132
+ return None
@@ -0,0 +1,5 @@
1
+ from .Colors import Colors
2
+
3
+ __all__ = ["Colors"]
4
+
5
+ terminal = Colors()