
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
OzmaDB Python Client is a robust and easy-to-use client library for interacting with the OzmaDB API. It allows you to efficiently manage customizable metadata, execute queries, handle data persistence, and enforce security roles. Ideal for developers building on the ozma.io platform, this client simplifies integration with the powerful open-source OzmaDB engine.
id
and sub_entity
which are automatically managed.To install the OzmaDB Python Client, run:
pip install ozmadb-py
To authenticate with the OzmaDB API, you need to create an instance of OzmaAuth
:
from ozmadb.auth import OzmaAuth
auth = OzmaAuth(
client_id='your_client_id',
client_secret='your_client_secret',
login='your_login',
password='your_password'
)
To manage instances, use the OzmaInstancesAPI
:
from ozmadb.instances import OzmaInstancesAPI, NewInstance
instances_api = OzmaInstancesAPI(auth)
# Get instances
instances = await instances_api.get_instances()
# Create a new instance
new_instance = NewInstance(name='new_instance_name')
created_instance = await instances_api.create_instance(new_instance)
# Delete an instance
await instances_api.delete_instance('instance_name')
To perform database operations, use the OzmaDBAPI
:
from ozmadb.ozmadb import OzmaDBAPI
db_api = OzmaDBAPI(auth, name='your_instance_name')
# Get a named user view
result = await db_api.get_named_user_view('schema_name', 'view_name')
# Run a transaction
from ozmadb_py.types import OzmaDBInsertEntityOp, OzmaDBEntityRef
operations = [
OzmaDBInsertEntityOp(
entity=OzmaDBEntityRef(schema_name='your_schema', name='your_entity'),
fields={'field_name': 'value'}
)
]
transaction_result = await db_api.run_transaction(operations)
# Run an action
action_result = await db_api.run_action('schema_name', 'action_name')
from ozmadb.ozmadb import OzmaDBAPI
db_api = OzmaDBAPI(auth, name='your_instance_name')
# Save schemas
saved_schemas = await db_api.save_schemas(schemas=['schema1', 'schema2'])
# Restore schemas
await db_api.restore_schemas(saved_schemas, drop_others=True)
This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.
For more information, visit OzmaDB repository.
If you have any questions or need support, feel free to reach out to our community or contact us via our Discord.
FAQs
Python client library for interacting with the OzmaDB API
We found that ozmadb-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.