{"id":13792732,"url":"https://github.com/tarantool/tarantool-c","last_synced_at":"2025-04-14T15:10:52.619Z","repository":{"id":10770612,"uuid":"13035318","full_name":"tarantool/tarantool-c","owner":"tarantool","description":"A new C client for Tarantool 1.6+ ","archived":false,"fork":false,"pushed_at":"2025-03-12T09:36:44.000Z","size":7952,"stargazers_count":28,"open_issues_count":47,"forks_count":19,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-03-28T04:03:18.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://tarantool.org/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarantool.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-23T12:36:40.000Z","updated_at":"2025-03-12T09:36:48.000Z","dependencies_parsed_at":"2024-01-18T14:16:21.897Z","dependency_job_id":"9821eda8-6dae-4b7f-b873-98e26ed74efa","html_url":"https://github.com/tarantool/tarantool-c","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Ftarantool-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Ftarantool-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Ftarantool-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Ftarantool-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarantool","download_url":"https://codeload.github.com/tarantool/tarantool-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904640,"owners_count":21180835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T22:01:15.428Z","updated_at":"2025-04-14T15:10:52.597Z","avatar_url":"https://github.com/tarantool.png","language":"C","funding_links":[],"categories":["Connectors"],"sub_categories":["Administration"],"readme":"-------------------------------------------------------------------------------\n                            Tarantool C client libraries\n-------------------------------------------------------------------------------\n\n.. image:: https://github.com/tarantool/tarantool-c/actions/workflows/fast_testing.yml/badge.svg\n    :target: https://github.com/tarantool/tarantool-c/actions/workflows/fast_testing.yml?query=branch%3Amaster\n    :alt: Linux testing\n\n.. image:: https://github.com/tarantool/tarantool-c/actions/workflows/osx_testing.yml/badge.svg\n    :target: https://github.com/tarantool/tarantool-c/actions/workflows/osx_testing.yml?query=branch%3Amaster\n    :alt: OS X testing\n\n.. image:: https://github.com/tarantool/tarantool-c/actions/workflows/packaging.yml/badge.svg\n    :target: https://github.com/tarantool/tarantool-c/actions/workflows/packaging.yml?query=branch%3Amaster\n    :alt: Packaging\n\n===========================================================\n                        About\n===========================================================\n\n**Tarantool-c** is a client library written in C for Tarantool.\nThe current version is 1.0\n\nTarantool-c depends on `msgpuck \u003chttps://github.com/tarantool/msgpuck\u003e`_.\n\nFor documentation, please, visit `github pages \u003chttps://tarantool.github.io/tarantool-c\u003e`_.\n\nIt consinsts of:\n\n* tnt - tarantool IProto/networking library\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n       Compilation/Installation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis project using CMake for generating Makefiles:\n\n.. code-block:: console\n\n    $ cmake .\n    $ make\n    #### For testing against installed tarantool\n    $ make test\n    #### For building documentation using Doxygen\n    $ make doc\n    #### For installing into system (headers+libraries)\n    $ make install\n\nOr you can install it using yum/apt into your favorite linux distribution\nfrom `tarantool`'s repository\n\n===========================================================\n                        Examples\n===========================================================\n\nStart tarantool at port 3301 using this command:\n\n.. code-block:: lua\n\n    box.cfg{ listen = '3301' }\n\nAfter you've installed tarantool-c build and execute this code:\n\n.. code-block:: c\n\n    #include \u003cstdlib.h\u003e\n    #include \u003cstdio.h\u003e\n\n    #include \u003ctarantool/tarantool.h\u003e\n    #include \u003ctarantool/tnt_net.h\u003e\n    #include \u003ctarantool/tnt_opt.h\u003e\n\n    int main() {\n        const char * uri = \"localhost:3301\";\n        struct tnt_stream * tnt = tnt_net(NULL); // Allocating stream\n        tnt_set(tnt, TNT_OPT_URI, uri); // Setting URI\n        tnt_set(tnt, TNT_OPT_SEND_BUF, 0); // Disable buffering for send\n        tnt_set(tnt, TNT_OPT_RECV_BUF, 0); // Disable buffering for recv\n        tnt_connect(tnt); // Initialize stream and connect to Tarantool\n        tnt_ping(tnt); // Send ping request\n        struct tnt_reply * reply = tnt_reply_init(NULL); // Initialize reply\n        tnt-\u003eread_reply(tnt, reply); // Read reply from server\n        tnt_reply_free(reply); // Free reply\n        tnt_close(tnt); tnt_stream_free(tnt); // Close connection and free stream object\n    }\n\nFor more examples, please, visit ``test/cli/tarantool_tcp.c`` or ``test/tarantool_unix.c`` files.\n\nFor RPM/DEB packages - use instructions from http://tarantool.org/download.html to add repositories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Ftarantool-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarantool%2Ftarantool-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Ftarantool-c/lists"}