cuemsutils 0.0.7.post3__tar.gz → 0.0.9rc1__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: cuemsutils
3
- Version: 0.0.7.post3
3
+ Version: 0.0.9rc1
4
4
  Summary: Reusable classes and methods for CueMS system
5
5
  Project-URL: Documentation, https://github.com/stagesoft/cuems-utils#readme
6
6
  Project-URL: Issues, https://github.com/stagesoft/cuems-utils/issues
@@ -27,6 +27,8 @@ Requires-Dist: pynng==0.8.1
27
27
  Requires-Dist: timecode
28
28
  Requires-Dist: websockets==14.1
29
29
  Requires-Dist: xmlschema==3.4.3
30
+ Provides-Extra: systemd
31
+ Requires-Dist: systemd==235; extra == 'systemd'
30
32
  Description-Content-Type: text/markdown
31
33
 
32
34
  # cuems-utils
@@ -51,6 +53,23 @@ pip install cuemsutils
51
53
 
52
54
  ## Release notes
53
55
 
56
+ ### v0.0.9
57
+ - Extended `Settings` parameters class
58
+ - New `tools` submodule for clarity with documentation
59
+ - Added class `SignalEngine` and `run_daemon` method for running daemons
60
+ - Improved `ProjectMappings` and `NetworkMap` content processing
61
+ - Added class `Timeoutloop` for running methods with timeout
62
+ - `get_media` methods return extended information
63
+
64
+ ### v0.0.8
65
+ - `Settings` class added to xml module. Allows for easy access to configuration files.
66
+ - Child classes `NetworkMap` and `ProjectMappings` inherit from `Settings` class.
67
+ - `CueList.get_media` method fixed to create usable dictionaries
68
+ - `CuemsScript.get_media` as a wrapper for `CueList.get_media`
69
+ - `CueList.get_[own_]media_filenames` method now returns a sorted list of filenames
70
+ - `Region` class improved to support proper `Media` recreation from json
71
+ - `setter` method moved up to `CuemsDict` class
72
+
54
73
  ### v0.0.7
55
74
  - `XmlReaderWriter` class added, previous classes `XmlReader` and `XmlWriter` marked as deprecated.
56
75
  - fixed `Communicator` error handling on path checking.
@@ -20,6 +20,23 @@ pip install cuemsutils
20
20
 
21
21
  ## Release notes
22
22
 
23
+ ### v0.0.9
24
+ - Extended `Settings` parameters class
25
+ - New `tools` submodule for clarity with documentation
26
+ - Added class `SignalEngine` and `run_daemon` method for running daemons
27
+ - Improved `ProjectMappings` and `NetworkMap` content processing
28
+ - Added class `Timeoutloop` for running methods with timeout
29
+ - `get_media` methods return extended information
30
+
31
+ ### v0.0.8
32
+ - `Settings` class added to xml module. Allows for easy access to configuration files.
33
+ - Child classes `NetworkMap` and `ProjectMappings` inherit from `Settings` class.
34
+ - `CueList.get_media` method fixed to create usable dictionaries
35
+ - `CuemsScript.get_media` as a wrapper for `CueList.get_media`
36
+ - `CueList.get_[own_]media_filenames` method now returns a sorted list of filenames
37
+ - `Region` class improved to support proper `Media` recreation from json
38
+ - `setter` method moved up to `CuemsDict` class
39
+
23
40
  ### v0.0.7
24
41
  - `XmlReaderWriter` class added, previous classes `XmlReader` and `XmlWriter` marked as deprecated.
25
42
  - fixed `Communicator` error handling on path checking.
@@ -34,8 +34,12 @@ dependencies = [
34
34
  "xmlschema==3.4.3",
35
35
  "websockets==14.1",
36
36
  "peewee==3.17.8",
37
- "aiofiles==24.1.0"
37
+ "aiofiles==24.1.0",
38
+ ]
38
39
 
40
+ [project.optional-dependencies]
41
+ systemd = [
42
+ "systemd==235",
39
43
  ]
40
44
 
41
45
  [project.urls]
@@ -52,6 +56,9 @@ include = ["src/cuemsutils/xml/schemas"]
52
56
  [tool.hatch.build.targets.wheel]
53
57
  packages = ["src/cuemsutils"]
54
58
 
59
+ [tool.hatch.metadata]
60
+ allow-direct-references = true
61
+
55
62
  [[tool.hatch.envs.hatch-test.matrix]]
56
63
  python = ["3.11"]
57
64
 
@@ -60,7 +67,7 @@ dependencies = [
60
67
  "pytest",
61
68
  "pytest-cov",
62
69
  "pytest-mock",
63
- "coverage[toml]"
70
+ "coverage[toml]",
64
71
  ]
65
72
 
66
73
  [tool.coverage.run]
@@ -18,14 +18,23 @@
18
18
  <xs:sequence>
19
19
  <!-- <xs:element name="present" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/> -->
20
20
  <xs:element name="uuid" minOccurs="1" maxOccurs="1" type="xs:string"/>
21
+ <xs:element name="url" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
21
22
  <xs:element name="mac" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
22
23
  <xs:element name="name" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
23
24
  <xs:element name="node_type" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
24
25
  <xs:element name="ip" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
25
26
  <xs:element name="port" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"/>
27
+ <xs:element name="online" minOccurs="1" maxOccurs="1" type="cms:BoolType"/>
26
28
  </xs:sequence>
27
29
  </xs:complexType>
28
30
 
31
+ <xs:simpleType name="BoolType">
32
+ <xs:restriction base="xs:string">
33
+ <xs:enumeration value="True" />
34
+ <xs:enumeration value="False" />
35
+ </xs:restriction>
36
+ </xs:simpleType>
37
+
29
38
  <xs:complexType name="PutType">
30
39
  <xs:sequence>
31
40
  <xs:element name="name" minOccurs="1" maxOccurs="1" type="cms:NonEmptyString"></xs:element>
@@ -6,10 +6,17 @@
6
6
  <xs:element name="Settings">
7
7
  <xs:complexType>
8
8
  <xs:sequence>
9
+ <xs:element name="conf_path" type="xs:string" minOccurs="1" maxOccurs="1" />
9
10
  <xs:element name="library_path" type="xs:string" minOccurs="1" maxOccurs="1" />
10
11
  <xs:element name="tmp_path" type="xs:string" minOccurs="1" maxOccurs="1" />
11
12
  <xs:element name="database_name" type="xs:string" minOccurs="1" maxOccurs="1" />
12
13
  <xs:element name="show_lock_file" type="xs:string" minOccurs="1" maxOccurs="1" />
14
+ <xs:element name="editor_url" type="xs:string" minOccurs="1" maxOccurs="1" />
15
+ <xs:element name="controller_url" type="xs:string" minOccurs="1" maxOccurs="1" />
16
+ <xs:element name="templates_path" type="xs:string" minOccurs="1" maxOccurs="1" />
17
+ <xs:element name="controller_interfaces_template" type="xs:string" minOccurs="1" maxOccurs="1" />
18
+ <xs:element name="node_interfaces_template" type="xs:string" minOccurs="1" maxOccurs="1" />
19
+ <xs:element name="controller_lock_file" type="xs:string" minOccurs="1" maxOccurs="1" />
13
20
  <!-- Node settings -->
14
21
  <xs:element name="node" type="cms:NodeConfType" minOccurs="1" maxOccurs="1"></xs:element>
15
22
  </xs:sequence>
File without changes