{"id":16163321,"url":"https://github.com/gregorwolf/cap-python","last_synced_at":"2026-03-18T18:11:53.572Z","repository":{"id":248281604,"uuid":"828266881","full_name":"gregorwolf/cap-python","owner":"gregorwolf","description":"CAP Application combined with Python","archived":false,"fork":false,"pushed_at":"2024-09-10T15:46:23.000Z","size":141,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T04:47:52.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smarty","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregorwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-13T16:01:59.000Z","updated_at":"2024-09-10T15:51:23.000Z","dependencies_parsed_at":"2024-07-17T13:13:10.451Z","dependency_job_id":"de6b8beb-3a4f-4090-8868-9dbd22040fd2","html_url":"https://github.com/gregorwolf/cap-python","commit_stats":null,"previous_names":["gregorwolf/cap-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregorwolf/cap-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fcap-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fcap-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fcap-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fcap-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregorwolf","download_url":"https://codeload.github.com/gregorwolf/cap-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fcap-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28610607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T02:35:16.555Z","updated_at":"2026-01-20T19:31:56.174Z","avatar_url":"https://github.com/gregorwolf.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CAP Application combined with Python\n\nThis is a sample project combining a CAP application with a Python application. It's target runtime is the SAP Business Technology Platform (BTP) Kyma environment.\n\nIt contains these folders and files, following our recommended project layout:\n\n| File or Folder | Purpose                              |\n| -------------- | ------------------------------------ |\n| `app/`         | content for UI frontends goes here   |\n| `chart/`       | HELM Charts                          |\n| `db/`          | your domain models and data go here  |\n| `srv/`         | your service models and code go here |\n| `srv-python/`  | The Python application go here       |\n| `package.json` | project metadata and configuration   |\n| `readme.md`    | this getting started guide           |\n\n## Preconditions\n\n- BTP Subaccount with Kyma Runtime\n- BTP Subaccount with Cloud Foundry Space\n- HANA Cloud instance available for your Cloud Foundry space\n- BTP Entitlements for: _HANA HDI Services \u0026 Container_ plan _hdi-shared_\n- Container Registry\n- Command Line Tools: `kubectl`, `kubectl-oidc_login`, `pack`, `docker`, `helm`, `cf`\n- Logged into Kyma Runtime (with `kubectl` CLI), Cloud Foundry space (with `cf` CLI) and Container Registry (with `docker login`)\n- `@sap/cds-dk` \u003e= 6.6.0\n\n## Local Development\n\nTo run the application locally, you need to start the CAP application and the Python application. To work directly with the HANA Cloud instance you need to connect to the Cloud Foundry Environment:\n\n```bash\ncf login --sso\n```\n\nthen you can deploy with:\n\n```bash\ncds deploy --to hana\ncf create-service xsuaa application cap-python-uaa -c xs-security.json\ncds bind -2 cap-python-uaa\n```\n\nTo run the CAP application you need to start the CAP application with:\n\n```bash\ncds watch --profile hybrid --auto-undeploy\n```\n\nTo run the Python application you need to start the Python application with:\n\n```bash\nnpm run start:python\n```\n\n## Prepare Kubernetes Namespace\n\n1. Export the kubeconfig.yaml\n\n   ```\n   export KUBECONFIG=~/.kube/cap-kyma-app-config\n   ```\n\n2. Create and set the namespace\n\n   ```\n   kubectl create namespace cap-python\n   kubectl config set-context --current --namespace=cap-python\n   ```\n\n## Debug deployment\n\n```bash\nkubectl get pods\nkubectl logs \u003cpod-name\u003e\nkubectl describe pod \u003cpod-name\u003e\n```\n\n## Cleanup services for local testing\n\n```bash\ncf delete-service-key cap-python-uaa cap-python-uaa-key\ncf delete-service cap-python-uaa\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Fcap-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregorwolf%2Fcap-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Fcap-python/lists"}