hyperthought


Namehyperthought JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://gitlab.com/hyperthought/hyperthought-easy-api
SummaryWrappers for HyperThought® API
upload_time2024-06-12 13:42:49
maintainerNone
docs_urlNone
authorJason Thiese
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ============
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/12/86/b64f92ee7c29adc8acfbc3b191ab7f01dc4d09b25e59422a20b9d0d8eae3/hyperthought-1.2.2.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\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Wrappers for HyperThought\u00ae API",
    "version": "1.2.2",
    "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": "bbb17e6d3e5ead19ab891ba2af03f57683bef97f0498ebf128a4f2dca8b57ac3",
                "md5": "c44db5d16a87d84c5b9d496a1f34ee98",
                "sha256": "6a194ba1dff7a9eaebe972225355eb9f65cbc8e2c4695f05baf0297760c1b5df"
            },
            "downloads": -1,
            "filename": "hyperthought-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c44db5d16a87d84c5b9d496a1f34ee98",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 72574,
            "upload_time": "2024-06-12T13:42:47",
            "upload_time_iso_8601": "2024-06-12T13:42:47.649811Z",
            "url": "https://files.pythonhosted.org/packages/bb/b1/7e6d3e5ead19ab891ba2af03f57683bef97f0498ebf128a4f2dca8b57ac3/hyperthought-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1286b64f92ee7c29adc8acfbc3b191ab7f01dc4d09b25e59422a20b9d0d8eae3",
                "md5": "19239fa9e0ce2d1836ba05d5259dac6d",
                "sha256": "e8a3b60b468c7ce87fbb9751fbf80316c9701d6bc2edc8762cb6f055622c5957"
            },
            "downloads": -1,
            "filename": "hyperthought-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "19239fa9e0ce2d1836ba05d5259dac6d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 67273,
            "upload_time": "2024-06-12T13:42:49",
            "upload_time_iso_8601": "2024-06-12T13:42:49.422864Z",
            "url": "https://files.pythonhosted.org/packages/12/86/b64f92ee7c29adc8acfbc3b191ab7f01dc4d09b25e59422a20b9d0d8eae3/hyperthought-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-12 13:42:49",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "hyperthought",
    "gitlab_project": "hyperthought-easy-api",
    "lcname": "hyperthought"
}
        
Elapsed time: 0.22924s