This repository was archived by the owner on Apr 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathconstants.py
More file actions
120 lines (102 loc) · 5.17 KB
/
constants.py
File metadata and controls
120 lines (102 loc) · 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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"
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/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.org/project/pip/"
UV_URL = "https://docs.astral.sh/uv/"
VENV_URL = "https://docs.python.org/3/library/venv.html"
VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/"
CONDA_URL = "https://conda.io/"
FASTAPI_URL = "https://fastapi.tiangolo.com"
PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html"
PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods"
HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/"
ANACONDA_URL = "https://docs.anaconda.com/free/navigator/"
ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/"
ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments"
# Cloudflare
SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/"
# Integrations images
INTEGRATIONS_IMAGES_URL = "https://raw.githubusercontent.com/reflex-dev/integrations-docs/refs/heads/main/images/logos/"
# Reflex Cloud Backend
RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/")
RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/")
# Stats
GITHUB_STARS = 28000
DISCORD_USERS = 7500
CONTRIBUTORS = 200
MAX_FILE_SIZE_MB = 5
MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024
MAX_IMAGES_COUNT = 5
PROMPT_MAP = {
"Use an Image": "Build an app from a reference image",
"Chat App": "A chat app hooked up to an LLM",
"Live Dashboard": "Live stream data on a real-time dashboard",
}
CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22"
BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue"
SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode"
SPLINE_RUNTIME_VERSION = "1.5.5"
REFLEX_DOMAIN_URL = "https://reflex.dev/"
REFLEX_DOMAIN = "reflex.dev"
TWITTER_CREATOR = "@getreflex"
SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL")
# Enable free tier flag
ENABLE_FREE_TIER = os.getenv("ENABLE_FREE_TIER", "false").lower() == "true"
# Enable Pro tiers flag
ENABLE_PRO_TIER = os.getenv("ENABLE_PRO_TIER", "false").lower() == "true"
# Pricing
PRO_TIERS_TABLE = {
"Pro 25": {"price": 25, "credits": 500},
"Pro 50": {"price": 50, "credits": 1000},
"Pro 100": {"price": 100, "credits": 2000},
"Pro 250": {"price": 250, "credits": 5000},
"Pro 500": {"price": 500, "credits": 10000},
"Pro 750": {"price": 750, "credits": 15000},
"Pro 1000": {"price": 1000, "credits": 20000},
}