pyinterfaces 0.4.0__tar.gz → 0.5.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: pyinterfaces
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Interface in POO with Python
5
5
  License-Expression: MIT
6
6
  License-File: license.txt
@@ -0,0 +1,45 @@
1
+ import os
2
+ import json
3
+
4
+ def inicializar_projeto():
5
+ print("\n🚀 Inicializando ambiente pyinterfaces...")
6
+
7
+ # 1. Caminho da pasta .vscode
8
+ pasta_vscode = ".vscode"
9
+ arquivo_settings = os.path.join(pasta_vscode, "settings.json")
10
+
11
+ # 2. Configurações que queremos injetar automaticamente
12
+ configuracoes = {
13
+ "python.analysis.diagnosticSeverityOverrides": {
14
+ "reportUndefinedVariable": "none",
15
+ "reportGeneralTypeIssues": "none",
16
+ "reportMissingImports": "none"
17
+ },
18
+ "python.analysis.ignore": [
19
+ "**/models/*.py",
20
+ "**/interfaces/*.py",
21
+ "*.py"
22
+ ]
23
+ }
24
+
25
+ try:
26
+ # Cria a pasta .vscode se ela não existir
27
+ if not os.path.exists(pasta_vscode):
28
+ os.makedirs(pasta_vscode)
29
+ print("📁 Pasta '.vscode' criada com sucesso.")
30
+
31
+ # Escreve o arquivo settings.json bonitinho
32
+ with open(arquivo_settings, "w", encoding="utf-8") as f:
33
+ json.dump(configuracoes, f, indent=4, ensure_ascii=False)
34
+
35
+ # 3. Cria as pastas padrões para o desenvolvedor usar
36
+ for pasta in ["models", "interfaces"]:
37
+ if not os.path.exists(pasta):
38
+ os.makedirs(pasta)
39
+ print(f"📁 Pasta '{pasta}' estruturada automaticamente.")
40
+
41
+ print("\n✨ Ambiente configurado com 100% de sucesso! Nenhuma linha amarela ou vermelha vai te incomodar.")
42
+ print("💡 Lembre-se de colocar '# -*- coding: py_interface -*-' no topo das suas interfaces.\n")
43
+
44
+ except Exception as e:
45
+ print(f"❌ Erro ao configurar o ambiente: {e}")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyinterfaces"
3
- version = "0.4.0"
3
+ version = "0.5.0"
4
4
  description = "Interface in POO with Python"
5
5
  authors = [
6
6
  {name = "Bruno Zolotareff",email = "brunozolotareff@gmail.com"}
@@ -8,6 +8,7 @@ authors = [
8
8
  readme = "README.md"
9
9
  keywords = ["interface", "java", "syntax", "brunozolotareff", "pyinterfaces"]
10
10
  packages = [{include = "pyinterfaces"}]
11
+ pyinterfaces-init = "pyinterfaces.cli:inicializar_projeto"
11
12
  license = "MIT"
12
13
  requires-python = ">=3.10"
13
14
  dependencies = [
File without changes
File without changes