Skip to main content

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.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyciteck-0.1.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pyciteck-0.1.5.tar.gz.

File metadata

  • Download URL: pyciteck-0.1.5.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

Hashes for pyciteck-0.1.5.tar.gz
Algorithm Hash digest
SHA256 60ad40defe69d2bb50dac5991e911626c1b18dea2aeb47ebfcf31853dd3294c4
MD5 d3ff9df88798669891aba3fcbd0e82d5
BLAKE2b-256 b3598503104d81b122683980d98b7a97237fb99e6973c76ab205fba11b1dd731

See more details on using hashes here.

File details

Details for the file pyciteck-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyciteck-0.1.5-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

Hashes for pyciteck-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d076b4541f72f2977d21ab4a430a8c9f9f74e88924f64e99b8048dd6d4cc7c66
MD5 07b8af2f392e4ccf104e01c39e65fa71
BLAKE2b-256 2e57b6c767e60a741ebc4697226734e10750638018839307768a01e921280a08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page