mxm-types 0.3.0__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mxm-types
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Shared foundational types and representation adapters for Money Ex Machina.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mxm-types"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Shared foundational types and representation adapters for Money Ex Machina."
5
5
  authors = ["mxm <contact@moneyexmachina.com>"]
6
6
  license = "MIT"
@@ -20,12 +20,7 @@ management, and runtime construction belong elsewhere.
20
20
  from __future__ import annotations
21
21
 
22
22
  from mxm.types.runtime_identity import (
23
- AppId,
24
- Environment,
25
- MachineId,
26
23
  RuntimeIdentity,
27
- RuntimeRole,
28
- RuntimeSubstrate,
29
24
  )
30
25
 
31
26
  from .general import (
@@ -77,9 +72,7 @@ __all__ = [
77
72
  "INT64_DTYPE",
78
73
  "NAT_TS_NS",
79
74
  "TS_NS_DTYPE",
80
- "AppId",
81
75
  "CLIFormatOptions",
82
- "Environment",
83
76
  "HeadersLike",
84
77
  "Int64Array",
85
78
  "JSONLike",
@@ -88,10 +81,7 @@ __all__ = [
88
81
  "JSONScalar",
89
82
  "JSONValue",
90
83
  "KVReadable",
91
- "MachineId",
92
84
  "RuntimeIdentity",
93
- "RuntimeRole",
94
- "RuntimeSubstrate",
95
85
  "StrPath",
96
86
  "TSNSArray",
97
87
  "TSNSScalar",
@@ -0,0 +1,10 @@
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass(frozen=True, slots=True)
5
+ class RuntimeIdentity:
6
+ app: str
7
+ environment: str
8
+ machine: str
9
+ substrate: str
10
+ role: str
@@ -1,17 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import NewType
3
-
4
- AppId = NewType("AppId", str)
5
- Environment = NewType("Environment", str)
6
- MachineId = NewType("MachineId", str)
7
- RuntimeSubstrate = NewType("RuntimeSubstrate", str)
8
- RuntimeRole = NewType("RuntimeRole", str)
9
-
10
-
11
- @dataclass(frozen=True, slots=True)
12
- class RuntimeIdentity:
13
- app: AppId
14
- environment: Environment
15
- machine: MachineId
16
- substrate: RuntimeSubstrate
17
- role: RuntimeRole
File without changes
File without changes