{"id":18969060,"url":"https://github.com/ranman/babylex","last_synced_at":"2025-07-09T22:39:31.987Z","repository":{"id":57413627,"uuid":"80095444","full_name":"ranman/babylex","owner":"ranman","description":"python lex client","archived":false,"fork":false,"pushed_at":"2017-02-01T17:50:27.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-20T04:47:47.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ranman.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}},"created_at":"2017-01-26T07:51:59.000Z","updated_at":"2021-04-10T05:03:19.000Z","dependencies_parsed_at":"2022-09-26T17:11:23.798Z","dependency_job_id":null,"html_url":"https://github.com/ranman/babylex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ranman/babylex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fbabylex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fbabylex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fbabylex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fbabylex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranman","download_url":"https://codeload.github.com/ranman/babylex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fbabylex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259964327,"owners_count":22938724,"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-11-08T14:51:39.680Z","updated_at":"2025-06-15T11:06:19.995Z","avatar_url":"https://github.com/ranman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BabyLex is a quick python wrapper for lex\n\n# The lex service is in preview and this library may not be maintained or change as lex changes\n\n----------------------------\n\n# Quick Start\n```python\nfrom babylex import LexSession\nlex_session = LexSession(\"WhereIsRandall\", \"$LATEST\", \"ranman\")\nresp = lex_session.text(\"where is randall\")\nprint resp\n```\n\nreturns:\n`{u'slotToElicit': None,\n  u'dialogState': u'Fulfilled',\n  u'intentName': u'WhereRandall',\n  u'responseCard': None, \n  u'message': u'Randall is in claremont, ca', \n  u'slots': {},\n  u'sessionAttributes': {}}`\n\nYou can work with audio as well:\n\n```python\nfrom babylex import LexSession\nimport pyaudio\np = pyaudio.PyAudio()\nlex_session = LexSession(\"WhereIsRandall\", \"$LATEST\", \"ranman\")\nresp = lex_session.content(\"Where is Randall\", \"text/plain; charset=utf-8\", \"audio/pcm\")\nstream = p.open(format=p.get_format_from_width(width=2), channels=1, rate=16000, output=True)\nstream.write(resp.content)\nstream.stop_stream()\nstream.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franman%2Fbabylex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franman%2Fbabylex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franman%2Fbabylex/lists"}