foxclient 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- foxclient-1.0.0/PKG-INFO +23 -0
- foxclient-1.0.0/README.md +164 -0
- foxclient-1.0.0/foxclient/__init__.py +54 -0
- foxclient-1.0.0/foxclient/api/__init__.py +7 -0
- foxclient-1.0.0/foxclient/api/device_api.py +1310 -0
- foxclient-1.0.0/foxclient/api/release_api.py +1516 -0
- foxclient-1.0.0/foxclient/api/stats_api.py +287 -0
- foxclient-1.0.0/foxclient/api_client.py +798 -0
- foxclient-1.0.0/foxclient/api_response.py +21 -0
- foxclient-1.0.0/foxclient/configuration.py +591 -0
- foxclient-1.0.0/foxclient/exceptions.py +217 -0
- foxclient-1.0.0/foxclient/models/__init__.py +35 -0
- foxclient-1.0.0/foxclient/models/device_response.py +130 -0
- foxclient-1.0.0/foxclient/models/global_stats_aggregation_model.py +94 -0
- foxclient-1.0.0/foxclient/models/http_validation_error.py +96 -0
- foxclient-1.0.0/foxclient/models/list_response_release_response.py +100 -0
- foxclient-1.0.0/foxclient/models/list_response_short_device_response.py +100 -0
- foxclient-1.0.0/foxclient/models/list_response_short_release_response.py +100 -0
- foxclient-1.0.0/foxclient/models/list_response_str.py +92 -0
- foxclient-1.0.0/foxclient/models/maintainer_short_model.py +94 -0
- foxclient-1.0.0/foxclient/models/recovery_img_response.py +90 -0
- foxclient-1.0.0/foxclient/models/release_groups_response.py +105 -0
- foxclient-1.0.0/foxclient/models/release_response.py +154 -0
- foxclient-1.0.0/foxclient/models/release_type.py +39 -0
- foxclient-1.0.0/foxclient/models/releases_sort.py +38 -0
- foxclient-1.0.0/foxclient/models/response_get_releases_releases_get.py +135 -0
- foxclient-1.0.0/foxclient/models/short_device_response.py +110 -0
- foxclient-1.0.0/foxclient/models/short_release_response.py +124 -0
- foxclient-1.0.0/foxclient/models/validation_error.py +100 -0
- foxclient-1.0.0/foxclient/models/validation_error_loc_inner.py +139 -0
- foxclient-1.0.0/foxclient/py.typed +0 -0
- foxclient-1.0.0/foxclient/rest.py +259 -0
- foxclient-1.0.0/foxclient.egg-info/PKG-INFO +23 -0
- foxclient-1.0.0/foxclient.egg-info/SOURCES.txt +60 -0
- foxclient-1.0.0/foxclient.egg-info/dependency_links.txt +1 -0
- foxclient-1.0.0/foxclient.egg-info/requires.txt +4 -0
- foxclient-1.0.0/foxclient.egg-info/top_level.txt +1 -0
- foxclient-1.0.0/pyproject.toml +89 -0
- foxclient-1.0.0/setup.cfg +7 -0
- foxclient-1.0.0/setup.py +50 -0
- foxclient-1.0.0/test/test_device_api.py +60 -0
- foxclient-1.0.0/test/test_device_response.py +91 -0
- foxclient-1.0.0/test/test_global_stats_aggregation_model.py +63 -0
- foxclient-1.0.0/test/test_http_validation_error.py +59 -0
- foxclient-1.0.0/test/test_list_response_release_response.py +113 -0
- foxclient-1.0.0/test/test_list_response_short_device_response.py +87 -0
- foxclient-1.0.0/test/test_list_response_short_release_response.py +85 -0
- foxclient-1.0.0/test/test_list_response_str.py +59 -0
- foxclient-1.0.0/test/test_maintainer_short_model.py +59 -0
- foxclient-1.0.0/test/test_recovery_img_response.py +55 -0
- foxclient-1.0.0/test/test_release_api.py +60 -0
- foxclient-1.0.0/test/test_release_groups_response.py +115 -0
- foxclient-1.0.0/test/test_release_response.py +103 -0
- foxclient-1.0.0/test/test_release_type.py +34 -0
- foxclient-1.0.0/test/test_releases_sort.py +34 -0
- foxclient-1.0.0/test/test_response_get_releases_releases_get.py +117 -0
- foxclient-1.0.0/test/test_short_device_response.py +79 -0
- foxclient-1.0.0/test/test_short_release_response.py +75 -0
- foxclient-1.0.0/test/test_stats_api.py +39 -0
- foxclient-1.0.0/test/test_validation_error.py +61 -0
- foxclient-1.0.0/test/test_validation_error_loc_inner.py +51 -0
foxclient-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: foxclient
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Fox API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: admin@orangefox.tech
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,Fox API
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: keywords
|
|
19
|
+
Dynamic: requires-dist
|
|
20
|
+
Dynamic: summary
|
|
21
|
+
|
|
22
|
+
Warning: Please add a custom 'X-FoxAPI-App=MyAppName' 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 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
23
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# foxclient
|
|
2
|
+
|
|
3
|
+
Warning: Please add a custom 'X-FoxAPI-App=MyAppName' header to your requests.
|
|
4
|
+
This would help us fighting against DDoS attacks in future, while keeping your application's access to the API.
|
|
5
|
+
In future, this may be a mandatory requirement.
|
|
6
|
+
|
|
7
|
+
To reduce the system load, the API endpoints are rate limited.
|
|
8
|
+
The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit.
|
|
9
|
+
|
|
10
|
+
The requests may be logged for analytics and development purposes.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
14
|
+
|
|
15
|
+
- API version: 5.1.1
|
|
16
|
+
- Package version: 1.0.0
|
|
17
|
+
- Generator version: 7.13.0
|
|
18
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
19
|
+
|
|
20
|
+
## Requirements.
|
|
21
|
+
|
|
22
|
+
Python 3.9+
|
|
23
|
+
|
|
24
|
+
## Installation & Usage
|
|
25
|
+
### pip install
|
|
26
|
+
|
|
27
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
31
|
+
```
|
|
32
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
33
|
+
|
|
34
|
+
Then import the package:
|
|
35
|
+
```python
|
|
36
|
+
import foxclient
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Setuptools
|
|
40
|
+
|
|
41
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
python setup.py install --user
|
|
45
|
+
```
|
|
46
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
47
|
+
|
|
48
|
+
Then import the package:
|
|
49
|
+
```python
|
|
50
|
+
import foxclient
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Tests
|
|
54
|
+
|
|
55
|
+
Execute `pytest` to run the tests.
|
|
56
|
+
|
|
57
|
+
## Getting Started
|
|
58
|
+
|
|
59
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
|
|
63
|
+
import foxclient
|
|
64
|
+
from foxclient.rest import ApiException
|
|
65
|
+
from pprint import pprint
|
|
66
|
+
|
|
67
|
+
# Defining the host is optional and defaults to http://localhost
|
|
68
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
69
|
+
configuration = foxclient.Configuration(
|
|
70
|
+
host = "http://localhost"
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
# The client must configure the authentication and authorization parameters
|
|
74
|
+
# in accordance with the API server security policy.
|
|
75
|
+
# Examples for each auth method are provided below, use the example that
|
|
76
|
+
# satisfies your auth use case.
|
|
77
|
+
|
|
78
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
79
|
+
|
|
80
|
+
# Configure Bearer authorization (JWT): bearer_auth
|
|
81
|
+
configuration = foxclient.Configuration(
|
|
82
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Enter a context with an instance of the API client
|
|
87
|
+
with foxclient.ApiClient(configuration) as api_client:
|
|
88
|
+
# Create an instance of the API class
|
|
89
|
+
api_instance = foxclient.DeviceApi(api_client)
|
|
90
|
+
device_id = 'device_id_example' # str |
|
|
91
|
+
|
|
92
|
+
try:
|
|
93
|
+
# Get Device
|
|
94
|
+
api_response = api_instance.get_device_devices_device_id_get(device_id)
|
|
95
|
+
print("The response of DeviceApi->get_device_devices_device_id_get:\n")
|
|
96
|
+
pprint(api_response)
|
|
97
|
+
except ApiException as e:
|
|
98
|
+
print("Exception when calling DeviceApi->get_device_devices_device_id_get: %s\n" % e)
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Documentation for API Endpoints
|
|
103
|
+
|
|
104
|
+
All URIs are relative to *http://localhost*
|
|
105
|
+
|
|
106
|
+
Class | Method | HTTP request | Description
|
|
107
|
+
------------ | ------------- | ------------- | -------------
|
|
108
|
+
*DeviceApi* | [**get_device_devices_device_id_get**](docs/DeviceApi.md#get_device_devices_device_id_get) | **GET** /devices/{device_id} | Get Device
|
|
109
|
+
*DeviceApi* | [**get_device_extended_devices_get_get**](docs/DeviceApi.md#get_device_extended_devices_get_get) | **GET** /devices/get | Get Device Extended
|
|
110
|
+
*DeviceApi* | [**get_devices_list_devices_get**](docs/DeviceApi.md#get_devices_list_devices_get) | **GET** /devices/ | Get Devices List
|
|
111
|
+
*DeviceApi* | [**get_oems_list_oems_get**](docs/DeviceApi.md#get_oems_list_oems_get) | **GET** /oems/ | Get Oems List
|
|
112
|
+
*ReleaseApi* | [**get_release_extended_releases_get_get**](docs/ReleaseApi.md#get_release_extended_releases_get_get) | **GET** /releases/get | Get Release Extended
|
|
113
|
+
*ReleaseApi* | [**get_release_releases_release_id_get**](docs/ReleaseApi.md#get_release_releases_release_id_get) | **GET** /releases/{release_id} | Get Release
|
|
114
|
+
*ReleaseApi* | [**get_releases_releases_get**](docs/ReleaseApi.md#get_releases_releases_get) | **GET** /releases/ | Get Releases
|
|
115
|
+
*ReleaseApi* | [**get_updates_updates_last_known_id_get**](docs/ReleaseApi.md#get_updates_updates_last_known_id_get) | **GET** /updates/{last_known_id} | Get Updates
|
|
116
|
+
*StatsApi* | [**public_stats_stats_get**](docs/StatsApi.md#public_stats_stats_get) | **GET** /stats/ | Public Stats
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## Documentation For Models
|
|
120
|
+
|
|
121
|
+
- [DeviceResponse](docs/DeviceResponse.md)
|
|
122
|
+
- [GlobalStatsAggregationModel](docs/GlobalStatsAggregationModel.md)
|
|
123
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
124
|
+
- [ListResponseReleaseResponse](docs/ListResponseReleaseResponse.md)
|
|
125
|
+
- [ListResponseShortDeviceResponse](docs/ListResponseShortDeviceResponse.md)
|
|
126
|
+
- [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
|
|
127
|
+
- [ListResponseStr](docs/ListResponseStr.md)
|
|
128
|
+
- [MaintainerShortModel](docs/MaintainerShortModel.md)
|
|
129
|
+
- [RecoveryImgResponse](docs/RecoveryImgResponse.md)
|
|
130
|
+
- [ReleaseGroupsResponse](docs/ReleaseGroupsResponse.md)
|
|
131
|
+
- [ReleaseResponse](docs/ReleaseResponse.md)
|
|
132
|
+
- [ReleaseType](docs/ReleaseType.md)
|
|
133
|
+
- [ReleasesSort](docs/ReleasesSort.md)
|
|
134
|
+
- [ResponseGetReleasesReleasesGet](docs/ResponseGetReleasesReleasesGet.md)
|
|
135
|
+
- [ShortDeviceResponse](docs/ShortDeviceResponse.md)
|
|
136
|
+
- [ShortReleaseResponse](docs/ShortReleaseResponse.md)
|
|
137
|
+
- [ValidationError](docs/ValidationError.md)
|
|
138
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<a id="documentation-for-authorization"></a>
|
|
142
|
+
## Documentation For Authorization
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Authentication schemes defined for the API:
|
|
146
|
+
<a id="bearer_auth"></a>
|
|
147
|
+
### bearer_auth
|
|
148
|
+
|
|
149
|
+
- **Type**: Bearer authentication (JWT)
|
|
150
|
+
|
|
151
|
+
<a id="oauth2_password"></a>
|
|
152
|
+
### oauth2_password
|
|
153
|
+
|
|
154
|
+
- **Type**: OAuth
|
|
155
|
+
- **Flow**: password
|
|
156
|
+
- **Authorization URL**:
|
|
157
|
+
- **Scopes**: N/A
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## Author
|
|
161
|
+
|
|
162
|
+
admin@orangefox.tech
|
|
163
|
+
|
|
164
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Fox API
|
|
7
|
+
|
|
8
|
+
Warning: Please add a custom 'X-FoxAPI-App=MyAppName' 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 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 5.1.1
|
|
11
|
+
Contact: admin@orangefox.tech
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "1.0.0"
|
|
19
|
+
|
|
20
|
+
# import apis into sdk package
|
|
21
|
+
from foxclient.api.device_api import DeviceApi
|
|
22
|
+
from foxclient.api.release_api import ReleaseApi
|
|
23
|
+
from foxclient.api.stats_api import StatsApi
|
|
24
|
+
|
|
25
|
+
# import ApiClient
|
|
26
|
+
from foxclient.api_response import ApiResponse
|
|
27
|
+
from foxclient.api_client import ApiClient
|
|
28
|
+
from foxclient.configuration import Configuration
|
|
29
|
+
from foxclient.exceptions import OpenApiException
|
|
30
|
+
from foxclient.exceptions import ApiTypeError
|
|
31
|
+
from foxclient.exceptions import ApiValueError
|
|
32
|
+
from foxclient.exceptions import ApiKeyError
|
|
33
|
+
from foxclient.exceptions import ApiAttributeError
|
|
34
|
+
from foxclient.exceptions import ApiException
|
|
35
|
+
|
|
36
|
+
# import models into sdk package
|
|
37
|
+
from foxclient.models.device_response import DeviceResponse
|
|
38
|
+
from foxclient.models.global_stats_aggregation_model import GlobalStatsAggregationModel
|
|
39
|
+
from foxclient.models.http_validation_error import HTTPValidationError
|
|
40
|
+
from foxclient.models.list_response_release_response import ListResponseReleaseResponse
|
|
41
|
+
from foxclient.models.list_response_short_device_response import ListResponseShortDeviceResponse
|
|
42
|
+
from foxclient.models.list_response_short_release_response import ListResponseShortReleaseResponse
|
|
43
|
+
from foxclient.models.list_response_str import ListResponseStr
|
|
44
|
+
from foxclient.models.maintainer_short_model import MaintainerShortModel
|
|
45
|
+
from foxclient.models.recovery_img_response import RecoveryImgResponse
|
|
46
|
+
from foxclient.models.release_groups_response import ReleaseGroupsResponse
|
|
47
|
+
from foxclient.models.release_response import ReleaseResponse
|
|
48
|
+
from foxclient.models.release_type import ReleaseType
|
|
49
|
+
from foxclient.models.releases_sort import ReleasesSort
|
|
50
|
+
from foxclient.models.response_get_releases_releases_get import ResponseGetReleasesReleasesGet
|
|
51
|
+
from foxclient.models.short_device_response import ShortDeviceResponse
|
|
52
|
+
from foxclient.models.short_release_response import ShortReleaseResponse
|
|
53
|
+
from foxclient.models.validation_error import ValidationError
|
|
54
|
+
from foxclient.models.validation_error_loc_inner import ValidationErrorLocInner
|