pytunium 0.1__tar.gz → 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.4
2
2
  Name: pytunium
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: A simulator for programs written in the JVM assembler language of pytunia
5
5
  Author: Karl Stroetmann
6
6
  License-Expression: BSD-3-Clause
@@ -49,24 +49,49 @@ The window has three columns:
49
49
  Below the columns, the output area shows what the program prints, and the
50
50
  warnings and errors of the simulator.
51
51
 
52
- ## Installation and start
52
+ ## Installation
53
+
54
+ pytunium is available on [PyPI](https://pypi.org/project/pytunium/):
55
+
56
+ pip install pytunium
57
+
58
+ This installs [pytunia](https://pypi.org/project/pytunia/), too: it checks the
59
+ syntax of the program before the simulation starts, so the error messages are
60
+ the same as when assembling.
61
+
62
+ If several versions of Python are installed, install pytunium for the Python
63
+ that you want to start it with:
64
+
65
+ python3 -m pip install pytunium # macOS and Linux
66
+ py -m pip install pytunium # Windows
67
+
68
+ To update pytunium to the newest version:
69
+
70
+ pip install --upgrade pytunium
71
+
72
+ pytunium needs Python 3.12 or newer with Tkinter. The installers from
73
+ python.org and Anaconda contain Tkinter; with Homebrew, install it with
74
+ `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
75
+ To check whether Tkinter works, run `python3 -m tkinter`: it opens a small
76
+ window.
77
+
78
+ The development version from GitHub, which may contain changes that are not
79
+ on PyPI yet:
80
+
81
+ pip install git+https://github.com/karlstroetmann/pytunium
82
+
83
+ ## Starting the simulator
53
84
 
54
- pip install pytunium # installs pytunia, too
55
85
  pytunium Sum.jas # or: python3 -m pytunium Sum.jas
56
86
 
57
87
  Without a file, the example `Sum.jas` from Chapter 12 is shown. The examples
58
88
  `Sum.jas`, `Hello.jas` and `Primes.jas` (generated by the compiler of
59
- Chapter 13) are in `pytunium/examples`.
89
+ Chapter 13) are in the folder `pytunium/examples` of the repository, and of the
90
+ installed package.
60
91
 
61
92
  Options: `--font-size N` (default 14) and `--speed N` (1 = slow, 10 = no
62
93
  animation).
63
94
 
64
- pytunium needs Python 3.12 or newer with Tkinter. The installers from
65
- python.org and Anaconda contain Tkinter; with Homebrew, install it with
66
- `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
67
- pytunia checks the syntax of the program first, so the error messages are the
68
- same as when assembling.
69
-
70
95
  ## Controls
71
96
 
72
97
  | Button / key | Effect |
@@ -19,24 +19,49 @@ The window has three columns:
19
19
  Below the columns, the output area shows what the program prints, and the
20
20
  warnings and errors of the simulator.
21
21
 
22
- ## Installation and start
22
+ ## Installation
23
+
24
+ pytunium is available on [PyPI](https://pypi.org/project/pytunium/):
25
+
26
+ pip install pytunium
27
+
28
+ This installs [pytunia](https://pypi.org/project/pytunia/), too: it checks the
29
+ syntax of the program before the simulation starts, so the error messages are
30
+ the same as when assembling.
31
+
32
+ If several versions of Python are installed, install pytunium for the Python
33
+ that you want to start it with:
34
+
35
+ python3 -m pip install pytunium # macOS and Linux
36
+ py -m pip install pytunium # Windows
37
+
38
+ To update pytunium to the newest version:
39
+
40
+ pip install --upgrade pytunium
41
+
42
+ pytunium needs Python 3.12 or newer with Tkinter. The installers from
43
+ python.org and Anaconda contain Tkinter; with Homebrew, install it with
44
+ `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
45
+ To check whether Tkinter works, run `python3 -m tkinter`: it opens a small
46
+ window.
47
+
48
+ The development version from GitHub, which may contain changes that are not
49
+ on PyPI yet:
50
+
51
+ pip install git+https://github.com/karlstroetmann/pytunium
52
+
53
+ ## Starting the simulator
23
54
 
24
- pip install pytunium # installs pytunia, too
25
55
  pytunium Sum.jas # or: python3 -m pytunium Sum.jas
26
56
 
27
57
  Without a file, the example `Sum.jas` from Chapter 12 is shown. The examples
28
58
  `Sum.jas`, `Hello.jas` and `Primes.jas` (generated by the compiler of
29
- Chapter 13) are in `pytunium/examples`.
59
+ Chapter 13) are in the folder `pytunium/examples` of the repository, and of the
60
+ installed package.
30
61
 
31
62
  Options: `--font-size N` (default 14) and `--speed N` (1 = slow, 10 = no
32
63
  animation).
33
64
 
34
- pytunium needs Python 3.12 or newer with Tkinter. The installers from
35
- python.org and Anaconda contain Tkinter; with Homebrew, install it with
36
- `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
37
- pytunia checks the syntax of the program first, so the error messages are the
38
- same as when assembling.
39
-
40
65
  ## Controls
41
66
 
42
67
  | Button / key | Effect |
@@ -7,7 +7,7 @@ working area where the computation of every instruction is displayed.
7
7
  python3 -m pytunium Sum.jas
8
8
  """
9
9
 
10
- __version__ = "0.1"
10
+ __version__ = "0.2"
11
11
 
12
12
  from .program import parse, Program, Method, Instruction, SourceError
13
13
  from .machine import Machine, MachineError, Event
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytunium
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: A simulator for programs written in the JVM assembler language of pytunia
5
5
  Author: Karl Stroetmann
6
6
  License-Expression: BSD-3-Clause
@@ -49,24 +49,49 @@ The window has three columns:
49
49
  Below the columns, the output area shows what the program prints, and the
50
50
  warnings and errors of the simulator.
51
51
 
52
- ## Installation and start
52
+ ## Installation
53
+
54
+ pytunium is available on [PyPI](https://pypi.org/project/pytunium/):
55
+
56
+ pip install pytunium
57
+
58
+ This installs [pytunia](https://pypi.org/project/pytunia/), too: it checks the
59
+ syntax of the program before the simulation starts, so the error messages are
60
+ the same as when assembling.
61
+
62
+ If several versions of Python are installed, install pytunium for the Python
63
+ that you want to start it with:
64
+
65
+ python3 -m pip install pytunium # macOS and Linux
66
+ py -m pip install pytunium # Windows
67
+
68
+ To update pytunium to the newest version:
69
+
70
+ pip install --upgrade pytunium
71
+
72
+ pytunium needs Python 3.12 or newer with Tkinter. The installers from
73
+ python.org and Anaconda contain Tkinter; with Homebrew, install it with
74
+ `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
75
+ To check whether Tkinter works, run `python3 -m tkinter`: it opens a small
76
+ window.
77
+
78
+ The development version from GitHub, which may contain changes that are not
79
+ on PyPI yet:
80
+
81
+ pip install git+https://github.com/karlstroetmann/pytunium
82
+
83
+ ## Starting the simulator
53
84
 
54
- pip install pytunium # installs pytunia, too
55
85
  pytunium Sum.jas # or: python3 -m pytunium Sum.jas
56
86
 
57
87
  Without a file, the example `Sum.jas` from Chapter 12 is shown. The examples
58
88
  `Sum.jas`, `Hello.jas` and `Primes.jas` (generated by the compiler of
59
- Chapter 13) are in `pytunium/examples`.
89
+ Chapter 13) are in the folder `pytunium/examples` of the repository, and of the
90
+ installed package.
60
91
 
61
92
  Options: `--font-size N` (default 14) and `--speed N` (1 = slow, 10 = no
62
93
  animation).
63
94
 
64
- pytunium needs Python 3.12 or newer with Tkinter. The installers from
65
- python.org and Anaconda contain Tkinter; with Homebrew, install it with
66
- `brew install python-tk`, on Debian/Ubuntu with `sudo apt install python3-tk`.
67
- pytunia checks the syntax of the program first, so the error messages are the
68
- same as when assembling.
69
-
70
95
  ## Controls
71
96
 
72
97
  | Button / key | Effect |
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes