hydroserverpy 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl

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.

Potentially problematic release.


This version of hydroserverpy might be problematic. Click here for more details.

@@ -1,5 +1,5 @@
1
1
  from pydantic import BaseModel, Field
2
- from typing import Union
2
+ from typing import Union, Literal, Optional
3
3
  from uuid import UUID
4
4
  from datetime import datetime
5
5
  from hydroserverpy.utils import allow_partial
@@ -33,8 +33,10 @@ class DatastreamFields(BaseModel):
33
33
  observed_property_id: UUID = Field(..., alias='observedPropertyId')
34
34
  processing_level_id: UUID = Field(..., alias='processingLevelId')
35
35
  unit_id: UUID = Field(..., alias='unitId')
36
- time_aggregation_interval_units_id: UUID = Field(..., alias='timeAggregationIntervalUnitsId')
37
- intended_time_spacing_units_id: UUID = Field(None, alias='intendedTimeSpacingUnitsId')
36
+ time_aggregation_interval_units: Literal['seconds', 'minutes', 'hours', 'days'] = \
37
+ Field(..., alias='timeAggregationIntervalUnits')
38
+ intended_time_spacing_units: Optional[Literal['seconds', 'minutes', 'hours', 'days']] = \
39
+ Field(None, alias='intendedTimeSpacingUnits')
38
40
 
39
41
 
40
42
  class DatastreamGetResponse(DatastreamFields, DatastreamID):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hydroserverpy
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  License-File: LICENSE
5
5
  Requires-Dist: requests >=2
6
6
  Requires-Dist: pydantic <2.0.0,>=1.6
@@ -19,7 +19,7 @@ hydroserverpy/components/users.py,sha256=jpZ6TGOImK_j3ghwTFoAxpD9WMBG9DzIC0vcsb2
19
19
  hydroserverpy/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  hydroserverpy/schemas/data_loaders.py,sha256=5YIXryh1LaVgjRetruyZHvBivsCS1XqOnT6lbcMCIMg,459
21
21
  hydroserverpy/schemas/data_sources.py,sha256=cYnhKUaKqirhJjxo9niSgtOdokv98Fah635rOywosAE,2053
22
- hydroserverpy/schemas/datastreams.py,sha256=yB3xHNin2W0PjzQ9cBTLeOLGadkXVdnjS1v8c_rBjIA,2143
22
+ hydroserverpy/schemas/datastreams.py,sha256=wOY3O8UBLjfJXlVJI18rkcPNFApGDteKmFGsCbCv4s4,2266
23
23
  hydroserverpy/schemas/observed_properties.py,sha256=-DpFuo4UYY5dx7mAxRSyN6EqjHGp9-CT5AapzSOE2RQ,698
24
24
  hydroserverpy/schemas/processing_levels.py,sha256=MWy7fRIP-hDJtjwmSB1PK27agx9U2UFpjhl5lrYMIHA,686
25
25
  hydroserverpy/schemas/result_qualifiers.py,sha256=m2OfJHefO1jFfRqV-Klgv6b50jOM0X1UtNCrSon3Znc,652
@@ -27,9 +27,9 @@ hydroserverpy/schemas/sensors.py,sha256=mUilTxc61zkrL2GULhJTO-q3P58Rkh2leHyCSZl1
27
27
  hydroserverpy/schemas/things.py,sha256=kolNbZ-JxNcIK3uNXBCNy7k1BTDbTpjlHa3v_YPrQvU,3359
28
28
  hydroserverpy/schemas/units.py,sha256=_28zmCz9TDuNfHa4Ycj1RKkxwUB_J832NSWIO3cBK9k,550
29
29
  hydroserverpy/schemas/users.py,sha256=TauiaArJ4LVjAKq80KvjKjxex5DAwQekc_nDXHyaU3U,675
30
- hydroserverpy-0.2.1.dist-info/LICENSE,sha256=xVqFxDw3QOEJukakL7gQCqIMTQ1dlSCTo6Oc1otNW80,1508
31
- hydroserverpy-0.2.1.dist-info/METADATA,sha256=gED2q9Mmkmr9HgfVrtpl-ooaVYgxm-IwJADsr2_cN-8,419
32
- hydroserverpy-0.2.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
33
- hydroserverpy-0.2.1.dist-info/top_level.txt,sha256=Zf37hrncXLOYvXhgCrf5mZdeq81G9fShdE2LfYbtb7w,14
34
- hydroserverpy-0.2.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
- hydroserverpy-0.2.1.dist-info/RECORD,,
30
+ hydroserverpy-0.2.3.dist-info/LICENSE,sha256=xVqFxDw3QOEJukakL7gQCqIMTQ1dlSCTo6Oc1otNW80,1508
31
+ hydroserverpy-0.2.3.dist-info/METADATA,sha256=M7f0ECACJA2u6EVhnGJseeEyhbHw7HtqQ6S3zO-lIZY,419
32
+ hydroserverpy-0.2.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
33
+ hydroserverpy-0.2.3.dist-info/top_level.txt,sha256=Zf37hrncXLOYvXhgCrf5mZdeq81G9fShdE2LfYbtb7w,14
34
+ hydroserverpy-0.2.3.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
+ hydroserverpy-0.2.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (70.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5