{"id":17125755,"url":"https://github.com/ccampbell/storm","last_synced_at":"2025-04-13T06:25:23.930Z","repository":{"id":10889577,"uuid":"13180776","full_name":"ccampbell/storm","owner":"ccampbell","description":"Simple ORM for Tornado","archived":false,"fork":false,"pushed_at":"2015-09-17T00:16:42.000Z","size":218,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T13:44:08.558Z","etag":null,"topics":["orm","python","storm","tornado"],"latest_commit_sha":null,"homepage":null,"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/ccampbell.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":"2013-09-28T21:01:35.000Z","updated_at":"2022-03-15T12:06:04.000Z","dependencies_parsed_at":"2022-08-29T15:11:00.515Z","dependency_job_id":null,"html_url":"https://github.com/ccampbell/storm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccampbell%2Fstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccampbell%2Fstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccampbell%2Fstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccampbell%2Fstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccampbell","download_url":"https://codeload.github.com/ccampbell/storm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240039703,"owners_count":19738384,"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":["orm","python","storm","tornado"],"created_at":"2024-10-14T18:45:43.469Z","updated_at":"2025-02-23T00:31:46.343Z","avatar_url":"https://github.com/ccampbell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storm\n\n### A simple ORM for Tornado\n\nStorm stands for **S** imple **T** ornado **O** bject **R** elational **M** apping.\n\nIt uses Mongo DB for the backend, but it should be swappable for any storage by implementing the `storm.db.Database` interface.\n\nThis is the result of a few hours of work so I would not recommend using it in production at the moment.\n\n## Usage\n\n```python\nfrom storm.model import Model\nfrom storm.db import Connection\nfrom storm.mongodb import MongoDb\nfrom tornado.gen import coroutine\nfrom tornado.ioloop import IOLoop\n\nclass User(Model):\n    pass\n\n@coroutine\ndef main():\n    db = MongoDb(Connection(\n                    host='localhost',\n                    port=27017,\n                    database='test'))\n\n    db.connect()\n\n    Model.set_db(db)\n\n    # save a new object\n    user = User()\n    user.name = 'Craig'\n    user.type = 'basic'\n    id = yield user.save()\n\n    # find an object\n    try:\n        user = yield User.find(name='Craig')\n        print user.name\n        print user.type\n    except Exception, e:\n        print e\n\n    IOLoop.instance().stop()\n\nmain()\nIOLoop.instance().start()\n```\n\n## Note\n\nThis is in no way affiliated with the storm ORM developed by Canonical: http://storm.canonical.com.  I didn't know there was another ORM with the same name until I checked PyPi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccampbell%2Fstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccampbell%2Fstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccampbell%2Fstorm/lists"}