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.2
  • Package version: 5.3.2
  • 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.2.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.2-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foxinternalclient-5.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e6729c7960dd743043d049034aa7d041cb9dc19e308a1918cf3e309d2d57924d
MD5 19278a3626472cda032c6fe09d87bce7
BLAKE2b-256 f51d1e900f78f53bac16d563cc8f8b21c72be00dc89b2b50cd44af91d6485a64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foxinternalclient-5.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 842b1e7fb4ebcecd0541a2f2fa9f0b11765e388e5105b75202d721c2fffe6ea0
MD5 57af1beedee7bca0d6454a0c487707b3
BLAKE2b-256 33f1b21ce7bc0f62fa9150578a1e1730a7ff42335fb4c1d9d307785ade2dcc01

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