Citeck Community Edition client for python
Project description
Python-клиент для Citeck Community Edition
Клиент находится в разработке!
Особенности
Клиент полностью асинхронный. Требуется Python 3.14 или выше. Основан на httpx.
Установка
$ pip install pyciteck
Использование
from pprint import pprint
from PyCiteck import CiteckClient
async def main():
print("Hello from pyciteck!")
# Client init / Создание клиента
ecm_client = CiteckClient(
keycloak_client_id=settings.ECM_CLIENT_ID,
keycloak_secret=settings.ECM_CLIENT_SECRET,
citeck_base_url=settings.ECM_BASE_URL,
)
# Quety example / Пример запроса
record = await ecm_client.query(
query={
"records": ["emodel/person@1234"],
"attributes": ["?json"],
"version": 1,
}
)
pprint(record)
# Mutate example / Пример запроса на изменение или добавление данных
users_data = [
{
"id": f"emodel/person@1234",
"attributes": {
"phone?num": 123456
},
}
]
await ecm_client.mutate(users_data)
if __name__ == "__main__":
from asyncio import run
run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyciteck-0.1.6.tar.gz
(4.5 kB
view details)
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 pyciteck-0.1.6.tar.gz.
File metadata
- Download URL: pyciteck-0.1.6.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adceab25f0989780372da792b6aad3ceba55dd3ebcf3d333886d87d72724cc01
|
|
| MD5 |
2be027ee5c27109cc248c6a9df3ddde5
|
|
| BLAKE2b-256 |
7c0a30fb52b283ab0b1300e8faf44539496c8fa98aebe8b893e1d40a26b53d3b
|
File details
Details for the file pyciteck-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pyciteck-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2f6ada5aadf279afb881990c60f6a0071d966685138acbf2f706b0d11befc5
|
|
| MD5 |
17864d9f40cd10b3f04de304c403ed43
|
|
| BLAKE2b-256 |
6da8f9bef85f481032d5371c26d0657e50c62f2ca474b8366671c22a17f65812
|