Fox API
Project description
foxinternalclient
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.
To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit.
The requests may be logged for analytics and development purposes.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 5.2.0
- Package version: 5.2.0
- Generator version: 7.13.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import foxinternalclient
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import foxinternalclient
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import foxinternalclient
from foxinternalclient.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.orangefox.download
# See configuration.py for a list of all supported configuration parameters.
configuration = foxinternalclient.Configuration(
host = "https://api.orangefox.download"
)
# Enter a context with an instance of the API client
async with foxinternalclient.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = foxinternalclient.DeviceApi(api_client)
device_id = foxinternalclient.AnyOf() # AnyOf | (optional)
id = foxinternalclient.AnyOf() # AnyOf | Filter by Device ID (deprecated) (optional)
codename = 'codename_example' # str | Not recommended to use when you can (optional)
try:
# Get Device
api_response = await api_instance.get_device_devices_get_get(device_id=device_id, id=id, codename=codename)
print("The response of DeviceApi->get_device_devices_get_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceApi->get_device_devices_get_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.orangefox.download
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DeviceApi | get_device_devices_get_get | GET /devices/get | Get Device |
| DeviceApi | get_device_short_devices_device_id_get | GET /devices/{device_id} | Get Device Short |
| DeviceApi | get_devices_devices_get | GET /devices/ | Get Devices |
| DeviceApi | get_oems_list_oems_get | GET /oems/ | Get Oems List |
| FoxFactoryApi | cancel_task_factory_task_id_cancel_post | POST /factory/{task_id}/cancel | Cancel Task |
| FoxFactoryApi | delete_task_factory_task_id_delete | DELETE /factory/{task_id} | Delete Task |
| FoxFactoryApi | factory_status_factory_status_get | GET /factory/status | Factory Status |
| FoxFactoryApi | get_task_factory_task_id_get | GET /factory/{task_id} | Get Task |
| FoxFactoryApi | list_tasks_factory_get | GET /factory/ | List Tasks |
| FoxFactoryApi | new_task_factory_post | POST /factory/ | New Task |
| FoxFactoryApi | update_task_factory_task_id_patch | PATCH /factory/{task_id} | Update Task |
| GitlabApi | device_add_gitlab_repo_gitlab_device_device_id_gitlab_post | POST /gitlab/device/{device_id}/gitlab | Device Add Gitlab Repo |
| InternalApi | change_password_profile_change_password_post | POST /profile/change_password | Change Password |
| InternalApi | del_release_internal_releases_release_id_delete | DELETE /internal/releases/{release_id} | Del Release |
| InternalApi | delete_user_internal_users_user_id_delete | DELETE /internal/users/{user_id} | Delete User |
| InternalApi | edit_release_internal_releases_release_id_put | PUT /internal/releases/{release_id} | Edit Release |
| InternalApi | get_device_info_internal_devices_device_id_get | GET /internal/devices/{device_id} | Get Device Info |
| InternalApi | get_logs_internal_logs_get | GET /internal/logs/ | Get Logs |
| InternalApi | get_release_info_internal_releases_release_id_get | GET /internal/releases/{release_id} | Get Release Info |
| InternalApi | get_release_zip_internal_releases_release_id_dl_get | GET /internal/releases/{release_id}/dl | Get Release Zip |
| InternalApi | get_user_by_id_internal_users_user_id_get | GET /internal/users/{user_id} | Get User By Id |
| InternalApi | list_users_internal_users_get | GET /internal/users/ | List Users |
| InternalApi | login_oauth_auth_login_post | POST /auth/login | Login Oauth |
| InternalApi | logout_auth_logout_post | POST /auth/logout | Logout |
| InternalApi | new_device_internal_devices_post | POST /internal/devices/ | New Device |
| InternalApi | new_release_internal_releases_post | POST /internal/releases/ | New Release |
| InternalApi | renew_auth_renew_post | POST /auth/renew | Renew |
| InternalApi | update_device_internal_devices_device_id_put | PUT /internal/devices/{device_id} | Update Device |
| InternalApi | update_user_internal_users_user_id_put | PUT /internal/users/{user_id} | Update User |
| ReleaseApi | get_release_releases_get_get | GET /releases/get | Get Release |
| ReleaseApi | get_release_short_releases_release_id_get | GET /releases/{release_id} | Get Release Short |
| ReleaseApi | get_releases_releases_get | GET /releases/ | Get Releases |
| ReleaseApi | get_updates_updates_last_known_id_get | GET /updates/{last_known_id} | Get Updates |
| StatsApi | public_stats_stats_get | GET /stats/ | Public Stats |
Documentation For Models
- BodyChangePasswordProfileChangePasswordPost
- BuildStatusEnum
- BuildTaskResponse
- BuildTaskShortResponse
- DeviceInternalResponse
- DeviceResponse
- DeviceStatsResponse
- DeviceUpdateBody
- FFStatusEnum
- FFStatusResponse
- GlobalStatsAggregationModel
- HTTPValidationError
- ListResponseReleaseResponse
- ListResponseShortDeviceResponse
- ListResponseShortReleaseResponse
- ListResponseStr
- ListResponseUserShortResponse
- LogListResponse
- LogResponse
- MaintainerShortModel
- NewBuildTaskBody
- NewDeviceBody
- RecoveryImgResponse
- ReleaseGroupsResponse
- ReleaseInternalResponse
- ReleaseInternalResponsePropValue
- ReleaseResponse
- ReleaseStatsResponse
- ReleaseType
- ReleaseUpdateBody
- ReleasesSort
- ResponseGetReleasesReleasesGet
- ShortDeviceResponse
- ShortReleaseResponse
- TaskUpdateBody
- TokenResponse
- UserGitlab
- UserInternalResponse
- UserMail
- UserShortResponse
- UserTelegram
- UserUpdateBody
- ValidationError
- ValidationErrorLocInner
Documentation For Authorization
Authentication schemes defined for the API:
bearer_auth
- Type: Bearer authentication (JWT)
oauth2_password
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foxinternalclient-5.2.0.tar.gz.
File metadata
- Download URL: foxinternalclient-5.2.0.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/5.15.0-307.178.5.el9uek.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dee2e32a84689b014c06bfb455b0d8abd5c92ce237814c2231c2ce2b37776b44
|
|
| MD5 |
a2a7668a3ea8f5457d0f1f8a7bb2a1e9
|
|
| BLAKE2b-256 |
6416746104ba325dbf4f5b54782495347ec3b44a7b700d07144f3d5ae74172f4
|
File details
Details for the file foxinternalclient-5.2.0-py3-none-any.whl.
File metadata
- Download URL: foxinternalclient-5.2.0-py3-none-any.whl
- Upload date:
- Size: 117.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/5.15.0-307.178.5.el9uek.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad09fcc0d1b76b6c49898d86665e4b84b0962bbc4164bc67802e0c9254962307
|
|
| MD5 |
761b68c75cc2c484f08f00ca3f3a07a4
|
|
| BLAKE2b-256 |
2d1abc4c90959f8b33e96ed9da3c9eee02655e9e84a7b317f725c165c9529a69
|