============
hyperthought
============
Modules that encapsulate HyperThought API calls and make
operations like authentication and file transfer (upload
or download) easier to accomplish.
Description
===========
Example usage:
Here is the code needed to upload a file to a HyperThought workspace.
.. code-block:: python
from getpass import getpass
import hyperthought as ht
auth_info = getpass("Enter encoded auth info from your HyperThought profile page: ")
auth = ht.auth.Authorization(auth_info)
files_api = ht.api.files.FilesAPI(auth)
# space_id can be found in the url for the workspace
# e.g. https://www.hyperthought.io/workspace/<space_id>/detail
space_id = input("Enter destination project id (in url of project): ")
# Create a folder.
# Use default (root) path and don't specify any metadata for the folder.
# (See method docstring for info on unused parameters.)
folder_id = files_api.create_folder(
name="Tests",
space_id=space_id,
)
# Get a path for the file.
# Paths consist of comma-separated parent folder ids.
path = f",{folder_id},"
local_file_path = input("Enter path to local file: ")
files_api.upload(
local_path=local_file_path,
space_id=space_id,
path=path,
)
# Look in the HyperThought UI to see the uploaded file.
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/hyperthought/hyperthought-easy-api",
"name": "hyperthought",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Jason Thiese",
"author_email": "jasonthiese@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bb/5f/53559fb316ab1d79828e54ca2db0607a387c5b2fae5623b8bd49d6b04f39/hyperthought-1.2.1.tar.gz",
"platform": null,
"description": "============\nhyperthought\n============\n\n\nModules that encapsulate HyperThought API calls and make\noperations like authentication and file transfer (upload\nor download) easier to accomplish.\n\nDescription\n===========\n\nExample usage:\n\nHere is the code needed to upload a file to a HyperThought workspace.\n\n.. code-block:: python\n\n from getpass import getpass\n import hyperthought as ht\n\n auth_info = getpass(\"Enter encoded auth info from your HyperThought profile page: \")\n auth = ht.auth.Authorization(auth_info)\n files_api = ht.api.files.FilesAPI(auth)\n\n # space_id can be found in the url for the workspace\n # e.g. https://www.hyperthought.io/workspace/<space_id>/detail\n space_id = input(\"Enter destination project id (in url of project): \")\n\n # Create a folder.\n # Use default (root) path and don't specify any metadata for the folder.\n # (See method docstring for info on unused parameters.)\n folder_id = files_api.create_folder(\n name=\"Tests\",\n space_id=space_id,\n )\n\n # Get a path for the file.\n # Paths consist of comma-separated parent folder ids.\n path = f\",{folder_id},\"\n\n local_file_path = input(\"Enter path to local file: \")\n files_api.upload(\n local_path=local_file_path,\n space_id=space_id,\n path=path,\n )\n # Look in the HyperThought UI to see the uploaded file.\n",
"bugtrack_url": null,
"license": null,
"summary": "Wrappers for HyperThought\u00ae API",
"version": "1.2.1",
"project_urls": {
"Bug Tracker": "https://gitlab.com/hyperthought/hyperthought-easy-api/issues",
"Homepage": "https://gitlab.com/hyperthought/hyperthought-easy-api"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "70bb7568f1c34f796204289822c534329634d5f076950bbd837952d669f0c942",
"md5": "5d4c96ce65ec2459eabf50cc45bd7645",
"sha256": "71b377bf87c682c3d0a88e52cbc816cba020c60952af8af8a35613e76ab058f6"
},
"downloads": -1,
"filename": "hyperthought-1.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5d4c96ce65ec2459eabf50cc45bd7645",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 68966,
"upload_time": "2024-04-22T18:21:32",
"upload_time_iso_8601": "2024-04-22T18:21:32.613884Z",
"url": "https://files.pythonhosted.org/packages/70/bb/7568f1c34f796204289822c534329634d5f076950bbd837952d669f0c942/hyperthought-1.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bb5f53559fb316ab1d79828e54ca2db0607a387c5b2fae5623b8bd49d6b04f39",
"md5": "b36e0669e33463b81da2db8141becf07",
"sha256": "1a773bf8ee1322fad6217867e9afbbe1f25bd1f151dde9920ba942fcae25f2e2"
},
"downloads": -1,
"filename": "hyperthought-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "b36e0669e33463b81da2db8141becf07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 66302,
"upload_time": "2024-04-22T18:21:34",
"upload_time_iso_8601": "2024-04-22T18:21:34.505105Z",
"url": "https://files.pythonhosted.org/packages/bb/5f/53559fb316ab1d79828e54ca2db0607a387c5b2fae5623b8bd49d6b04f39/hyperthought-1.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-22 18:21:34",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "hyperthought",
"gitlab_project": "hyperthought-easy-api",
"lcname": "hyperthought"
}