foxclient
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.2.2
- Package version: 1.0.0
- Generator version: 7.27.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.11+
Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735).
Install the package with python -m pip install .; install development dependencies
with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using
python -m pip install --group dev. The latter installs the group, not the package.
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 foxclient
Setuptools
Install via Setuptools.
python -m pip install . --user
(or sudo python -m pip install . to install the package for all users)
Then import the package:
import foxclient
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import foxclient
from foxclient.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 = foxclient.Configuration(
host = "https://api.orangefox.download"
)
# Enter a context with an instance of the API client
async with foxclient.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = foxclient.CatalogApi(api_client)
artifact_id = 'artifact_id_example' # str | Published hosted artifact ObjectId
range = 'range_example' # str | Optional HTTP byte range, for example bytes=0-1023 (optional)
try:
# Download published hosted bytes. Follow each artifact's download_url for custom/local DL bases; the metadata API server does not serve this binary route.
api_response = await api_instance.catalog_download_artifact(artifact_id, range=range)
print("The response of CatalogApi->catalog_download_artifact:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogApi->catalog_download_artifact: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.orangefox.download
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CatalogApi | catalog_download_artifact | GET /artifacts/{artifact_id} | Download published hosted bytes. Follow each artifact's download_url for custom/local DL bases; the metadata API server does not serve this binary route. |
| CatalogApi | catalog_get_package | GET /v1/packages/{package_id} | |
| CatalogApi | catalog_get_release | GET /v1/releases/{release_id} | |
| CatalogApi | catalog_list_packages | GET /v1/packages | |
| CatalogApi | catalog_list_releases | GET /v1/packages/{package_id}/releases | |
| 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. |
| 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 | download_release | GET /release/{release_id}/dl | GET /release/{release_id}/dl - Download a release binary. |
| 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. |
| UptimeApi | get_uptime | GET /uptime | GET /uptime - Aggregated public infrastructure status. |
| WikiApi | get_asset | GET /wiki/{site}/assets/{path} | GET /wiki/{site}/assets/{path} - Serve asset bytes. |
| WikiApi | get_page | GET /wiki/{site}/pages/{path} | GET /wiki/{site}/pages/{path} - Fetch one published page. |
| WikiApi | get_site | GET /wiki/sites/{slug} | GET /wiki/sites/{slug} - Fetch one wiki site. |
| WikiApi | list_pages | GET /wiki/{site}/pages | GET /wiki/{site}/pages - List every published page in a site. |
| WikiApi | list_sites | GET /wiki/sites | GET /wiki/sites - List wiki sites. |
Documentation For Models
- ArtifactData
- ArtifactFormat
- ArtifactMetadata
- ArtifactResponse
- CatalogReleaseResponse
- Compatibility
- DeviceResponse
- ErrorResponse
- GlobalStatsResponse
- ListResponseCatalogReleaseResponse
- ListResponseCatalogReleaseResponseDataInner
- ListResponsePackageResponse
- ListResponsePackageResponseDataInner
- ListResponseReleaseResponse
- ListResponseReleaseResponseDataInner
- ListResponseShortDeviceResponse
- ListResponseShortDeviceResponseDataInner
- ListResponseString
- ListResponseWikiPageShortResponse
- ListResponseWikiPageShortResponseDataInner
- ListResponseWikiSiteResponse
- ListResponseWikiSiteResponseDataInner
- MaintainerShortResponse
- NewReportRequest
- PackageInput
- PackageKind
- PackageResponse
- PasteInput
- PasteResponse
- RecoveryImgResponse
- ReleaseGroupsResponse
- ReleaseListResponse
- ReleaseResponse
- ReleaseSort
- ShortDeviceResponse
- ShortReleaseResponse
- TokenResponse
- UptimeHealth
- UptimeHealthHost
- UptimeMonitor
- UptimeMonitorGroup
- UptimeMonitors
- UptimeResponse
- WikiPageResponse
- WikiPageShortResponse
- WikiSiteResponse
Documentation For Authorization
Authentication schemes defined for the API:
bearer_auth
- Type: Bearer authentication (JWT)
Author
Request headers
Header names are compared case-insensitively in all Python client libraries.
Request headers are copied; supplying _headers does not change the caller's dict
or the client's shared defaults. The public _headers argument retains its dict
validation and existing value serialization. Pydantic can coerce mappings such as HTTPX Headers to a dict,
combining repeated fields into a single value; _headers does not provide a
repeated-field or list-of-pairs API.
Precedence, from lowest to highest:
_headers(within one dict, the last inserted case variant wins).- Explicit OpenAPI header parameters and generated
Content-Type(or_content_type). GeneratedAcceptis added only when neither_headersnor explicit header parameters contain anAcceptcase variant. ApiClient.default_headers(including headers set withset_default_header).- The client's
cookiesetting, forCookie. - Authentication headers. A non-empty
_request_authreplaces configured authentication for that call;{}retains configured authentication. Cookie authentication appends to the selectedCookievalue.
This retains the existing precedence for identically spelled names and extends it
to case variants. To override a generated content type, use _content_type;
client defaults still take precedence over it. The winning header's spelling and
value are retained for replacements. Cookie authentication uses the canonical
Cookie spelling and appends its value. Values containing legitimate
comma-separated lists are not split or deduplicated. This does not remove
duplicate values inside a header or change the handling of repeated fields
supplied directly to the transport.
Metadata
Release files for foxclient 6.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foxclient-6.2.2.tar.gz | 62.3 kB | Without provenance | Details for foxclient-6.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foxclient-6.2.2-py3-none-any.whl | Python 3 | none | any | Details for foxclient-6.2.2-py3-none-any.whl |
Total release size: 190.5 kB
Release files / foxclient-6.2.2.tar.gz
| Download URL | foxclient-6.2.2.tar.gz |
|---|---|
| Size | 62.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33e0fd39fc96e52346f27ac6590f7f6c3e88a0a9084750007d41db286731d6d0
|
|
BLAKE2b-256 checksum How to use checksums |
a54e22bfee245860834f316db20fea5813fdc40e96ba2cf8b43dbeb1a0ff3fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / foxclient-6.2.2-py3-none-any.whl
| Download URL | foxclient-6.2.2-py3-none-any.whl |
|---|---|
| Size | 128.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12c0a42a0f75bfd1af0509911bb3888fc762099729765fa93c5dcd5c7d3b16ad
|
|
BLAKE2b-256 checksum How to use checksums |
48f4ad4fb15048a992aae55043c6808cde800e45b5014c8f8b3b6a88f7d5ef41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for foxclient 6.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.