{"id":51128684,"url":"https://github.com/tale/bento-test","last_synced_at":"2026-06-25T10:30:30.588Z","repository":{"id":362523355,"uuid":"1259477415","full_name":"tale/bento-test","owner":"tale","description":"BentoML Test with private JFrog repositories","archived":false,"fork":false,"pushed_at":"2026-06-04T15:06:04.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T16:23:04.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/tale.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-04T14:47:39.000Z","updated_at":"2026-06-04T15:10:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tale/bento-test","commit_stats":null,"previous_names":["tale/bento-test"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tale/bento-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fbento-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fbento-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fbento-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fbento-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tale","download_url":"https://codeload.github.com/tale/bento-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fbento-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34771660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-25T10:30:29.766Z","updated_at":"2026-06-25T10:30:30.581Z","avatar_url":"https://github.com/tale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bento-test\n\nHello-world BentoML service that calls `spear_dsp` from our private JFrog PyPI\nindex. Exists to prove out private JFrog credentials with BentoML's Python-SDK\nruntime environment (no `bentofile.yaml`).\n\n## Setup\n\nTooling is pinned in `mise.toml` (Python 3.12 + uv). Create the venv and install:\n\n```bash\nmise install\nuv venv --python 3.12\nuv sync\n```\n\n`uv sync` pulls `spear-dsp` from JFrog. You need credentials stored locally:\n\n```bash\nuv auth login spearai.jfrog.io --username [your-spear-email] --password [jfrog-token]\n```\n\nThis writes `~/.local/share/uv/credentials/credentials.toml`. Generate the token\nfrom JFrog: profile (top right) \u003e \"Set Me Up\" \u003e \"PyPI\", pick `spear-ai-pypi` and\nthe `uv` client.\n\n## Run locally\n\n```bash\nuv run bentoml serve service:HelloSpearDsp --port 4400\ncurl -X POST http://localhost:4400/hello -H 'content-type: application/json' -d '{\"seconds\": 3}'\n```\n\nLocally `spear_dsp` is already in the venv, so the JFrog index in `service.py` is\nunused at serve time — the `JFROG_*` env vars are only consumed when the image\nbuilds.\n\n## Runtime environment\n\n`service.py` defines the image with the Python SDK. It only points pip at the\nprivate index; the package list comes from `pyproject.toml`'s\n`[project.dependencies]`, which BentoML reads at build time:\n\n```python\nimage = bentoml.images.Image(python_version=\"3.12\", lock_python_packages=False).python_packages(\n    \"--index-url https://pypi.org/simple\",\n    \"--extra-index-url https://${JFROG_USERNAME}:${JFROG_ACCESS_TOKEN}@spearai.jfrog.io/artifactory/api/pypi/spear-ai-pypi/simple\",\n)\n```\n\nAdd a dependency by editing `pyproject.toml` and re-running `uv sync` — never\ntouch `service.py`.\n\n## Deploy to BentoCloud\n\nCredentials resolve at build time from the `jfrog-build-credentials` secret. Log\nin once, then run the deploy script:\n\n```bash\nuv run bentoml cloud login\n./deploy.sh\n```\n\n`deploy.sh` renders `bento-deployment.yaml` (only the name is templated) and runs\n`bentoml deployment apply`, which is an upsert — it creates the deployment the\nfirst time and updates it in place on re-runs, so the script is idempotent.\nOverride the name with `DEPLOYMENT_NAME=other-name ./deploy.sh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftale%2Fbento-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftale%2Fbento-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftale%2Fbento-test/lists"}