{ "info": { "author": "alex bodnaru", "author_email": "alexbodn@012.net.il", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Topic :: Communications", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: System :: Distributed Computing" ], "description": "[ urlimport.py ]\r\nEnables remote module importing through urllib2 and perforce.\r\n\r\nauthor: Jure Vrscaj \r\n\r\nlast contributed versions:\r\nversion: 0.72c (myevan fixes and improvements)\r\nversion: 0.85b (alex fixes and improvements)\r\nversion: 0.72d (jure found a bug and alex fixed it).\r\nhomepage: http://urlimport.codeshift.net\r\nlicense: MIT\r\n\r\ndownload: all the project's files may be downloaded from bitbucket with hg:\r\nhg clone http://bitbucket.org/alexbodn/urlimport\r\n\r\nUsage:\r\n\r\nimport sys, urlimport\r\nurlimport.config(**{\r\n 'ssl_key.https://your.url':'key for this url'\r\n 'ssl_cert.https://your.url':'cert for this url',\r\n 'opener.https://your.url':'opener for this url',\r\n 'cache_time.http://your.url':'timedelta to keep files in cache for this url',\r\n 'no_cache.url':True, # don't cache modules from this url\r\n 'user_agent.url':'user agent header for this url',\r\n 'ssl_key.host':'key for this host'\r\n 'ssl_cert.host':'cert for this host',\r\n 'opener.host':'opener for this host',\r\n 'cache_time.host':'timedelta to keep files in cache for this host',\r\n 'no_cache.host':True, # don't cache modules from this host\r\n 'user_agent.host':'user agent header for this host',\r\n 'ssl_key':'key for unspecified urls', \r\n 'ssl_cert':'cert for unspecified urls',\r\n 'opener':'opener for unspecified urls',\r\n 'no_cache':'True, #don't cache modules for unspecified urls\r\n 'user_agent':'user agent header for unspecified urls',\r\n 'cache_time':'timedelta to keep files in cache for unspecified urls',\r\n #if cache_time is missing, keep forever, but check last_modified and etag\r\n 'cache_dir':'root of the cache dir', # if missing, a temp dir will be created,\r\n # if empty, no cache will be used\r\n 'py_version_string': '$PYTHON_VERSION', # string in path to be replaced by\r\n # $major.$minor\r\n 'debug': int(level of output text. see debug() function)\r\n})\r\n# note: if you supply your own opener, i'd recommand inheriting/implementing the \r\n# status handling features from class DefaultErrorHandler below.\r\nsys.path.insert(0, \"http://your.url\") #this may already be there, like setting\r\n #PYTHONPATH\r\n #but there is a danger default import\r\n #would try it before\r\nexpect to have access to your modules at http://your.url\r\n\r\nTODO:\r\n- check what's mpath all about.\r\n\r\nTODO later:\r\n- python 3.1 support. preliminary work done\r\n- url import of zipped modules\r\n- support of other urls, like ssh, svn, hg, bzr, cvs etc.\r\n- reload c extensions. well, they don't allways reload in local import either,\r\n but my module does reload locally, so why not remotely? \r\n introspection will help.\r\n- swithch the usage of debug with some logging, and do some cleanup of the \r\n calls.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://urlimport.codeshift.net/", "keywords": "python import remote modules http https ftp perforce", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "urlimport", "package_url": "https://pypi.org/project/urlimport/", "platform": "ALL", "project_url": "https://pypi.org/project/urlimport/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://urlimport.codeshift.net/" }, "release_url": "https://pypi.org/project/urlimport/0.86c-dev/", "requires_dist": null, "requires_python": null, "summary": "Allow importing files through the web, by adding urls to pythonpath", "version": "0.86c-dev" }, "last_serial": 801278, "releases": { "0.85a-dev": [ { "comment_text": "", "digests": { "md5": "a2ba1b3a5d3f01ba799b1245edfd0100", "sha256": "f41fce80dfae713e90164b6ea397e1887607a4ad6e6b9f9a006328b02dad4d82" }, "downloads": -1, "filename": "urlimport-0.85a_dev-py2.5.egg", "has_sig": false, "md5_digest": "a2ba1b3a5d3f01ba799b1245edfd0100", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 18026, "upload_time": "2010-04-16T18:08:59", "url": "https://files.pythonhosted.org/packages/43/73/3d7510a5871b16e1fa060c34e31fade53c3b4ba945640a254c644bc079b4/urlimport-0.85a_dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "248898c599487a30c3e6aa91d2f17b4e", "sha256": "3e8cc9c9bb78cafe23d60760323d2364c4f9e5aaf362179b110a886dcfdf3631" }, "downloads": -1, "filename": "urlimport-0.85a-dev.tar.gz", "has_sig": false, "md5_digest": "248898c599487a30c3e6aa91d2f17b4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14877, "upload_time": "2010-04-16T18:09:29", "url": "https://files.pythonhosted.org/packages/87/5c/36df0c3f6dd96b8c2ec21ea6bd318e9bd3b74fd31669c064922cac63762d/urlimport-0.85a-dev.tar.gz" } ], "0.85b-dev": [ { "comment_text": "", "digests": { "md5": "0d353e3288f5e05855248bbbbe98aae2", "sha256": "4b8b78abc2cb192940612693b3170bf03b93be94d92452602f1a1c1d4c819768" }, "downloads": -1, "filename": "urlimport-0.85b_dev-py2.5.egg", "has_sig": false, "md5_digest": "0d353e3288f5e05855248bbbbe98aae2", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 18915, "upload_time": "2010-04-17T16:32:22", "url": "https://files.pythonhosted.org/packages/2f/e0/30b0254706d78f64f66dd44ad37b017b96644e6283c5edbbf9b63bbf95d7/urlimport-0.85b_dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "ba684a1c1c3dee999110a4a8de97247e", "sha256": "70b0a91413cc319386e6d76a23ff7e0929f31b1aa4accc6f748c64284381df26" }, "downloads": -1, "filename": "urlimport-0.85b-dev.tar.gz", "has_sig": false, "md5_digest": "ba684a1c1c3dee999110a4a8de97247e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15527, "upload_time": "2010-04-17T16:35:57", "url": "https://files.pythonhosted.org/packages/ca/29/c6b88db822b7931d1fe94808a77faa77e9986fa4ccc0b1c2005105d0f4cc/urlimport-0.85b-dev.tar.gz" } ], "0.86b-dev": [ { "comment_text": "", "digests": { "md5": "1bd3e42f9f1f7ab938d04aac85fb5e46", "sha256": "8cee6f678ddc5ed345798da8171281a1567aa7f5e1cdd49949a6068bb6c0a4a0" }, "downloads": -1, "filename": "urlimport-0.86b_dev-py2.5.egg", "has_sig": false, "md5_digest": "1bd3e42f9f1f7ab938d04aac85fb5e46", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 19019, "upload_time": "2010-04-18T04:22:32", "url": "https://files.pythonhosted.org/packages/7a/b0/d7e377a5ce56f7206d5257e0c3c6221668ddaceda013cce88ff57bd37005/urlimport-0.86b_dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "18599b1ef1cc34aecd8611db41b2c797", "sha256": "69ae1170faa045c334a8bbd0b91963e6f9521ef4c0192319cec265849c5eb43a" }, "downloads": -1, "filename": "urlimport-0.86b-dev.tar.gz", "has_sig": false, "md5_digest": "18599b1ef1cc34aecd8611db41b2c797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15552, "upload_time": "2010-04-18T04:22:26", "url": "https://files.pythonhosted.org/packages/dd/85/d1045798fbfbf2008634ecc8a1658644e85ef4f134cec5110c6adda0e916/urlimport-0.86b-dev.tar.gz" } ], "0.86c-dev": [ { "comment_text": "", "digests": { "md5": "b73ec57278a44d3695709325e053db94", "sha256": "c1896ce11ac272c40ac423937b518ba3725da6e2c91e8bd05b5364e9612e8aff" }, "downloads": -1, "filename": "urlimport-0.86c_dev-py2.5.egg", "has_sig": false, "md5_digest": "b73ec57278a44d3695709325e053db94", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 19107, "upload_time": "2010-04-20T04:02:37", "url": "https://files.pythonhosted.org/packages/a1/0f/52850cef03d1d0c3931b5e136ee197932eda421d71555c12ea85e9682298/urlimport-0.86c_dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "ee27bfbc2779d93dbc525db3b97ed783", "sha256": "53f6aee0ebbe4af6db09ceab7935531f20dba3b7284ad6f12da4cc89b37105b3" }, "downloads": -1, "filename": "urlimport-0.86c-dev.tar.gz", "has_sig": false, "md5_digest": "ee27bfbc2779d93dbc525db3b97ed783", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29376, "upload_time": "2010-04-20T04:02:50", "url": "https://files.pythonhosted.org/packages/a2/9d/a737dc77058917fd19095adfdd65fe420124a56e8ce33d986b420c92e241/urlimport-0.86c-dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b73ec57278a44d3695709325e053db94", "sha256": "c1896ce11ac272c40ac423937b518ba3725da6e2c91e8bd05b5364e9612e8aff" }, "downloads": -1, "filename": "urlimport-0.86c_dev-py2.5.egg", "has_sig": false, "md5_digest": "b73ec57278a44d3695709325e053db94", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 19107, "upload_time": "2010-04-20T04:02:37", "url": "https://files.pythonhosted.org/packages/a1/0f/52850cef03d1d0c3931b5e136ee197932eda421d71555c12ea85e9682298/urlimport-0.86c_dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "ee27bfbc2779d93dbc525db3b97ed783", "sha256": "53f6aee0ebbe4af6db09ceab7935531f20dba3b7284ad6f12da4cc89b37105b3" }, "downloads": -1, "filename": "urlimport-0.86c-dev.tar.gz", "has_sig": false, "md5_digest": "ee27bfbc2779d93dbc525db3b97ed783", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29376, "upload_time": "2010-04-20T04:02:50", "url": "https://files.pythonhosted.org/packages/a2/9d/a737dc77058917fd19095adfdd65fe420124a56e8ce33d986b420c92e241/urlimport-0.86c-dev.tar.gz" } ] }