{ "info": { "author": "Yixi Zhang", "author_email": "yixi.zhang.max@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Overview\n=========\n`nosql` is a schemaless ORM for relational db backed by SQLAlchemy.\n\nIt's ultermately an implementation of the schemaless ORM introduced by Bret Taylor.\n\nhttp://backchannel.org/blog/friendfeed-schemaless-mysql\n\n\nUsage\n=========\nNo instruction is better than real code! Say you are building a `Flask` app.\n\n```python\nimport nosql\nfrom app import db\n\n\nclass User(nosql.SchemalessModel):\n\tengine = db.engine\n\tindexes = (\n\t\t('email',),\n\t\t('facebook_id',),\n\t\t('city',)\n\t)\n\n\t\nUser.create_all()\n\nuser = User()\nuser.email = 'yixi.zhang.max@gmail.com'\nuser.name = 'Yixi Zhang'\nuser.save()\n\n\n# find returns a generator\n>>> [user.name for user in User.find()]\n['Yixi Zhang']\n\n\n# find_one returns an instance, support any attribute\n>>> User.find_one(email='yixi.zhang.max@gmail.com').name\nYixi Zhang\n\n\n# added_id & id is auto-generated\n>>> user.id\ne597bb954cf74d51937d5a5e9fd2f2b8\n\n>>> user.added_id\n1\n\n\n# retrieve non-exist attr returns None\n>>> user.idol\n\n\n>>> user.delete()\n\n>>> list(User.find())\n[]\n```\n\n\nIndex\n=========\nBecause `nosql` creates index tables, querying random attribute is fast.\n\nSome todo's for index\n\n* `index_updater` allows indexes to be added later on and schedule data pushing in the background.\n* `sharding` on index.\n\n\nDatabase Support\n=========\nSo far only tested `SQLite` and `PostgreSQL`\n\n\nLicense\n=========\nDo whatever you want. Hope you enjoy using it.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yixizhang/nosql", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "nosql", "package_url": "https://pypi.org/project/nosql/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nosql/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yixizhang/nosql" }, "release_url": "https://pypi.org/project/nosql/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "NoSQL ORM for relational db backed by SQLAlchemy", "version": "0.0.1" }, "last_serial": 941247, "releases": { "0.0.1": [] }, "urls": [] }