{ "info": { "author": "Azat Ibrakov", "author_email": "azatibrakov@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "rsrc_web\n========\n\n[![](https://travis-ci.com/lycantropos/rsrc_web.svg?branch=master)](https://travis-ci.com/lycantropos/rsrc_web \"Travis CI\")\n[![](https://dev.azure.com/lycantropos/rsrc_web/_apis/build/status/lycantropos.rsrc_web?branchName=master)](https://dev.azure.com/lycantropos/rsrc_web/_build/latest?definitionId=2&branchName=master \"Azure Pipelines\")\n[![](https://codecov.io/gh/lycantropos/rsrc_web/branch/master/graph/badge.svg)](https://codecov.io/gh/lycantropos/rsrc_web \"Codecov\")\n[![](https://img.shields.io/github/license/lycantropos/rsrc_web.svg)](https://github.com/lycantropos/rsrc_web/blob/master/LICENSE \"License\")\n[![](https://badge.fury.io/py/rsrc-web.svg)](https://badge.fury.io/py/rsrc-web \"PyPI\")\n\nIn what follows\n- `python` is an alias for `python3.5` or any later\nversion (`python3.6` and so on),\n- `pypy` is an alias for `pypy3.5` or any later\nversion (`pypy3.6` and so on).\n\nInstallation\n------------\n\nInstall the latest `pip` & `setuptools` packages versions:\n- with `CPython`\n ```bash\n python -m pip install --upgrade pip setuptools\n ```\n- with `PyPy`\n ```bash\n pypy -m pip install --upgrade pip setuptools\n ```\n\n### User\n\nDownload and install the latest stable version from `PyPI` repository:\n- with `CPython`\n ```bash\n python -m pip install --upgrade rsrc_web\n ```\n- with `PyPy`\n ```bash\n pypy -m pip install --upgrade rsrc_web\n ```\n\n### Developer\n\nDownload the latest version from `GitHub` repository\n```bash\ngit clone https://github.com/lycantropos/rsrc_web.git\ncd rsrc_web\n```\n\nInstall dependencies:\n- with `CPython`\n ```bash\n python -m pip install -r requirements.txt\n ```\n- with `PyPy`\n ```bash\n pypy -m pip install -r requirements.txt\n ```\n\nInstall:\n- with `CPython`\n ```bash\n python setup.py install\n ```\n- with `PyPy`\n ```bash\n pypy setup.py install\n ```\n\nUsage\n-----\n```python\n>>> from rsrc.base import deserialize\n>>> readable_resource = deserialize('https://postman-echo.com/get')\n>>> readable_resource.exists()\nTrue\n>>> writable_resource = deserialize('https://postman-echo.com/post')\n>>> writable_resource.exists()\nFalse\n>>> writable_resource.receive(readable_resource)\n>>> import json\n>>> file = readable_resource.open(json={'some_param': 1})\n>>> json.load(file)['args']\n{'some_param': 1}\n\n```\n\nDevelopment\n-----------\n\n### Bumping version\n\n#### Preparation\n\nInstall\n[bump2version](https://github.com/c4urself/bump2version#installation).\n\n#### Pre-release\n\nChoose which version number category to bump following [semver\nspecification](http://semver.org/).\n\nTest bumping version\n```bash\nbump2version --dry-run --verbose $CATEGORY\n```\n\nwhere `$CATEGORY` is the target version number category name, possible\nvalues are `patch`/`minor`/`major`.\n\nBump version\n```bash\nbump2version --verbose $CATEGORY\n```\n\nThis will set version to `major.minor.patch-alpha`. \n\n#### Release\n\nTest bumping version\n```bash\nbump2version --dry-run --verbose release\n```\n\nBump version\n```bash\nbump2version --verbose release\n```\n\nThis will set version to `major.minor.patch`.\n\n#### Notes\n\nTo avoid inconsistency between branches and pull requests,\nbumping version should be merged into `master` branch \nas separate pull request.\n\n### Running tests\n\nInstall dependencies:\n- with `CPython`\n ```bash\n python -m pip install -r requirements-tests.txt\n ```\n- with `PyPy`\n ```bash\n pypy -m pip install -r requirements-tests.txt\n ```\n\nPlain\n```bash\npytest\n```\n\nInside `Docker` container:\n- with `CPython`\n ```bash\n docker-compose --file docker-compose.cpython.yml up\n ```\n- with `PyPy`\n ```bash\n docker-compose --file docker-compose.pypy.yml up\n ```\n\n`Bash` script (e.g. can be used in `Git` hooks):\n- with `CPython`\n ```bash\n ./run-tests.sh\n ```\n or\n ```bash\n ./run-tests.sh cpython\n ```\n\n- with `PyPy`\n ```bash\n ./run-tests.sh pypy\n ```\n\n`PowerShell` script (e.g. can be used in `Git` hooks):\n- with `CPython`\n ```powershell\n .\\run-tests.ps1\n ```\n or\n ```powershell\n .\\run-tests.ps1 cpython\n ```\n- with `PyPy`\n ```powershell\n .\\run-tests.ps1 pypy\n ```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/lycantropos/rsrc_web/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lycantropos/rsrc_web/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "rsrc-web", "package_url": "https://pypi.org/project/rsrc-web/", "platform": "", "project_url": "https://pypi.org/project/rsrc-web/", "project_urls": { "Download": "https://github.com/lycantropos/rsrc_web/archive/master.zip", "Homepage": "https://github.com/lycantropos/rsrc_web/" }, "release_url": "https://pypi.org/project/rsrc-web/0.0.2/", "requires_dist": [ "memoir (>=0.0.1)", "reprit (>=0.0.1)", "requests (>=2.5.0)", "rsrc (>=0.0.4)" ], "requires_python": ">=3.5.3", "summary": "`rsrc` plugin for working with web resources.", "version": "0.0.2" }, "last_serial": 5451009, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "0c28f22fa615642912ffd26e68d648ed", "sha256": "4686bbdbdc9114010785cdf74f6bc77f6bc0140d4a12a2b80704cef66d12186a" }, "downloads": -1, "filename": "rsrc_web-0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0c28f22fa615642912ffd26e68d648ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3197, "upload_time": "2019-06-18T18:27:58", "url": "https://files.pythonhosted.org/packages/41/91/02057ac441dbd01f14dfedc8450f9a271a12fb680187b400f0b2b52fd671/rsrc_web-0.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e371e5d7ed021f257a9a04768085c40", "sha256": "5f546ead7b5c8cd9ee6dac1b8c29661bd95e5d3f78784b629a84651a3dcc69c8" }, "downloads": -1, "filename": "rsrc_web-0.0.0.tar.gz", "has_sig": false, "md5_digest": "2e371e5d7ed021f257a9a04768085c40", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2655, "upload_time": "2019-06-18T18:28:00", "url": "https://files.pythonhosted.org/packages/fd/63/82c534105b3ed1292f38b8b6ec077da232ddc32585b2d9b9c7cd46980cb9/rsrc_web-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "c1c11751d2a00e336745f1858f699766", "sha256": "6ce97006751f29dbf56475074d0e87a647ec930a353b634ce912b6c80d179b8e" }, "downloads": -1, "filename": "rsrc_web-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c1c11751d2a00e336745f1858f699766", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4806, "upload_time": "2019-06-20T08:21:32", "url": "https://files.pythonhosted.org/packages/67/71/ea68445e8a301c152ad549020544ca8fbc77fa82537f9382b0f6a340e786/rsrc_web-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d003d8978ec861c180c3dad26acfc07", "sha256": "6b747392f73d4fd698304c97185eb4025527156f187cd80bb6aeca3b8e662d21" }, "downloads": -1, "filename": "rsrc_web-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7d003d8978ec861c180c3dad26acfc07", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 3872, "upload_time": "2019-06-20T08:21:33", "url": "https://files.pythonhosted.org/packages/5a/43/032fe99b085a72d39d1c114551addcd8a85986157e73344f89a718fec714/rsrc_web-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4a55bf021e849239837089954c20d509", "sha256": "f5662b3a94cb60a104e99e2649a957af8f85abb8a34f9f75f718887459787b60" }, "downloads": -1, "filename": "rsrc_web-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4a55bf021e849239837089954c20d509", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4974, "upload_time": "2019-06-26T10:45:58", "url": "https://files.pythonhosted.org/packages/72/f0/e8ed2b89419ff43b7e4ef98754c5104226bc53131c63c5c0b34aaf2e9d69/rsrc_web-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3cdf9a89009f3c58964ddea5196c363", "sha256": "a07c666776ac25aef98702742ff65f9b2eff39fb228b80d08db31e1f93f00239" }, "downloads": -1, "filename": "rsrc_web-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f3cdf9a89009f3c58964ddea5196c363", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 4071, "upload_time": "2019-06-26T10:46:00", "url": "https://files.pythonhosted.org/packages/86/58/bde959fff9454e4211366dce4a2e2047ebcd3e53afe9864169fe9961e21d/rsrc_web-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a55bf021e849239837089954c20d509", "sha256": "f5662b3a94cb60a104e99e2649a957af8f85abb8a34f9f75f718887459787b60" }, "downloads": -1, "filename": "rsrc_web-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4a55bf021e849239837089954c20d509", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4974, "upload_time": "2019-06-26T10:45:58", "url": "https://files.pythonhosted.org/packages/72/f0/e8ed2b89419ff43b7e4ef98754c5104226bc53131c63c5c0b34aaf2e9d69/rsrc_web-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3cdf9a89009f3c58964ddea5196c363", "sha256": "a07c666776ac25aef98702742ff65f9b2eff39fb228b80d08db31e1f93f00239" }, "downloads": -1, "filename": "rsrc_web-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f3cdf9a89009f3c58964ddea5196c363", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 4071, "upload_time": "2019-06-26T10:46:00", "url": "https://files.pythonhosted.org/packages/86/58/bde959fff9454e4211366dce4a2e2047ebcd3e53afe9864169fe9961e21d/rsrc_web-0.0.2.tar.gz" } ] }