Skip to content

Azure cosmos db py vs Azure cosmos py

Azure cosmos db py is an open-source agent skill for cloud and infrastructure. Azure cosmos py is an open-source agent skill for cloud and infrastructure.

  • Azure cosmos db py is best for add a cosmos db persistence layer to a fastapi application.
  • Azure cosmos py is best for write a python function that saves and retrieves documents in a cosmos db container.
What it is
Azure cosmos db py is an open-source agent skill for cloud and infrastructure.
Azure cosmos py is an open-source agent skill for cloud and infrastructure.
Best for
Add a Cosmos DB persistence layer to a FastAPI application
Write a Python function that saves and retrieves documents in a Cosmos DB container
Kind
Skill
Skill
Pricing
Open source
Open source
Platforms
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
GitHub stars
3.2K
3.2K
Last commit
Nov 2026
Nov 2026
License
MIT
MIT
Open source
Good for
Add a Cosmos DB persistence layer to a FastAPI application; Set up a Cosmos client that uses managed identity in production and the emulator locally; Design a partition key strategy for a multi-tenant document store
Write a Python function that saves and retrieves documents in a Cosmos DB container; Design a partition key for an orders container with even data distribution; Query Cosmos DB items with parameters scoped to a single partition

What Azure cosmos db py does

  • Dual authentication setup

    Shows how to create a Cosmos client that uses Entra ID credentials in Azure and an emulator key for local development.

  • Pydantic model hierarchy

    Describes a five-tier model structure separating create, update, API response and stored document shapes.

  • Service layer patterns

    Provides a service class template with CRUD methods, document conversion helpers and fallback behavior when Cosmos is unavailable.

  • Partition key guidance

    Covers choosing partition keys, avoiding cross-partition queries and moving items between partitions.

  • Test-first workflow

    Supplies pytest fixtures and examples that mock the Cosmos container for unit tests written before implementation.

  • Error handling reference

    Explains handling resource-not-found errors, logging and mapping database errors to HTTP responses.

What Azure cosmos py does

  • Client and auth setup

    Shows how to create sync and async Cosmos clients using DefaultAzureCredential and context managers.

  • Item CRUD operations

    Covers creating, reading, replacing, upserting and deleting documents with partition keys.

  • Query patterns

    Explains parameterized, partition-scoped, projected and cross-partition SQL queries.

  • Partition key design

    Describes single and hierarchical partition keys and guidance on even data distribution.

  • Throughput management

    Shows setting provisioned RU/s on containers and reading or updating throughput.

  • Error handling

    Demonstrates catching HTTP errors and handling not-found and rate-limit responses.

Azure cosmos db py vs Azure cosmos py: questions

Is Azure cosmos db py or Azure cosmos py cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between Azure cosmos db py and Azure cosmos py?

Azure cosmos db py is an open-source agent skill for cloud and infrastructure. Azure cosmos py is an open-source agent skill for cloud and infrastructure.

Keep comparing