Giter Site home page Giter Site logo

import config? about azure-cosmos-python HOT 4 CLOSED

azure avatar azure commented on July 18, 2024
import config?

from azure-cosmos-python.

Comments (4)

whSwitching avatar whSwitching commented on July 18, 2024 1

got a same problem. you can just remove "import config as cfg" and replace
HOST = cfg.settings['host']
MASTER_KEY = cfg.settings['master_key']
DATABASE_ID = cfg.settings['database_id']

with

HOST = "https://localhost:8081"
MASTER_KEY = "your key string"
DATABASE_ID = "your db id"

from azure-cosmos-python.

Blutude avatar Blutude commented on July 18, 2024

I am asking for /samples/DatabaseManagement/Program.py
I am trying to open my cosmosDB database on python.
Thanks,
Rony

from azure-cosmos-python.

HussainMir avatar HussainMir commented on July 18, 2024

We're maintaining these constants in a shared file "config.py" which is shared by all projects in the samples solution. Yes, alternatively you can define them in the same file i.e. program.py

from azure-cosmos-python.

southpolesteve avatar southpolesteve commented on July 18, 2024

Closing this issue due to age. Active development of our Python SDK has moved to https://github.com/Azure/azure-sdk-for-python. We have also released 4.0 which includes many updates and new features. If this issue still needs our attention, please reopen it in the new repository.

from azure-cosmos-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.