{"id":18625573,"url":"https://github.com/mdbecker/pycon_2014_demo","last_synced_at":"2025-11-03T20:30:26.687Z","repository":{"id":25962201,"uuid":"29404076","full_name":"mdbecker/pycon_2014_demo","owner":"mdbecker","description":"Demo app from PyCon 2014","archived":false,"fork":false,"pushed_at":"2015-01-19T01:10:59.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T06:09:18.770Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdbecker.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}},"created_at":"2015-01-17T20:10:58.000Z","updated_at":"2017-11-14T21:45:23.000Z","dependencies_parsed_at":"2022-08-24T14:18:13.017Z","dependency_job_id":null,"html_url":"https://github.com/mdbecker/pycon_2014_demo","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/mdbecker%2Fpycon_2014_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbecker%2Fpycon_2014_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbecker%2Fpycon_2014_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbecker%2Fpycon_2014_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdbecker","download_url":"https://codeload.github.com/mdbecker/pycon_2014_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239418578,"owners_count":19635208,"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-07T04:35:08.370Z","updated_at":"2025-11-03T20:30:26.655Z","avatar_url":"https://github.com/mdbecker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pycon_2014_demo\nDemo app from PyCon 2014\n\n**Note: This is a WIP**\n\n## Usage\nThis demo requires a RabbitMQ server, a running API, a running worker (consumer) and a front-end. Right now it only has an API, the rest will be completed in the future.\n\n### RabbitMQ\nFirst you'll need a running RabbitMQ instance. There are lots of examples online for setting up RabbitMQ in a VM. Personally I like using [Vessel](https://awvessel.github.io/) because it makes it really easy to get a RabbitMQ VM up and running.\n\n### Environment\nI prefer the anaconda virtualenvs over plain-old python virtualenvs. To setup a conda virtualenv with the required packages run:\n```sh\n$ conda create -n pycon_2014_demo python=2.7 pip scikit-learn ipython-notebook Flask\n$ source activate pycon_2014_demo\n$ pip install rabbitpy\n```\n\n### API\nStart the api by running\n```sh\n$ python api.py\n``` \n\n### A simple request\nTo hit the api without the front-end, you can make a simple request using curl\n```sh\n$ curl -H \"Content-Type: application/json\" -d '{\"text\":\"hello world\"}' http://127.0.0.1:5000/\n```\n\n### Inspect the message in the RabbitMQ management console\nIf all goes well, you should now have a message in your RabbitMQ server in the 'test' queue. You can navigate to the management console by navigating to http://``{RABBITMQ_IP}``:15672 in your browser. From there, you can:\n\n 1. Click on the \"Queues\" tab. \n 2. Click on the \"test\" queue.\n 3. Open up the \"Get messages\" section (near the bottom).\n 4. Click the \"Get Message(s)\" button.\n\nIf everything is working, you should see a message in the management console that matches the json in the curl command from above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdbecker%2Fpycon_2014_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdbecker%2Fpycon_2014_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdbecker%2Fpycon_2014_demo/lists"}