port-ocean 0.5.8__py3-none-any.whl → 0.5.10__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 port-ocean might be problematic. Click here for more details.

@@ -13,7 +13,7 @@ class TokenResponse(BaseModel):
13
13
  access_token: str = Field(alias="accessToken")
14
14
  expires_in: int = Field(alias="expiresIn")
15
15
  token_type: str = Field(alias="tokenType")
16
- _retrieved_time: int = PrivateAttr(get_time())
16
+ _retrieved_time: int = PrivateAttr(default_factory=lambda: int(get_time()))
17
17
 
18
18
  @property
19
19
  def expired(self) -> bool:
@@ -1,6 +1,7 @@
1
1
  from typing import Any, Literal
2
2
 
3
3
  from pydantic import Extra, AnyHttpUrl, parse_obj_as, validator
4
+ from pydantic.env_settings import InitSettingsSource, EnvSettingsSource, BaseSettings
4
5
  from pydantic.fields import Field
5
6
  from pydantic.main import BaseModel
6
7
 
@@ -10,7 +11,7 @@ from port_ocean.core.event_listener import EventListenerSettingsType
10
11
  LogLevelType = Literal["ERROR", "WARNING", "INFO", "DEBUG", "CRITICAL"]
11
12
 
12
13
 
13
- class ApplicationSettings(BaseOceanModel):
14
+ class ApplicationSettings(BaseSettings):
14
15
  log_level: LogLevelType = "INFO"
15
16
  enable_http_logging: bool = True
16
17
  port: int = 8000
@@ -21,7 +22,13 @@ class ApplicationSettings(BaseOceanModel):
21
22
  env_file_encoding = "utf-8"
22
23
 
23
24
  @classmethod
24
- def customise_sources(cls, init_settings, env_settings, *_, **__): # type: ignore
25
+ def customise_sources( # type: ignore
26
+ cls,
27
+ init_settings: InitSettingsSource,
28
+ env_settings: EnvSettingsSource,
29
+ *_,
30
+ **__,
31
+ ):
25
32
  return env_settings, init_settings
26
33
 
27
34
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.5.8
3
+ Version: 0.5.10
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -36,7 +36,7 @@ port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py,
36
36
  port_ocean/cli/utils.py,sha256=IUK2UbWqjci-lrcDdynZXqVP5B5TcjF0w5CpEVUks-k,54
37
37
  port_ocean/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  port_ocean/clients/port/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- port_ocean/clients/port/authentication.py,sha256=kjfOgi9oIwity7IKzZdOhXAuxIVm0N3cDOz9mxeqOpY,2863
39
+ port_ocean/clients/port/authentication.py,sha256=1SPb12ieHLYvDHfaMiSM23DQSg7yGpk7TpsrXsvosGU,2892
40
40
  port_ocean/clients/port/client.py,sha256=3GYCM0ZkX3pB6sNoOb-7_6dm0Jr5_vqhflD9iltf_As,2640
41
41
  port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  port_ocean/clients/port/mixins/blueprints.py,sha256=BiqkhvDFdkySWgL1NHI-LAQ9ieZWazZAojPo9E8d7U4,4575
@@ -49,7 +49,7 @@ port_ocean/clients/port/utils.py,sha256=O9mBu6zp4TfpS4SQ3qCPpn9ZVyYF8GKnji4UnYhM
49
49
  port_ocean/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
50
  port_ocean/config/base.py,sha256=8JoyjTPJS_BeYMnGnKN_q4SDaI-ydctuKl9ccK-Uq78,6474
51
51
  port_ocean/config/dynamic.py,sha256=qOFkRoJsn_BW7581omi_AoMxoHqasf_foxDQ_G11_SI,2030
52
- port_ocean/config/settings.py,sha256=fjBwVdkydkCAoVDi4FPn-2huLfyVdMHfmWFaFKB5smA,1575
52
+ port_ocean/config/settings.py,sha256=5bQmOAIZ2IMDzUEsiVkfZokv9LxHLPOUVKA0TPoJh68,1769
53
53
  port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
55
55
  port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -122,8 +122,8 @@ port_ocean/utils/misc.py,sha256=2XmO8W0SgPjV0rd9HZvrHhoMlHprIwmMFsINxlAmgyw,1723
122
122
  port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,3231
123
123
  port_ocean/utils/signal.py,sha256=Fab0049Cjs69TPTQgvEvilaVZKACQr6tGkRdySjNCi8,1515
124
124
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
125
- port_ocean-0.5.8.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
- port_ocean-0.5.8.dist-info/METADATA,sha256=6ZVNmc5UXUehgwEuIpXdoGy_i7fpJnUgV3xRuwjmeXI,6515
127
- port_ocean-0.5.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
- port_ocean-0.5.8.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
- port_ocean-0.5.8.dist-info/RECORD,,
125
+ port_ocean-0.5.10.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
+ port_ocean-0.5.10.dist-info/METADATA,sha256=LhzUQd5z1OGFly2eIkUwciYjPG9XUaGTlGiuRDqqEJI,6516
127
+ port_ocean-0.5.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
+ port_ocean-0.5.10.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
+ port_ocean-0.5.10.dist-info/RECORD,,