{"id":17204660,"url":"https://github.com/catwell/haricot","last_synced_at":"2025-06-14T21:39:02.306Z","repository":{"id":139573442,"uuid":"5953497","full_name":"catwell/haricot","owner":"catwell","description":"Beanstalk client for Lua","archived":false,"fork":false,"pushed_at":"2023-07-24T08:25:31.000Z","size":44,"stargazers_count":28,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T16:38:16.447Z","etag":null,"topics":["beanstalkd","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catwell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-09-25T17:12:30.000Z","updated_at":"2023-08-23T12:55:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"91514419-2055-451b-bd94-320214770a98","html_url":"https://github.com/catwell/haricot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/catwell/haricot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catwell%2Fharicot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catwell%2Fharicot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catwell%2Fharicot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catwell%2Fharicot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catwell","download_url":"https://codeload.github.com/catwell/haricot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catwell%2Fharicot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259888186,"owners_count":22927071,"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":["beanstalkd","lua"],"created_at":"2024-10-15T02:22:45.117Z","updated_at":"2025-06-14T21:39:02.297Z","avatar_url":"https://github.com/catwell.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haricot\n\n![CI Status](https://github.com/catwell/haricot/actions/workflows/ci.yml/badge.svg?branch=master)\n\n## Presentation\n\nHaricot is a [Beanstalk](https://beanstalkd.github.io/) client for Lua.\n\n## Note about YAML\n\nHaricot does not decode the YAML data returned by the following methods:\n\n- stats-job\n- stats-tube\n- stats\n- list-tubes\n- list-tubes-watched\n\nIt returns raw YAML. Use your own decoding library if needed.\n\n## Dependencies\n\nHaricot only depends on LuaSocket or lsocket.\n\nTests require [cwtest](https://github.com/catwell/cwtest), a YAML parser such as\n[tinyyaml](https://luarocks.org/modules/membphis/lua-tinyyaml), [lyaml](https://github.com/gvvaughan/lyaml) or [the one from lubyk](https://github.com/lubyk/yaml/), both LuaSocket and lsocket and a running beanstalkd instance.\n\n## Usage\n\n### Creating a job\n\n```lua\nlocal haricot = require \"haricot\"\nlocal bs = haricot.new(\"localhost\", 11300)\nbs:put(2048, 0, 60, \"hello\")\n```\n\n### Consuming a job\n\n```lua\nlocal haricot = require \"haricot\"\nlocal bs = haricot.new(\"localhost\", 11300)\nlocal ok, job = bs:reserve(); assert(ok, job)\nlocal id, data = job.id, job.data\nprint(data) -- \"hello\"\nbs:delete(id)\n```\n\n### More\n\nSee haricot.test.lua.\n\n## Copyright\n\n- Copyright (c) 2012-2013 Moodstocks SAS\n- Copyright (c) 2014-2022 Pierre Chapuis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatwell%2Fharicot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatwell%2Fharicot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatwell%2Fharicot/lists"}