{ "info": { "author": "Oliver Cope", "author_email": "oliver@redgecko.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python" ], "description": "A find() method for SQLAlchemy\n\nUsage::\n\n from sqlalchemy_find import SessionWithFind, QueryWithFind\n from sqlalchemy.orm import sessionmaker\n\n # Configure engine and sessionmaker\n engine = create_engine('postgresql://scott:tiger@localhost/')\n Session = sessionmaker(bind=engine,\n class_=SessionWithFind,\n query_cls=QueryWithFind)\n\n # Create a session\n session = Session()\n\n # Equivalent to:\n # query = session.query(MyClass)\n # query = query.filter(MyClass.name == 'foo')\n # query = query.filter_by(is_active=True)\n query = session.find(MyClass, MyClass.name == 'foo', is_active=True)\n\n # Equivalent to:\n # ob = session.query(MyClass).get(21)\n ob = session.get(MyClass, id=21)\n\n\n\n.. Copyright 2014 Oliver Cope\n..\n.. Licensed under the Apache License, Version 2.0 (the \"License\");\n.. you may not use this file except in compliance with the License.\n.. You may obtain a copy of the License at\n..\n.. http://www.apache.org/licenses/LICENSE-2.0\n..\n.. Unless required by applicable law or agreed to in writing, software\n.. distributed under the License is distributed on an \"AS IS\" BASIS,\n.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n.. See the License for the specific language governing permissions and\n.. limitations under the License.\n\nCHANGELOG\n=========\n\nVersion 0.1\n\n- Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/ollyc/sqlalchemy-find", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "sqlalchemy-find", "package_url": "https://pypi.org/project/sqlalchemy-find/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sqlalchemy-find/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/ollyc/sqlalchemy-find" }, "release_url": "https://pypi.org/project/sqlalchemy-find/0.1/", "requires_dist": null, "requires_python": null, "summary": "Syntactic sugar for SQLAlchemy: a Storm ORM-like find method", "version": "0.1" }, "last_serial": 1148478, "releases": { "0": [], "0.1": [ { "comment_text": "", "digests": { "md5": "653c53b40501b44bf1b4d85b688a7a38", "sha256": "eccfbf3398c158fe8ba568688b2cced6fe56cfd78f38a63cb410c8fa9ab6f831" }, "downloads": -1, "filename": "sqlalchemy-find-0.1.tar.gz", "has_sig": false, "md5_digest": "653c53b40501b44bf1b4d85b688a7a38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2356, "upload_time": "2014-07-06T08:29:02", "url": "https://files.pythonhosted.org/packages/9f/13/6a3a9b7a92139c37b8b396435d76d7d6c6d8f797220ffea8682fccb59315/sqlalchemy-find-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "653c53b40501b44bf1b4d85b688a7a38", "sha256": "eccfbf3398c158fe8ba568688b2cced6fe56cfd78f38a63cb410c8fa9ab6f831" }, "downloads": -1, "filename": "sqlalchemy-find-0.1.tar.gz", "has_sig": false, "md5_digest": "653c53b40501b44bf1b4d85b688a7a38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2356, "upload_time": "2014-07-06T08:29:02", "url": "https://files.pythonhosted.org/packages/9f/13/6a3a9b7a92139c37b8b396435d76d7d6c6d8f797220ffea8682fccb59315/sqlalchemy-find-0.1.tar.gz" } ] }