Skip to content

Commit

Permalink
Fix python snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Dec 17, 2024
1 parent 4105afc commit 5e26c28
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions snippets/python/src/parsing_inputs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from breez_sdk_liquid import BindingLiquidSdk, ConnectRequest, InputType, LiquidNetwork, connect, default_config
from breez_sdk_liquid import BindingLiquidSdk, ConnectRequest, InputType, LiquidNetwork, connect, default_config, ExternalInputParser

def parse_input(sdk: BindingLiquidSdk):
# ANCHOR: parse-inputs
Expand Down Expand Up @@ -34,16 +34,16 @@ def configure_parsers():

# Configure external parsers
config.external_input_parsers = [
{
"provider_id": "provider_a",
"input_regex": "^provider_a",
"parser_url": "https://parser-domain.com/parser?input=<input>"
},
{
"provider_id": "provider_b",
"input_regex": "^provider_b",
"parser_url": "https://parser-domain.com/parser?input=<input>"
}
ExternalInputParser(
provider_id="provider_a",
input_regex="^provider_a",
parser_url="https://parser-domain.com/parser?input=<input>"
),
ExternalInputParser(
provider_id="provider_b",
input_regex="^provider_b",
parser_url="https://parser-domain.com/parser?input=<input>"
)
]

try:
Expand Down

0 comments on commit 5e26c28

Please sign in to comment.