Skip to content

Commit

Permalink
add notice
Browse files Browse the repository at this point in the history
  • Loading branch information
awmatheson committed Sep 10, 2024
1 parent 61e6a8b commit a79b04d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/bytewax/influxdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Sink and source connectors for influxdb."""

import logging
import os
import sys
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, NamedTuple, Optional, Union

Expand All @@ -11,6 +13,17 @@
from bytewax.inputs import FixedPartitionedSource, StatefulSourcePartition
from bytewax.outputs import DynamicSink, StatelessSinkPartition

if "BYTEWAX_LICENSE" not in os.environ:
msg = (
"`{{cookiecutter.project_slug}}` is commercially licensed "
"with publicly available source code.\n"
"You are welcome to prototype using this module for free, "
"but any use on business data requires a paid license.\n"
"See https://modules.bytewax.io/ for a license. "
"Set the env var `BYTEWAX_LICENSE=1` to suppress this message."
)
print(msg, file=sys.stderr)

# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit a79b04d

Please sign in to comment.