{"id":21151627,"url":"https://github.com/alina1412/learning_tarantool","last_synced_at":"2026-05-09T13:33:32.151Z","repository":{"id":227297443,"uuid":"770998641","full_name":"alina1412/learning_tarantool","owner":"alina1412","description":"study project about connecting to tarantool database","archived":false,"fork":false,"pushed_at":"2024-03-22T08:04:53.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T08:11:56.158Z","etag":null,"topics":["asynctnt","docker-compose","python","tarantool"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alina1412.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-12T14:09:37.000Z","updated_at":"2024-03-19T11:01:28.000Z","dependencies_parsed_at":"2024-03-22T09:26:27.664Z","dependency_job_id":"2969fd16-47f4-4dc1-82bc-62ec481b5836","html_url":"https://github.com/alina1412/learning_tarantool","commit_stats":null,"previous_names":["alina1412/learning_tarantool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alina1412%2Flearning_tarantool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alina1412%2Flearning_tarantool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alina1412%2Flearning_tarantool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alina1412%2Flearning_tarantool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alina1412","download_url":"https://codeload.github.com/alina1412/learning_tarantool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243591610,"owners_count":20315880,"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":["asynctnt","docker-compose","python","tarantool"],"created_at":"2024-11-20T10:17:53.783Z","updated_at":"2026-05-09T13:33:27.111Z","avatar_url":"https://github.com/alina1412.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning examples for connecting to tarantool db\n(in docker)\n\nused docker image: tarantool/tarantool:3\n\nbecause it has type = 'uuid'\n\n**reasons for the study project:**\n\n--learn to connect to tarantool\n\n--create two containers of docker, which works as multi-master replication for database\n\n--create examples of sql-like queries to insert, select from tarantool by python\n\n\n## **Installation**\n\n--sudo docker-compose up (for tarantool in docker with auth)\n\n(the line in docker-compose: `command: tarantool /usr/local/share/tarantool/app.init.lua` - isn't necessary. it creates some preparations for the example space. but in can be done manually)\n\n--in app.init.lua theres a try to create trigger. can't say if it works.\n\n\n--sudo docker exec -it my_container_name console (for creating spaces as preparation for connection in console, container_name in docker-compose)\n\n\n--create virtual environment\n\n--pip3 install tarantool (it is client, tarantool==1.1.2)(or pip install -r requirenments.txt)\n\n--pip install asynctnt (asynctnt==2.1.0)\n\n\n--run examples after preparations in console\n(some examples in Jupyter Notebook and separately app_example.py)\n\n\n## preparations in tarantool console in docker\n\n`sudo docker exec -it my_container_name console`     # (replace with your container_name)\n\n```\nbox.cfg {\n        memtx_memory = 1 * 1000 * 1024 * 1024,\n        listen = 3301,\n        checkpoint_count  = 3,\n        checkpoint_interval = 3600,\n        read_only  = false \n}\n```\n```\nbox.schema.space.create('APP')\n\nbox.space.APP:format({\n    { name = 'ID', type = 'uuid' },\n    { name = 'BAND_NAME', type = 'string' },\n    { name = 'YEAR', type = 'unsigned' }\n})\n\nbox.space.APP:create_index(\"primary\", {parts={{field = 1, type = 'uuid'}}})\n\nbox.space.APP:create_index('name', { unique = false, parts = { 'BAND_NAME' } })\nbox.space.APP:create_index('time', { unique = false, parts = { 'YEAR' } })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falina1412%2Flearning_tarantool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falina1412%2Flearning_tarantool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falina1412%2Flearning_tarantool/lists"}