# 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](https://hxfile.docs.apiary.io/) plus downloader `download1`, `download2`, `generate`
```bash
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:
```bash
hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i m13uao5l10rt
hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i https://hxfile.co/m13uao5l10rt
```
```python
>>> 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](mailto:cumulus13@gmail.com)
Raw data
{
"_id": null,
"home_page": "https://github.com/cumulus13/hxfile",
"name": "hxfile",
"maintainer": "",
"docs_url": null,
"requires_python": ">=2.7",
"maintainer_email": "",
"keywords": "hxfile,api,unoffcial,link generator,generator,download,downloader,cloud,file manager,cli,command line,unofficial HXFILE API (still maintenance, open contributor",
"author": "Hadi Cahyadi LD",
"author_email": "cumulus13@gmail.com",
"download_url": "https://github.com/cumulus13/hxfile/tarball/master",
"platform": null,
"description": "# HXfile\n--------------------\n \nHxfile Unofficial API\n \n \n## requirements\n-------------------\n- pip \n - unidecode\n - configset\n - parserheader\n - requests\n - bs4\n - bitmath\n - clipboard\n\n- for development:\n - pydebuger\n - jsoncolor\n\n- for notification:\n - xnotify\n \n## usage\n----------------\n \nall functions same as on [api documentation](https://hxfile.docs.apiary.io/) plus downloader `download1`, `download2`, `generate`\n\n```bash\nusage: hxfile [-h] [-d [DOWNLOAD ...]] [-m METHOD] [-p DOWNLOAD_PATH] [-n SAVE_AS] [-i INFO] [-I] [-S ACCOUNT_STAT] [-u UPLOAD]\n [-l] [-L LIST_FOLDER] [-r RENAME_FILE RENAME_FILE] [-R RENAME_FOLDER RENAME_FOLDER] [-c CLONE] [-M MOVE MOVE]\n [-C MKDIR MKDIR] [-sd] [--api-key API_KEY] [--api-key-temp API_KEY_TEMP] [-g [GENERATE ...]] [--clip]\n\noptional arguments:\n -h, --help show this help message and exit\n -d [DOWNLOAD ...], --download [DOWNLOAD ...]\n Download by given url or id/filecode, you can change use method \"1\" or \"2\" with -m/--method, default\n method is \"2\"\n -m METHOD, --method METHOD\n Download/Generate method: \"2\" download/generate url without API_KEY needed, but you must still input\n API_KEY to config file \"hxfile.ini\" for other function requirement, \"1\" download/generate with API_KEY\n flow check your file --> if not exists --> clone --> generate direct_link\n -p DOWNLOAD_PATH, --download-path DOWNLOAD_PATH\n Save download action file to directory\n -n SAVE_AS, --save-as SAVE_AS\n Download save as\n -i INFO, --info INFO Get File info\n -I, --account-info Get Account Info\n -S ACCOUNT_STAT, --account-stat ACCOUNT_STAT\n Get Account Info Statistics\n -u UPLOAD, --upload UPLOAD\n Upload file\n -l, --list-file List all files\n -L LIST_FOLDER, --list-folder LIST_FOLDER\n List all folder\n -r RENAME_FILE RENAME_FILE, --rename-file RENAME_FILE RENAME_FILE\n Rename file\n -R RENAME_FOLDER RENAME_FOLDER, --rename-folder RENAME_FOLDER RENAME_FOLDER\n Rename folder\n -c CLONE, --clone CLONE\n Clone/Copy file from public link as youre file\n -M MOVE MOVE, --move MOVE MOVE\n Move file to folder\n -C MKDIR MKDIR, --mkdir MKDIR MKDIR\n Create new Folder\n -sd, --show-deleted Show files delete along for x days\n --api-key API_KEY set API_KEY\n --api-key-temp API_KEY_TEMP\n set API_KEY as temporary key\n -g [GENERATE ...], --generate [GENERATE ...]\n Generate link/id as direct download link\n --clip Copy direct download url to clipboard\n```\n \n* example:\n```bash\n hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i m13uao5l10rt\n hxfile --api-key-temp 4534wit9lvakdohxjdv6 -i https://hxfile.co/m13uao5l10rt\n```\n```python\n>>> from hxfile import Hxfile\n>>> id = \"m13uao5l10rt\" # or https://hxfile.co/m13uao5l10rt\n>>> Hxfile.file_info(id) # or\n>>> h = Hxfile()\n>>> h.file_info(id) # or\n>>> Hxfile().file_info(id)\n>>> # direct download without API_KEY\n>>> Hxfile.download1(id)\n>>> # direct download with API_KEY requirement\n>>> Hxfile.download2(id)\n>>> #generate only, not download\n>>> Hxfile.generate(id)\n```\n\ndownloader support 'idm' (windows), 'wget/aria2c/persepoli' (linux), if error then downloader use `pywget` (all)\n \n## author\n---------\n[cumulus13](mailto:cumulus13@gmail.com)\n \n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "unofficial HXFILE API (still maintenance, open contributor)",
"version": "0.13",
"split_keywords": [
"hxfile",
"api",
"unoffcial",
"link generator",
"generator",
"download",
"downloader",
"cloud",
"file manager",
"cli",
"command line",
"unofficial hxfile api (still maintenance",
" open contributor"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "51887718c26bf6eefd5a5c7b94e6d28e",
"sha256": "66a22a143d1ac258be887504cb1195db1c6086ecffdf1c9fdb968f58d70a2d3a"
},
"downloads": -1,
"filename": "hxfile-0.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51887718c26bf6eefd5a5c7b94e6d28e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=2.7",
"size": 14212,
"upload_time": "2022-12-19T06:11:49",
"upload_time_iso_8601": "2022-12-19T06:11:49.949563Z",
"url": "https://files.pythonhosted.org/packages/8a/fd/42a5a63e9c6f77a163a16109ffdf2af20d22159a00f7e20a5bfce414a17b/hxfile-0.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-19 06:11:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "cumulus13",
"github_project": "hxfile",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "unidecode",
"specs": []
},
{
"name": "configset",
"specs": []
},
{
"name": "parserheader",
"specs": []
},
{
"name": "requests",
"specs": []
},
{
"name": "bs4",
"specs": []
},
{
"name": "bitmath",
"specs": []
},
{
"name": "clipboard",
"specs": []
}
],
"lcname": "hxfile"
}