{ "info": { "author": "Ben Croston", "author_email": "ben@croston.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development" ], "description": "This package provides a service based on JSONRPC with some small additions to the standard in order to enable authenticated requests. The WSGI specification is used for data communication. The package is broken down into two halves - a client and a server. For security, the server is best run over HTTPS, although this is not enforced.\n\nThis package depends on WebOb 1.2 (or above). This is automatically installed if you have an internet connection and use pip, otherwise download and install from http://pypi.python.org/pypi/WebOb\n\nExample Usage (Server):\n\n::\n\n import hashlib\n from wsgiref import simple_server\n from AuthRPC.server import AuthRPCApp\n\n def myauth(username, password, useragent):\n return username == 'myuser' and \\\n password == hashlib.md5('secret'.encode()).hexdigest() and \\\n useragent == 'myprogram'\n\n class api(object):\n def do_something(self, myvar):\n \"\"\"Your code placed here\"\"\"\n return 'Something', myvar\n\n application = AuthRPCApp(api(), auth=myauth, filepath='/home/myapp/datadir')\n server = simple_server.make_server('localhost', 1234, application)\n server.serve_forever()\n\nExample Usage (Client):\n\n::\n\n from AuthRPC.client import ServerProxy, BatchCall\n\n client = ServerProxy('http://localhost:1234/',\n username='myuser',\n password='secret',\n user_agent='myprogram')\n retval = client.do_something('test')\n\n # get a file and save local copy\n file_contents_generator = client.__getfile__('myfile.pdf')\n with open('myfile_downloaded.pdf', 'wb') as f:\n for data in file_contents_generator:\n f.write(data)\n\n batch = BatchCall(client)\n batch.do_something('call 1')\n batch.do_something('call 2')\n batch()\n\nChange Log\n==========\n\n0.3.2a\n------\n- Remove dependency on distribute\n- Tidy up pypi package contents\n\n0.3.1a\n------\n- Use generator with __getfile__ (uses much less memory)\n- Fixed security issue with __getfile__ - do not allow access to whole disk!\n- Handle exceptions in auth function\n- Fixed encrypting of no password\n- Changed README code examples\n\n0.3.0a\n------\n- Changed/renamed exceptions that are generated (client)\n\n0.2.0a\n------\n- Added __getfile__ mechanism\n\n0.1.0a\n------\n- Added batch requests\n- Added Python 3 support for server\n\n0.0.1a\n------\n- First version", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.wyre-it.co.uk/authrpc/", "keywords": "json,rpc,wsgi,auth", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "AuthRPC", "package_url": "https://pypi.org/project/AuthRPC/", "platform": "Any", "project_url": "https://pypi.org/project/AuthRPC/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.wyre-it.co.uk/authrpc/" }, "release_url": "https://pypi.org/project/AuthRPC/0.3.2a/", "requires_dist": null, "requires_python": null, "summary": "A JSONRPC-like client and server with additions to enable authenticated requests", "version": "0.3.2a" }, "last_serial": 898518, "releases": { "0.0.1a": [ { "comment_text": "", "digests": { "md5": "c6da346c78fc1ae47809dd50ac5b836c", "sha256": "5262c1ce25456da8edcb1eb5d3c1c8f26379fbbb9928fe79c9915a769df2f9d8" }, "downloads": -1, "filename": "AuthRPC-0.0.1a.tar.gz", "has_sig": false, "md5_digest": "c6da346c78fc1ae47809dd50ac5b836c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6409, "upload_time": "2011-09-05T22:30:43", "url": "https://files.pythonhosted.org/packages/f9/21/07aa7b6f74af1d96f1f09be6a77c0b55aa99ca542265cbd90d90ec303a66/AuthRPC-0.0.1a.tar.gz" } ], "0.1.0a": [ { "comment_text": "", "digests": { "md5": "8ec89d5763b987435453f0bea7c5f1c9", "sha256": "51c61f74bd4efed60dcf6f34716417e03089a1fd547a44cfd6c410dbead38e68" }, "downloads": -1, "filename": "AuthRPC-0.1.0a.tar.gz", "has_sig": false, "md5_digest": "8ec89d5763b987435453f0bea7c5f1c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7248, "upload_time": "2012-01-01T16:58:09", "url": "https://files.pythonhosted.org/packages/73/1a/9f405141842db85c316ade35d17c84eabd201316c9448baaa53797cf8dbb/AuthRPC-0.1.0a.tar.gz" } ], "0.2.0a": [ { "comment_text": "", "digests": { "md5": "f48cfcf4c9d29d59a2f37ae038a9193c", "sha256": "d932a0faf44a96b372f2b611bad41e5cbe3f111217bf95471a2ef9998a67ffcb" }, "downloads": -1, "filename": "AuthRPC-0.2.0a.tar.gz", "has_sig": false, "md5_digest": "f48cfcf4c9d29d59a2f37ae038a9193c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7491, "upload_time": "2012-01-02T01:13:08", "url": "https://files.pythonhosted.org/packages/1e/f2/a4d2d891c70f8345b3553ddee0b34c8c6282016170108fb7792fdcfcf6fe/AuthRPC-0.2.0a.tar.gz" } ], "0.3.0a": [ { "comment_text": "", "digests": { "md5": "380e10ff83c6c1072942f0956ff0dcce", "sha256": "7e7339f49d01dd6130b79deae75694bf61775df49303726f9ea526654138c530" }, "downloads": -1, "filename": "AuthRPC-0.3.0a.tar.gz", "has_sig": false, "md5_digest": "380e10ff83c6c1072942f0956ff0dcce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7568, "upload_time": "2012-02-28T14:50:23", "url": "https://files.pythonhosted.org/packages/bc/c1/fc7dd1b0bd0bc9ed88076b37b408c12d160e10f2d6d782021a2f0ed38161/AuthRPC-0.3.0a.tar.gz" } ], "0.3.1a": [ { "comment_text": "", "digests": { "md5": "db72e8fad761db48df9ce7836a8ff3c1", "sha256": "4de976a6917f028e1d98bc1bc189c0d02ae0199375736730af3094f73faeaad5" }, "downloads": -1, "filename": "AuthRPC-0.3.1a.tar.gz", "has_sig": false, "md5_digest": "db72e8fad761db48df9ce7836a8ff3c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8418, "upload_time": "2012-04-05T21:49:33", "url": "https://files.pythonhosted.org/packages/33/55/6fc20394c1f8cdd34e8a37e73ced6dfe1cf9e243543790321847ebd24c71/AuthRPC-0.3.1a.tar.gz" } ], "0.3.2a": [ { "comment_text": "", "digests": { "md5": "d9b309963f1706fdbafca032b9235e26", "sha256": "d7a3b31d37fd7d229af69e664ee643200ba12b9df51ca132391ada896c7b0225" }, "downloads": -1, "filename": "AuthRPC-0.3.2a.tar.gz", "has_sig": false, "md5_digest": "d9b309963f1706fdbafca032b9235e26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9032, "upload_time": "2013-10-19T20:23:05", "url": "https://files.pythonhosted.org/packages/e2/68/3e53f2bc83f48fa6d81d95568a8269bfd7bd109b54c4d11ae4d6d9923fc5/AuthRPC-0.3.2a.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d9b309963f1706fdbafca032b9235e26", "sha256": "d7a3b31d37fd7d229af69e664ee643200ba12b9df51ca132391ada896c7b0225" }, "downloads": -1, "filename": "AuthRPC-0.3.2a.tar.gz", "has_sig": false, "md5_digest": "d9b309963f1706fdbafca032b9235e26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9032, "upload_time": "2013-10-19T20:23:05", "url": "https://files.pythonhosted.org/packages/e2/68/3e53f2bc83f48fa6d81d95568a8269bfd7bd109b54c4d11ae4d6d9923fc5/AuthRPC-0.3.2a.tar.gz" } ] }