{"id":37066474,"url":"https://github.com/chemsseddine/botv","last_synced_at":"2026-01-14T07:48:16.164Z","repository":{"id":100407118,"uuid":"160849367","full_name":"chemsseddine/botv","owner":"chemsseddine","description":"Python library for constructing dict for botv.io","archived":false,"fork":false,"pushed_at":"2019-02-04T11:15:18.000Z","size":33,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-04T01:53:28.529Z","etag":null,"topics":["facebook","flask"],"latest_commit_sha":null,"homepage":"","language":"Python","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/chemsseddine.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-12-07T16:34:57.000Z","updated_at":"2023-03-07T08:14:50.000Z","dependencies_parsed_at":"2023-05-14T11:15:22.625Z","dependency_job_id":null,"html_url":"https://github.com/chemsseddine/botv","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chemsseddine/botv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemsseddine%2Fbotv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemsseddine%2Fbotv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemsseddine%2Fbotv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemsseddine%2Fbotv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chemsseddine","download_url":"https://codeload.github.com/chemsseddine/botv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemsseddine%2Fbotv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["facebook","flask"],"created_at":"2026-01-14T07:48:15.420Z","updated_at":"2026-01-14T07:48:16.147Z","avatar_url":"https://github.com/chemsseddine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n\n```\npip install botv\n```\n\n# Usage\n\n```\nfrom botv.output import Output\n\nmessage = Output()\nmessage.as_dict\n```\n```\n\u003e {'output': {}}\n```\n\n### Entities\n```\nmessage.add_entity(entity1=\"value1\", entity2=\"value2\")\n```\n```\n\u003e {'entities': {'entity1':'value1', 'entity2':'value2'}, 'output': {}}\n```\n### Response\n\n```\nmessage.add_response('some response')\n```\n```\n\u003e {'entities': {'entity1':'value1', 'entity2':'value2'}, 'output': {'response': 'some response'}\n```\n```\n# Or when instantiating the object message\n\nnew_message = Output(\"Hello World !\")\n```\n\n### Facebook quick Replies\n```\nquick_replies = [{\n    \"targetIntent\":\"intentName\",\n    \"type\":\"text\",\n    \"title\":\"someTitle\",\n    \"text\":\"some text\"\n}]\n\nmessage.add_qr(quick_replies)\n```\n### Facebook Templates\n\n```\ntemplates = [{\n  \"action_url\":\"https://go.to.this.url\",\n  \"image_url\":\"https://image.png\",\n  \"title\":\"someTitle\",\n  \"subtitle\":\"some sub title\"\n}]\n\nmessage.add_template(templates)\n```\n\n\n## Flask\n\n```\nfrom flask import Flask, jsonify\nfrom botv.output import Output\n\napp = Flask(__name__)\n\n@app.route('/')\ndef home():\n    message = Output()\n    message.add_entity(ent1=\"val1\")\n    message.add_response(\"Hello from Flask\")\n    return jsonify(message.as_dict)\n    \n```\n\n## Flask Restful\n\n```\nfrom flask_restful import Resource, Api\nfrom flask import Flask\nfrom botv.output import Output\n\napp = Flask(__name__)\napi = Api(app)\n\nclass Home(Resource):\n    def get(self):\n        message = Output(\"Hello\")\n        message.add_entity(solde=\"5544\")\n        return message.as_dict\n\napi.add_resource(Home, '/')\n    \n```\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemsseddine%2Fbotv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchemsseddine%2Fbotv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemsseddine%2Fbotv/lists"}