AZURE-COSMOS(1)

πŸ“¦
version 3.1.1 Β· 2 versions
, in debian bookworm, ubuntu noble

πŸ’– AZURE-COSMOS πŸ’–

okay bestie, sit down, hydrate, and let me tell you about azure-cosmos β€” this is the azure-cosmos 3.1.1 situation, and it's lowkey a whole universe of Python modules. this is the azure-cosmos manual page (section 1 of the manual, iykyk) and we're gonna go through every single thing in it together. no skimming. we're eating this whole plate. πŸ“βœ¨


🌸 SYSTEM REQUIREMENTS: 🌸

the supported Python versions are 2.7, 3.3, 3.4 and 3.5. that's the list, no cap. to download Python, please visit https://www.python.org/download/releases.

Python Tools for Visual Studio is required when using Microsoft Visual Studio to develop Python applications. to download Python Tools for Visual Studio, please visit http://microsoft.github.io/PTVS.

ngl if you're on Visual Studio, you need that PTVS thing. it's giving "prerequisite" energy. don't skip it. πŸ’…

✨ INSTALLATION: ✨

two methods, bestie. pick your fighter. πŸŽ€

Method 1: πŸ¦‹

  1. Download the Azure Cosmos Python SDK source from https://github.com/Azure/azure-cosmos-python which is needed to manage the Azure Cosmos database service.
  2. Execute the following setup script in bash shell:
$ python setup.py install

Method 2: πŸ’œ

  1. Install the Azure Cosmos Python SDK using pip. For more information on pip, please visit https://pypi.python.org/pypi/pip
  2. Execute the following in bash shell:
$ pip install azure-cosmos

🧚 TO RUN TESTS: 🧚

$ python -m unittest discover -s .\test -p "*.py"

if you use Microsoft Visual Studio, open the project file python.pyproj, and run all the tests in Test Explorer.

the way that Test Explorer just handles it for you?? main character energy fr fr. 😌

🌈 TO GENERATE DOCUMENTATIONS: 🌈

install Sphinx: http://sphinx-doc.org/install.html

$ cd doc
$ sphinx-apidoc -f -e -o api ..\azure
$ make.bat html

then you get the good stuff:

  • Index
  • Module Index
  • Search Page

πŸ‘‘ COSMOS πŸ‘‘

here's the whole map of the cosmos kingdom, every package, every subpackage, every module. don't scroll past, bestie, this is the whole itinerary. πŸ—ΊοΈ

  • cosmos package
    • Subpackages
    • cosmos.execution_context package
      • Submodules
        • cosmos.execution_context.aggregators module
        • cosmos.execution_context.base_execution_context module
        • cosmos.execution_context.document_producer module
        • cosmos.execution_context.endpoint_component module
        • cosmos.execution_context.execution_dispatcher module
        • cosmos.execution_context.multi_execution_aggregator module
        • cosmos.execution_context.query_execution_info module
      • Module contents
    • cosmos.routing package
      • Submodules
        • cosmos.routing.collection_routing_map module
        • cosmos.routing.routing_map_provider module
        • cosmos.routing.routing_range module
      • Module contents
    • Submodules
      • cosmos.auth module
      • cosmos.base module
      • cosmos.consistent_hash_ring module
      • cosmos.constants module
      • cosmos.cosmos_client module
      • cosmos.default_retry_policy module
      • cosmos.documents module
      • cosmos.endpoint_discovery_retry_policy module
      • cosmos.errors module
      • cosmos.global_endpoint_manager module
      • cosmos.hash_partition_resolver module
      • cosmos.http_constants module
      • cosmos.location_cache module
      • cosmos.murmur_hash module
      • cosmos.partition module
      • cosmos.query_iterable module
      • cosmos.range module
      • cosmos.range_partition_resolver module
      • cosmos.request_object module
      • cosmos.resource_throttle_retry_policy module
      • cosmos.retry_options module
      • cosmos.retry_utility module
      • cosmos.runtime_constants module
      • cosmos.session module
      • cosmos.session_retry_policy module
      • cosmos.synchronized_request module
      • cosmos.utils module
      • cosmos.vector_session_token module
    • Module contents

🫢 AUTHOR 🫢

unknown

not the author being a mystery?? it's giving elusive. we respect the privacy tho. πŸ™ˆ

2022, Microsoft


and that's the whole page, bestie!! πŸŽ€ no notes, we read every line, we left nothing behind. this was azure-cosmos version 3.1.1, dated Nov 01, 2022, manual section 1. slay, you're officially educated on the Azure Cosmos Python SDK πŸ’…βœ¨πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from