-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cria flows de materiazacao da bilhetagem 2
- Loading branch information
Showing
35 changed files
with
597 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Valores constantes para materialização dos dados de cadastro | ||
""" | ||
|
||
from datetime import datetime | ||
from enum import Enum | ||
|
||
from pipelines.schedules import create_hourly_cron | ||
from pipelines.treatment.templates.utils import DBTSelector | ||
|
||
|
||
class constants(Enum): # pylint: disable=c0103 | ||
""" | ||
Valores constantes para materialização dos dados de cadastro | ||
""" | ||
|
||
CADASTRO_SELECTOR = DBTSelector( | ||
name="cadastro", | ||
schedule_cron=create_hourly_cron(minute=10), | ||
initial_datetime=datetime(2025, 12, 16, 0, 0, 0), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Flows de tratamento dos dados de cadastro | ||
""" | ||
|
||
from pipelines.capture.jae.constants import constants as jae_constants | ||
from pipelines.constants import constants as smtr_constants | ||
from pipelines.treatment.cadastro.constants import constants | ||
from pipelines.treatment.templates.flows import create_default_materialization_flow | ||
|
||
CADASTRO_MATERIALIZACAO = create_default_materialization_flow( | ||
flow_name="cadastro - materializacao", | ||
selector=constants.CADASTRO_SELECTOR.value, | ||
agent_label=smtr_constants.RJ_SMTR_AGENT_LABEL.value, | ||
wait=[ | ||
jae_constants.JAE_AUXILIAR_SOURCES.value["linha"], | ||
jae_constants.JAE_AUXILIAR_SOURCES.value["operadora_transporte"], | ||
jae_constants.JAE_AUXILIAR_SOURCES.value["pessoa_fisica"], | ||
jae_constants.JAE_AUXILIAR_SOURCES.value["consorcio"], | ||
jae_constants.JAE_AUXILIAR_SOURCES.value["linha_consorcio_operadora_transporte"], | ||
], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Valores constantes para materialização dos dados financeiros | ||
""" | ||
|
||
from datetime import datetime | ||
from enum import Enum | ||
|
||
from pipelines.schedules import create_daily_cron | ||
from pipelines.treatment.templates.utils import DBTSelector | ||
|
||
|
||
class constants(Enum): # pylint: disable=c0103 | ||
""" | ||
Valores constantes para materialização dos dados financeiros | ||
""" | ||
|
||
FINANCEIRO_BILHETAGEM_SELECTOR = DBTSelector( | ||
name="financeiro_bilhetagem", | ||
schedule_cron=create_daily_cron(hour=5, minute=15), | ||
initial_datetime=datetime(2025, 12, 16, 0, 0, 0), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Flows de tratamento dos dados financeiros | ||
""" | ||
|
||
from pipelines.capture.jae.constants import constants as jae_constants | ||
from pipelines.constants import constants as smtr_constants | ||
from pipelines.treatment.cadastro.constants import constants as cadastro_constants | ||
from pipelines.treatment.financeiro.constants import constants | ||
from pipelines.treatment.templates.flows import create_default_materialization_flow | ||
|
||
FINANCEIRO_BILHETAGEM_MATERIALIZACAO = create_default_materialization_flow( | ||
flow_name="financeiro_bilhetagem - materializacao", | ||
selector=constants.FINANCEIRO_BILHETAGEM_SELECTOR.value, | ||
agent_label=smtr_constants.RJ_SMTR_AGENT_LABEL.value, | ||
wait=[cadastro_constants.CADASTRO_SELECTOR.value] | ||
+ jae_constants.ORDEM_PAGAMENTO_SOURCES.value.values(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.