{ "info": { "author": "Csaba Palankai", "author_email": "csaba.palankai@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==================================\nMicroService framework :: Resource\n==================================\n\n.. image:: https://travis-ci.org/palankai/pyrs-resource.svg?branch=master\n :target: https://travis-ci.org/palankai/pyrs-resource\n\n.. image:: https://coveralls.io/repos/palankai/pyrs-resource/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/palankai/pyrs-resource?branch=master\n\n.. image:: https://readthedocs.org/projects/pyrs-resource/badge/?version=stable\n :target: http://pyrs-resource.readthedocs.org/\n :alt: Documentation Status\n\nProject homepage: ``_\n\nDocumentation: ``_\n\nIssue tracking: ``_\n\n\nWhat is this package for\n------------------------\n\nIn the python world there are many RESTFul framework. Some of them based on \nDjango others are based on Flask. I've tried some but I had the feeling, I want\nto learn one, the use with Django or Flask or even Odoo. And I don't mention\nsometimes I found them not flexible enough. So, I've decided write my own\nindependent framework what anybody can use in at least the mentioned 3 \ndifferent worlds.\n\nNutshell (notice that, it would be the achivement)\n--------------------------------------------------\n\n.. code:: python\n\n from pyrs import resource\n from pyrs.resource import GET\n\n class UserResouce:\n\n @GET(response=ArrayOfUserSchema)\n def get_users(self):\n return User.objects.all()\n\n @PUT(path='/', response=UserSchema, request=UserSchema)\n def update_user(self, user_id, body):\n user = get_object_or_404(User, pk=user_id)\n user.name = body['name']\n user.email = body['email']\n user.save()\n return user\n\n app = resource.Application()\n app.add('/user', UserResouce)\n\nIn this example I've shown Django (like) example.\nThe schema is based on `pyrs.schema `_.\nEven if I tend to use that framework, you would be able to use any other.\n\nFeatures\n--------\n- Using simple classes or even functions (no inheritance)\n- Wrapped error handling, errors can be serialised\n- Extensible API\n- Works with python 2.7, 3.3, 3.4 (tested against these versions)\n- Hooks for extending the dispatching process\n\nInstallation\n------------\n\n.. code:: bash\n\n $ pip install pyrs-resource\n\nDependencies\n------------\n\nSee `requirements.txt` for details, but mainly depends on `Werkzeug `_.\nI'm using that project routing capabilities. Also depends on `pyrs.schema` as\nI mentioned in nutshell section.\n\nImportant caveats\n-----------------\n\nThis code right now really in beta state. I plan to release soon as possible\na completely working code, but right now it's just shaping.\n\nThe ecosystem\n-------------\n\nThis work is part of `pyrs framework `_.\nThe complete framework follow the same intention to implement flexible\nsolution.\n\nContribution\n------------\n\nI really welcome any comments!\nI would be happy if you fork my code or create pull requests.\nI've already really strong opinions what I want to achieve and how, though any\nhelp would be welcomed.\n\nFeel free drop a message to me!", "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/palankai/pyrs-resource", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyrs-resource", "package_url": "https://pypi.org/project/pyrs-resource/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyrs-resource/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/palankai/pyrs-resource" }, "release_url": "https://pypi.org/project/pyrs-resource/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Python microservice framework", "version": "0.2.0" }, "last_serial": 1689967, "releases": { "0.1.0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8bdc912568729e49b3239c16962278b9", "sha256": "79800cb8f87ff1374d16c654f41b3ea657c4340a72b4ac50182161f27b995a7a" }, "downloads": -1, "filename": "pyrs-resource-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8bdc912568729e49b3239c16962278b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20018, "upload_time": "2015-08-23T19:56:58", "url": "https://files.pythonhosted.org/packages/b2/29/c86b7739e8401c7b8f3918c8fb62e6635c52af80e43b522fc3946213d416/pyrs-resource-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8bdc912568729e49b3239c16962278b9", "sha256": "79800cb8f87ff1374d16c654f41b3ea657c4340a72b4ac50182161f27b995a7a" }, "downloads": -1, "filename": "pyrs-resource-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8bdc912568729e49b3239c16962278b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20018, "upload_time": "2015-08-23T19:56:58", "url": "https://files.pythonhosted.org/packages/b2/29/c86b7739e8401c7b8f3918c8fb62e6635c52af80e43b522fc3946213d416/pyrs-resource-0.2.0.tar.gz" } ] }