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 (...
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_gene...
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").resol...
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() DEFAUL...
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/c...
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]) -...
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. Ar...
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: ...
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. ""...
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__)....
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 ...
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__)....
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 ...
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__)....
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: ...
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__)....
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. ""...
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_DIF...
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...
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")...
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. """ t...
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__...
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_RU...
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 d...
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())...
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. """...
# 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: ...
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() ...
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") ...
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 ...
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 F...
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 sh...
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.p...
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_r...
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...
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( ...
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) ...
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 _r...
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...
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...
# 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() ...
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 FileNotFou...
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", "r...
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( ...
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__...
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:...
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.TailwindV4Plugi...
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"], ...
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...
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 co...
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 ''}{...
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() cus...
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 ''}{...
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 ''}{...
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})" ...
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 logg...
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_na...
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...
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_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...
# 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") # ...
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...
# 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, t...
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 ...
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...
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...
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, ...
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: # ### co...
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 ...
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...
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.crea...
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-901...
# ### 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_sty...
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("gra...
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_...
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 ...
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_q...
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): ...
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 =...
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): se...
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: li...
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!" se...
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: li...
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!" se...
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: li...
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...
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: li...
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 no...
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: li...
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 no...
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: li...
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....
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: li...
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....
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: li...
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 n...
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: li...
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...
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: li...
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 conti...
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: li...
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, "")) ...
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: li...
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 conti...
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,...
# 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(answ...
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.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.ch...
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):...
# 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 bra...
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......
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, ...
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.quest...
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}], ...
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((s...
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 = "" ...
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 = "" # Yie...
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 it...
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)): ...
# 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 ...
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! cli...
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}], ...
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-0098e2db43...
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_...
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-0098e2db43...
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://git...
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-0098e2db43...
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_...
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-0098e2db43...
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 =...
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-0098e2db43...
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" DISC...
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-0098e2db43...
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" CON...
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-0098e2db43...
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 ...
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-0098e2db43...
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 ...
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_DE...
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.ycom...
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/t0qopjbznnp2...
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_U...
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_FEEDBAC...
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/iss...
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( "REFL...
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.c...
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" ...
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/CONTRIBUTIN...
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://ref...
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/ref...
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/gettin...
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_repo...
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"...
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://rea...
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...
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://ww...
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...
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...
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" GIT...
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....
REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="