Skip to main content

Unofficial python api wrapper from https://streamtape.come

Project description

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamtape-1.0.3.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

streamtape-1.0.3-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file streamtape-1.0.3.tar.gz.

File metadata

  • Download URL: streamtape-1.0.3.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for streamtape-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5f330c8515bca5e18efa80d6df184af8a73611fbce2612ddb0d0ad389f10092d
MD5 b9f9af18e078c06b85d64cd36f495a8f
BLAKE2b-256 c97eea1144abe3f9d14f511f27e015b20bd5b52565e8e6c4a2fa37c655a1b554

See more details on using hashes here.

File details

Details for the file streamtape-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: streamtape-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for streamtape-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 300e1bdbdd5f3f2e94b9d6022c71e5a680d77e4a449138c8f43e6daff88c6814
MD5 7f9c2d1d9728f6f2b762906f266b6cea
BLAKE2b-256 1246675a9b18eaf47d925d840b17ec7c47d2f486f5a4fe4e2c353c543679f3e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page