Skip to content

Commit

Permalink
Merge pull request #61 from datastax/feature/#60-version-bump
Browse files Browse the repository at this point in the history
Bump version and add some notes to example script
  • Loading branch information
clun committed Oct 28, 2023
2 parents 23fc15a + d9e6ae9 commit 9aec100
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion astrapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "0.5.0"
__version__ = "0.5.1"
5 changes: 3 additions & 2 deletions scripts/astrapy_latest_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# First, we work with devops
token = os.getenv("ASTRA_DB_APPLICATION_TOKEN")
astra_ops = AstraDBOps(token)
astra_ops = AstraDBOps(token=token)

# Define a database to create
database_definition = {
Expand All @@ -31,6 +31,7 @@
create_result = astra_ops.create_database(database_definition=database_definition)

# Grab the new information from the database
# NOTE: Your database will take some time to initialize!
database_id = create_result["id"]
database_region = astra_ops.get_database()[0]["info"]["region"]
database_base_url = "apps.astra.datastax.com"
Expand Down Expand Up @@ -64,5 +65,5 @@
}
)

astra_db_collection.find_one({"name": "potato"})
astra_db_collection.find_one({"name": "potato"}) # Not found
astra_db_collection.find_one({"name": "Coded Cleats Copy"})

0 comments on commit 9aec100

Please sign in to comment.