zeushell 1.0.0__tar.gz → 1.0.2__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.1
2
2
  Name: zeushell
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A small Python package published to PyPI
5
5
  Author-email: Zeus <zeus@gmail.com>
6
6
  License: MIT
@@ -28,14 +28,15 @@ pip install zeushell
28
28
  ## Quick Start
29
29
 
30
30
  ```python
31
- from zeushell import function, name, run
31
+ from zeushell import Zeushell
32
32
 
33
- @function()
33
+ z = Zeushell()
34
+ @z.function()
34
35
  def hi(user):
35
- return f"Hello {user}"
36
+ return "Hello "+user
36
37
 
37
- name("zeushell")
38
- run()
38
+ z.name("zeushell")
39
+ z.run()
39
40
  ```
40
41
 
41
42
  Shell:
@@ -18,14 +18,15 @@ pip install zeushell
18
18
  ## Quick Start
19
19
 
20
20
  ```python
21
- from zeushell import function, name, run
21
+ from zeushell import Zeushell
22
22
 
23
- @function()
23
+ z = Zeushell()
24
+ @z.function()
24
25
  def hi(user):
25
- return f"Hello {user}"
26
+ return "Hello "+user
26
27
 
27
- name("zeushell")
28
- run()
28
+ z.name("zeushell")
29
+ z.run()
29
30
  ```
30
31
 
31
32
  Shell:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "zeushell"
3
- version = "1.0.0"
3
+ version = "1.0.2"
4
4
  description ="A small Python package published to PyPI"
5
5
  authors = [
6
6
  {name = "Zeus", email = "zeus@gmail.com"}
@@ -1,11 +1,12 @@
1
- def start():
2
- qqqqqqq=open("w.txt","w")
3
- qqqqqqq.write("[]")
4
- qqqqqqq.close()
5
- def name(a):
1
+ class Zeushell:
2
+ def __init__(self):
3
+ qqqqqqq=open("w.txt","w")
4
+ qqqqqqq.write("[]")
5
+ qqqqqqq.close()
6
+ def name(a):
6
7
  global shellname
7
8
  shellname=a
8
- def function():
9
+ def function():
9
10
  import ast
10
11
  def dd(func):
11
12
  try:
@@ -20,7 +21,7 @@ def function():
20
21
  qqqqqqq.close()
21
22
  return func
22
23
  return dd
23
- def run():
24
+ def run():
24
25
  import __main__
25
26
  import ast
26
27
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zeushell
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A small Python package published to PyPI
5
5
  Author-email: Zeus <zeus@gmail.com>
6
6
  License: MIT
@@ -28,14 +28,15 @@ pip install zeushell
28
28
  ## Quick Start
29
29
 
30
30
  ```python
31
- from zeushell import function, name, run
31
+ from zeushell import Zeushell
32
32
 
33
- @function()
33
+ z = Zeushell()
34
+ @z.function()
34
35
  def hi(user):
35
- return f"Hello {user}"
36
+ return "Hello "+user
36
37
 
37
- name("zeushell")
38
- run()
38
+ z.name("zeushell")
39
+ z.run()
39
40
  ```
40
41
 
41
42
  Shell:
File without changes