{ "info": { "author": "Martin Martimeo", "author_email": "martin@martimeo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "License :: OSI Approved :: BSD License", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "tornado-restless\n================\n\nInspired on flask-restless this is a sqlalchemy restless api wrapper for tornado.\n\nFlask-Restless provides a ReSTful JSON API for sqlalchemy.\n\nDue to the fact that I'm a tornado fan I adapted Lincoln de Sousa's and Jeffrey Finkelstein's great library for using with tornado.\n\nIn many details this implementation follows the documentation of Flask-Restless:\n\nhttps://flask-restless.readthedocs.org/en/latest/index.html\n\nHowever there are some restrictions that are currently not implemented (like processors) or are slightly differ.\n\nA autogenerated (using sphinx) version of the documentation for tornado-restless can be found at http://tornado-utils.github.io/tornado-restless/\n\nCopyright license\n=================\n\nflask-restless was dual licensed under the GNU Affero General Public License and 3-clause BSD License.\n\ntornado-restless is dual licences under the GNU Affero General Public License or the 3-clause BSD License.\nFor more information see the [LICENSE.AGPL.txt] or [LICENSE.BSD.txt].\n\nInstalling\n==========\n\ntornado-restless was developed under python3.3, sqlalchemy0.9 and tornado3.1\n\nTo install this library as an egg use:\n\n python setup.py install\n\nQuickstart\n==========\n\n import tornado.ioloop\n import tornado.web\n\n from tornado_restless import ApiManager\n from sqlalchemy import create_engine, schema, Column\n from sqlalchemy.types import Integer, String\n from sqlalchemy.orm import sessionmaker\n from sqlalchemy.ext.declarative import declarative_base\n\n # Init Tornado Application\n application = tornado.web.Application([])\n\n # Init SQLAlchemy\n engine = create_engine('sqlite:///:memory:')\n metadata = schema.MetaData()\n Session = sessionmaker(bind=engine)\n Base = declarative_base(metadata=metadata)\n session = Session()\n\n # Create some model\n class Person(Base):\n __tablename__ = 'persons'\n\n id = Column(Integer, primary_key=True)\n name = Column(String, unique=True)\n\n metadata.create_all(engine)\n\n # Create restless api handlers\n api = ApiManager(application=application, session_maker=Session)\n api.create_api(Person)\n\n if __name__ == \"__main__\":\n application.listen(8888)\n tornado.ioloop.IOLoop.instance().start()", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/tornado-utils/tornado-restless/tarball/0.4.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tornado-utils/tornado-restless", "keywords": null, "license": "GNU AGPLv3+ or BSD-3-clause", "maintainer": null, "maintainer_email": null, "name": "Tornado-Restless", "package_url": "https://pypi.org/project/Tornado-Restless/", "platform": "any", "project_url": "https://pypi.org/project/Tornado-Restless/", "project_urls": { "Download": "https://github.com/tornado-utils/tornado-restless/tarball/0.4.5", "Homepage": "https://github.com/tornado-utils/tornado-restless" }, "release_url": "https://pypi.org/project/Tornado-Restless/0.4.5/", "requires_dist": null, "requires_python": null, "summary": "flask-restless adopted for tornado", "version": "0.4.5" }, "last_serial": 1675970, "releases": { "0.1.0": [], "0.2.0": [], "0.4.0": [], "0.4.1": [], "0.4.3": [], "0.4.4": [ { "comment_text": "", "digests": { "md5": "d9efa18261ce06e1c1fc00335c750730", "sha256": "dac455e4ff35f9fd6a94a4cdf41c00f9ac6313d625bb1945bf120552e0257fc9" }, "downloads": -1, "filename": "Tornado-Restless-0.4.4.tar.gz", "has_sig": false, "md5_digest": "d9efa18261ce06e1c1fc00335c750730", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13962, "upload_time": "2015-08-13T12:35:54", "url": "https://files.pythonhosted.org/packages/6d/e2/21ff70317eaf4f0eec0689484400503ceea3c2947e055a9ba65c0bd8e724/Tornado-Restless-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "0ea047434f9b935dcc6d353fef01e9eb", "sha256": "d013496969325030d843a1a4c5762e05899902c7a6f307adbcd371d079e52082" }, "downloads": -1, "filename": "Tornado-Restless-0.4.5.tar.gz", "has_sig": false, "md5_digest": "0ea047434f9b935dcc6d353fef01e9eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27973, "upload_time": "2015-08-13T12:51:19", "url": "https://files.pythonhosted.org/packages/47/15/d3e4327d72808e7ad7ae3f166beeaf4c74b201ae03b16598c1197489a8d2/Tornado-Restless-0.4.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ea047434f9b935dcc6d353fef01e9eb", "sha256": "d013496969325030d843a1a4c5762e05899902c7a6f307adbcd371d079e52082" }, "downloads": -1, "filename": "Tornado-Restless-0.4.5.tar.gz", "has_sig": false, "md5_digest": "0ea047434f9b935dcc6d353fef01e9eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27973, "upload_time": "2015-08-13T12:51:19", "url": "https://files.pythonhosted.org/packages/47/15/d3e4327d72808e7ad7ae3f166beeaf4c74b201ae03b16598c1197489a8d2/Tornado-Restless-0.4.5.tar.gz" } ] }