Basic wrapper around the https://registry.o2a-data.de/api/ powered by pydantic.
Project description
O2A Registry API Wrapper
Basic wrapper around the registry API powered by pydantic.
Note: Currently, rate limited to 100 requests/sec
Example Usage
from o2a_registry.api import ProductionAPI # registry.o2a-data.de
from o2a_registry.api import SandboxAPI # registry.sandbox.o2a-data.de
event_types = await ProductionAPI.get_vocables(where="vocableGroup.id==8")
await ProductionAPI.close()
Custom endpoint:
from o2a_registry.api import RegistryApi
api = RegistryApi("example.com", ssl=True)
Further examples can be found in examples
Install
Currently, only available from the gitlab repository:
pip install o2a.registry.python.lib
Setting up the project locally
This project uses the package manager uv
git clone git@gitlab.awi.de:o2a/registry/o2a.registry.python.lib.git
cd o2a.registry.python.lib
uv sync
This creates a virtual environment in o2a.registry.python.lib/.venv/.
The code formatter Ruff is used to ensure proper
code formatting. Use uv tool install ruff to install and uvx ruff format .
to run.
Before pushing changes, please ensure that your code works and is well formated. You can do this with:
uvx ruff check --fix
uvx ruff format
uv run mypy o2a_registry
uv run pytest ./tests/unit
Generate documentation
Install the necessary dependencies with
uv sync --group doc
Build documentation with
uv run sphinx-build -M html docs/source/ docs/build/
Open docs/build/html/index.html to see the result.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file o2a_registry_python_lib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: o2a_registry_python_lib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
161ac178eb225976cb03ff85f88b05a3831972d44df23fa788cdad40746155b4
|
|
| MD5 |
723de222364c589706fd1c9ef57790e4
|
|
| BLAKE2b-256 |
91377edbe4b7d6a344b1e18aae467ea9a2c176b1f9f5a75fa80a2d9e3c24ac29
|