vo-models 0.4.2.dev0__tar.gz → 0.4.3__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.
Files changed (35) hide show
  1. {vo_models-0.4.2.dev0/vo_models.egg-info → vo_models-0.4.3}/PKG-INFO +3 -2
  2. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/pyproject.toml +1 -1
  3. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/tapregext/models.py +0 -1
  4. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/uws/models.py +0 -1
  5. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vodataservice/models.py +10 -10
  6. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/voresource/models.py +25 -23
  7. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/availability/models.py +0 -1
  8. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/capabilities/models.py +1 -1
  9. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/tables/models.py +0 -1
  10. {vo_models-0.4.2.dev0 → vo_models-0.4.3/vo_models.egg-info}/PKG-INFO +3 -2
  11. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/LICENSE +0 -0
  12. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/README.md +0 -0
  13. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/setup.cfg +0 -0
  14. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/__init__.py +0 -0
  15. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/adql/__init__.py +0 -0
  16. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/adql/misc.py +0 -0
  17. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/py.typed +0 -0
  18. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/stc/__init__.py +0 -0
  19. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/stc/models.py +0 -0
  20. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/tapregext/__init__.py +0 -0
  21. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/uws/__init__.py +0 -0
  22. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/uws/types.py +0 -0
  23. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vodataservice/__init__.py +0 -0
  24. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/voresource/__init__.py +0 -0
  25. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/voresource/types.py +0 -0
  26. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/__init__.py +0 -0
  27. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/availability/__init__.py +0 -0
  28. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/capabilities/__init__.py +0 -0
  29. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/vosi/tables/__init__.py +0 -0
  30. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/xlink/__init__.py +0 -0
  31. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models/xlink/xlink.py +0 -0
  32. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models.egg-info/SOURCES.txt +0 -0
  33. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models.egg-info/dependency_links.txt +0 -0
  34. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models.egg-info/requires.txt +0 -0
  35. {vo_models-0.4.2.dev0 → vo_models-0.4.3}/vo_models.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: vo-models
3
- Version: 0.4.2.dev0
3
+ Version: 0.4.3
4
4
  Summary: Pydantic data models for IVOA protocols
5
5
  Author-email: Joshua Fraustro <jfraustro@stsci.edu>, MAST Archive Developers <archive@stsci.edu>
6
6
  Project-URL: Homepage, https://github.com/spacetelescope/vo-models
@@ -28,6 +28,7 @@ Requires-Dist: furo; extra == "docs"
28
28
  Requires-Dist: sphinx-copybutton; extra == "docs"
29
29
  Requires-Dist: toml; extra == "docs"
30
30
  Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
31
+ Dynamic: license-file
31
32
 
32
33
  # vo-models
33
34
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vo-models"
7
- version = "0.4.2.dev0"
7
+ version = "0.4.3"
8
8
  authors = [
9
9
  {name = "Joshua Fraustro", email="jfraustro@stsci.edu"},
10
10
  {name = "MAST Archive Developers", email="archive@stsci.edu"}
@@ -8,7 +8,6 @@ from vo_models.voresource.models import NSMAP as VORESOURCE_NSMAP
8
8
  from vo_models.voresource.models import Capability
9
9
 
10
10
  NSMAP = {
11
- "xs": "http://www.w3.org/2001/XMLSchema",
12
11
  "vm": "http://www.ivoa.net/xml/VOMetadata/v0.1",
13
12
  "tr": "http://www.ivoa.net/xml/TAPRegExt/v1.0",
14
13
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
@@ -11,7 +11,6 @@ from vo_models.xlink import XlinkType
11
11
  NSMAP = {
12
12
  "uws": "http://www.ivoa.net/xml/UWS/v1.0",
13
13
  "xlink": "http://www.w3.org/1999/xlink",
14
- "xsd": "http://www.w3.org/2001/XMLSchema",
15
14
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
16
15
  }
17
16
 
@@ -3,6 +3,7 @@
3
3
  TODO: This is an incomplete spec, covering only elements needed for VOSITables
4
4
  https://github.com/spacetelescope/vo-models/issues/17
5
5
  """
6
+
6
7
  from typing import Any, Literal, Optional
7
8
  from xml.sax.saxutils import escape
8
9
 
@@ -16,7 +17,6 @@ from vo_models.voresource.models import Interface
16
17
 
17
18
  NSMAP = {
18
19
  "": "http://www.ivoa.net/xml/VODataService/v1.1",
19
- "xs": "http://www.w3.org/2001/XMLSchema",
20
20
  "vr": "http://www.ivoa.net/xml/VOResource/v1.0",
21
21
  "vs": "http://www.ivoa.net/xml/VODataService/v1.1",
22
22
  "stc": "http://www.ivoa.net/xml/STC/stc-v1.30.xsd",
@@ -99,7 +99,7 @@ class DataType(BaseXmlModel, tag="dataType", nsmap={"xsi": "http://www.w3.org/20
99
99
  value: str
100
100
 
101
101
 
102
- class TableParam(BaseXmlModel, ns="", tag="column"):
102
+ class TableParam(BaseXmlModel, tag="column"):
103
103
  """A description of a table column.
104
104
 
105
105
  Parameters:
@@ -189,7 +189,7 @@ class TableParam(BaseXmlModel, ns="", tag="column"):
189
189
  return value
190
190
 
191
191
 
192
- class Table(BaseXmlModel, tag="table", ns="", skip_empty=True):
192
+ class Table(BaseXmlModel, tag="table", ns="", nsmap={"": ""}, skip_empty=True):
193
193
  """A model representing a single table element.
194
194
 
195
195
  Parameters:
@@ -223,12 +223,12 @@ class Table(BaseXmlModel, tag="table", ns="", skip_empty=True):
223
223
  table_type: Optional[str] = attr(name="type", default=None)
224
224
 
225
225
  table_name: str = element(tag="name", ns="")
226
- title: Optional[str] = element(tag="title", ns="", default=None)
227
- description: Optional[str] = element(tag="description", ns="", default=None)
228
- utype: Optional[str] = element(tag="utype", ns="", default=None)
229
- nrows: Optional[int] = element(tag="nrows", gte=0, ns="", default=None)
230
- column: Optional[list[TableParam]] = element(tag="column", ns="", default_factory=list)
231
- foreign_key: Optional[list[ForeignKey]] = element(tag="foreignKey", ns="", default_factory=list)
226
+ title: Optional[str] = element(tag="title", default=None, ns="")
227
+ description: Optional[str] = element(tag="description", default=None, ns="")
228
+ utype: Optional[str] = element(tag="utype", default=None, ns="")
229
+ nrows: Optional[int] = element(tag="nrows", gte=0, default=None, ns="")
230
+ column: Optional[list[TableParam]] = element(tag="column", default_factory=list, ns="")
231
+ foreign_key: Optional[list[ForeignKey]] = element(tag="foreignKey", default_factory=list, ns="")
232
232
 
233
233
  def __init__(__pydantic_self__, **data: Any) -> None:
234
234
  """Escape any keys that are passed in."""
@@ -246,7 +246,7 @@ class Table(BaseXmlModel, tag="table", ns="", skip_empty=True):
246
246
  return value
247
247
 
248
248
 
249
- class TableSchema(BaseXmlModel, tag="schema", ns="", skip_empty=True):
249
+ class TableSchema(BaseXmlModel, tag="schema", ns="", nsmap={"": ""}, skip_empty=True):
250
250
  """A detailed description of a logically related group of tables.
251
251
 
252
252
  Parameters:
@@ -1,4 +1,5 @@
1
1
  """Pydantic-xml models for IVOA schema VOResource-v1.1.xsd"""
2
+
2
3
  import datetime
3
4
  from typing import Literal, Optional
4
5
 
@@ -12,13 +13,12 @@ from vo_models.voresource.types import IdentifierURI, UTCTimestamp, ValidationLe
12
13
 
13
14
  NSMAP = {
14
15
  "vr": "http://www.ivoa.net/xml/VOResource/v1.0",
15
- "xs": "http://www.w3.org/2001/XMLSchema",
16
16
  "vm": "http://www.ivoa.net/xml/VOMetadata/v0.1",
17
17
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
18
18
  }
19
19
 
20
20
 
21
- class Validation(BaseXmlModel, nsmap=NSMAP):
21
+ class Validation(BaseXmlModel):
22
22
  """A validation stamp combining a validation level and the ID of the validator.
23
23
 
24
24
  Parameters:
@@ -41,7 +41,7 @@ class Validation(BaseXmlModel, nsmap=NSMAP):
41
41
  return values
42
42
 
43
43
 
44
- class ResourceName(BaseXmlModel, nsmap=NSMAP):
44
+ class ResourceName(BaseXmlModel):
45
45
  """The name of a potentially registered resource.
46
46
 
47
47
  That is, the entity referred to may have an associated identifier.
@@ -57,7 +57,7 @@ class ResourceName(BaseXmlModel, nsmap=NSMAP):
57
57
  ivo_id: Optional[IdentifierURI] = attr(name="ivo-id", default=None)
58
58
 
59
59
 
60
- class Date(BaseXmlModel, nsmap=NSMAP):
60
+ class Date(BaseXmlModel):
61
61
  """A string indicating what the date refers to.
62
62
 
63
63
  The value of role should be taken from the vocabulary maintained at http://www.ivoa.net/rdf/voresource/date_role.
@@ -75,7 +75,7 @@ class Date(BaseXmlModel, nsmap=NSMAP):
75
75
  )
76
76
 
77
77
 
78
- class Source(BaseXmlModel, nsmap=NSMAP):
78
+ class Source(BaseXmlModel):
79
79
  """A bibliographic reference from which the present resource is derived or extracted.
80
80
 
81
81
  Parameters:
@@ -90,7 +90,7 @@ class Source(BaseXmlModel, nsmap=NSMAP):
90
90
  format: Optional[str] = attr(name="format", default=None)
91
91
 
92
92
 
93
- class Rights(BaseXmlModel, nsmap=NSMAP):
93
+ class Rights(BaseXmlModel):
94
94
  """A statement of usage conditions.
95
95
 
96
96
  This will typically include a license, which should be given as a full string
@@ -107,7 +107,7 @@ class Rights(BaseXmlModel, nsmap=NSMAP):
107
107
  rights_uri: Optional[networks.AnyUrl] = attr(name="rightsURI", default=None)
108
108
 
109
109
 
110
- class AccessURL(BaseXmlModel, nsmap=NSMAP):
110
+ class AccessURL(BaseXmlModel):
111
111
  """The URL (or base URL) that a client uses to access the service.
112
112
 
113
113
  Parameters:
@@ -122,7 +122,7 @@ class AccessURL(BaseXmlModel, nsmap=NSMAP):
122
122
  use: Literal["full", "base", "dir"] = attr(name="use")
123
123
 
124
124
 
125
- class MirrorURL(BaseXmlModel, nsmap=NSMAP):
125
+ class MirrorURL(BaseXmlModel):
126
126
  """A URL of a mirror (i.e., a functionally identical additional service interface) to
127
127
 
128
128
  Parameters:
@@ -136,7 +136,7 @@ class MirrorURL(BaseXmlModel, nsmap=NSMAP):
136
136
  title: Optional[str] = attr(name="title", default=None)
137
137
 
138
138
 
139
- class Contact(BaseXmlModel, nsmap=NSMAP):
139
+ class Contact(BaseXmlModel):
140
140
  """Information allowing establishing contact, e.g., for purposes of support.
141
141
 
142
142
  Parameters:
@@ -175,7 +175,7 @@ class Contact(BaseXmlModel, nsmap=NSMAP):
175
175
  return values
176
176
 
177
177
 
178
- class Creator(BaseXmlModel, nsmap=NSMAP):
178
+ class Creator(BaseXmlModel):
179
179
  """The entity (e.g. person or organisation) primarily responsible for creating something
180
180
 
181
181
  Parameters:
@@ -208,7 +208,7 @@ class Creator(BaseXmlModel, nsmap=NSMAP):
208
208
  return values
209
209
 
210
210
 
211
- class Relationship(BaseXmlModel, nsmap=NSMAP):
211
+ class Relationship(BaseXmlModel):
212
212
  """A description of the relationship between one resource and one or more other resources.
213
213
 
214
214
  Parameters:
@@ -225,7 +225,7 @@ class Relationship(BaseXmlModel, nsmap=NSMAP):
225
225
  related_resource: list[ResourceName] = element(tag="relatedResource")
226
226
 
227
227
 
228
- class SecurityMethod(BaseXmlModel, nsmap=NSMAP):
228
+ class SecurityMethod(BaseXmlModel):
229
229
  """A description of a security mechanism.
230
230
 
231
231
  This type only allows one to refer to the mechanism via a URI. Derived types would allow for more metadata.
@@ -238,7 +238,7 @@ class SecurityMethod(BaseXmlModel, nsmap=NSMAP):
238
238
  standard_id: Optional[networks.AnyUrl] = attr(name="standardID", default=None)
239
239
 
240
240
 
241
- class Curation(BaseXmlModel, nsmap=NSMAP):
241
+ class Curation(BaseXmlModel):
242
242
  """Information regarding the general curation of a resource
243
243
 
244
244
  Parameters:
@@ -265,7 +265,7 @@ class Curation(BaseXmlModel, nsmap=NSMAP):
265
265
  contact: list[Contact] = element(tag="contact")
266
266
 
267
267
 
268
- class Content(BaseXmlModel, nsmap=NSMAP):
268
+ class Content(BaseXmlModel):
269
269
  """Information regarding the general content of a resource
270
270
 
271
271
  Parameters:
@@ -299,7 +299,7 @@ class Content(BaseXmlModel, nsmap=NSMAP):
299
299
  relationship: Optional[list[Relationship]] = element(tag="relationship", default_factory=list)
300
300
 
301
301
 
302
- class Interface(BaseXmlModel, tag="interface", nsmap=NSMAP):
302
+ class Interface(BaseXmlModel, tag="interface"):
303
303
  """A description of a service interface.
304
304
 
305
305
  Since this type is abstract, one must use an Interface subclass to describe an actual interface denoting
@@ -326,7 +326,7 @@ class Interface(BaseXmlModel, tag="interface", nsmap=NSMAP):
326
326
 
327
327
  version: Optional[str] = attr(name="version", default=None)
328
328
  role: Optional[str] = attr(name="role", default=None)
329
- type: Optional[str] = attr(name="type", default=None, ns="xsi")
329
+ type: Optional[str] = attr(name="type", default=None, ns="xsi", nsmap={"xsi": "http://www.w3.org/2001/XMLSchema-instance"})
330
330
 
331
331
  access_url: list[AccessURL] = element(tag="accessURL")
332
332
  mirror_url: Optional[list[MirrorURL]] = element(tag="mirrorURL", default_factory=list)
@@ -334,13 +334,13 @@ class Interface(BaseXmlModel, tag="interface", nsmap=NSMAP):
334
334
  test_querystring: Optional[str] = element(tag="testQueryString", default=None)
335
335
 
336
336
 
337
- class WebBrowser(Interface, nsmap=NSMAP):
337
+ class WebBrowser(Interface):
338
338
  """A (form-based) interface intended to be accesed interactively by a user via a web browser."""
339
339
 
340
340
  type: Literal["vr:WebBrowser"] = attr(name="type", default="vr:WebBrowser", ns="xsi")
341
341
 
342
342
 
343
- class WebService(Interface, nsmap=NSMAP):
343
+ class WebService(Interface):
344
344
  """A Web Service that is describable by a WSDL document.
345
345
 
346
346
  The accessURL element gives the Web Service's endpoint URL.
@@ -350,12 +350,14 @@ class WebService(Interface, nsmap=NSMAP):
350
350
  (element) - The location of the WSDL that describes this Web Service.
351
351
  """
352
352
 
353
- type: Literal["vr:WebService"] = attr(name="type", default="vr:WebService", ns="xsi")
353
+ type: Literal["vr:WebService"] = attr(
354
+ name="type", default="vr:WebService", ns="xsi", nsmap={"xsi": "http://www.w3.org/2001/XMLSchema-instance"}
355
+ )
354
356
 
355
357
  wsdl_url: Optional[list[networks.AnyUrl]] = element(tag="wsdlURL", default_factory=list)
356
358
 
357
359
 
358
- class Resource(BaseXmlModel, nsmap=NSMAP):
360
+ class Resource(BaseXmlModel):
359
361
  """Any entity or component of a VO application that is describable and
360
362
  identifiable by an IVOA Identifier.
361
363
 
@@ -415,7 +417,7 @@ class Resource(BaseXmlModel, nsmap=NSMAP):
415
417
  return values
416
418
 
417
419
 
418
- class Organisation(Resource, nsmap=NSMAP):
420
+ class Organisation(Resource):
419
421
  """A named group of one or more persons brought together to pursue participation in VO applications.
420
422
 
421
423
  Parameters:
@@ -430,7 +432,7 @@ class Organisation(Resource, nsmap=NSMAP):
430
432
  instrument: Optional[list[ResourceName]] = element(tag="instrument", default_factory=list)
431
433
 
432
434
 
433
- class Capability(BaseXmlModel, tag="capability", nsmap=NSMAP):
435
+ class Capability(BaseXmlModel, tag="capability"):
434
436
  """A description of what the service does (in terms of context-specific behavior), and how to use it
435
437
  (in terms of an interface)
436
438
 
@@ -458,7 +460,7 @@ class Capability(BaseXmlModel, tag="capability", nsmap=NSMAP):
458
460
  interface: Optional[list[Interface]] = element(tag="interface", default_factory=list)
459
461
 
460
462
 
461
- class Service(Resource, nsmap=NSMAP):
463
+ class Service(Resource):
462
464
  """A resource that can be invoked by a client to perform some action on its behalf.
463
465
 
464
466
  Parameters:
@@ -8,7 +8,6 @@ from vo_models.voresource.types import UTCTimestamp
8
8
 
9
9
  NSMAP = {
10
10
  "": "http://www.ivoa.net/xml/VOSIAvailability/v1.0",
11
- "xsd": "http://www.w3.org/2001/XMLSchema",
12
11
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
13
12
  }
14
13
 
@@ -10,7 +10,6 @@ from vo_models.voresource.models import Capability
10
10
 
11
11
  NSMAP = {
12
12
  "vosi": "http://www.ivoa.net/xml/VOSICapabilities/v1.0",
13
- "xsd": "http://www.w3.org/2001/XMLSchema",
14
13
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
15
14
  "vs": "http://www.ivoa.net/xml/VODataService/v1.1",
16
15
  } | VORESOURCE_NSMAP
@@ -29,5 +28,6 @@ class VOSICapabilities(BaseXmlModel, tag="capabilities", ns="vosi", nsmap=NSMAP)
29
28
  capability: list[Union[TableAccess, Capability]] = element(
30
29
  tag="capability",
31
30
  ns="",
31
+ nsmap={"": ""},
32
32
  default=[],
33
33
  )
@@ -5,7 +5,6 @@ NSMAP = {
5
5
  "vosi": "http://www.ivoa.net/xml/VOSITables/v1.0",
6
6
  "vr": "http://www.ivoa.net/xml/VOResource/v1.0",
7
7
  "vs": "http://www.ivoa.net/xml/VODataService/v1.1",
8
- "xsd": "http://www.w3.org/2001/XMLSchema",
9
8
  "xsi": "http://www.w3.org/2001/XMLSchema-instance",
10
9
  }
11
10
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: vo-models
3
- Version: 0.4.2.dev0
3
+ Version: 0.4.3
4
4
  Summary: Pydantic data models for IVOA protocols
5
5
  Author-email: Joshua Fraustro <jfraustro@stsci.edu>, MAST Archive Developers <archive@stsci.edu>
6
6
  Project-URL: Homepage, https://github.com/spacetelescope/vo-models
@@ -28,6 +28,7 @@ Requires-Dist: furo; extra == "docs"
28
28
  Requires-Dist: sphinx-copybutton; extra == "docs"
29
29
  Requires-Dist: toml; extra == "docs"
30
30
  Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
31
+ Dynamic: license-file
31
32
 
32
33
  # vo-models
33
34
 
File without changes
File without changes
File without changes