compair-core 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
compair/__init__.py CHANGED
@@ -61,7 +61,12 @@ def _handle_engine() -> Engine:
61
61
  )
62
62
 
63
63
  sqlite_dir = os.getenv("COMPAIR_SQLITE_DIR", "/data")
64
- os.makedirs(sqlite_dir, exist_ok=True)
64
+ try:
65
+ os.makedirs(sqlite_dir, exist_ok=True)
66
+ except OSError:
67
+ fallback_dir = os.path.join(os.getcwd(), "compair_data")
68
+ os.makedirs(fallback_dir, exist_ok=True)
69
+ sqlite_dir = fallback_dir
65
70
  sqlite_path = os.path.join(sqlite_dir, os.getenv("COMPAIR_SQLITE_NAME", "compair.db"))
66
71
  return create_engine(f"sqlite:///{sqlite_path}", connect_args={"check_same_thread": False})
67
72
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compair-core
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Open-source foundation of the Compair collaboration platform.
5
5
  Author: RocketResearch, Inc.
6
6
  License: MIT
@@ -85,7 +85,7 @@ Container definitions and build pipelines live outside this public package:
85
85
  Key environment variables for the core edition:
86
86
 
87
87
  - `COMPAIR_EDITION` (`core`) – corresponds to this core local implementation.
88
- - `COMPAIR_SQLITE_DIR` / `COMPAIR_SQLITE_NAME` – override the default local SQLite path.
88
+ - `COMPAIR_SQLITE_DIR` / `COMPAIR_SQLITE_NAME` – override the default local SQLite path (falls back to `./compair_data` if `/data` is not writable).
89
89
  - `COMPAIR_LOCAL_MODEL_URL` – endpoint for your local embeddings/feedback service (defaults to `http://local-model:9000`).
90
90
  - `COMPAIR_EMAIL_BACKEND` – the core mailer logs emails to stdout; cloud overrides this with transactional delivery.
91
91
 
@@ -1,4 +1,4 @@
1
- compair/__init__.py,sha256=OUXUSHK8JTlWMgCpzodE1B6Xc7glkCcRMHZQi02sRCM,2594
1
+ compair/__init__.py,sha256=5yhxvcTsCWLdQCye9qVha1PW6td3UyfrcWAWXyTbURw,2775
2
2
  compair/celery_app.py,sha256=OM_Saza9yC9Q0kz_WXctfswrKkG7ruT52Zl5E4guiT0,640
3
3
  compair/default_groups.py,sha256=dbacrFkSjqEQZ_uoFU5gYhgIoP_3lmvz6LJNHCJvxlw,498
4
4
  compair/embeddings.py,sha256=ELpMYWBw3nCjxTx9vLrDiHYptzlzj_7JW6jZAf2Iql4,2341
@@ -9,7 +9,7 @@ compair/models.py,sha256=J24eVQSPdiz13VdrKe8QsZh-nte8OZySf4LQwp4wPuU,13891
9
9
  compair/schema.py,sha256=TxQpDQ96J_tIj-Y_1C_x2eUYn9n_LOG6XiNLCX1-GYY,2902
10
10
  compair/tasks.py,sha256=CY-Oo9UeqNF52s2twUkXSyHGgz1_PX8ffTqxmmIlDJs,3864
11
11
  compair/utils.py,sha256=5Cw3FrOsCc5jfO4R5Ghg_TXvh3DwHICl2PdwLZDm3XY,1581
12
- compair_core-0.3.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
+ compair_core-0.3.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
13
13
  compair_email/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  compair_email/email.py,sha256=bedTrcfmi4K2kB0B2bSbryhq5k_4C-QNtb8wZjvzKAs,238
15
15
  compair_email/email_core.py,sha256=da7JxTo5ude55mB7UNLlpNp8xenYwoPaqyTunxjU7to,316
@@ -30,7 +30,7 @@ server/providers/noop_billing.py,sha256=V18Cpl1D1reM3xhgw-lShGliVpYO8IsiAPWOAIR3
30
30
  server/providers/noop_ocr.py,sha256=fMaJrivDef38-ECgIuTXUBCIm_avgvZf3nQ3UTdFPNI,341
31
31
  server/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  server/routers/capabilities.py,sha256=FZBLgmlIw6tWZiuihpzRmZ9AvbrY1jolVs7zqnhNPRU,1150
33
- compair_core-0.3.3.dist-info/METADATA,sha256=iZ_yGKLwYTDQnAxjWbQq-Ua3CsqxM8k2syAVZSjHgms,4533
34
- compair_core-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- compair_core-0.3.3.dist-info/top_level.txt,sha256=-UjF8_GOz0G56FNiZDZnMSkEpnzBX__7qNrKpKLOqNA,29
36
- compair_core-0.3.3.dist-info/RECORD,,
33
+ compair_core-0.3.4.dist-info/METADATA,sha256=gxX3ggvJa0X3PIdrNSDeqwMZ5oDZTI5Mu4xW0qcoUUE,4593
34
+ compair_core-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ compair_core-0.3.4.dist-info/top_level.txt,sha256=-UjF8_GOz0G56FNiZDZnMSkEpnzBX__7qNrKpKLOqNA,29
36
+ compair_core-0.3.4.dist-info/RECORD,,