{"id":16766571,"url":"https://github.com/jmpotato/dopamine","last_synced_at":"2025-04-10T19:11:00.771Z","repository":{"id":72443464,"uuid":"230084439","full_name":"JmPotato/dopamine","owner":"JmPotato","description":"😆 A simple and fast Python web framework which aims to help you build an app agilely.","archived":false,"fork":false,"pushed_at":"2020-01-29T08:58:52.000Z","size":57,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T16:51:56.754Z","etag":null,"topics":["gevent","web-framework","wsgi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JmPotato.png","metadata":{"files":{"readme":"README.md","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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-25T10:17:07.000Z","updated_at":"2022-03-16T16:35:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d62fe7ac-611e-43d1-a531-4a0917601da9","html_url":"https://github.com/JmPotato/dopamine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Fdopamine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Fdopamine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Fdopamine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Fdopamine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JmPotato","download_url":"https://codeload.github.com/JmPotato/dopamine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279640,"owners_count":21077407,"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":["gevent","web-framework","wsgi"],"created_at":"2024-10-13T06:06:51.580Z","updated_at":"2025-04-10T19:11:00.765Z","avatar_url":"https://github.com/JmPotato.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Dopamine](./docs/imgs/1920px-dopamine.png)\n\n# Dopamine\n\nDopamine is a simple and fast Python web framework which aims to help you build an app agilely. It's based on gevent's `pywsgi`, a pure-Python, gevent-friendly WSGI server. Benefiting from a high-level synchronous API on top of the `libev` or `libuv` event loop, dopamine could be fast to respond every HTTP request without the user to do any extra work. Also, dopamine will stay in both easy-using and powerfuly to help you build some simple apps agilely.\n\n## Feature\n\nDopamine hopes you can use it to build your app without any burden. Here are some features dopamine already has or soon will be supported.\n\n* Simple router function\n* JSON friendly\n* Easy to handle HTTP requests\n* Template framework support\n* ...\n\n## Example\n\n```python\n# -*- coding: utf-8 -*-\nfrom dopamine import Dopamine\n\napp = Dopamine(listener=('127.0.0.1', 5299))\n\n\n@app.route('/', ['GET'])\ndef hello(request, response):\n    html = 'Hello, dopamine!\u003cbr\u003e'\n    html += 'Your host is {0}:{1}\u003cbr\u003e'.format(\n        request.remote_addr, request.remote_port)\n    html += 'Your user agent is: {0}'.format(\n        request.headers['User-Agent'])\n    return html\n\n\napp.run()\n```\n\n## LICENSE\nCopyright © 2019 by JmPotato\n\nUnder [Apache License 2.0](http://www.apache.org/licenses/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpotato%2Fdopamine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmpotato%2Fdopamine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpotato%2Fdopamine/lists"}