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 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.
@@ -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
+ [![License - MIT](https://img.shields.io/badge/License-MIT-blue)](https://github.com/Brainless-Software/rgscore/blob/master/LICENSE)
16
+ [![PyPI Latest Release](https://img.shields.io/pypi/v/rgscore.svg)](https://pypi.org/project/rgscore/)
17
+ [![pytest](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml/badge.svg)](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml)
18
+ [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](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
+
@@ -0,0 +1,39 @@
1
+ # RGSCore
2
+
3
+ [![License - MIT](https://img.shields.io/badge/License-MIT-blue)](https://github.com/Brainless-Software/rgscore/blob/master/LICENSE)
4
+ [![PyPI Latest Release](https://img.shields.io/pypi/v/rgscore.svg)](https://pypi.org/project/rgscore/)
5
+ [![pytest](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml/badge.svg)](https://github.com/Brainless-Software/rgscore/actions/workflows/test.yml)
6
+ [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](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"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from .model.register import EnumValue, Field, FieldDef, Register, RLink, RLinkI2C
2
+ from .model.reglist import RegList
3
+ from .model.sfix import S, U
File without changes