eaps2000 0.1.4__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.
- eaps2000-0.1.4/.gitignore +3 -0
- eaps2000-0.1.4/PKG-INFO +99 -0
- eaps2000-0.1.4/README.md +79 -0
- eaps2000-0.1.4/pyproject.toml +69 -0
eaps2000-0.1.4/PKG-INFO
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eaps2000
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: Elektro-Automatik Series PS 2000 Python Controller
|
|
5
|
+
Project-URL: Homepage, https://github.com/KozhinovAlexander/eaps2000
|
|
6
|
+
Project-URL: Documentation, https://github.com/KozhinovAlexander/eaps2000/blob/main/README.md
|
|
7
|
+
Author-email: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
Keywords: ds-power-supply,ea-ps-2042-06b,ea-ps-2042-10b,ea-ps-2042-20b,ea-ps-2084-03b,ea-ps-2084-05b,ea-ps-2342-06b,ea-ps-2342-10b,ea-ps-2384-05b,psu,psu-controller,pypi-package,python-psu-controller,series-ps-2000-b
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Requires-Dist: pyserial>=3.5
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: flake8>=7.1.2; extra == 'dev'
|
|
16
|
+
Requires-Dist: pytest-flake8>=1.3.0; extra == 'dev'
|
|
17
|
+
Requires-Dist: pytest>=6.2.2; extra == 'dev'
|
|
18
|
+
Requires-Dist: versioningit>=3.1.2; extra == 'dev'
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
- [eaps2000 - PS 2000B Series PSU Python Control Unit](#eaps2000---ps-2000b-series-psu-python-control-unit)
|
|
22
|
+
- [Installing the package](#installing-the-package)
|
|
23
|
+
- [Getting Started](#getting-started)
|
|
24
|
+
- [Building the Project](#building-the-project)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# eaps2000 - PS 2000B Series PSU Python Control Unit
|
|
28
|
+
|
|
29
|
+
The `eaps2000` is a python module for [Elektro-Automatik PS 2000B Series][_ps_2kb_url_] PSU control.
|
|
30
|
+
|
|
31
|
+
This software implements following functionality:
|
|
32
|
+
|
|
33
|
+
- Reading out device information (serial number, model etc.)
|
|
34
|
+
- Setting ovewr-voltage and over-current protection
|
|
35
|
+
- Setting voltage and current for an output
|
|
36
|
+
- Controlling the output stage on/off
|
|
37
|
+
- Acknowledging alarms
|
|
38
|
+
|
|
39
|
+
## Installing the package
|
|
40
|
+
|
|
41
|
+
Install the project from PyPi or [build](#building-the-project) it first.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install eaps2000
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Getting Started
|
|
48
|
+
|
|
49
|
+
Using CLI interface:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
eaps2000 --help
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Using Python interface:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
from eaps2000 import eaps2k
|
|
59
|
+
|
|
60
|
+
port = 'COM123' # use /tty/ACM0 for linux based system
|
|
61
|
+
with eaps2k(port) as ps:
|
|
62
|
+
# Prepare config:
|
|
63
|
+
cfg = eaps2k.get_config_template()
|
|
64
|
+
cfg['ACK'] = True # acknowledge alarms if any
|
|
65
|
+
cfg['OVP'] = 5.0 # over-voltage-protection value
|
|
66
|
+
cfg['OCP'] = 0.5 # over-current-protection value
|
|
67
|
+
cfg['Iset'] = 0.1 # current to be set
|
|
68
|
+
cfg['Vset'] = 3.3 # coltage to be set
|
|
69
|
+
|
|
70
|
+
# Turn off the output stage:
|
|
71
|
+
ps.set_output_state(False)
|
|
72
|
+
|
|
73
|
+
# Apply configuration:
|
|
74
|
+
ps.configure(cfg)
|
|
75
|
+
|
|
76
|
+
# Turn on the output stage:
|
|
77
|
+
# ATTENTION: The power will be applied to your probe here!
|
|
78
|
+
# ps.set_output_state(True)
|
|
79
|
+
|
|
80
|
+
# Show information:
|
|
81
|
+
ps.print_info()
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Building the Project
|
|
85
|
+
|
|
86
|
+
The project is built with [`hatchling`][_hatchling_home_]
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pip install hatchling && flake8 . -v && hatchling build && pytest --flake8
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Installing freshly built project may be done by invoking:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
pip install ./dist/eaps2000-*.whl --upgrade --force-reinstall
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
[_ps_2kb_url_]: https://elektroautomatik.com/shop/de/produkte/programmierbare-dc-laborstromversorgungen/dc-laborstromversorgungen/serie-ps-2000-b-br-100-bis-332-w/
|
|
99
|
+
[_hatchling_home_]: https://hatch.pypa.io/1.9/
|
eaps2000-0.1.4/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
- [eaps2000 - PS 2000B Series PSU Python Control Unit](#eaps2000---ps-2000b-series-psu-python-control-unit)
|
|
2
|
+
- [Installing the package](#installing-the-package)
|
|
3
|
+
- [Getting Started](#getting-started)
|
|
4
|
+
- [Building the Project](#building-the-project)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# eaps2000 - PS 2000B Series PSU Python Control Unit
|
|
8
|
+
|
|
9
|
+
The `eaps2000` is a python module for [Elektro-Automatik PS 2000B Series][_ps_2kb_url_] PSU control.
|
|
10
|
+
|
|
11
|
+
This software implements following functionality:
|
|
12
|
+
|
|
13
|
+
- Reading out device information (serial number, model etc.)
|
|
14
|
+
- Setting ovewr-voltage and over-current protection
|
|
15
|
+
- Setting voltage and current for an output
|
|
16
|
+
- Controlling the output stage on/off
|
|
17
|
+
- Acknowledging alarms
|
|
18
|
+
|
|
19
|
+
## Installing the package
|
|
20
|
+
|
|
21
|
+
Install the project from PyPi or [build](#building-the-project) it first.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install eaps2000
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Getting Started
|
|
28
|
+
|
|
29
|
+
Using CLI interface:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
eaps2000 --help
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Using Python interface:
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from eaps2000 import eaps2k
|
|
39
|
+
|
|
40
|
+
port = 'COM123' # use /tty/ACM0 for linux based system
|
|
41
|
+
with eaps2k(port) as ps:
|
|
42
|
+
# Prepare config:
|
|
43
|
+
cfg = eaps2k.get_config_template()
|
|
44
|
+
cfg['ACK'] = True # acknowledge alarms if any
|
|
45
|
+
cfg['OVP'] = 5.0 # over-voltage-protection value
|
|
46
|
+
cfg['OCP'] = 0.5 # over-current-protection value
|
|
47
|
+
cfg['Iset'] = 0.1 # current to be set
|
|
48
|
+
cfg['Vset'] = 3.3 # coltage to be set
|
|
49
|
+
|
|
50
|
+
# Turn off the output stage:
|
|
51
|
+
ps.set_output_state(False)
|
|
52
|
+
|
|
53
|
+
# Apply configuration:
|
|
54
|
+
ps.configure(cfg)
|
|
55
|
+
|
|
56
|
+
# Turn on the output stage:
|
|
57
|
+
# ATTENTION: The power will be applied to your probe here!
|
|
58
|
+
# ps.set_output_state(True)
|
|
59
|
+
|
|
60
|
+
# Show information:
|
|
61
|
+
ps.print_info()
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Building the Project
|
|
65
|
+
|
|
66
|
+
The project is built with [`hatchling`][_hatchling_home_]
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install hatchling && flake8 . -v && hatchling build && pytest --flake8
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Installing freshly built project may be done by invoking:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install ./dist/eaps2000-*.whl --upgrade --force-reinstall
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
[_ps_2kb_url_]: https://elektroautomatik.com/shop/de/produkte/programmierbare-dc-laborstromversorgungen/dc-laborstromversorgungen/serie-ps-2000-b-br-100-bis-332-w/
|
|
79
|
+
[_hatchling_home_]: https://hatch.pypa.io/1.9/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ['hatchling', 'versioningit']
|
|
3
|
+
build-backend = 'hatchling.build'
|
|
4
|
+
|
|
5
|
+
[tool.hatch.version]
|
|
6
|
+
source = 'versioningit'
|
|
7
|
+
|
|
8
|
+
[tool.versioningit]
|
|
9
|
+
default-version = '0.0.0+unknown'
|
|
10
|
+
|
|
11
|
+
[tool.versioningit.format]
|
|
12
|
+
distance = "{base_version}+{distance}.{vcs}{rev}"
|
|
13
|
+
# Example formatted version: 1.2.3+42.ge174a1f
|
|
14
|
+
|
|
15
|
+
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
|
|
16
|
+
# Example formatted version: 1.2.3+42.ge174a1f.dirty
|
|
17
|
+
|
|
18
|
+
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
|
|
19
|
+
# Example formatted version: 1.2.3+42.ge174a1f.dirty
|
|
20
|
+
|
|
21
|
+
[project]
|
|
22
|
+
name = 'eaps2000'
|
|
23
|
+
dynamic = ['version', 'package']
|
|
24
|
+
description = 'Elektro-Automatik Series PS 2000 Python Controller'
|
|
25
|
+
authors = [
|
|
26
|
+
{name = 'Alexander Kozhinov', email = 'ak.alexander.kozhinov@gmail.com'}
|
|
27
|
+
]
|
|
28
|
+
license = 'Apache-2.0'
|
|
29
|
+
license-files = ['LICEN[CS]E.*']
|
|
30
|
+
readme = {file = 'README.md', content-type = 'text/markdown'}
|
|
31
|
+
keywords = [
|
|
32
|
+
'psu', 'pypi-package', 'ea-ps-2342-06b', 'ea-ps-2342-10b',
|
|
33
|
+
'ea-ps-2384-05b', 'ea-ps-2042-06b', 'ea-ps-2042-10b', 'ea-ps-2042-20b',
|
|
34
|
+
'ea-ps-2084-03b', 'ea-ps-2084-05b', 'series-ps-2000-b',
|
|
35
|
+
'psu-controller', 'python-psu-controller', 'ds-power-supply'
|
|
36
|
+
]
|
|
37
|
+
requires-python = '>= 3.8'
|
|
38
|
+
dependencies = [
|
|
39
|
+
'pyserial>=3.5',
|
|
40
|
+
]
|
|
41
|
+
classifiers = [
|
|
42
|
+
'Development Status :: 5 - Production/Stable',
|
|
43
|
+
'Programming Language :: Python'
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[project.urls]
|
|
47
|
+
Homepage = 'https://github.com/KozhinovAlexander/eaps2000'
|
|
48
|
+
Documentation = 'https://github.com/KozhinovAlexander/eaps2000/blob/main/README.md'
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.sdist]
|
|
51
|
+
exclude = ['.gitignore', '.github', '.flake8']
|
|
52
|
+
|
|
53
|
+
[tool.hatch.build.targets.wheel]
|
|
54
|
+
exclude = ['.gitignore', '.github', '.flake8']
|
|
55
|
+
sources = ['eaps2000.py']
|
|
56
|
+
|
|
57
|
+
[project.optional-dependencies]
|
|
58
|
+
dev = [
|
|
59
|
+
'pytest>=6.2.2',
|
|
60
|
+
'flake8>=7.1.2',
|
|
61
|
+
'pytest-flake8>=1.3.0',
|
|
62
|
+
'versioningit>=3.1.2',
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
[project.scripts]
|
|
66
|
+
eaps2000 = 'eaps2000:main'
|
|
67
|
+
|
|
68
|
+
[tool.hatch.build]
|
|
69
|
+
only-packages = true
|