text-utils-trusted 0.1.3__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.
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: text-utils-trusted
3
+ Version: 0.1.3
4
+ Summary: Biblioteca para manipulação de texto
5
+ Author-email: Ronnie Campos <roniepris@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/roniepris/text_utils_trusted
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+
11
+ # text_utils_trusted
@@ -0,0 +1 @@
1
+ # text_utils_trusted
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["setuptools>=75.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "text-utils-trusted"
7
+ version = "0.1.3"
8
+ description = "Biblioteca para manipulação de texto"
9
+ readme = "README.md"
10
+ authors = [
11
+ {name = "Ronnie Campos", email = "roniepris@gmail.com"}
12
+ ]
13
+ license = {text = "MIT"}
14
+ requires-python = ">=3.10"
15
+
16
+ dependencies = []
17
+
18
+ [project.urls]
19
+ "Homepage" = "https://github.com/roniepris/text_utils_trusted"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,22 @@
1
+ """
2
+ Pacote: text_utils
3
+ Ferramentas para manipulação de texto.
4
+ """
5
+
6
+ from .formatacao import (
7
+ inverter_texto,
8
+ contar_palavras,
9
+ remover_espacos_extras,
10
+ para_snake_case,
11
+ dividir_linhas,
12
+ )
13
+
14
+ __all__ = [
15
+ "inverter_texto",
16
+ "contar_palavras",
17
+ "remover_espacos_extras",
18
+ "para_snake_case",
19
+ "dividir_linhas",
20
+ ]
21
+
22
+ __version__ = "0.1.0"
@@ -0,0 +1,26 @@
1
+ from typing import List
2
+
3
+
4
+ def inverter_texto(texto: str) -> str:
5
+ """Retorna o texto invertido."""
6
+ return texto[::-1]
7
+
8
+
9
+ def contar_palavras(texto: str) -> int:
10
+ """Conta o número de palavras em uma string."""
11
+ return len(texto.split())
12
+
13
+
14
+ def remover_espacos_extras(texto: str) -> str:
15
+ """Remove espaços duplicados."""
16
+ return " ".join(texto.split())
17
+
18
+
19
+ def para_snake_case(texto: str) -> str:
20
+ """Converte texto para snake_case."""
21
+ return texto.strip().lower().replace(" ", "_")
22
+
23
+
24
+ def dividir_linhas(texto: str) -> List[str]:
25
+ """Divide texto em linhas."""
26
+ return texto.splitlines()
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: text-utils-trusted
3
+ Version: 0.1.3
4
+ Summary: Biblioteca para manipulação de texto
5
+ Author-email: Ronnie Campos <roniepris@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/roniepris/text_utils_trusted
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+
11
+ # text_utils_trusted
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/text_utils/__init__.py
4
+ src/text_utils/formatacao.py
5
+ src/text_utils_trusted.egg-info/PKG-INFO
6
+ src/text_utils_trusted.egg-info/SOURCES.txt
7
+ src/text_utils_trusted.egg-info/dependency_links.txt
8
+ src/text_utils_trusted.egg-info/top_level.txt
9
+ tests/test_formatacao.py
@@ -0,0 +1,9 @@
1
+ from text_utils import inverter_texto, contar_palavras
2
+
3
+
4
+ def test_inverter_texto():
5
+ assert inverter_texto("abc") == "cba"
6
+
7
+
8
+ def test_contar_palavras():
9
+ assert contar_palavras("ola mundo python") == 3