Skip to main content

Unofficial StreamTape API wrapper

It is a simple API wrapper for the streaming service streamtape.com. The API documentation can be found on the docs page. The whole structure of the API has been split into different classes for easy overview and usage.

Installation

Install with

pip install streamtape

Usage

General usage

Every class starts with following initialization:

my_var = selectedClass(API_USER_KEY, API_PASSWORD)

API key and password you can get in your account in Account Settings.

General response

For the general purpose of any response, the ApiResponse class has been created to return a dict with this structure:

{
    "status": <status-code>,
    "msg": "<informational message. might vary, use the status code in your code!>",
    "result": <result of the request. varies depending on the request>
}

Account

Example

account = Account(API_USER_KEY, API_PASSWORD)
print(account.get_info())

Convertation

Example

converts = Convertation(API_USER_KEY, API_PASSWORD)
print(converts.list_converts())

FileManager

Class for working with files and folders

Example

f_manager = FileManager(API_USER_KEY, API_PASSWORD)
print(f_manager.list_data())

Remote

Example

remote = Remote(API_USER_KEY, API_PASSWORD)
print(remote.remote_upload("path_to_file", "folder_id"))

Stream

Example

stream = Stream(API_USER_KEY, API_PASSWORD)
print(stream.file_info("file_id"))

Upload

Example

uploader = Upload(API_USER_KEY, API_PASSWORD)
print(uploader.upload("path_to_file", "folder_id"))

Changelog

1.0.0

  • Initial release

1.0.1

  • Fixed variables
  • Fixed upload parameters

1.0.2

1.0.3

  • Revert changes from 1.0.2. It seems it was spam. Sorry. Set your own url with function
    set_api_url
    

Metadata

Release files for streamtape 1.0.3

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

Source distribution (sdist)

Source distribution for streamtape 1.0.3
File Size Uploaded Provenance Actions
streamtape-1.0.3.tar.gz 21.4 kB Without provenance Details for streamtape-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 45.5 kB

Release files / streamtape-1.0.3.tar.gz

Download URL streamtape-1.0.3.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f330c8515bca5e18efa80d6df184af8a73611fbce2612ddb0d0ad389f10092d
BLAKE2b-256 checksum
How to use checksums
c97eea1144abe3f9d14f511f27e015b20bd5b52565e8e6c4a2fa37c655a1b554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / streamtape-1.0.3-py3-none-any.whl

Download URL streamtape-1.0.3-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
300e1bdbdd5f3f2e94b9d6022c71e5a680d77e4a449138c8f43e6daff88c6814
BLAKE2b-256 checksum
How to use checksums
1246675a9b18eaf47d925d840b17ec7c47d2f486f5a4fe4e2c353c543679f3e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Security for streamtape 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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