base-loom-server 0.2__tar.gz → 0.2.1__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.
Files changed (54) hide show
  1. {base_loom_server-0.2/src/base_loom_server.egg-info → base_loom_server-0.2.1}/PKG-INFO +22 -11
  2. {base_loom_server-0.2 → base_loom_server-0.2.1}/README.md +14 -4
  3. {base_loom_server-0.2 → base_loom_server-0.2.1}/pyproject.toml +7 -6
  4. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/version.py +1 -1
  5. {base_loom_server-0.2 → base_loom_server-0.2.1/src/base_loom_server.egg-info}/PKG-INFO +22 -11
  6. base_loom_server-0.2.1/src/base_loom_server.egg-info/requires.txt +9 -0
  7. base_loom_server-0.2/src/base_loom_server.egg-info/requires.txt +0 -8
  8. {base_loom_server-0.2 → base_loom_server-0.2.1}/.gitignore +0 -0
  9. {base_loom_server-0.2 → base_loom_server-0.2.1}/.pre-commit-config.yaml +0 -0
  10. {base_loom_server-0.2 → base_loom_server-0.2.1}/LICENSE.txt +0 -0
  11. {base_loom_server-0.2 → base_loom_server-0.2.1}/setup.cfg +0 -0
  12. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/__init__.py +0 -0
  13. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/app_runner.py +0 -0
  14. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/base_loom_server.py +0 -0
  15. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/base_mock_loom.py +0 -0
  16. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/client_replies.py +0 -0
  17. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/constants.py +0 -0
  18. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/display.css +0 -0
  19. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/display.html_template +0 -0
  20. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/display.js +0 -0
  21. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/example_loom_server.py +0 -0
  22. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/example_mock_loom.py +0 -0
  23. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/favicon-32x32.png +0 -0
  24. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/locales/README.md +0 -0
  25. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/locales/default.json +0 -0
  26. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/locales/fr.json +0 -0
  27. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/main.py +0 -0
  28. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/mock_streams.py +0 -0
  29. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/pattern_database.py +0 -0
  30. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/py.typed +0 -0
  31. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/reduced_pattern.py +0 -0
  32. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color liftplan and zeros.dtx +0 -0
  33. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color liftplan and zeros.wif +0 -0
  34. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color multiple treadles and zeros.dtx +0 -0
  35. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color multiple treadles and zeros.wif +0 -0
  36. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color single treadles.dtx +0 -0
  37. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/many color single treadles.wif +0 -0
  38. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color liftplan.dtx +0 -0
  39. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color liftplan.wif +0 -0
  40. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color multiple treadles.dtx +0 -0
  41. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color multiple treadles.wif +0 -0
  42. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color single treadles.dtx +0 -0
  43. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/test_data/two color single treadles.wif +0 -0
  44. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server/testutils.py +0 -0
  45. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server.egg-info/SOURCES.txt +0 -0
  46. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server.egg-info/dependency_links.txt +0 -0
  47. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server.egg-info/entry_points.txt +0 -0
  48. {base_loom_server-0.2 → base_loom_server-0.2.1}/src/base_loom_server.egg-info/top_level.txt +0 -0
  49. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_loom_server.py +0 -0
  50. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_mock_loom.py +0 -0
  51. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_mock_streams.py +0 -0
  52. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_pattern_database.py +0 -0
  53. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_reduced_pattern.py +0 -0
  54. {base_loom_server-0.2 → base_loom_server-0.2.1}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: base_loom_server
3
- Version: 0.2
3
+ Version: 0.2.1
4
4
  Summary: Base package for web servers that control dobby multi-shaft looms
5
5
  Author-email: Russell Owen <r3owen@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/r-owen/base_loom_server
@@ -11,13 +11,14 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.txt
14
- Requires-Dist: fastapi>=0.115
15
- Requires-Dist: dtx_to_wif>=3.0
16
- Requires-Dist: pyserial-asyncio>=0.6
14
+ Requires-Dist: aiosqlite>=0.20
15
+ Requires-Dist: dtx_to_wif~=3.0
16
+ Requires-Dist: fastapi[standard]~=0.115
17
+ Requires-Dist: pyserial-asyncio~=0.6
17
18
  Provides-Extra: dev
18
- Requires-Dist: pre-commit>=3.8; extra == "dev"
19
- Requires-Dist: pytest>=8.3; extra == "dev"
20
- Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
19
+ Requires-Dist: pre-commit~=4.0; extra == "dev"
20
+ Requires-Dist: pytest~=8.3; extra == "dev"
21
+ Requires-Dist: pytest-asyncio~=0.25; extra == "dev"
21
22
 
22
23
  # Base package for web servers that control dobby multi-shaft looms
23
24
 
@@ -59,18 +60,28 @@ You may also want to reset the database if you are weaving a new project and don
59
60
 
60
61
  * Inside the directory, issue the following commands:
61
62
 
62
- * **pip install -e .** (note the final period) to make an "editable installation" of the package.
63
+ * **pip install -e .'[dev]'** (the single quotes are required in zsh, but not in bash)
64
+ to make an "editable installation" of the package.
63
65
  An editable installation runs from the source code, so changes you make to the source are used when you run or test the code, without the need to reinstall the package.
66
+ **'[dev]'** installs development-related packages such as pytest (see the file `pyproject.toml` for the full list).
64
67
 
65
68
  * **pre-commit install** to activate the pre-commit hooks.
69
+
70
+ * **pytest** to test your installation.
66
71
 
67
- * You may run a mock loom by starting the server with: **run_example_loom mock**.
68
- The mock loom does not use a serial port.
69
- **run_example_loom** also accepts these command-line arguments:
72
+ * You may run an example loom server with: **run_example_loom mock**.
73
+ Please only specify the **mock** serial port; do not try to connect the example loom server
74
+ to any real dobby loom, because it will not work.
75
+
76
+ **run_example_loom mock** also accepts these command-line arguments:
70
77
 
71
78
  * **--reset-db** Reset the pattern database. Try this if you think the database is corrupted.
72
79
 
73
80
  * **--verbose** Print more diagnostic information.
81
+
82
+ Note that the example loom server uses the same pattern database as
83
+ [seguin_loom_server](<https://pypi.org/project/seguin-loom-server/)>)
84
+ and [toika_loom_server](https://pypi.org/project/toika-loom-server/).
74
85
 
75
86
  * In mock mode the web page shows a few extra controls for debugging.
76
87
 
@@ -38,18 +38,28 @@ You may also want to reset the database if you are weaving a new project and don
38
38
 
39
39
  * Inside the directory, issue the following commands:
40
40
 
41
- * **pip install -e .** (note the final period) to make an "editable installation" of the package.
41
+ * **pip install -e .'[dev]'** (the single quotes are required in zsh, but not in bash)
42
+ to make an "editable installation" of the package.
42
43
  An editable installation runs from the source code, so changes you make to the source are used when you run or test the code, without the need to reinstall the package.
44
+ **'[dev]'** installs development-related packages such as pytest (see the file `pyproject.toml` for the full list).
43
45
 
44
46
  * **pre-commit install** to activate the pre-commit hooks.
47
+
48
+ * **pytest** to test your installation.
45
49
 
46
- * You may run a mock loom by starting the server with: **run_example_loom mock**.
47
- The mock loom does not use a serial port.
48
- **run_example_loom** also accepts these command-line arguments:
50
+ * You may run an example loom server with: **run_example_loom mock**.
51
+ Please only specify the **mock** serial port; do not try to connect the example loom server
52
+ to any real dobby loom, because it will not work.
53
+
54
+ **run_example_loom mock** also accepts these command-line arguments:
49
55
 
50
56
  * **--reset-db** Reset the pattern database. Try this if you think the database is corrupted.
51
57
 
52
58
  * **--verbose** Print more diagnostic information.
59
+
60
+ Note that the example loom server uses the same pattern database as
61
+ [seguin_loom_server](<https://pypi.org/project/seguin-loom-server/)>)
62
+ and [toika_loom_server](https://pypi.org/project/toika-loom-server/).
53
63
 
54
64
  * In mock mode the web page shows a few extra controls for debugging.
55
65
 
@@ -11,9 +11,10 @@ dynamic = ["version"]
11
11
  description = "Base package for web servers that control dobby multi-shaft looms"
12
12
  readme = "README.md"
13
13
  dependencies = [
14
- "fastapi >= 0.115",
15
- "dtx_to_wif >= 3.0",
16
- "pyserial-asyncio >= 0.6",
14
+ "aiosqlite >= 0.20",
15
+ "dtx_to_wif ~= 3.0",
16
+ "fastapi[standard] ~= 0.115",
17
+ "pyserial-asyncio ~= 0.6",
17
18
  ]
18
19
  authors = [
19
20
  { name="Russell Owen", email="r3owen@gmail.com" },
@@ -27,9 +28,9 @@ requires-python = ">=3.11"
27
28
 
28
29
  [project.optional-dependencies]
29
30
  dev = [
30
- "pre-commit >= 3.8",
31
- "pytest >= 8.3",
32
- "pytest-asyncio >= 0.24",
31
+ "pre-commit ~= 4.0",
32
+ "pytest ~= 8.3",
33
+ "pytest-asyncio ~= 0.25",
33
34
  ]
34
35
 
35
36
  # Needed due to including package data below
@@ -1,3 +1,3 @@
1
1
  # Generated by setuptools_scm
2
2
  __all__ = ["__version__"]
3
- __version__ = "0.2"
3
+ __version__ = "0.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: base_loom_server
3
- Version: 0.2
3
+ Version: 0.2.1
4
4
  Summary: Base package for web servers that control dobby multi-shaft looms
5
5
  Author-email: Russell Owen <r3owen@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/r-owen/base_loom_server
@@ -11,13 +11,14 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.txt
14
- Requires-Dist: fastapi>=0.115
15
- Requires-Dist: dtx_to_wif>=3.0
16
- Requires-Dist: pyserial-asyncio>=0.6
14
+ Requires-Dist: aiosqlite>=0.20
15
+ Requires-Dist: dtx_to_wif~=3.0
16
+ Requires-Dist: fastapi[standard]~=0.115
17
+ Requires-Dist: pyserial-asyncio~=0.6
17
18
  Provides-Extra: dev
18
- Requires-Dist: pre-commit>=3.8; extra == "dev"
19
- Requires-Dist: pytest>=8.3; extra == "dev"
20
- Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
19
+ Requires-Dist: pre-commit~=4.0; extra == "dev"
20
+ Requires-Dist: pytest~=8.3; extra == "dev"
21
+ Requires-Dist: pytest-asyncio~=0.25; extra == "dev"
21
22
 
22
23
  # Base package for web servers that control dobby multi-shaft looms
23
24
 
@@ -59,18 +60,28 @@ You may also want to reset the database if you are weaving a new project and don
59
60
 
60
61
  * Inside the directory, issue the following commands:
61
62
 
62
- * **pip install -e .** (note the final period) to make an "editable installation" of the package.
63
+ * **pip install -e .'[dev]'** (the single quotes are required in zsh, but not in bash)
64
+ to make an "editable installation" of the package.
63
65
  An editable installation runs from the source code, so changes you make to the source are used when you run or test the code, without the need to reinstall the package.
66
+ **'[dev]'** installs development-related packages such as pytest (see the file `pyproject.toml` for the full list).
64
67
 
65
68
  * **pre-commit install** to activate the pre-commit hooks.
69
+
70
+ * **pytest** to test your installation.
66
71
 
67
- * You may run a mock loom by starting the server with: **run_example_loom mock**.
68
- The mock loom does not use a serial port.
69
- **run_example_loom** also accepts these command-line arguments:
72
+ * You may run an example loom server with: **run_example_loom mock**.
73
+ Please only specify the **mock** serial port; do not try to connect the example loom server
74
+ to any real dobby loom, because it will not work.
75
+
76
+ **run_example_loom mock** also accepts these command-line arguments:
70
77
 
71
78
  * **--reset-db** Reset the pattern database. Try this if you think the database is corrupted.
72
79
 
73
80
  * **--verbose** Print more diagnostic information.
81
+
82
+ Note that the example loom server uses the same pattern database as
83
+ [seguin_loom_server](<https://pypi.org/project/seguin-loom-server/)>)
84
+ and [toika_loom_server](https://pypi.org/project/toika-loom-server/).
74
85
 
75
86
  * In mock mode the web page shows a few extra controls for debugging.
76
87
 
@@ -0,0 +1,9 @@
1
+ aiosqlite>=0.20
2
+ dtx_to_wif~=3.0
3
+ fastapi[standard]~=0.115
4
+ pyserial-asyncio~=0.6
5
+
6
+ [dev]
7
+ pre-commit~=4.0
8
+ pytest~=8.3
9
+ pytest-asyncio~=0.25
@@ -1,8 +0,0 @@
1
- fastapi>=0.115
2
- dtx_to_wif>=3.0
3
- pyserial-asyncio>=0.6
4
-
5
- [dev]
6
- pre-commit>=3.8
7
- pytest>=8.3
8
- pytest-asyncio>=0.24