Ir para o conteúdo

Rendered notebook

Generated from 01_setup.ipynb. Run it yourself with make docs-up — see Run locally.

01 — Setup and module check

This notebook verifies that every Apogee module is importable from the kernel.

To run it, start the documentation platform locally with make docs-up from the repository root, then open http://localhost:8080/jupyter/ and sign in with demo / apogee. JupyterHub is deliberately not part of the published site.

Modules are mounted read-only at /srv/apogee/modules/ and added to PYTHONPATH by JupyterHub's spawner config.

01_setup.ipynb · cell 1
import sys, os
print('Python:', sys.version.split()[0])
print('CWD:', os.getcwd())
print('PYTHONPATH entries:')
for p in sys.path:
    if '/apogee/' in p or '/modules/' in p:
        print('  •', p)
01_setup.ipynb · cell 2
def try_import(name):
    try:
        mod = __import__(name)
        return f'✅ {name} (version: {getattr(mod, "__version__", "unknown")})'
    except ImportError as e:
        return f'⚠️  {name}{e}'

for m in ['apogee_core', 'apogee_ai_rag', 'apogee_ai_providers', 'apogee_ai', 'apogee_auth']:
    print(try_import(m))

Project source

The full bank source is mounted read-only at /srv/apogee/app-tests-docs/globaltrust-bank/. Open a terminal in JupyterLab and explore:

Bash
ls /srv/apogee/app-tests-docs/globaltrust-bank/src/domain/business/banking/

You should see five contexts: customers, accounts, transactions, fx, compliance.