bizon 0.3.0__py3-none-any.whl → 0.3.1__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.
bizon/cli/main.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import click
2
+ from dotenv import find_dotenv, load_dotenv
2
3
 
3
4
  from bizon.engine.engine import RunnerFactory
4
5
  from bizon.engine.runner.config import LoggerLevel
@@ -95,15 +96,28 @@ def destination():
95
96
  show_default=True,
96
97
  help="Log level to use.",
97
98
  )
99
+ @click.option(
100
+ "--env-file",
101
+ required=False,
102
+ type=click.Path(exists=True),
103
+ help="Path to .env file to load environment variables from.",
104
+ )
98
105
  def run(
99
106
  filename: str,
100
107
  custom_source: str,
101
108
  runner: str,
102
109
  log_level: LoggerLevel,
110
+ env_file: str,
103
111
  help="Run a bizon pipeline from a YAML file.",
104
112
  ):
105
113
  """Run a bizon pipeline from a YAML file."""
106
114
 
115
+ # Load environment variables from .env file
116
+ if env_file:
117
+ load_dotenv(env_file)
118
+ else:
119
+ load_dotenv(find_dotenv(".env"))
120
+
107
121
  # Parse config from YAML file as a dictionary
108
122
  config = parse_from_yaml(filename)
109
123
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bizon
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Extract and load your data reliably from API Clients with native fault-tolerant and checkpointing mechanism.
5
5
  Author-email: Antoine Balliet <antoine.balliet@gmail.com>, Anas El Mhamdi <anas.elmhamdi@gmail.com>
6
6
  License-File: LICENSE
@@ -7,7 +7,7 @@ bizon/alerting/slack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
7
7
  bizon/alerting/slack/config.py,sha256=D_CAtzXu-O41OVoyrlYRlBxnGN9rNbnohYQ9CmBYt_E,84
8
8
  bizon/alerting/slack/handler.py,sha256=0m6IUSkxqDMlpDWslkImQX74ScD8wIx3YtrhfpYNGUA,1620
9
9
  bizon/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- bizon/cli/main.py,sha256=pQnphPLznllBVzifyIrn3es0U9E1VGSzeEv_COzq9FI,3364
10
+ bizon/cli/main.py,sha256=1jmMCUa_Mzd7vDLmEUFKBD5m-fvX_3ron-i-JAd2im4,3729
11
11
  bizon/cli/utils.py,sha256=aZ47YjFfifHkW95bAVzWfEQD3ZnxGSMT32bkRLmc5-c,953
12
12
  bizon/common/models.py,sha256=eL_Ii0CkeJFIjak1CKrB74mbC3OkmWP2uI27ynlYgkQ,10070
13
13
  bizon/common/errors/backoff.py,sha256=z7RkQt1Npdh0sfD3hBDaiWQKe4iqS6ewvT1Q4Fds5aU,508
@@ -135,8 +135,8 @@ bizon/source/auth/authenticators/oauth.py,sha256=tY_UZsWTy4FkifqJ7-smPaD61gg1dMJ
135
135
  bizon/source/auth/authenticators/token.py,sha256=P6SKRAarAEv28YiWp8hQLSKAV7twNlyNTGRr9sxlx58,956
136
136
  bizon/transform/config.py,sha256=Q9F7jlsuaXK8OYrO5qcdk8lxXTDoIgzoVMhhHW3igEw,213
137
137
  bizon/transform/transform.py,sha256=Ufla8YFx9C9WEiN0ppmZS1a86Sk0PgggqC-8DIvDeAQ,1414
138
- bizon-0.3.0.dist-info/METADATA,sha256=oX7OZjHhKAVvQ8UiRS0ksqu3C65t2kOp2mAfXoEBdJY,11159
139
- bizon-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
140
- bizon-0.3.0.dist-info/entry_points.txt,sha256=hHZPN-V6JwwhSYWNCKVu3WNxekuhXtIAaz_zdwO7NDo,45
141
- bizon-0.3.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
142
- bizon-0.3.0.dist-info/RECORD,,
138
+ bizon-0.3.1.dist-info/METADATA,sha256=SAaqDyU1Zul1AM_l30HZ-8mYjHp0fKnPN3U9MnJj91w,11159
139
+ bizon-0.3.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
140
+ bizon-0.3.1.dist-info/entry_points.txt,sha256=hHZPN-V6JwwhSYWNCKVu3WNxekuhXtIAaz_zdwO7NDo,45
141
+ bizon-0.3.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
142
+ bizon-0.3.1.dist-info/RECORD,,
File without changes