Пример #1
0
from typing import TypeVar
from snapflow import SnapflowModule

# from .data_formats.html_file import HtmlFile, HtmlFileFormat, HtmlFileHandler

PlotlyJson = TypeVar("PlotlyJson")

module = SnapflowModule(
    "plotly",
    py_module_path=__file__,
    py_module_name=__name__,
)
Пример #2
0
from typing import TypeVar

from snapflow import SnapflowModule
from .functions.import_orders import import_orders
from .functions.import_order_products import import_order_products

BigCommerceOrder = TypeVar("BigCommerceOrder")
BigCommerceOrderProduct = TypeVar("BigCommerceOrderProduct")

module = SnapflowModule("bigcommerce", py_module_path=__file__, py_module_name=__name__)
module.add_function(import_orders)
module.add_function(import_order_products)
Пример #3
0
from typing import TypeVar
from snapflow import SnapflowModule
from snapflow_mailchimp.functions.export_audience import export_audience

# Schemas (for type hinting in python)
MailchimpMember = TypeVar("MailchimpMember")

module = SnapflowModule(
    "mailchimp",
    py_module_path=__file__,
    py_module_name=__name__,
)
module.add_function(export_audience)
Пример #4
0
from typing import TypeVar

from snapflow import SnapflowModule
from .functions.import_funding_rounds import import_funding_rounds
from .functions.import_organizations import import_organizations
from .functions.import_people import import_people

CrunchbaseFundingRound = TypeVar("CrunchbaseFundingRound")
CrunchbaseOrganization = TypeVar("CrunchbaseOrganization")
CrunchbasePerson = TypeVar("CrunchbasePerson")

module = SnapflowModule("crunchbase",
                        py_module_path=__file__,
                        py_module_name=__name__)
module.add_function(import_people)
module.add_function(import_organizations)
module.add_function(import_funding_rounds)
Пример #5
0
from typing import TypeVar

from snapflow import SnapflowModule

from .functions.import_orders import import_orders

ShopifyOrder = TypeVar("ShopifyOrder")

module = SnapflowModule(
    "shopify",
    py_module_path=__file__,
    py_module_name=__name__,
)
module.add_function(import_orders)
Пример #6
0
from typing import TypeVar

from snapflow import SnapflowModule

from .functions.import_observations import import_observations

FredObservation = TypeVar("FredObservation")
FredSeries = TypeVar("FredSeries")

module = SnapflowModule(
    "fred",
    py_module_path=__file__,
    py_module_name=__name__,
)
module.add_function(import_observations)
Пример #7
0
)
from snapflow_stocks.marketstack.functions.conformers import marketstack_conform_tickers
from snapflow_stocks.marketstack.functions.importers import (
    marketstack_import_eod_prices,
    marketstack_import_tickers,
)

# Schemas (for type hinting in python)
Ticker = TypeVar("Ticker")
EodPrice = TypeVar("EodPrice")
# Vendor-specific
AlphavantageEodPrice = TypeVar("AlphavantageEodPrice")
AlphavantageCompanyOverview = TypeVar("AlphavantageCompanyOverview")
MarketstackTicker = TypeVar("MarketstackTicker")

module = SnapflowModule(
    "stocks",
    py_module_path=__file__,
    py_module_name=__name__,
    schema_paths=[
        "schemas",
        "alphavantage/schemas",
        "marketstack/schemas",
    ],
)
module.add_function(alphavantage_import_eod_prices)
module.add_function(alphavantage_import_company_overview)
module.add_function(marketstack_import_eod_prices)
module.add_function(marketstack_import_tickers)
module.add_function(marketstack_conform_tickers)
Пример #8
0
from typing import TypeVar
from snapflow import SnapflowModule

# Schemas (for type hinting in python)
ExampleSchema = TypeVar("ExampleSchema")

module = SnapflowModule(
    "example",
    py_module_path=__file__,
    py_module_name=__name__,
    schemas=["schemas/schema.yml"],
    snaps=[Snap],
)
module.export()
Пример #9
0
from typing import TypeVar

from snapflow import SnapflowModule
from snapflow_stripe.functions.import_invoices import import_invoices
from snapflow_stripe.functions.import_subscription_items import (
    import_subscription_items,
)

from .functions.import_subscriptions import import_subscriptions
from .functions.clean_charges import clean_charges
from .functions.import_charges import import_charges
from .functions.import_refunds import import_refunds

# Make TypeVars for all schemas
StripeCharge = TypeVar("StripeCharge")
StripeChargeRaw = TypeVar("StripeChargeRaw")
StripeRefundRaw = TypeVar("StripeRefundRaw")
StripeSubscriptionRaw = TypeVar("StripeSubscriptionRaw")
StripeSubscriptionItemRaw = TypeVar("StripeSubscriptionItemRaw")
StripeInvoiceRaw = TypeVar("StripeInvoiceRaw")

module = SnapflowModule("stripe", py_module_path=__file__, py_module_name=__name__,)
module.add_function(clean_charges)
module.add_function(import_charges)
module.add_function(import_refunds)
module.add_function(import_subscriptions)
module.add_function(import_subscription_items)
module.add_function(import_invoices)