Skip to main content

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 30 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.3.3
  • Package version: 5.3.3
  • Generator version: 7.17.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 = 'device_id_example' # str |  (optional)
    id = 'id_example' # str | 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(device_id=device_id, id=id, codename=codename)
        print("The response of DeviceApi->get_device:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DeviceApi->get_device: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.orangefox.download

Class Method HTTP request Description
DeviceApi get_device GET /devices/get Get Device
DeviceApi get_device_deprecated GET /devices/{device_id} Get Device Short
DeviceApi get_devices GET /devices/ Get Devices
DeviceApi get_oems GET /oems/ Get Oems
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 download_artifact_factory_task_id_artifact_get GET /factory/{task_id}/artifact Download Artifact
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
FoxFactoryApi update_worker_status_factory_update_status_post POST /factory/update_status Update Worker Status
FoxFactoryApi upload_artifact_factory_task_id_artifact_post POST /factory/{task_id}/artifact Upload Artifact
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_device_internal_devices_device_id_delete DELETE /internal/devices/{device_id} Delete Device
InternalApi delete_paste_internal_paste_paste_id_delete DELETE /internal/paste/{paste_id} Delete Paste
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_pastes_internal_paste_get GET /internal/paste/ List Pastes
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_paste_internal_paste_paste_id_put PUT /internal/paste/{paste_id} Update Paste
InternalApi update_user_internal_users_user_id_put PUT /internal/users/{user_id} Update User
PasteApi create_paste_paste_post POST /paste/ Create Paste
PasteApi get_paste_paste_paste_id_get GET /paste/{paste_id} Get Paste
ReleaseApi get_release GET /releases/get Get Release
ReleaseApi get_release_deprecated GET /releases/{release_id} Get Release Short
ReleaseApi get_releases GET /releases/ Get Releases
ReleaseApi get_updates_deprecated GET /updates/{last_known_id} Get Updates
StatsApi get_public_stats GET /stats/ Public Stats

Documentation For Models

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

admin@orangefox.tech

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

foxinternalclient-5.3.3.tar.gz (67.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxinternalclient-5.3.3-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

Details for the file foxinternalclient-5.3.3.tar.gz.

File metadata

  • Download URL: foxinternalclient-5.3.3.tar.gz
  • Upload date:
  • Size: 67.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.19.6-1-default

File hashes

Hashes for foxinternalclient-5.3.3.tar.gz
Algorithm Hash digest
SHA256 7f378f1e9ce7e5a505c186d272dcd20fb43468ec5bd1e33249f94a9cc8154700
MD5 4c25720ebc91f83c2d7476b14c63e980
BLAKE2b-256 d9761a7aa58aee636b022b5dcb4ad181ed8560717d3b9b49e534ed8b61e848b5

See more details on using hashes here.

File details

Details for the file foxinternalclient-5.3.3-py3-none-any.whl.

File metadata

  • Download URL: foxinternalclient-5.3.3-py3-none-any.whl
  • Upload date:
  • Size: 131.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.19.6-1-default

File hashes

Hashes for foxinternalclient-5.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b1a4ab29594f8d2199e2ad81fcd59bb6a6ee503fb00880222c33d7733d13008
MD5 54b3109f8787d6a7934a907ebb34da1b
BLAKE2b-256 c47d7f71f88f6a79b41fe5ad29dfa570b12e99b919c64dabff93773e4b661bb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page