{ "info": { "author": "John Patrick Glattetre", "author_email": "jp@glattetre.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# sharefile-api\n\nThis is a Python module to interface with Citrix Sharefile.\nThere may be bugs, and there is some missing functionality, such as adding a recipient to a folder, but that's coming later, so stay tuned!\n\nThis has not been tested with Windows yet.\n\n\n## Authenticate with Sharefile\nTo authenticate with Sharefile, generate a one-time code by visiting the following URL:\n\n`https://secure.sharefile.eu/oauth/authorize?client_id=YOURCLIENTID&response_type=code&redirect_uri=https://secure.sharefile.eu/oauth/oauthcomplete.aspx`\n\nYou will be redirected to a URL containing your one-time code that looks like this:\n\n`https://secure.sharefile.eu/oauth/oauthcomplete.aspx?code=ONETIMECODE&subdomain=YOURORG&apicp=sharefile.eu&appcp=sharefile.eu&h=CSRF_TOKEN`\n\n## Using the library\nTo use the library, first run the `init` function with all the info the application needs to continue.\n\n```python\n sharefile.init(\n \"subdomain\",\n \"appcp_from_OTP_link\",\n \"client_id\",\n \"client_secret\",\n )\n```\n\nThis needs to be run before executing any of the library's functions.\n\n## Fetching access tokens\nTo fetch API tokens from Sharefile, run the following:\n\n```python\naccess_token, refresh_token = sharefile.fetch_token(one-time-passcode)\n```\n\nYou will need somewhere to store the tokens for further use. See [examples](examples/authentication.py) for an example of how to do so. You must also remember to use `sharefile.refresh` to fetch a new token once the previous one has expired.\n\nFinally, to use the access token with the library, run the following function:\n\n```python3\nsharefile.auth(your-access-token)\n```\n\nThis will load your access token into memory so the application is now functionable.\n\n## Functions\nWith this library you can:\n- Download\n- Upload\n- Access shared folders\n- Create folders\n- Move folders\n- Delete items\n\nSee [examples](examples/managing-files.py) for examples. The functions themselves also have information declaring how they're used.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/heyitsjp/sharefile-api", "keywords": "", "license": "MIT", "maintainer": "John Patrick Glattetre", "maintainer_email": "jp@glattetre.com", "name": "sharefile-api", "package_url": "https://pypi.org/project/sharefile-api/", "platform": "", "project_url": "https://pypi.org/project/sharefile-api/", "project_urls": { "Homepage": "https://github.com/heyitsjp/sharefile-api", "Repository": "https://github.com/heyitsjp/sharefile-api" }, "release_url": "https://pypi.org/project/sharefile-api/0.1.1/", "requires_dist": [ "requests (>=2.22,<3.0)", "tqdm (>=4.35,<5.0)" ], "requires_python": ">=3.6,<4.0", "summary": "A Python package for interfacing with Citrix Sharefile", "version": "0.1.1" }, "last_serial": 5879407, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e008d2a87ac8911d68b5982e3a4b88f5", "sha256": "9ed832d6618f4cd55a287272291eb1c2a8edd0f0bc88920a2236818bbe2a78ec" }, "downloads": -1, "filename": "sharefile_api-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e008d2a87ac8911d68b5982e3a4b88f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 11190, "upload_time": "2019-09-24T12:17:16", "url": "https://files.pythonhosted.org/packages/44/e5/69e45a5f68ba5b6019b81d6e53a4e97ce36afa28d34da6a28cfbe70f2d45/sharefile_api-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a078fd4dd75d764342bc3724b4f5d56", "sha256": "9775cf7a3c2d02c825134d7c1edb07bec794c26be04150c08d495d4ed8d23802" }, "downloads": -1, "filename": "sharefile-api-0.1.tar.gz", "has_sig": false, "md5_digest": "6a078fd4dd75d764342bc3724b4f5d56", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 8680, "upload_time": "2019-09-24T12:17:14", "url": "https://files.pythonhosted.org/packages/b5/ef/0a21d6effbefc3e000b7969acd530f06386f9cbe6d9f3e36f698e7cb3d42/sharefile-api-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0166a0ee9800c65c0fc8cd88b75b0d8d", "sha256": "a9a7c6057a72dd8c0d92dc98a301fa4b42c80614bada92015886f3c17933c590" }, "downloads": -1, "filename": "sharefile_api-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0166a0ee9800c65c0fc8cd88b75b0d8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 12213, "upload_time": "2019-09-24T12:23:38", "url": "https://files.pythonhosted.org/packages/f7/aa/d594eb3822adaba6bad28b618c4351379b6e893f3e0c407d1ec257612e3b/sharefile_api-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "872003de9f7e5a44912c482deef4a561", "sha256": "4d891c8e09c5c451be0d8c5206a65ee9c1e1e7f331ee05fdbc459df33a410275" }, "downloads": -1, "filename": "sharefile-api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "872003de9f7e5a44912c482deef4a561", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 10685, "upload_time": "2019-09-24T12:23:36", "url": "https://files.pythonhosted.org/packages/4b/3a/c4bb41a8b8570698e87be88cf8409eed930bfd0f5baf4c3e255c13bbc36c/sharefile-api-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0166a0ee9800c65c0fc8cd88b75b0d8d", "sha256": "a9a7c6057a72dd8c0d92dc98a301fa4b42c80614bada92015886f3c17933c590" }, "downloads": -1, "filename": "sharefile_api-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0166a0ee9800c65c0fc8cd88b75b0d8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 12213, "upload_time": "2019-09-24T12:23:38", "url": "https://files.pythonhosted.org/packages/f7/aa/d594eb3822adaba6bad28b618c4351379b6e893f3e0c407d1ec257612e3b/sharefile_api-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "872003de9f7e5a44912c482deef4a561", "sha256": "4d891c8e09c5c451be0d8c5206a65ee9c1e1e7f331ee05fdbc459df33a410275" }, "downloads": -1, "filename": "sharefile-api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "872003de9f7e5a44912c482deef4a561", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 10685, "upload_time": "2019-09-24T12:23:36", "url": "https://files.pythonhosted.org/packages/4b/3a/c4bb41a8b8570698e87be88cf8409eed930bfd0f5baf4c3e255c13bbc36c/sharefile-api-0.1.1.tar.gz" } ] }