pyuptobox


Namepyuptobox JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/hyugogirubato/pyuptobox
SummaryPython client for the Uptobox API.
upload_time2023-06-11 12:55:11
maintainer
docs_urlNone
authorhyugogirubato
requires_python>=3.7
licenseGPL-3.0-only
keywords client uptobox cloudstorage uptostream
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyUptobox

[![License](https://img.shields.io/github/license/hyugogirubato/pyuptobox)](https://github.com/hyugogirubato/pyuptobox/blob/main/LICENSE)
[![Release](https://img.shields.io/github/release-date/hyugogirubato/pyuptobox)](https://github.com/hyugogirubato/pyuptobox/releases)
[![Latest Version](https://img.shields.io/pypi/v/pyuptobox)](https://pypi.org/project/pyuptobox/)

PyUptobox is a Python client for the Uptobox API. It provides convenient methods for authentication, file management,
and file download/upload operations with Uptobox, a popular file hosting service.

## Features

- Authenticate with Uptobox using login credentials or token
- Get user account information
- Set various user settings (SSL download, direct download, etc.)
- Manage files and folders (create, delete, move, rename)
- Retrieve file information and download links
- Upload files to Uptobox
- Get streaming links and transcode files
- and more...

## Installation

You can install PyUptobox using pip:

````shell
pip install pyuptobox
````

## Usage

Here's an example of how to use the PyUptobox library:

```python
from pyuptobox.client import Client
from pyuptobox.utils import get_code, get_size

# Create client
client = Client()

# Login
client.login(token="YOUR_USER_TOKEN")

# Get file code
file_code = get_code(value="https://uptobox.com/your-file-url")

# Get file info
info = client.get_files_info(file_codes=[file_code])[0]
file_size = get_size(info["file_size"])

# Get file download link
link = client.get_file_link(file_code=file_code)["dlLink"]

print("File Name: {}".format(info["file_name"]))
print("File Size: {}".format(file_size))
print("Download Link: {}".format(link))

```

For more information on how to use PyUptobox, please refer to the [documentation](https://docs.uptobox.com).

## Disclaimer

PyUptobox is an unofficial library and is not affiliated with or endorsed by Uptobox or Uptostream. The library is
provided "as is" without any warranty, and the usage of this library is at your own risk. Make sure to comply with the
terms and conditions of the Uptobox service while using this library.

### License

This project is licensed under the [GPL v3 License](https://github.com/hyugogirubato/pyuptobox/blob/main/LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hyugogirubato/pyuptobox",
    "name": "pyuptobox",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "client,uptobox,cloudstorage,uptostream",
    "author": "hyugogirubato",
    "author_email": "hyugogirubato@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f4/d3/34095c2303df1ad8198cb956aa5dce9fa12500f93993630b3978c0ebb883/pyuptobox-1.1.0.tar.gz",
    "platform": null,
    "description": "# PyUptobox\r\n\r\n[![License](https://img.shields.io/github/license/hyugogirubato/pyuptobox)](https://github.com/hyugogirubato/pyuptobox/blob/main/LICENSE)\r\n[![Release](https://img.shields.io/github/release-date/hyugogirubato/pyuptobox)](https://github.com/hyugogirubato/pyuptobox/releases)\r\n[![Latest Version](https://img.shields.io/pypi/v/pyuptobox)](https://pypi.org/project/pyuptobox/)\r\n\r\nPyUptobox is a Python client for the Uptobox API. It provides convenient methods for authentication, file management,\r\nand file download/upload operations with Uptobox, a popular file hosting service.\r\n\r\n## Features\r\n\r\n- Authenticate with Uptobox using login credentials or token\r\n- Get user account information\r\n- Set various user settings (SSL download, direct download, etc.)\r\n- Manage files and folders (create, delete, move, rename)\r\n- Retrieve file information and download links\r\n- Upload files to Uptobox\r\n- Get streaming links and transcode files\r\n- and more...\r\n\r\n## Installation\r\n\r\nYou can install PyUptobox using pip:\r\n\r\n````shell\r\npip install pyuptobox\r\n````\r\n\r\n## Usage\r\n\r\nHere's an example of how to use the PyUptobox library:\r\n\r\n```python\r\nfrom pyuptobox.client import Client\r\nfrom pyuptobox.utils import get_code, get_size\r\n\r\n# Create client\r\nclient = Client()\r\n\r\n# Login\r\nclient.login(token=\"YOUR_USER_TOKEN\")\r\n\r\n# Get file code\r\nfile_code = get_code(value=\"https://uptobox.com/your-file-url\")\r\n\r\n# Get file info\r\ninfo = client.get_files_info(file_codes=[file_code])[0]\r\nfile_size = get_size(info[\"file_size\"])\r\n\r\n# Get file download link\r\nlink = client.get_file_link(file_code=file_code)[\"dlLink\"]\r\n\r\nprint(\"File Name: {}\".format(info[\"file_name\"]))\r\nprint(\"File Size: {}\".format(file_size))\r\nprint(\"Download Link: {}\".format(link))\r\n\r\n```\r\n\r\nFor more information on how to use PyUptobox, please refer to the [documentation](https://docs.uptobox.com).\r\n\r\n## Disclaimer\r\n\r\nPyUptobox is an unofficial library and is not affiliated with or endorsed by Uptobox or Uptostream. The library is\r\nprovided \"as is\" without any warranty, and the usage of this library is at your own risk. Make sure to comply with the\r\nterms and conditions of the Uptobox service while using this library.\r\n\r\n### License\r\n\r\nThis project is licensed under the [GPL v3 License](https://github.com/hyugogirubato/pyuptobox/blob/main/LICENSE).\r\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-only",
    "summary": "Python client for the Uptobox API.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/hyugogirubato/pyuptobox"
    },
    "split_keywords": [
        "client",
        "uptobox",
        "cloudstorage",
        "uptostream"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4d334095c2303df1ad8198cb956aa5dce9fa12500f93993630b3978c0ebb883",
                "md5": "cbe3abb4a9c0d545c478a1571b6e6f5c",
                "sha256": "ef8869ad6d35874dd7702f87ef8c8f27f09cd823274fad61330d50bfdd243039"
            },
            "downloads": -1,
            "filename": "pyuptobox-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cbe3abb4a9c0d545c478a1571b6e6f5c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 18552,
            "upload_time": "2023-06-11T12:55:11",
            "upload_time_iso_8601": "2023-06-11T12:55:11.504321Z",
            "url": "https://files.pythonhosted.org/packages/f4/d3/34095c2303df1ad8198cb956aa5dce9fa12500f93993630b3978c0ebb883/pyuptobox-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-11 12:55:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hyugogirubato",
    "github_project": "pyuptobox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyuptobox"
}
        
Elapsed time: 0.36539s