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.2.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.2.tar.gz.
File metadata
- Download URL: pyciteck-0.1.2.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 |
e08fcfaa1098cc6922355dedd2cce56f3ca5f29639e5c5d0785cdd2cb34827c8
|
|
| MD5 |
c61c0c5f05b56da25c25f476571e3d19
|
|
| BLAKE2b-256 |
1b4821803be9e9c5a3bb97d30382be06f63a4462f61f9e02c920989dfa1207ae
|
File details
Details for the file pyciteck-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyciteck-0.1.2-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 |
1a12048c54f77da737a3dec60422847da160410da315c4492c57e89927b8bcd9
|
|
| MD5 |
fb1957e1b748113ec5b4e82571c0a6db
|
|
| BLAKE2b-256 |
5c36da77182dd16909b80573d29c479d884e35104df3a6ca7810aa698b83dfc1
|