winfacilityfetch 0.2__tar.gz → 0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winfacilityfetch
3
- Version: 0.2
3
+ Version: 0.3
4
4
  Summary: Simple Windows fetch library
5
5
  Home-page: https://github.com/SEUUSER/winfacilityfetch
6
6
  Author: Jovenzinho
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="winfacilityfetch",
5
- version="0.2",
5
+ version="0.3",
6
6
  author="Jovenzinho",
7
7
  description="Simple Windows fetch library",
8
8
  url="https://github.com/SEUUSER/winfacilityfetch",
@@ -9,9 +9,9 @@ def cpu():
9
9
  """
10
10
  Função para puxar a cpu do pc
11
11
  - Exemplo de uso:
12
- > import winfacilityfetch as wf
13
- > cpu = wf.cpu()
14
- > print(cpu)
12
+ \n> import winfacilityfetch as wf
13
+ \n> cpu = wf.cpu()
14
+ \n> print(cpu)
15
15
  """
16
16
  cpu = f"Cpu: {cpuinfo.get_cpu_info()['brand_raw']}"
17
17
  return cpu
@@ -21,9 +21,9 @@ def ram():
21
21
  """
22
22
  Função para puxar a ram total do pc
23
23
  - Exemplo de uso:
24
- > import winfacilityfetch as wf
25
- > ram = wf.ram()
26
- > print(ram)
24
+ \n> import winfacilityfetch as wf
25
+ \n> ram = wf.ram()
26
+ \n> print(ram)
27
27
  """
28
28
  ram = f"Ram: {round(psutil.virtual_memory().total / (1024**3), 2)}"
29
29
  return ram
@@ -33,9 +33,9 @@ def windows():
33
33
  """
34
34
  Função para puxar o windows
35
35
  - Exemplo de uso:
36
- > import winfacilityfetch as wf
37
- > windows = wf.windows()
38
- > print(windows)
36
+ \n> import winfacilityfetch as wf
37
+ \n> windows = wf.windows()
38
+ \n> print(windows)
39
39
  """
40
40
  windows = f"Windows: {platform.system()} {platform.release()}"
41
41
  return windows
@@ -45,9 +45,9 @@ def pc_name():
45
45
  """
46
46
  Função para puxar o HostName (Nome do pc)
47
47
  - Exempo de uso:
48
- > import winfacilityfetch as wf
49
- > pc_name = wf.pc_name()
50
- > print(pc_name)
48
+ \n> import winfacilityfetch as wf
49
+ \n> pc_name = wf.pc_name()
50
+ \n> print(pc_name)
51
51
  """
52
52
  pc_name = f"Pc name: {socket.gethostname()}"
53
53
  return pc_name
@@ -57,9 +57,9 @@ def gpu():
57
57
  """
58
58
  Função para puxar a gpu
59
59
  - Exemplo de uso:
60
- > import winfacilityfetch as wf
61
- > gpu = wf.gpu()
62
- > print(gpu)
60
+ \n> import winfacilityfetch as wf
61
+ \n> gpu = wf.gpu()
62
+ \n> print(gpu)
63
63
 
64
64
  """
65
65
  gpu_cmd = "wmic path win32_VideoController get name"
@@ -74,9 +74,9 @@ def disk():
74
74
  """
75
75
  Função para puxar o uso do disco, o espaço total, a porcentagem de uso e o espaço livre
76
76
  - Exemplo de uso:
77
- > import winfacilityfetch as wf
78
- > disk = wf.disk()
79
- > print(disk)
77
+ \n> import winfacilityfetch as wf
78
+ \n> disk = wf.disk()
79
+ \n> print(disk)
80
80
  """
81
81
  disk = f"{round(psutil.disk_usage('/').used / (1024**3))}GB/{round(psutil.disk_usage('/').total / (1024**3))}GB ({psutil.disk_usage('/').percent}%, {round(psutil.disk_usage('/').free / (1024**3))}GB livres)"
82
82
  return disk
@@ -86,9 +86,9 @@ def cpu_usage():
86
86
  """
87
87
  Função para puxar o uso da cpu
88
88
  - Exemplo de uso:
89
- > import winfacilityfetch as wf
90
- > cpu_usage = wf.cpu_usage()
91
- > print(cpu_usage)
89
+ \n> import winfacilityfetch as wf
90
+ \n> cpu_usage = wf.cpu_usage()
91
+ \n> print(cpu_usage)
92
92
  """
93
93
  cpu_usage = f"Cpu usage: {psutil.cpu_percent(interval=1)}%"
94
94
  return cpu_usage
@@ -98,9 +98,9 @@ def ram_usage():
98
98
  """
99
99
  Função para puxar a quantidade de ram que o pc está usando.
100
100
  - Exemplo de uso:
101
- > import winfacilityfetch as wf
102
- > ram_usage = wf.ram_usage()
103
- > print(ram_usage) # O "Ram usage: " já vem na variavel da biblioteca, ou seja, não precisa colocar ele junto no print
101
+ \n> import winfacilityfetch as wf
102
+ \n> ram_usage = wf.ram_usage()
103
+ \n> print(ram_usage) # O "Ram usage: " já vem na variavel da biblioteca, ou seja, não precisa colocar ele junto no print
104
104
 
105
105
  """
106
106
  ram_usage = f"Ram usage: {psutil.virtual_memory().percent}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winfacilityfetch
3
- Version: 0.2
3
+ Version: 0.3
4
4
  Summary: Simple Windows fetch library
5
5
  Home-page: https://github.com/SEUUSER/winfacilityfetch
6
6
  Author: Jovenzinho
File without changes