rgscore 0.14.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.
- rgscore-0.14.2/LICENSE +21 -0
- rgscore-0.14.2/PKG-INFO +51 -0
- rgscore-0.14.2/README.md +39 -0
- rgscore-0.14.2/pyproject.toml +46 -0
- rgscore-0.14.2/setup.cfg +4 -0
- rgscore-0.14.2/src/rgscore/__init__.py +3 -0
- rgscore-0.14.2/src/rgscore/model/__init__.py +0 -0
- rgscore-0.14.2/src/rgscore/model/register.py +584 -0
- rgscore-0.14.2/src/rgscore/model/reglist.py +154 -0
- rgscore-0.14.2/src/rgscore/model/sfix.py +26 -0
- rgscore-0.14.2/src/rgscore.egg-info/PKG-INFO +51 -0
- rgscore-0.14.2/src/rgscore.egg-info/SOURCES.txt +16 -0
- rgscore-0.14.2/src/rgscore.egg-info/dependency_links.txt +1 -0
- rgscore-0.14.2/src/rgscore.egg-info/requires.txt +3 -0
- rgscore-0.14.2/src/rgscore.egg-info/top_level.txt +1 -0
- rgscore-0.14.2/tests/test_integration_bmp581.py +96 -0
- rgscore-0.14.2/tests/test_register.py +795 -0
- rgscore-0.14.2/tests/test_reglist.py +511 -0
rgscore-0.14.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dmitri Priimak
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
rgscore-0.14.2/PKG-INFO
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rgscore
|
|
3
|
+
Version: 0.14.2
|
|
4
|
+
Summary: Python API for describing and accessing hardware registers
|
|
5
|
+
Requires-Python: >=3.13
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: bitstring<6.0.0,>=5.0.0
|
|
9
|
+
Requires-Dist: i2c-api>=0.20.0
|
|
10
|
+
Requires-Dist: pydantic>=2.14.1
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# RGSCore
|
|
14
|
+
|
|
15
|
+
[](https://github.com/Brainless-Software/rgscore/blob/master/LICENSE)
|
|
16
|
+
[](https://pypi.org/project/rgscore/)
|
|
17
|
+
[](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml)
|
|
18
|
+
[](https://brainless-software.github.io/rgscore/)
|
|
19
|
+
|
|
20
|
+
Python library that provides classes for representing, defining and accessing registers in the embedded devices.
|
|
21
|
+
|
|
22
|
+
Example:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from rgscore import Register, RegList, FieldDef
|
|
26
|
+
|
|
27
|
+
reglist = RegList(
|
|
28
|
+
registers=[
|
|
29
|
+
Register(
|
|
30
|
+
bit_len=8,
|
|
31
|
+
name="Foo",
|
|
32
|
+
address=0x01,
|
|
33
|
+
model=[FieldDef.value_of("a@[3:0]U4.1#ro")],
|
|
34
|
+
),
|
|
35
|
+
Register(
|
|
36
|
+
bit_len=8,
|
|
37
|
+
name="Bar",
|
|
38
|
+
address=0x02,
|
|
39
|
+
desc="Very important register",
|
|
40
|
+
model=[FieldDef.value_of("b1@[3:0]U4.1#ro"), FieldDef.value_of("b2@[5:4]S2.0#rw")],
|
|
41
|
+
),
|
|
42
|
+
]
|
|
43
|
+
)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To add this library to your project do
|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
uv add rgscore
|
|
50
|
+
```
|
|
51
|
+
|
rgscore-0.14.2/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# RGSCore
|
|
2
|
+
|
|
3
|
+
[](https://github.com/Brainless-Software/rgscore/blob/master/LICENSE)
|
|
4
|
+
[](https://pypi.org/project/rgscore/)
|
|
5
|
+
[](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml)
|
|
6
|
+
[](https://brainless-software.github.io/rgscore/)
|
|
7
|
+
|
|
8
|
+
Python library that provides classes for representing, defining and accessing registers in the embedded devices.
|
|
9
|
+
|
|
10
|
+
Example:
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
from rgscore import Register, RegList, FieldDef
|
|
14
|
+
|
|
15
|
+
reglist = RegList(
|
|
16
|
+
registers=[
|
|
17
|
+
Register(
|
|
18
|
+
bit_len=8,
|
|
19
|
+
name="Foo",
|
|
20
|
+
address=0x01,
|
|
21
|
+
model=[FieldDef.value_of("a@[3:0]U4.1#ro")],
|
|
22
|
+
),
|
|
23
|
+
Register(
|
|
24
|
+
bit_len=8,
|
|
25
|
+
name="Bar",
|
|
26
|
+
address=0x02,
|
|
27
|
+
desc="Very important register",
|
|
28
|
+
model=[FieldDef.value_of("b1@[3:0]U4.1#ro"), FieldDef.value_of("b2@[5:4]S2.0#rw")],
|
|
29
|
+
),
|
|
30
|
+
]
|
|
31
|
+
)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
To add this library to your project do
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
uv add rgscore
|
|
38
|
+
```
|
|
39
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "rgscore"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
description = "Python API for describing and accessing hardware registers"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.13"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"bitstring >= 5.0.0, < 6.0.0",
|
|
9
|
+
"i2c-api>=0.20.0",
|
|
10
|
+
"pydantic>=2.14.1",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[build-system]
|
|
14
|
+
requires = ["setuptools", "wheel", "setuptools-git-versioning"]
|
|
15
|
+
build-backend = "setuptools.build_meta"
|
|
16
|
+
|
|
17
|
+
[tool.setuptools-git-versioning]
|
|
18
|
+
enabled = true
|
|
19
|
+
|
|
20
|
+
[tool.setuptools.packages.find]
|
|
21
|
+
where = ["src"]
|
|
22
|
+
|
|
23
|
+
[tool.ruff]
|
|
24
|
+
line-length = 120
|
|
25
|
+
|
|
26
|
+
[tool.ruff.lint]
|
|
27
|
+
select = [
|
|
28
|
+
"F", # Pyflakes
|
|
29
|
+
"E", # pycodestyle
|
|
30
|
+
"W", # pycodestyle
|
|
31
|
+
"B", # flake8-bugbear
|
|
32
|
+
"I", # isort
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[dependency-groups]
|
|
36
|
+
dev = [
|
|
37
|
+
"i2c-drivers>=0.1.4",
|
|
38
|
+
"pytest>=9.1.1",
|
|
39
|
+
"pytest-cov>=7.1.0",
|
|
40
|
+
"ruff",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[tool.pytest]
|
|
44
|
+
minversion = "9.0"
|
|
45
|
+
addopts = ["--cov=src", "--cov-report=json", "-ra", "-q", "--strict-markers", "--ignore=tests/test_integration_bmp581.py"]
|
|
46
|
+
testpaths = ["tests"]
|
rgscore-0.14.2/setup.cfg
ADDED
|
File without changes
|