Skip to main content

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.

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.

Metadata

Release files for hyperthought 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperthought 1.2.2
File Size Uploaded
hyperthought-1.2.2.tar.gz 67.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperthought 1.2.2
File Interpreter ABI Platform
hyperthought-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 139.8 kB

Release files / hyperthought-1.2.2.tar.gz

Download URL hyperthought-1.2.2.tar.gz
Size 67.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8a3b60b468c7ce87fbb9751fbf80316c9701d6bc2edc8762cb6f055622c5957
BLAKE2b-256 checksum
How to use checksums
1286b64f92ee7c29adc8acfbc3b191ab7f01dc4d09b25e59422a20b9d0d8eae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release files / hyperthought-1.2.2-py3-none-any.whl

Download URL hyperthought-1.2.2-py3-none-any.whl
Size 72.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a194ba1dff7a9eaebe972225355eb9f65cbc8e2c4695f05baf0297760c1b5df
BLAKE2b-256 checksum
How to use checksums
bbb17e6d3e5ead19ab891ba2af03f57683bef97f0498ebf128a4f2dca8b57ac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.9.42

2 release files

0.9.41

2 release files

0.9.40

2 release files

0.9.39

2 release files

0.9.37

2 release files

0.9.36

2 release files

0.9.30

2 release files

0.9.26

2 release files

0.9.25

2 release files

0.9.24

2 release files

0.9.16

2 release files

0.9.15

2 release files

0.9.13

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9

2 release files

0.3

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page