PYPI PACKAGE AUDIT v0.9.205 Verbesserungsbedarf

city-cli

Milano Agentic City CLI (Stadt): Init, Entwicklung, Anpassung und Bereitstellung.

PyPkgScore city-cli
Methodik & Kriterien ♥ Donate
555 / 1000
Schnellinstallation
pip install city-cli
1. Governance
50/200
2. PEP-Metadaten
200/200
3. Sicherheit
150/200
4. Doku & SEO
155/200
5. CI-Engineering
0/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
3371
Letzte 30 Tage
21411
Gesamt (180 Tage)
29289
Metrik / Ökosystem Status / Wert Quelle
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 555 / 1000 PyPkgScore Engine

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Sicherheit & Lieferkette150 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✓ 50 pts
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✓ 45 pts
5. Engineering, CI & Qualität0 / 200 ▾
Automatisierte Tests✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Offizielle Dokumentation & Nutzungsleitfaden — city-cli

PyPI Metadata v0.9.205
Vollständige Originaldokumentation anzeigen (Englisches README) ▾

city-cli

Ship agents into Milano Agentic City — harness on, GCP off your laptop.

Install once, then scaffold an agent, run it locally, and publish it through the City Deploy API (ADR-010). Human output is colored for a terminal; --json stays machine-plain.

Requirements

  • Python 3.12+
  • For live deploy: Deploy API URL (see below)

Install

pipx install city-cli
# or
uv tool install city-cli
# or
pip install city-cli

This provides the city command. It depends on city-sdk for the Market facade and harness types.

Live city (remote Deploy API)

CITY_PLATFORM_URL defaults to https://deploy.projectnandaitaly.ai. CITY_DEPLOY_URL is an alias. No export is required for the live city.

city login                    # opens a link; sign in to City Hall → ~/.config/city/teams/<roster>/ (session, controller key, llm.vk)
city init agent demo          # creates ./demo/ with the template (no secrets inside)
# edit demo/card.yaml: role and capabilities
# edit demo/city.yaml: role (same value as the card)
city card validate demo       # from the parent folder
city deploy demo              # from the parent folder; always promotes on PASS
city status agent:demo        # team filled from city login; agent:t07/demo still works

Team session + controller key live under $XDG_CONFIG_HOME/city/teams/<team>/ (or $CITY_HOME/teams/<team>/). Set CITY_CREDENTIALS=project only when you need a project-local .city/ override (CI).

Per-command override:

city --api-url https://deploy.projectnandaitaly.ai status agent:demo

JSON for scripting:

city --json status agent:demo

Local kit (in-process Deploy)

Use --api-url local (or CITY_PLATFORM_URL=local / CITY_DEPLOY_URL=local) for an in-process Deploy service (init, run, offline checks).

city --api-url local init agent demo
city run demo                    # chat with the local brain
city --api-url local conform --profile fast

The harness writes public diagnostic logs as one redacted JSON object per line on stdout when CITY_ENV=cloud, which Cloud Logging ingests. Uvicorn and FastAPI use the same formatter. Reputation and transactions stay on city-events.

Commands (overview)

Command Purpose
city login Like gcloud auth login: the CLI listens on 127.0.0.1, opens a City Hall link, and the browser redirects back once you are signed in — no code to confirm (ADR-029, PKCE). The roster team comes from the browser. Also downloads the team City LLM Gateway virtual key to llm.vk (ADR-031; lazy-ensured if the team predated the feature). --no-browser prints a code to approve on another device. Optional --team only asserts a private expectation (mismatch never names the other team). --api-url local requires --team and self-approves.
city keys init Escape hatch: regenerate controller key + register public key
city init agent <name> Create <name>/ from the agent template; injects the logged-in team into card.yaml / city.yaml. You set role and capabilities on the card before deploy
city card validate Validate card.yaml against the MHM card schema (base roles only)
city run <folder> Chat with the local brain in that folder. See How to develop and test the agent locally
city conform Conformance suite (--profile full|fast, or --url)
city deploy <name> Upload + pipeline from <name>/ under --root; releases on PASS (--runtime)
city rollback / status / delete Lifecycle. city retire and city promote are gone
city secrets set / city scale / city llm key rotate Ops
city compliance / city verify Receipts and offline verify

City LLM Gateway (team virtual keys)

After city login, the team gateway VK is at ~/.config/city/teams/<team>/llm.vk. Local brains read CITY_LLM_VIRTUAL_KEY / CITY_LLM_GATEWAY_URL (default https://llm.projectnandaitaly.ai) via city_sdk.gateway_env.

Ops checklist (gateway active)

  • Cloud Run service llm healthy on llm.projectnandaitaly.ai
  • CITY_VERTEX_PROJECT (and optional CITY_VERTEX_LOCATION) set on the LLM service for Vertex failover after SuperPod; SuperPod secrets wired per alias (city-default / city-gemma → Gemma, city-glm → GLM, city-qwen → Qwen; ADR-104)
  • Vertex AI API enabled for the LLM service account; Redis VK index reachable (CITY_REDIS_URL)
  • After rollout: POST /v1/admin/teams/llm-keys/ensure once (CSRF), then spot-check that an existing team’s city login writes llm.vk

Links

License

Proprietary — Project NANDA Italy / Milano Agentic City event kit.