instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
"""Merge Tailwind CSS classes utility."""
from reflex.utils.imports import ImportVar
from reflex.vars import FunctionVar, Var
|
def cn(
*classes: Var | str | tuple | list | None,
) -> Var:
"""Merge Tailwind CSS classes. Accepts strings, Vars, lists, or tuples.
Args:
*classes: Any number of class strings, Vars, tuples, or lists.
Returns:
Var: A Var representing the merged classes string.
"""
return (
Var(
"cn",
_var_data=VarData(imports={"clsx-for-tailwind": ImportVar(tag="cn")}),
)
.to(FunctionVar)
.call(*classes)
.to(str)
)
| from reflex.vars.base import VarData |
"""The pyi generator module."""
|
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
arg | import logging |
"""The pyi generator module."""
import logging
|
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "-- | import subprocess |
"""The pyi generator module."""
import logging
import subprocess
|
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" | import sys |
"""The pyi generator module."""
import logging
import subprocess
import sys
|
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args | from pathlib import Path |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
|
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
| from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
|
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
| logger = logging.getLogger("pyi_generator") |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
|
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list o | LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve() |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
|
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the | GENERATOR_FILE = Path(__file__).resolve() |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
|
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, | GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve() |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
|
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
| DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"] |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
|
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# g | def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout |
"""The pyi generator module."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
|
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
| cmd = ["git", "diff", "--no-color", *args] |
dule."""
import logging
import subprocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
|
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix() | if not args:
args = [] |
rocess
import sys
from pathlib import Path
from reflex.utils.pyi_generator import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
|
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.re | if "--name-only" not in args:
args.insert(0, "--name-only") |
or import PyiGenerator, _relative_to_pwd
logger = logging.getLogger("pyi_generator")
LAST_RUN_COMMIT_SHA_FILE = Path(".pyi_generator_last_run").resolve()
GENERATOR_FILE = Path(__file__).resolve()
GENERATOR_DIFF_FILE = Path(".pyi_generator_diff").resolve()
DEFAULT_TARGETS = ["reflex_ui/components", "reflex_ui/__init__.py"]
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
|
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
| diff = _git_diff(args).splitlines() |
def _git_diff(args: list[str]) -> str:
"""Run a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The output of the git diff command.
"""
cmd = ["git", "diff", "--no-color", *args]
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
|
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
| last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip() |
return subprocess.run(cmd, capture_output=True, encoding="utf-8").stdout
def _git_changed_files(args: list[str] | None = None) -> list[Path]:
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
|
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
| changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"]) |
"""Get the list of changed files for a git diff command.
Args:
args: The args to pass to git diff.
Returns:
The list of changed files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
|
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets | if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files |
d files.
"""
if not args:
args = []
if "--name-only" not in args:
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
|
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets | diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:]) |
args.insert(0, "--name-only")
diff = _git_diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
|
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_f | last_diff = GENERATOR_DIFF_FILE.read_text() |
diff(args).splitlines()
return [Path(file.strip()) for file in diff]
def _get_changed_files() -> list[Path] | None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
|
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
| if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files") |
| None:
"""Get the list of changed files since the last run of the generator.
Returns:
The list of changed files, or None if all files should be regenerated.
"""
try:
last_run_commit_sha = LAST_RUN_COMMIT_SHA_FILE.read_text().strip()
except FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
|
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected | changed_files = None |
t FileNotFoundError:
logger.info(
"make_pyi.py last run could not be determined, regenerating all .pyi files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
|
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip()
LAST_RUN_COMMIT_SHA_FILE.write_te | changed_files = None |
files"
)
return None
changed_files = _git_changed_files([f"{last_run_commit_sha}..HEAD"])
# get all unstaged changes
changed_files.extend(_git_changed_files())
if _relative_to_pwd(GENERATOR_FILE) not in changed_files:
return changed_files
logger.info("make_pyi.py has changed, checking diff now")
diff = "".join(_git_diff([GENERATOR_FILE.as_posix()]).splitlines()[2:])
try:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
|
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip()
LAST_RUN_COMMIT_SHA_FILE.write_text(current_commit_sha)
| targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
) |
:
last_diff = GENERATOR_DIFF_FILE.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
|
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip()
LAST_RUN_COMMIT_SHA_FILE.write_text(current_commit_sha)
| changed_files = _get_changed_files() |
.read_text()
if diff != last_diff:
logger.info("make_pyi.py has changed, regenerating all .pyi files")
changed_files = None
else:
logger.info("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
|
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip()
LAST_RUN_COMMIT_SHA_FILE.write_text(current_commit_sha)
| if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}") |
("make_pyi.py has not changed, only regenerating changed files")
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
|
gen.scan_all(targets, changed_files)
current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip()
LAST_RUN_COMMIT_SHA_FILE.write_text(current_commit_sha)
| gen = PyiGenerator() |
except FileNotFoundError:
logger.info(
"make_pyi.py diff could not be determined, regenerating all .pyi files"
)
changed_files = None
GENERATOR_DIFF_FILE.write_text(diff)
return changed_files
if __name__ == "__main__":
targets = (
[arg for arg in sys.argv[1:] if not arg.startswith("tests")]
if len(sys.argv) > 1
else DEFAULT_TARGETS
)
# Only include targets that have a prefix in the default target list
targets = [
target
for target in targets
if any(str(target).startswith(prefix) for prefix in DEFAULT_TARGETS)
]
logger.info(f"Running .pyi generator for {targets}")
changed_files = _get_changed_files()
if changed_files is None:
logger.info("Changed files could not be detected, regenerating all .pyi files")
else:
logger.info(f"Detected changed files: {changed_files}")
gen = PyiGenerator()
gen.scan_all(targets, changed_files)
|
LAST_RUN_COMMIT_SHA_FILE.write_text(current_commit_sha)
| current_commit_sha = subprocess.run(
["git", "rev-parse", "HEAD"], capture_output=True, encoding="utf-8"
).stdout.strip() |
config = rx.Config(
state_auto_setters=True,
port=3000,
app_name="pcweb",
deploy_url="https://reflex.dev",
frontend_packages=[
"chakra-react-select",
"tailwindcss-animated",
],
show_build_with_reflex=True,
telemetry_enabled=False,
plugins=[rx.plugins.TailwindV4Plugin(), rx.plugins.SitemapPlugin()],
)
| import reflex as rx | |
tw_config = {
"plugins": [
"@tailwindcss/typography",
"tailwindcss-radix",
"tailwindcss-animated",
"tailwind-scrollbar",
],
"darkMode": "class",
"theme": {
"extend": {
"fontFamily": {
"sans": ["Instrument Sans", "sans-serif"],
"mono": ["JetBrains Mono", "monospace"],
"body": ["Instrument Sans", "sans-serif"],
},
"fontSize": {
"xs": [
"0.75rem",
{
"lineHeight": "1rem",
"letterSpacing": "-0.00375rem",
},
],
"sm": [
"0.875rem",
{
"lineHeight": "1.25rem",
"letterSpacing": "-0.01rem",
},
],
"base": [
"1rem",
{
| from tailwind_radix_map import custom_colors_dict, radix_colors_dict | |
# Default Radix Colors
def create_colors_dict() -> dict:
colors_dict = {}
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
custom_colors_dict = {}
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
custom_colors_dict["white"] = {1: "var(--c-white-1)"}
return custom_colors_dict
radix_colors_dict = create_colors_dict()
custom_colors_dict = cr | from reflex.constants.colors import ColorType | |
from reflex.constants.colors import ColorType
# Default Radix Colors
def create_colors_dict() -> dict:
|
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
custom_colors_dict = {}
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
custom_colors_dict["white"] = {1: "var(--c-white-1)"}
return custom_colors_dict
radix_colors_dict = create_colors_dict()
custom_colors_dict = create_custom_colors_dict()
| colors_dict = {} |
from reflex.constants.colors import ColorType
# Default Radix Colors
def create_colors_dict() -> dict:
colors_dict = {}
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
|
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
custom_colors_dict["white"] = {1: "var(--c-white-1)"}
return custom_colors_dict
radix_colors_dict = create_colors_dict()
custom_colors_dict = create_custom_colors_dict()
| custom_colors_dict = {} |
from reflex.constants.colors import ColorType
# Default Radix Colors
def create_colors_dict() -> dict:
colors_dict = {}
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
custom_colors_dict = {}
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
|
return custom_colors_dict
radix_colors_dict = create_colors_dict()
custom_colors_dict = create_custom_colors_dict()
| custom_colors_dict["white"] = {1: "var(--c-white-1)"} |
from reflex.constants.colors import ColorType
# Default Radix Colors
def create_colors_dict() -> dict:
colors_dict = {}
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
custom_colors_dict = {}
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
custom_colors_dict["white"] = {1: "var(--c-white-1)"}
return custom_colors_dict
|
custom_colors_dict = create_custom_colors_dict()
| radix_colors_dict = create_colors_dict() |
colors import ColorType
# Default Radix Colors
def create_colors_dict() -> dict:
colors_dict = {}
for color in ColorType.__args__:
if color not in ["black", "white"]:
colors_dict[color] = {
shade: f"var(--{'c-' if color in ['slate', 'violet'] else ''}{color}-{shade})"
for shade in range(1, 13)
}
# Append the alpha colors
colors_dict[f"{color}A"] = {
shade: f"var(--{color}-a{shade})" for shade in range(1, 13)
}
return colors_dict
# Custom Colors from the 'custom-colors.css' file
def create_custom_colors_dict() -> dict:
custom_colors_dict = {}
for color in ["slate", "violet"]:
custom_colors_dict[color] = {
shade: f"var(--c-{color}-{shade})" for shade in range(1, 13)
}
# Add the white color
custom_colors_dict["white"] = {1: "var(--c-white-1)"}
return custom_colors_dict
radix_colors_dict = create_colors_dict()
| custom_colors_dict = create_custom_colors_dict() | |
from logging.config import fileConfig
from sqlalchemy import engine_from_config, pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need | from __future__ import annotations | |
from __future__ import annotations
|
from sqlalchemy import engine_from_config, pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to | from logging.config import fileConfig |
from __future__ import annotations
from logging.config import fileConfig
|
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to | from sqlalchemy import engine_from_config, pool |
from __future__ import annotations
from logging.config import fileConfig
from sqlalchemy import engine_from_config, pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
|
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_meta | config = context.config |
from __future__ import annotations
from logging.config import fileConfig
from sqlalchemy import engine_from_config, pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
|
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_ | if config.config_file_name is not None:
fileConfig(config.config_file_name) |
from __future__ import annotations
from logging.config import fileConfig
from sqlalchemy import engine_from_config, pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
|
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online() -> None:
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the cont | target_metadata = None |
s is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
|
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online() -> None:
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
"""
connectable = engine_from_config(
config.get_section(config.config_ini_section, {}),
prefix="sqlalchemy.",
poolclass=pool.NullPool,
)
with connectable.connect() as connection:
context.configure(connection=connection, target_metadata=target_metadata)
with context.begin_transaction():
context.run_migrations()
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
| url = config.get_main_option("sqlalchemy.url") |
rom the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online() -> None:
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
"""
|
with connectable.connect() as connection:
context.configure(connection=connection, target_metadata=target_metadata)
with context.begin_transaction():
context.run_migrations()
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
| connectable = engine_from_config(
config.get_section(config.config_ini_section, {}),
prefix="sqlalchemy.",
poolclass=pool.NullPool,
) |
creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online() -> None:
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
"""
connectable = engine_from_config(
config.get_section(config.config_ini_section, {}),
prefix="sqlalchemy.",
poolclass=pool.NullPool,
)
with connectable.connect() as connection:
context.configure(connection=connection, target_metadata=target_metadata)
with context.begin_transaction():
context.run_migrations()
| if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online() | |
"""empty message.
Revision ID: 0e2da5026c00
Revises:
Create Date: 2024-05-22 17:31:15.245402
"""
|
import sqlalchemy as sa
import sqlmodel
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "0e2da5026c00"
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"customer",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("name", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("phone", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("address", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"feedback",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nulla | from typing import Sequence, Union |
"""empty message.
Revision ID: 0e2da5026c00
Revises:
Create Date: 2024-05-22 17:31:15.245402
"""
from typing import Sequence, Union
|
import sqlmodel
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "0e2da5026c00"
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"customer",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("name", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("phone", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("address", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"feedback",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Col | import sqlalchemy as sa |
"""empty message.
Revision ID: 0e2da5026c00
Revises:
Create Date: 2024-05-22 17:31:15.245402
"""
from typing import Sequence, Union
import sqlalchemy as sa
|
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "0e2da5026c00"
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"customer",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("name", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("phone", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("address", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"feedback",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Column("feedback", | import sqlmodel |
"""empty message.
Revision ID: 0e2da5026c00
Revises:
Create Date: 2024-05-22 17:31:15.245402
"""
from typing import Sequence, Union
import sqlalchemy as sa
import sqlmodel
|
# revision identifiers, used by Alembic.
revision: str = "0e2da5026c00"
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"customer",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("name", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("phone", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.Column("address", sqlmodel.sql.sqltypes.AutoString(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"feedback",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("email", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Column("feedback", sqlmodel.sql.sqltypes.Au | from alembic import op |
mands ###
op.execute("""INSERT INTO Customer (name, email, phone, address) VALUES
('John Doe', 'john.doe@example.com', '123-456-7890', '123 Elm Street, Springfield'),
('Jane Smith', 'jane.smith@example.com', '234-567-8901', '456 Oak Street, Springfield'),
('Alice Johnson', 'alice.johnson@example.com', '345-678-9012', '789 Pine Street, Springfield'),
('Bob Brown', 'bob.brown@example.com', '456-789-0123', '101 Maple Street, Springfield'),
('Charlie Davis', 'charlie.davis@example.com', '567-890-1234', '202 Birch Street, Springfield'),
('Dana White', 'dana.white@example.com', '678-901-2345', '303 Cedar Street, Springfield'),
('Eve Black', 'eve.black@example.com', '789-012-3456', '404 Ash Street, Springfield'),
('Frank Green', 'frank.green@example.com', '890-123-4567', '505 Willow Street, Springfield'),
('Grace Blue', 'grace.blue@example.com', '901-234-5678', '606 Elm Street, Springfield'),
('Hank Brown', 'hank.brown@example.com', '012-345-6789', '707 Oak Street, Springfield');
""")
|
# ### end Alembic commands ###
| def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("waitlist")
op.drop_table("feedback")
op.drop_table("customer") |
# Common styles for questions and answers.
|
shadow = "rgba(0, 0, 0, 0.15) 0px 2px 8px"
chat_margin = "20%"
message_style = {
"padding": "1em",
"border_radius": "5px",
"margin_y": "0.5em",
"box_shadow": shadow,
"max_width": "30em",
"display": "inline-block",
}
# Set specific styles for questions and answers.
question_style = message_style | {
"background_color": rx.color("gray", 4),
"margin_left": chat_margin,
}
answer_style = message_style | {
"background_color": rx.color("accent", 8),
"margin_right": chat_margin,
}
# Styles for the action bar.
input_style = {"border_width": "1px", "box_shadow": shadow, "width": "350px"}
button_style = {"background_color": rx.color("accent", 10), "box_shadow": shadow}
| import reflex as rx |
# Common styles for questions and answers.
import reflex as rx
|
chat_margin = "20%"
message_style = {
"padding": "1em",
"border_radius": "5px",
"margin_y": "0.5em",
"box_shadow": shadow,
"max_width": "30em",
"display": "inline-block",
}
# Set specific styles for questions and answers.
question_style = message_style | {
"background_color": rx.color("gray", 4),
"margin_left": chat_margin,
}
answer_style = message_style | {
"background_color": rx.color("accent", 8),
"margin_right": chat_margin,
}
# Styles for the action bar.
input_style = {"border_width": "1px", "box_shadow": shadow, "width": "350px"}
button_style = {"background_color": rx.color("accent", 10), "box_shadow": shadow}
| shadow = "rgba(0, 0, 0, 0.15) 0px 2px 8px" |
# Common styles for questions and answers.
import reflex as rx
shadow = "rgba(0, 0, 0, 0.15) 0px 2px 8px"
|
message_style = {
"padding": "1em",
"border_radius": "5px",
"margin_y": "0.5em",
"box_shadow": shadow,
"max_width": "30em",
"display": "inline-block",
}
# Set specific styles for questions and answers.
question_style = message_style | {
"background_color": rx.color("gray", 4),
"margin_left": chat_margin,
}
answer_style = message_style | {
"background_color": rx.color("accent", 8),
"margin_right": chat_margin,
}
# Styles for the action bar.
input_style = {"border_width": "1px", "box_shadow": shadow, "width": "350px"}
button_style = {"background_color": rx.color("accent", 10), "box_shadow": shadow}
| chat_margin = "20%" |
# Common styles for questions and answers.
import reflex as rx
shadow = "rgba(0, 0, 0, 0.15) 0px 2px 8px"
chat_margin = "20%"
message_style = {
"padding": "1em",
"border_radius": "5px",
"margin_y": "0.5em",
"box_shadow": shadow,
"max_width": "30em",
"display": "inline-block",
}
# Set specific styles for questions and answers.
question_style = message_style | {
"background_color": rx.color("gray", 4),
"margin_left": chat_margin,
}
answer_style = message_style | {
"background_color": rx.color("accent", 8),
"margin_right": chat_margin,
}
# Styles for the action bar.
|
button_style = {"background_color": rx.color("accent", 10), "box_shadow": shadow}
| input_style = {"border_width": "1px", "box_shadow": shadow, "width": "350px"} |
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(se | from __future__ import annotations | |
from __future__ import annotations
import os
|
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asynci | import openai |
from __future__ import annotations
import os
import openai
|
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our cha | import reflex as rx |
from __future__ import annotations
import os
import openai
import reflex as rx
|
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer | OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY") |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
|
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
awa | def set_question(self, q: str):
self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
|
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
awa | self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
|
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self. | def set_question1(self, q: str):
self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
|
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
asy | def set_question2(self, q: str):
self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
|
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
asy | self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
|
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now! | def set_question3(self, q: str):
self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
|
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now! | self.question = q |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
|
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"r | def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer)) |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
|
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
| answer = "I don't know!" |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
|
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((se | def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = "" |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
|
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True, | answer = "I don't know!" |
from __future__ import annotations
import os
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
|
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((se | self.question = "" |
import openai
import reflex as rx
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
|
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question i | import asyncio |
I_KEY")
class ChatappState(rx.State):
# The current question being asked.
question: str
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
|
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input befor | answer = "I don't know!" |
hat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]]
def set_question(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
|
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content | self.question = "" |
ion(self, q: str):
self.question = q
def set_question1(self, q: str):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
|
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
self.chat_history[-1 | for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield |
tr):
self.question = q
def set_question2(self, q: str):
self.question = q
def set_question3(self, q: str):
self.question = q
def answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
|
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
se | self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1]) |
answer(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
def answer2(self) -> None:
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
|
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
self.chat_history[-1] = (self.chat_history[-1][0], answer)
yield
| client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY) |
r the question input.
self.question = ""
async def answer3(self):
import asyncio
# Our chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
|
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
self.chat_history[-1] = (self.chat_history[-1][0], answer)
yield
| answer = "" |
r chatbot is not very smart right now...
answer = "I don't know!"
self.chat_history.append((self.question, ""))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
|
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
self.chat_history[-1] = (self.chat_history[-1][0], answer)
yield
| self.question = "" |
e to clear the frontend input before continuing.
yield
for i in range(len(answer)):
await asyncio.sleep(0.1)
self.chat_history[-1] = (self.chat_history[-1][0], answer[: i + 1])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
|
answer += item.choices[0].delta.content
self.chat_history[-1] = (self.chat_history[-1][0], answer)
yield
| if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break |
])
yield
async def answer4(self):
# Our chatbot has some brains now!
client = openai.AsyncOpenAI(api_key=OPENAI_API_KEY)
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": self.question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
self.chat_history.append((self.question, answer))
# Clear the question input.
self.question = ""
# Yield here to clear the frontend input before continuing.
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
|
yield
| self.chat_history[-1] = (self.chat_history[-1][0], answer) |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
|
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPO | REFLEX_URL = "https://reflex.dev/" |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
|
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees= | REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/" |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
|
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_repor | PYNECONE_URL = "https://pynecone.io" |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
|
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/ | REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/") |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
|
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hostin | REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/") |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
|
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79 | PIP_URL = "https://pypi.org/project/reflex" |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
|
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/doc | GITHUB_URL = "https://github.com/reflex-dev/reflex" |
import os
# pcweb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
|
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = " | OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone" |
eb constants.
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
|
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Q | GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions" |
EX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
|
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
| FORUM_URL = "https://forum.reflex.dev" |
OOK_URL: str = (
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
|
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_UR | TWITTER_URL = "https://twitter.com/getreflex" |
/hooks/catch/20661176/2s1nxp9/"
)
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
|
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-splin | DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" |
EB_LANDING_FORM_URL_GET_DEMO: str = (
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
|
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterpri | CONTACT_URL = "mailto:contact@reflex.dev" |
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
|
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev. | CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" |
"
)
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL: str = "https://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
|
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
DEMO_VIDEO_URL = "https://ww | LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" |
://hkdk.events/t0qopjbznnp2fr"
REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
|
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
LAUNCH_VIDEO_URL = "h | YC_URL = "https://www.ycombinator.com/companies/reflex" |
RM_FEEDBACK_WEBHOOK_URL: str = os.environ.get(
"REFLEX_DEV_WEB_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
|
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk"
# Install urls.
BUN_ | ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" |
B_GENERAL_FORM_FEEDBACK_WEBHOOK_URL"
)
# pcweb urls.
REFLEX_URL = "https://reflex.dev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
|
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk"
# Install urls.
BUN_URL = "https://bun.sh"
NEXTJS_URL = "https://nextjs.org"
NODEJS_URL = "https://nodej | CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" |
ev/"
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
PYNECONE_URL = "https://pynecone.io"
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
PIP_URL = "https://pypi.org/project/reflex"
GITHUB_URL = "https://github.com/reflex-dev/reflex"
OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone"
GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions"
FORUM_URL = "https://forum.reflex.dev"
TWITTER_URL = "https://twitter.com/getreflex"
DISCORD_URL = "https://discord.gg/T5WSbC2YtQ"
CONTACT_URL = "mailto:contact@reflex.dev"
CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat"
LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev"
YC_URL = "https://www.ycombinator.com/companies/reflex"
ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727"
CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md"
|
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
NPMJS_URL = "https://www.npmjs.com/"
SPLINE_URL = "https://github.com/splinetool/react-spline"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk"
# Install urls.
BUN_URL = "https://bun.sh"
NEXTJS_URL = "https://nextjs.org"
NODEJS_URL = "https://nodejs.org/en/"
POETRY_URL = "https://python-poetry.org/"
PIPENV_URL = "https://pipenv.pypa.io/en/latest/"
PIP_URL = "https://pypi.or | REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.