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: 6.0.0
  • Package version: 6.0.0
  • Generator version: 7.21.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)
    codename = 'codename_example' # str |  (optional)
    id = 'id_example' # str |  (optional)

    try:
        # GET /devices/get - Get a single device by device_id, codename, or _id.
        api_response = await api_instance.get_device(device_id=device_id, codename=codename, id=id)
        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 /devices/get - Get a single device by device_id, codename, or _id.
DeviceApi get_device_by_id GET /devices/{device_id} GET /devices/{device_id} - Get device by ID (deprecated).
DeviceApi get_oems GET /oems GET /oems - Get a list of all unique OEM names.
DeviceApi list_devices GET /devices GET /devices/ - List devices with filters.
FoxFactoryApi cancel_task POST /factory/{task_id}/cancel POST /internal/factory/{task_id}/cancel – Cancel a running build task.
FoxFactoryApi create_task POST /factory POST /internal/factory – Create a new build task.
FoxFactoryApi delete_task DELETE /factory/{task_id} DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
FoxFactoryApi download_artifact GET /factory/{task_id}/artifact GET /internal/factory/{task_id}/artifact – Download a build artifact.
FoxFactoryApi get_factory_status GET /factory/status GET /internal/factory/status – Get the current FoxFactory worker status.
FoxFactoryApi get_task GET /factory/{task_id} GET /internal/factory/{task_id} – Get a single build task.
FoxFactoryApi list_tasks GET /factory GET /internal/factory – List build tasks.
FoxFactoryApi update_task PATCH /factory/{task_id} PATCH /internal/factory/{task_id} – Update task status / logs.
FoxFactoryApi update_worker_status POST /factory/update_status POST /internal/factory/update_status – Worker heartbeat / status update.
FoxFactoryApi upload_artifact POST /factory/{task_id}/artifact POST /internal/factory/{task_id}/artifact – Upload a build artifact.
GitlabApi add_gitlab_repo POST /gitlab/device/{device_id}/gitlab POST /gitlab/device/{device_id}/gitlab?gl_project_url=<url>
InternalApi change_password POST /profile/change_password POST /profile/change_password - Change the authenticated user's password.
InternalApi create_device POST /internal/devices POST /internal/devices/ - Create a new device.
InternalApi delete_device DELETE /internal/devices/{device_id} DELETE /internal/devices/{device_id} - Delete a device (only if no releases exist).
InternalApi delete_passkey DELETE /profile/passkeys/{credential_id} DELETE /profile/passkeys/{credential_id} - Revoke a passkey credential (requires password).
InternalApi delete_paste DELETE /internal/paste/{paste_id} DELETE /internal/paste/{paste_id} - Delete a paste (admin only).
InternalApi delete_release DELETE /internal/releases/{release_id} DELETE /internal/releases/{release_id} - Delete a release.
InternalApi delete_user DELETE /internal/users/{user_id} DELETE /internal/users/{user_id} - Delete a user.
InternalApi edit_device PUT /internal/devices/{device_id} PUT /internal/devices/{device_id} - Update a device.
InternalApi edit_release PUT /internal/releases/{release_id} PUT /internal/releases/{release_id} - Edit a release.
InternalApi edit_user PUT /internal/users/{user_id} PUT /internal/users/{user_id} - Update a user (admin only).
InternalApi get_device_info GET /internal/devices/{device_id} GET /internal/devices/{device_id} - Get device with stats.
InternalApi get_release_info GET /internal/releases/{release_id} GET /internal/releases/{release_id} - Get release with stats and maintainer info.
InternalApi get_user GET /internal/users/{user_id} GET /internal/users/{user_id} - Get user with maintained devices.
InternalApi list_logs GET /internal/logs GET /internal/logs/ - Get paginated audit logs.
InternalApi list_passkeys GET /profile/passkeys GET /profile/passkeys - List the authenticated user's passkey credentials.
InternalApi list_pastes GET /internal/paste GET /internal/paste/ - List all pastes (admin only).
InternalApi list_users GET /internal/users GET /internal/users/ - List all users (short response).
InternalApi login POST /auth/login POST /auth/login
InternalApi logout POST /auth/logout POST /auth/logout
InternalApi passkey_login_options POST /auth/passkeys/login/options POST /auth/passkeys/login/options
InternalApi passkey_login_verify POST /auth/passkeys/login/verify POST /auth/passkeys/login/verify
InternalApi passkey_register_options POST /auth/passkeys/register/options POST /auth/passkeys/register/options
InternalApi passkey_register_verify POST /auth/passkeys/register/verify POST /auth/passkeys/register/verify
InternalApi rename_passkey POST /profile/passkeys/{credential_id}/rename POST /profile/passkeys/{credential_id}/rename - Rename a passkey credential.
InternalApi renew POST /auth/renew POST /auth/renew
InternalApi update_paste PUT /internal/paste/{paste_id} PUT /internal/paste/{paste_id} - Update paste content (admin only).
InternalApi upload_new_release POST /internal/releases POST /internal/releases/ - Upload a new release.
PasteApi create_paste POST /paste POST /paste/ - Create a new paste.
PasteApi get_paste GET /paste/{paste_id} GET /paste/{paste_id} - Get a paste by ID.
ReleaseApi get_release GET /releases/get GET /releases/get - Get a single release.
ReleaseApi get_release_by_id GET /releases/{release_id} GET /releases/{release_id} - Get release by ID (deprecated).
ReleaseApi get_updates_after GET /updates/{last_known_id} GET /updates/{last_known_id} - Get releases after a given release ID (deprecated).
ReleaseApi list_releases GET /releases GET /releases/ - List releases with filters.
ReportApi new_report POST /report/{release_id} POST /report/{release_id} - Submit a bug report.
StatsApi get_global_stats GET /stats GET /stats/ - Get global download statistics.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer_auth

  • Type: Bearer authentication (JWT)

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-6.0.0.tar.gz (65.1 kB view details)

Uploaded Source

Built Distribution

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

foxinternalclient-6.0.0-py3-none-any.whl (135.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foxinternalclient-6.0.0.tar.gz
  • Upload date:
  • Size: 65.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.13.13 Linux/7.0.2-1-default

File hashes

Hashes for foxinternalclient-6.0.0.tar.gz
Algorithm Hash digest
SHA256 450519720b96a6c5771b2b22d94cbdfddb11374bbf697df49426e84bde54de72
MD5 ded6fdcfa0a57122ad43a3975aca4ec5
BLAKE2b-256 3255c9ba25192e807eb0c5a5c8710b502230670ccc9ef9f7077cccc7684c081d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foxinternalclient-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 135.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.13.13 Linux/7.0.2-1-default

File hashes

Hashes for foxinternalclient-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6df9885bddef2c45c4ac93e6e89145d4391b8bde8bc213e9eeec6e186428eda
MD5 95c68ef1cf879538fb626c3e513f6a93
BLAKE2b-256 b33615aa389f349da45a3a7d188c639adba1585fc6115f4e336ab0ac137cecd9

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