Skip to main content

unofficial HXFILE API (still maintenance, open contributor)

Project description

HXfile


Hxfile Unofficial API

requirements


  • pip

    • unidecode
    • configset
    • parserheader
    • requests
    • bs4
    • bitmath
    • clipboard
  • for development:

    • pydebuger
    • jsoncolor
  • for notification:

    • xnotify

usage


all functions same as on api documentation plus downloader download1, download2, generate

usage: hxfile [-h] [-d [DOWNLOAD ...]] [-m METHOD] [-p DOWNLOAD_PATH] [-n SAVE_AS] [-i INFO] [-I] [-S ACCOUNT_STAT] [-u UPLOAD]
              [-l] [-L LIST_FOLDER] [-r RENAME_FILE RENAME_FILE] [-R RENAME_FOLDER RENAME_FOLDER] [-c CLONE] [-M MOVE MOVE]
              [-C MKDIR MKDIR] [-sd] [--api-key API_KEY] [--api-key-temp API_KEY_TEMP] [-g [GENERATE ...]] [--clip]

optional arguments:
  -h, --help            show this help message and exit
  -d [DOWNLOAD ...], --download [DOWNLOAD ...]
                        Download by given url or id/filecode, you can change use method "1" or "2" with -m/--method, default
                        method is "2"
  -m METHOD, --method METHOD
                        Download/Generate method: "2" download/generate url without API_KEY needed, but you must still input
                        API_KEY to config file "hxfile.ini" for other function requirement, "1" download/generate with API_KEY
                        flow check your file --> if not exists --> clone --> generate direct_link
  -p DOWNLOAD_PATH, --download-path DOWNLOAD_PATH
                        Save download action file to directory
  -n SAVE_AS, --save-as SAVE_AS
                        Download save as
  -i INFO, --info INFO  Get File info
  -I, --account-info    Get Account Info
  -S ACCOUNT_STAT, --account-stat ACCOUNT_STAT
                        Get Account Info Statistics
  -u UPLOAD, --upload UPLOAD
                        Upload file
  -l, --list-file       List all files
  -L LIST_FOLDER, --list-folder LIST_FOLDER
                        List all folder
  -r RENAME_FILE RENAME_FILE, --rename-file RENAME_FILE RENAME_FILE
                        Rename file
  -R RENAME_FOLDER RENAME_FOLDER, --rename-folder RENAME_FOLDER RENAME_FOLDER
                        Rename folder
  -c CLONE, --clone CLONE
                        Clone/Copy file from public link as youre file
  -M MOVE MOVE, --move MOVE MOVE
                        Move file to folder
  -C MKDIR MKDIR, --mkdir MKDIR MKDIR
                        Create new Folder
  -sd, --show-deleted   Show files delete along for x days
  --api-key API_KEY     set API_KEY
  --api-key-temp API_KEY_TEMP
                        set API_KEY as temporary key
  -g [GENERATE ...], --generate [GENERATE ...]
                        Generate link/id as direct download link
  --clip                Copy direct download url to clipboard
  • example:
    hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i m13uao5l10rt
    hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i https://hxfile.co/m13uao5l10rt
>>> from hxfile import Hxfile
>>> id = "m13uao5l10rt" # or https://hxfile.co/m13uao5l10rt
>>> Hxfile.file_info(id) # or
>>> h = Hxfile()
>>> h.file_info(id) # or
>>> Hxfile().file_info(id)
>>> # direct download without API_KEY
>>> Hxfile.download1(id)
>>> # direct download with API_KEY requirement
>>> Hxfile.download2(id)
>>> #generate only, not download
>>> Hxfile.generate(id)

downloader support 'idm' (windows), 'wget/aria2c/persepoli' (linux), if error then downloader use pywget (all)

author


cumulus13

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

hxfile-0.15.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

hxfile-0.15-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file hxfile-0.15.tar.gz.

File metadata

  • Download URL: hxfile-0.15.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.28.1 setuptools/61.2.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for hxfile-0.15.tar.gz
Algorithm Hash digest
SHA256 7d8ca7d9037ab9496bfb796fcacbd8b707d035b193fa585b8c26f7562764a5f5
MD5 ac1fd8c9d13bd9654c413a5d996c4211
BLAKE2b-256 9fde67a1714264779c6c62eb4d96ca90b1ebee1c0058de2931d380d5aa28fe1b

See more details on using hashes here.

File details

Details for the file hxfile-0.15-py3-none-any.whl.

File metadata

  • Download URL: hxfile-0.15-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.28.1 setuptools/61.2.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for hxfile-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b14bd6e4212a71248d4dbaab3b27c46118a7a1ac3fddb4aacd7e378cb479f5
MD5 e5972bdabe0ec956fcc63de683751c0a
BLAKE2b-256 5a83c7fe962010271be180f0d8cb2f5a59fa567b82971fb272245bbcdc35fdc4

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