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.0
  • Package version: 5.3.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 = '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_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.0.tar.gz (62.5 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.0-py3-none-any.whl (127.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foxinternalclient-5.3.0.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/5.15.0-307.178.5.el9uek.x86_64

File hashes

Hashes for foxinternalclient-5.3.0.tar.gz
Algorithm Hash digest
SHA256 ccf32b6c475c49d3dbf04dfc569be1b9deaa5e40c4a23ee938c309e359698bba
MD5 e70847e90513ed6b95a05f00e866e055
BLAKE2b-256 e6422f386870c9430f99f9a5ef611c484bae596b449d5e8e7bf86566a3f91ed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foxinternalclient-5.3.0-py3-none-any.whl
  • Upload date:
  • Size: 127.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/5.15.0-307.178.5.el9uek.x86_64

File hashes

Hashes for foxinternalclient-5.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2de212787eac90f083c248c16444d1b336172fdc3032ff21e4a4d6bf1ff4dad5
MD5 f77bac3104b6e5fe46f65e97258e63c7
BLAKE2b-256 608c0f0ebfa98a4291e83b38080e4a4576583e9571708aa60ffe527665534526

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