# <h1 align="center"><a href="https://filemoon.sx">FileMoon</a></h1>
FileMoon is a video hosting service were you can upload videos, share & make money.
Don't Have Account? Register <a href="https://filemoon.sx/register">Here</a>
<h2>Features</h2>
- HLS Streaming
- Unlimited Storage
- Faster Encoding
- Subtitles Support
- Premium bandwidth
<hr style="border-top: 3px solid #000;">
# <h1 align="center"><a href="https://filemoon.sx">FileMoon</a> API Python Wrapper</h1>
This is a Python wrapper for the FileMoon API. It allows you to interact with various endpoints of the FileMoon service to manage files, accounts, and other related operations.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Methods](#methods)
- [Account Information](#account-information)
- [Account Statistics](#account-statistics)
- [DMCA List](#dmca-list)
- [Deleted Files List](#deleted-files-list)
- [Remote Upload](#remote-upload)
- [Remove Remote Upload](#remove-remote-upload)
- [Remote Upload Status](#remote-upload-status)
- [File Information](#file-information)
- [File List](#file-list)
- [Clone File](#clone-file)
- [Folder List](#folder-list)
- [Create Folder](#create-folder)
- [Encoding Operations](#encoding-operations)
- [Image Operations](#image-operations)
- [Video Preview](#video-preview)
- [Remote Subtitle Management](#remote-subtitle-management)
- [Server Management](#server-management)
## Installation
```bash
pip install filemoon
```
## Usage
```python
from filemoon import FileMoon
# Initialize with your API key
filemoon = FileMoon(api_key='YOUR_API_KEY')
# Get account info
info = filemoon.info()
print(info)
```
## Methods
### Account Information
<details>
<summary>Get basic info of your account</summary>
```python
info = filemoon.info()
print(info)
```
</details>
### Account Statistics
<details>
<summary>Get reports of your account (default last 7 days)</summary>
```python
stats = filemoon.stats(last='7')
print(stats)
```
</details>
### DMCA List
<details>
<summary>Get DMCA reported files list (500 results per page)</summary>
```python
dmca = filemoon.dmca(last='7')
print(dmca)
```
</details>
### Deleted Files List
<details>
<summary>Get deleted files list (500 results per page)</summary>
```python
deleted = filemoon.deleted(last='7')
print(deleted)
```
</details>
### Remote Upload
<details>
<summary>Upload files using direct links</summary>
```python
upload = filemoon.remote_upload(direct_link='https://example.com/file.mp4')
print(upload)
```
Optional parameter `fld_id` can be used to specify the folder ID.
```python
upload = filemoon.remote_upload(direct_link='https://example.com/file.mp4', fld_id='FOLDER_ID')
print(upload)
```
</details>
### Remove Remote Upload
<details>
<summary>To remove remote upload</summary>
```python
remove = filemoon.remove_rup(file_code='FILE_CODE')
print(remove)
```
</details>
### Remote Upload Status
<details>
<summary>To check remote upload status</summary>
```python
status = filemoon.rup_status(file_code='FILE_CODE')
print(status)
```
</details>
### File Information
<details>
<summary>To get file information</summary>
```python
f_info = filemoon.f_info(file_code='FILE_CODE')
print(f_info)
```
</details>
### File List
<details>
<summary>To list files</summary>
```python
f_list = filemoon.f_list(name='example', per_page='10', page='1')
print(f_list)
```
Optional parameters:
- `fld_id`: Folder ID to list files from
- `name`: To fetch a file by name
- `created`: To fetch by created date
- `public`: To fetch by public media
- `per_page`: To fetch by per page
- `page`: To fetch by page
</details>
### Clone File
<details>
<summary>To clone a file</summary>
```python
clone = filemoon.clone_f(file_code='FILE_CODE')
print(clone)
```
Optional parameter `fld_id` can be used to specify the folder ID.
```python
clone = filemoon.clone_f(file_code='FILE_CODE', fld_id='FOLDER_ID')
print(clone)
```
</details>
### Folder List
<details>
<summary>To get folder list</summary>
```python
folders = filemoon.fld_list(fld_id='FOLDER_ID')
print(folders)
```
Optional parameter `fld_id` can be used to specify the folder ID.
</details>
### Create Folder
<details>
<summary>To create a folder</summary>
```python
new_folder = filemoon.create_fld(name='New Folder')
print(new_folder)
```
Optional parameter `parent_id` can be used to specify the parent folder ID.
```python
new_folder = filemoon.create_fld(name='New Folder', parent_id='PARENT_ID')
print(new_folder)
```
</details>
### Encoding Operations
<details>
<summary>Get encoding list</summary>
```python
encoding_list = filemoon.en_list()
print(encoding_list)
```
</details>
<details>
<summary>Get encoding status</summary>
```python
status = filemoon.en_status(file_code='FILE_CODE')
print(status)
```
</details>
<details>
<summary>Restart encoding error files</summary>
```python
restart = filemoon.restart_en_error(file_code='FILE_CODE')
print(restart)
```
</details>
<details>
<summary>Delete encoding error files</summary>
```python
delete = filemoon.delete_en_error(file_code='FILE_CODE')
print(delete)
```
</details>
### Image Operations
<details>
<summary>Get thumbnail image URL</summary>
```python
thumbnail = filemoon.thumb(file_code='FILE_CODE')
print(thumbnail)
```
</details>
<details>
<summary>Get splash image</summary>
```python
splash = filemoon.splash(file_code='FILE_CODE')
print(splash)
```
</details>
### Video Preview
<details>
<summary>Get video preview of specific file</summary>
```python
preview = filemoon.vid_preview(file_code='FILE_CODE')
print(preview)
```
</details>
### Remote Subtitle Management
<details>
<summary>Add a remote subtitle</summary>
```python
subtitle = filemoon.r_sub(subnum='1', sub_url='https://example.com/subtitle.srt', sub_name='English Subtitles')
print(subtitle)
```
</details>
<details>
<summary>Add remote subtitle in JSON format</summary>
```python
json_subtitle = filemoon.r_subjs(sub_js='{"subtitles": [{"url": "https://example.com/subtitle.srt", "label": "English"}]}')
print(json_subtitle)
```
</details>
<details>
<summary>Add a remote poster</summary>
```python
poster = filemoon.r_post(r_post='https://example.com/poster.jpg')
print(poster)
```
</details>
<details>
<summary>Add a remote logo</summary>
```python
logo = filemoon.r_logo(r_logo='https://example.com/logo.png')
print(logo)
```
</details>
### Server Management
<details>
<summary>Get upload server URL</summary>
```python
upload_server = filemoon.up_server()
print(upload_server)
```
</details>
## License
This project is licensed under the MIT License.
## Contributing
Feel free to submit issues and pull requests to improve the codebase. All contributions are welcome!
## Author
Your Name - [BalaPriyan](https://github.com/BalaPriyan)
<hr style="border-top: 3px solid #000;">
Raw data
{
"_id": null,
"home_page": "https://github.com/BalaPriyan/filemoon",
"name": "filemoon",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "api, filemoon, video, hosting",
"author": "balapriyan",
"author_email": "balapriyanbalusamy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ab/14/7577f55df247da323465ecc3b6968272351a7cd5d432ccf30538f86a7a26/filemoon-0.2.6.tar.gz",
"platform": null,
"description": "# <h1 align=\"center\"><a href=\"https://filemoon.sx\">FileMoon</a></h1>\n\nFileMoon is a video hosting service were you can upload videos, share & make money.\n\nDon't Have Account? Register <a href=\"https://filemoon.sx/register\">Here</a>\n\n<h2>Features</h2>\n - HLS Streaming\n - Unlimited Storage\n - Faster Encoding\n - Subtitles Support\n - Premium bandwidth\n\n <hr style=\"border-top: 3px solid #000;\">\n\n\n# <h1 align=\"center\"><a href=\"https://filemoon.sx\">FileMoon</a> API Python Wrapper</h1>\n\nThis is a Python wrapper for the FileMoon API. It allows you to interact with various endpoints of the FileMoon service to manage files, accounts, and other related operations.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Methods](#methods)\n - [Account Information](#account-information)\n - [Account Statistics](#account-statistics)\n - [DMCA List](#dmca-list)\n - [Deleted Files List](#deleted-files-list)\n - [Remote Upload](#remote-upload)\n - [Remove Remote Upload](#remove-remote-upload)\n - [Remote Upload Status](#remote-upload-status)\n - [File Information](#file-information)\n - [File List](#file-list)\n - [Clone File](#clone-file)\n - [Folder List](#folder-list)\n - [Create Folder](#create-folder)\n - [Encoding Operations](#encoding-operations)\n - [Image Operations](#image-operations)\n - [Video Preview](#video-preview)\n - [Remote Subtitle Management](#remote-subtitle-management)\n - [Server Management](#server-management)\n\n## Installation\n\n```bash\npip install filemoon\n```\n\n## Usage\n\n```python\nfrom filemoon import FileMoon\n\n# Initialize with your API key\nfilemoon = FileMoon(api_key='YOUR_API_KEY')\n\n# Get account info\ninfo = filemoon.info()\nprint(info)\n```\n\n## Methods\n\n### Account Information\n\n<details>\n <summary>Get basic info of your account</summary>\n\n```python\ninfo = filemoon.info()\nprint(info)\n```\n\n</details>\n\n### Account Statistics\n\n<details>\n <summary>Get reports of your account (default last 7 days)</summary>\n\n```python\nstats = filemoon.stats(last='7')\nprint(stats)\n```\n\n</details>\n\n### DMCA List\n\n<details>\n <summary>Get DMCA reported files list (500 results per page)</summary>\n\n```python\ndmca = filemoon.dmca(last='7')\nprint(dmca)\n```\n\n</details>\n\n### Deleted Files List\n\n<details>\n <summary>Get deleted files list (500 results per page)</summary>\n\n```python\ndeleted = filemoon.deleted(last='7')\nprint(deleted)\n```\n\n</details>\n\n### Remote Upload\n\n<details>\n <summary>Upload files using direct links</summary>\n\n```python\nupload = filemoon.remote_upload(direct_link='https://example.com/file.mp4')\nprint(upload)\n```\n\nOptional parameter `fld_id` can be used to specify the folder ID.\n\n```python\nupload = filemoon.remote_upload(direct_link='https://example.com/file.mp4', fld_id='FOLDER_ID')\nprint(upload)\n```\n\n</details>\n\n### Remove Remote Upload\n\n<details>\n <summary>To remove remote upload</summary>\n\n```python\nremove = filemoon.remove_rup(file_code='FILE_CODE')\nprint(remove)\n```\n\n</details>\n\n### Remote Upload Status\n\n<details>\n <summary>To check remote upload status</summary>\n\n```python\nstatus = filemoon.rup_status(file_code='FILE_CODE')\nprint(status)\n```\n\n</details>\n\n### File Information\n\n<details>\n <summary>To get file information</summary>\n\n```python\nf_info = filemoon.f_info(file_code='FILE_CODE')\nprint(f_info)\n```\n\n</details>\n\n### File List\n\n<details>\n <summary>To list files</summary>\n\n```python\nf_list = filemoon.f_list(name='example', per_page='10', page='1')\nprint(f_list)\n```\n\nOptional parameters:\n- `fld_id`: Folder ID to list files from\n- `name`: To fetch a file by name\n- `created`: To fetch by created date\n- `public`: To fetch by public media\n- `per_page`: To fetch by per page\n- `page`: To fetch by page\n\n</details>\n\n### Clone File\n\n<details>\n <summary>To clone a file</summary>\n\n```python\nclone = filemoon.clone_f(file_code='FILE_CODE')\nprint(clone)\n```\n\nOptional parameter `fld_id` can be used to specify the folder ID.\n\n```python\nclone = filemoon.clone_f(file_code='FILE_CODE', fld_id='FOLDER_ID')\nprint(clone)\n```\n\n</details>\n\n### Folder List\n\n<details>\n <summary>To get folder list</summary>\n\n```python\nfolders = filemoon.fld_list(fld_id='FOLDER_ID')\nprint(folders)\n```\n\nOptional parameter `fld_id` can be used to specify the folder ID.\n\n</details>\n\n### Create Folder\n\n<details>\n <summary>To create a folder</summary>\n\n```python\nnew_folder = filemoon.create_fld(name='New Folder')\nprint(new_folder)\n```\n\nOptional parameter `parent_id` can be used to specify the parent folder ID.\n\n```python\nnew_folder = filemoon.create_fld(name='New Folder', parent_id='PARENT_ID')\nprint(new_folder)\n```\n\n</details>\n\n### Encoding Operations\n\n<details>\n <summary>Get encoding list</summary>\n\n```python\nencoding_list = filemoon.en_list()\nprint(encoding_list)\n```\n\n</details>\n\n<details>\n <summary>Get encoding status</summary>\n\n```python\nstatus = filemoon.en_status(file_code='FILE_CODE')\nprint(status)\n```\n\n</details>\n\n<details>\n <summary>Restart encoding error files</summary>\n\n```python\nrestart = filemoon.restart_en_error(file_code='FILE_CODE')\nprint(restart)\n```\n\n</details>\n\n<details>\n <summary>Delete encoding error files</summary>\n\n```python\ndelete = filemoon.delete_en_error(file_code='FILE_CODE')\nprint(delete)\n```\n\n</details>\n\n### Image Operations\n\n<details>\n <summary>Get thumbnail image URL</summary>\n\n```python\nthumbnail = filemoon.thumb(file_code='FILE_CODE')\nprint(thumbnail)\n```\n\n</details>\n\n<details>\n <summary>Get splash image</summary>\n\n```python\nsplash = filemoon.splash(file_code='FILE_CODE')\nprint(splash)\n```\n\n</details>\n\n### Video Preview\n\n<details>\n <summary>Get video preview of specific file</summary>\n\n```python\npreview = filemoon.vid_preview(file_code='FILE_CODE')\nprint(preview)\n```\n\n</details>\n\n### Remote Subtitle Management\n\n<details>\n <summary>Add a remote subtitle</summary>\n\n```python\nsubtitle = filemoon.r_sub(subnum='1', sub_url='https://example.com/subtitle.srt', sub_name='English Subtitles')\nprint(subtitle)\n```\n\n</details>\n\n<details>\n <summary>Add remote subtitle in JSON format</summary>\n\n```python\njson_subtitle = filemoon.r_subjs(sub_js='{\"subtitles\": [{\"url\": \"https://example.com/subtitle.srt\", \"label\": \"English\"}]}')\nprint(json_subtitle)\n```\n\n</details>\n\n<details>\n <summary>Add a remote poster</summary>\n\n```python\nposter = filemoon.r_post(r_post='https://example.com/poster.jpg')\nprint(poster)\n```\n\n</details>\n\n<details>\n <summary>Add a remote logo</summary>\n\n```python\nlogo = filemoon.r_logo(r_logo='https://example.com/logo.png')\nprint(logo)\n```\n\n</details>\n\n### Server Management\n\n<details>\n <summary>Get upload server URL</summary>\n\n```python\nupload_server = filemoon.up_server()\nprint(upload_server)\n```\n\n</details>\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contributing\n\nFeel free to submit issues and pull requests to improve the codebase. All contributions are welcome!\n\n## Author\n\nYour Name - [BalaPriyan](https://github.com/BalaPriyan)\n\n<hr style=\"border-top: 3px solid #000;\">\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Unofficial python api wrapper from https://filemoon.sx/api",
"version": "0.2.6",
"project_urls": {
"Homepage": "https://github.com/BalaPriyan/filemoon"
},
"split_keywords": [
"api",
" filemoon",
" video",
" hosting"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1c9a79a736129b05c3f52c8532e85420c92dc704c1d8172ffcce0afb10bc06b5",
"md5": "36472a8ea39717a78a9805a4f95dba62",
"sha256": "c567cf5ef3bd7a5d8d4d751af9ed4000798a825bc336284a808fc84b19b5d06f"
},
"downloads": -1,
"filename": "filemoon-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "36472a8ea39717a78a9805a4f95dba62",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6011,
"upload_time": "2024-08-01T11:36:56",
"upload_time_iso_8601": "2024-08-01T11:36:56.977803Z",
"url": "https://files.pythonhosted.org/packages/1c/9a/79a736129b05c3f52c8532e85420c92dc704c1d8172ffcce0afb10bc06b5/filemoon-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ab147577f55df247da323465ecc3b6968272351a7cd5d432ccf30538f86a7a26",
"md5": "3a8ebd5d259c392fc6262f1c2edffeaf",
"sha256": "2588e9d139783c6dd97e9c54695245fe0ef9443cd826ccb2eeab808fef83b698"
},
"downloads": -1,
"filename": "filemoon-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "3a8ebd5d259c392fc6262f1c2edffeaf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5924,
"upload_time": "2024-08-01T11:36:58",
"upload_time_iso_8601": "2024-08-01T11:36:58.578554Z",
"url": "https://files.pythonhosted.org/packages/ab/14/7577f55df247da323465ecc3b6968272351a7cd5d432ccf30538f86a7a26/filemoon-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-01 11:36:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BalaPriyan",
"github_project": "filemoon",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "filemoon"
}