Skip to content

Commit 87ec21c

Browse files
uzunenescursoragent
andcommitted
Replace Turkish refs: run_with_sifreler -> run_with_env, default file .env
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ce7ae30 commit 87ec21c

5 files changed

Lines changed: 19 additions & 20 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ htmlcov/
2020
# Env / secrets
2121
.env
2222
.env.*
23-
sifreler
2423
*sa-key*.json

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,19 +278,19 @@ export VISGATE_REPLICATE_API_KEY="..."
278278
export VISGATE_RUNWAY_API_KEY="..."
279279
```
280280

281-
### Running with credentials (sifreler)
281+
### Running with a credentials file
282282

283-
If you keep your keys in a file (e.g. `sifreler` in the project root, or any path set in `VISGATE_ENV_FILE`), use the runner so all examples get the right env:
283+
If you keep your keys in a file (e.g. `.env` in the project root, or any path set in `VISGATE_ENV_FILE`), use the runner so all examples get the right env:
284284

285285
```bash
286-
# From project root: load sifreler and run all examples
287-
python examples/run_with_sifreler.py
286+
# From project root: load .env and run all examples
287+
python examples/run_with_env.py
288288

289289
# Run a single example
290-
python examples/run_with_sifreler.py 04_videos_all_providers.py
290+
python examples/run_with_env.py 04_videos_all_providers.py
291291
```
292292

293-
The runner parses `KEY=value` lines (skips empty and `#` comments) and sets `os.environ` before running. Default file is repo root `sifreler`; override with `VISGATE_ENV_FILE=/path/to/file`.
293+
The runner parses `KEY=value` lines (skips empty and `#` comments) and sets `os.environ` before running. Default file is repo root `.env`; override with `VISGATE_ENV_FILE=/path/to/file`.
294294

295295
### Run all steps
296296

@@ -305,8 +305,8 @@ Each script writes stdout to `examples/sample_outputs/out_<script>.txt` and down
305305
**Low-cost run (no generation):** To verify the API without incurring cost, run only the non-generation steps: `00_smoke_sdk`, `01_live_api_smoke`, `00_auth_identity`, `01_models_catalog`, `05_usage_history_verify`, `06_provider_balances`, `09_provider_keys`, `10_api_keys`, `11_billing_readonly`. Generation steps (02, 03, 04, 07, 08, 12, 13) call image/video APIs and consume credits.
306306

307307
```bash
308-
# From project root (with .venv and sifreler): run cheap-only steps
309-
for s in 00_smoke_sdk 01_live_api_smoke 00_auth_identity 01_models_catalog 05_usage_history_verify 06_provider_balances 09_provider_keys 10_api_keys 11_billing_readonly; do .venv/bin/python examples/run_with_sifreler.py ${s}.py; done
308+
# From project root (with .venv and .env): run cheap-only steps
309+
for s in 00_smoke_sdk 01_live_api_smoke 00_auth_identity 01_models_catalog 05_usage_history_verify 06_provider_balances 09_provider_keys 10_api_keys 11_billing_readonly; do .venv/bin/python examples/run_with_env.py ${s}.py; done
310310
```
311311

312312
### Step-by-step examples

docs/API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ python examples/00_auth_identity.py
2020
python examples/run_all_capabilities.py
2121
```
2222

23-
**Run with a credentials file (e.g. `sifreler` in repo root):**
23+
**Run with a credentials file (e.g. `.env` in repo root):**
2424

2525
```bash
26-
python examples/run_with_sifreler.py
27-
python examples/run_with_sifreler.py 04_videos_all_providers.py # single example
26+
python examples/run_with_env.py
27+
python examples/run_with_env.py 04_videos_all_providers.py # single example
2828
```
2929

3030
**Low-cost run (no image/video generation):** `00_smoke_sdk`, `01_live_api_smoke`, `00_auth_identity`, `01_models_catalog`, `05_usage_history_verify`, `06_provider_balances`, `09_provider_keys`, `10_api_keys`, `11_billing_readonly`. See the [main README (Examples section)](../README.md#examples) for the full table and sample outputs.

examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Full examples guide, sample results gallery, step-by-step table, setup, and low-
88
# With API key in environment
99
VISGATE_API_KEY=vg-... python3 examples/run_all_capabilities.py
1010

11-
# With credentials file (e.g. sifreler in repo root)
12-
python examples/run_with_sifreler.py
13-
python examples/run_with_sifreler.py 04_videos_all_providers.py # single example
11+
# With credentials file (e.g. .env in repo root)
12+
python examples/run_with_env.py
13+
python examples/run_with_env.py 04_videos_all_providers.py # single example
1414
```
1515

16-
Override env file path with `VISGATE_ENV_FILE=/path/to/file`. Default file is repo root `sifreler`.
16+
Override env file path with `VISGATE_ENV_FILE=/path/to/file`. Default file is repo root `.env`.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
Run examples with environment variables loaded from sifreler (or VISGATE_ENV_FILE).
2+
Run examples with environment variables loaded from an env file (default: .env in project root, or VISGATE_ENV_FILE).
33
Usage:
4-
python examples/run_with_sifreler.py
5-
python examples/run_with_sifreler.py 04_videos_all_providers.py
4+
python examples/run_with_env.py
5+
python examples/run_with_env.py 04_videos_all_providers.py
66
"""
77
from __future__ import annotations
88

@@ -39,7 +39,7 @@ def main() -> None:
3939
if env_file:
4040
path = Path(env_file)
4141
else:
42-
path = Path(__file__).resolve().parent.parent / "sifreler"
42+
path = Path(__file__).resolve().parent.parent / ".env"
4343
_load_env_file(path)
4444

4545
base_dir = Path(__file__).resolve().parent

0 commit comments

Comments
 (0)