themeparks 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.
Files changed (69) hide show
  1. themeparks-1.0.0/PKG-INFO +12 -0
  2. themeparks-1.0.0/README.md +143 -0
  3. themeparks-1.0.0/openapi_client/__init__.py +27 -0
  4. themeparks-1.0.0/openapi_client/api/__init__.py +3 -0
  5. themeparks-1.0.0/openapi_client/api/destinations_api.py +152 -0
  6. themeparks-1.0.0/openapi_client/api/entities_api.py +696 -0
  7. themeparks-1.0.0/openapi_client/api_client.py +866 -0
  8. themeparks-1.0.0/openapi_client/apis/__init__.py +18 -0
  9. themeparks-1.0.0/openapi_client/configuration.py +446 -0
  10. themeparks-1.0.0/openapi_client/exceptions.py +159 -0
  11. themeparks-1.0.0/openapi_client/model/__init__.py +5 -0
  12. themeparks-1.0.0/openapi_client/model/boarding_group_state.py +283 -0
  13. themeparks-1.0.0/openapi_client/model/destination_entry.py +273 -0
  14. themeparks-1.0.0/openapi_client/model/destination_park_entry.py +259 -0
  15. themeparks-1.0.0/openapi_client/model/destinations_response.py +261 -0
  16. themeparks-1.0.0/openapi_client/model/entity_child.py +279 -0
  17. themeparks-1.0.0/openapi_client/model/entity_children_response.py +279 -0
  18. themeparks-1.0.0/openapi_client/model/entity_data.py +305 -0
  19. themeparks-1.0.0/openapi_client/model/entity_data_location.py +259 -0
  20. themeparks-1.0.0/openapi_client/model/entity_live_data.py +307 -0
  21. themeparks-1.0.0/openapi_client/model/entity_live_data_response.py +279 -0
  22. themeparks-1.0.0/openapi_client/model/entity_schedule_response.py +279 -0
  23. themeparks-1.0.0/openapi_client/model/entity_type.py +286 -0
  24. themeparks-1.0.0/openapi_client/model/live_queue.py +283 -0
  25. themeparks-1.0.0/openapi_client/model/live_queue_boardinggroup.py +277 -0
  26. themeparks-1.0.0/openapi_client/model/live_queue_paidreturntime.py +275 -0
  27. themeparks-1.0.0/openapi_client/model/live_queue_returntime.py +269 -0
  28. themeparks-1.0.0/openapi_client/model/live_queue_standby.py +255 -0
  29. themeparks-1.0.0/openapi_client/model/live_show_time.py +263 -0
  30. themeparks-1.0.0/openapi_client/model/live_status_type.py +284 -0
  31. themeparks-1.0.0/openapi_client/model/price_data.py +259 -0
  32. themeparks-1.0.0/openapi_client/model/return_time_state.py +283 -0
  33. themeparks-1.0.0/openapi_client/model/schedule_entry.py +286 -0
  34. themeparks-1.0.0/openapi_client/model/tag_data.py +275 -0
  35. themeparks-1.0.0/openapi_client/model_utils.py +2037 -0
  36. themeparks-1.0.0/openapi_client/models/__init__.py +34 -0
  37. themeparks-1.0.0/openapi_client/rest.py +346 -0
  38. themeparks-1.0.0/setup.cfg +7 -0
  39. themeparks-1.0.0/setup.py +42 -0
  40. themeparks-1.0.0/test/test_boarding_group_state.py +35 -0
  41. themeparks-1.0.0/test/test_destination_entry.py +37 -0
  42. themeparks-1.0.0/test/test_destination_park_entry.py +35 -0
  43. themeparks-1.0.0/test/test_destinations_api.py +35 -0
  44. themeparks-1.0.0/test/test_destinations_response.py +37 -0
  45. themeparks-1.0.0/test/test_entities_api.py +63 -0
  46. themeparks-1.0.0/test/test_entity_child.py +37 -0
  47. themeparks-1.0.0/test/test_entity_children_response.py +39 -0
  48. themeparks-1.0.0/test/test_entity_data.py +41 -0
  49. themeparks-1.0.0/test/test_entity_data_location.py +35 -0
  50. themeparks-1.0.0/test/test_entity_live_data.py +43 -0
  51. themeparks-1.0.0/test/test_entity_live_data_response.py +39 -0
  52. themeparks-1.0.0/test/test_entity_schedule_response.py +39 -0
  53. themeparks-1.0.0/test/test_entity_type.py +35 -0
  54. themeparks-1.0.0/test/test_live_queue.py +43 -0
  55. themeparks-1.0.0/test/test_live_queue_boardinggroup.py +37 -0
  56. themeparks-1.0.0/test/test_live_queue_paidreturntime.py +39 -0
  57. themeparks-1.0.0/test/test_live_queue_returntime.py +37 -0
  58. themeparks-1.0.0/test/test_live_queue_standby.py +35 -0
  59. themeparks-1.0.0/test/test_live_show_time.py +35 -0
  60. themeparks-1.0.0/test/test_live_status_type.py +35 -0
  61. themeparks-1.0.0/test/test_price_data.py +35 -0
  62. themeparks-1.0.0/test/test_return_time_state.py +35 -0
  63. themeparks-1.0.0/test/test_schedule_entry.py +35 -0
  64. themeparks-1.0.0/test/test_tag_data.py +35 -0
  65. themeparks-1.0.0/themeparks.egg-info/PKG-INFO +12 -0
  66. themeparks-1.0.0/themeparks.egg-info/SOURCES.txt +68 -0
  67. themeparks-1.0.0/themeparks.egg-info/dependency_links.txt +1 -0
  68. themeparks-1.0.0/themeparks.egg-info/requires.txt +2 -0
  69. themeparks-1.0.0/themeparks.egg-info/top_level.txt +1 -0
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.1
2
+ Name: themeparks
3
+ Version: 1.0.0
4
+ Summary: Theme Parks Wiki V1 API
5
+ Home-page:
6
+ Author: OpenAPI Generator community
7
+ Author-email: team@openapitools.org
8
+ Keywords: OpenAPI,OpenAPI-Generator,Theme Parks Wiki V1 API
9
+ Requires-Python: >=3.6
10
+
11
+ api.themeparks.wiki # noqa: E501
12
+
@@ -0,0 +1,143 @@
1
+ # themeparks
2
+ api.themeparks.wiki
3
+
4
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
+
6
+ - API version: 1.0.0-alpha
7
+ - Package version: 1.0.0
8
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9
+
10
+ ## Requirements.
11
+
12
+ Python >=3.6
13
+
14
+ ## Installation & Usage
15
+ ### pip install
16
+
17
+ If the python package is hosted on a repository, you can install directly using:
18
+
19
+ ```sh
20
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
21
+ ```
22
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
23
+
24
+ Then import the package:
25
+ ```python
26
+ import openapi_client
27
+ ```
28
+
29
+ ### Setuptools
30
+
31
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
32
+
33
+ ```sh
34
+ python setup.py install --user
35
+ ```
36
+ (or `sudo python setup.py install` to install the package for all users)
37
+
38
+ Then import the package:
39
+ ```python
40
+ import openapi_client
41
+ ```
42
+
43
+ ## Getting Started
44
+
45
+ Please follow the [installation procedure](#installation--usage) and then run the following:
46
+
47
+ ```python
48
+
49
+ import time
50
+ import openapi_client
51
+ from pprint import pprint
52
+ from openapi_client.api import destinations_api
53
+ from openapi_client.model.destinations_response import DestinationsResponse
54
+ # Defining the host is optional and defaults to https://api.themeparks.wiki/v1
55
+ # See configuration.py for a list of all supported configuration parameters.
56
+ configuration = openapi_client.Configuration(
57
+ host = "https://api.themeparks.wiki/v1"
58
+ )
59
+
60
+
61
+
62
+ # Enter a context with an instance of the API client
63
+ with openapi_client.ApiClient(configuration) as api_client:
64
+ # Create an instance of the API class
65
+ api_instance = destinations_api.DestinationsApi(api_client)
66
+
67
+ try:
68
+ # Get a list of supported destinations available on the live API
69
+ api_response = api_instance.get_destinations()
70
+ pprint(api_response)
71
+ except openapi_client.ApiException as e:
72
+ print("Exception when calling DestinationsApi->get_destinations: %s\n" % e)
73
+ ```
74
+
75
+ ## Documentation for API Endpoints
76
+
77
+ All URIs are relative to *https://api.themeparks.wiki/v1*
78
+
79
+ Class | Method | HTTP request | Description
80
+ ------------ | ------------- | ------------- | -------------
81
+ *DestinationsApi* | [**get_destinations**](docs/DestinationsApi.md#get_destinations) | **GET** /destinations | Get a list of supported destinations available on the live API
82
+ *EntitiesApi* | [**get_entity**](docs/EntitiesApi.md#get_entity) | **GET** /entity/{entityID} | Get entity document
83
+ *EntitiesApi* | [**get_entity_children**](docs/EntitiesApi.md#get_entity_children) | **GET** /entity/{entityID}/children | Get all children for a given entity document
84
+ *EntitiesApi* | [**get_entity_live_data**](docs/EntitiesApi.md#get_entity_live_data) | **GET** /entity/{entityID}/live | Get live data for this entity and any child entities
85
+ *EntitiesApi* | [**get_entity_schedule_upcoming**](docs/EntitiesApi.md#get_entity_schedule_upcoming) | **GET** /entity/{entityID}/schedule | Get entity schedule
86
+ *EntitiesApi* | [**get_entity_schedule_year_month**](docs/EntitiesApi.md#get_entity_schedule_year_month) | **GET** /entity/{entityID}/schedule/{year}/{month} | Get entity schedule for a specific month and year
87
+
88
+
89
+ ## Documentation For Models
90
+
91
+ - [BoardingGroupState](docs/BoardingGroupState.md)
92
+ - [DestinationEntry](docs/DestinationEntry.md)
93
+ - [DestinationParkEntry](docs/DestinationParkEntry.md)
94
+ - [DestinationsResponse](docs/DestinationsResponse.md)
95
+ - [EntityChild](docs/EntityChild.md)
96
+ - [EntityChildrenResponse](docs/EntityChildrenResponse.md)
97
+ - [EntityData](docs/EntityData.md)
98
+ - [EntityDataLocation](docs/EntityDataLocation.md)
99
+ - [EntityLiveData](docs/EntityLiveData.md)
100
+ - [EntityLiveDataResponse](docs/EntityLiveDataResponse.md)
101
+ - [EntityScheduleResponse](docs/EntityScheduleResponse.md)
102
+ - [EntityType](docs/EntityType.md)
103
+ - [LiveQueue](docs/LiveQueue.md)
104
+ - [LiveQueueBOARDINGGROUP](docs/LiveQueueBOARDINGGROUP.md)
105
+ - [LiveQueuePAIDRETURNTIME](docs/LiveQueuePAIDRETURNTIME.md)
106
+ - [LiveQueueRETURNTIME](docs/LiveQueueRETURNTIME.md)
107
+ - [LiveQueueSTANDBY](docs/LiveQueueSTANDBY.md)
108
+ - [LiveShowTime](docs/LiveShowTime.md)
109
+ - [LiveStatusType](docs/LiveStatusType.md)
110
+ - [PriceData](docs/PriceData.md)
111
+ - [ReturnTimeState](docs/ReturnTimeState.md)
112
+ - [ScheduleEntry](docs/ScheduleEntry.md)
113
+ - [TagData](docs/TagData.md)
114
+
115
+
116
+ ## Documentation For Authorization
117
+
118
+ All endpoints do not require authorization.
119
+
120
+ ## Author
121
+
122
+
123
+
124
+
125
+ ## Notes for Large OpenAPI documents
126
+ If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a
127
+ RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
128
+
129
+ Solution 1:
130
+ Use specific imports for apis and models like:
131
+ - `from openapi_client.api.default_api import DefaultApi`
132
+ - `from openapi_client.model.pet import Pet`
133
+
134
+ Solution 2:
135
+ Before importing the package, adjust the maximum recursion limit as shown below:
136
+ ```
137
+ import sys
138
+ sys.setrecursionlimit(1500)
139
+ import openapi_client
140
+ from openapi_client.apis import *
141
+ from openapi_client.models import *
142
+ ```
143
+
@@ -0,0 +1,27 @@
1
+ # flake8: noqa
2
+
3
+ """
4
+ Theme Parks Wiki V1 API
5
+
6
+ api.themeparks.wiki # noqa: E501
7
+
8
+ The version of the OpenAPI document: 1.0.0-alpha
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ __version__ = "1.0.0"
14
+
15
+ # import ApiClient
16
+ from openapi_client.api_client import ApiClient
17
+
18
+ # import Configuration
19
+ from openapi_client.configuration import Configuration
20
+
21
+ # import exceptions
22
+ from openapi_client.exceptions import OpenApiException
23
+ from openapi_client.exceptions import ApiAttributeError
24
+ from openapi_client.exceptions import ApiTypeError
25
+ from openapi_client.exceptions import ApiValueError
26
+ from openapi_client.exceptions import ApiKeyError
27
+ from openapi_client.exceptions import ApiException
@@ -0,0 +1,3 @@
1
+ # do not import all apis into this module because that uses a lot of memory and stack frames
2
+ # if you need the ability to import all apis from one package, import them with
3
+ # from openapi_client.apis import DestinationsApi
@@ -0,0 +1,152 @@
1
+ """
2
+ Theme Parks Wiki V1 API
3
+
4
+ api.themeparks.wiki # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0-alpha
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from openapi_client.api_client import ApiClient, Endpoint as _Endpoint
15
+ from openapi_client.model_utils import ( # noqa: F401
16
+ check_allowed_values,
17
+ check_validations,
18
+ date,
19
+ datetime,
20
+ file_type,
21
+ none_type,
22
+ validate_and_convert_types
23
+ )
24
+ from openapi_client.model.destinations_response import DestinationsResponse
25
+
26
+
27
+ class DestinationsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+ self.get_destinations_endpoint = _Endpoint(
39
+ settings={
40
+ 'response_type': (DestinationsResponse,),
41
+ 'auth': [],
42
+ 'endpoint_path': '/destinations',
43
+ 'operation_id': 'get_destinations',
44
+ 'http_method': 'GET',
45
+ 'servers': None,
46
+ },
47
+ params_map={
48
+ 'all': [
49
+ ],
50
+ 'required': [],
51
+ 'nullable': [
52
+ ],
53
+ 'enum': [
54
+ ],
55
+ 'validation': [
56
+ ]
57
+ },
58
+ root_map={
59
+ 'validations': {
60
+ },
61
+ 'allowed_values': {
62
+ },
63
+ 'openapi_types': {
64
+ },
65
+ 'attribute_map': {
66
+ },
67
+ 'location_map': {
68
+ },
69
+ 'collection_format_map': {
70
+ }
71
+ },
72
+ headers_map={
73
+ 'accept': [
74
+ 'application/json'
75
+ ],
76
+ 'content_type': [],
77
+ },
78
+ api_client=api_client
79
+ )
80
+
81
+ def get_destinations(
82
+ self,
83
+ **kwargs
84
+ ):
85
+ """Get a list of supported destinations available on the live API # noqa: E501
86
+
87
+ This method makes a synchronous HTTP request by default. To make an
88
+ asynchronous HTTP request, please pass async_req=True
89
+
90
+ >>> thread = api.get_destinations(async_req=True)
91
+ >>> result = thread.get()
92
+
93
+
94
+ Keyword Args:
95
+ _return_http_data_only (bool): response data without head status
96
+ code and headers. Default is True.
97
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
98
+ will be returned without reading/decoding response data.
99
+ Default is True.
100
+ _request_timeout (int/float/tuple): timeout setting for this request. If
101
+ one number provided, it will be total request timeout. It can also
102
+ be a pair (tuple) of (connection, read) timeouts.
103
+ Default is None.
104
+ _check_input_type (bool): specifies if type checking
105
+ should be done one the data sent to the server.
106
+ Default is True.
107
+ _check_return_type (bool): specifies if type checking
108
+ should be done one the data received from the server.
109
+ Default is True.
110
+ _spec_property_naming (bool): True if the variable names in the input data
111
+ are serialized names, as specified in the OpenAPI document.
112
+ False if the variable names in the input data
113
+ are pythonic names, e.g. snake case (default)
114
+ _content_type (str/None): force body content-type.
115
+ Default is None and content-type will be predicted by allowed
116
+ content-types and body.
117
+ _host_index (int/None): specifies the index of the server
118
+ that we want to use.
119
+ Default is read from the configuration.
120
+ async_req (bool): execute request asynchronously
121
+
122
+ Returns:
123
+ DestinationsResponse
124
+ If the method is called asynchronously, returns the request
125
+ thread.
126
+ """
127
+ kwargs['async_req'] = kwargs.get(
128
+ 'async_req', False
129
+ )
130
+ kwargs['_return_http_data_only'] = kwargs.get(
131
+ '_return_http_data_only', True
132
+ )
133
+ kwargs['_preload_content'] = kwargs.get(
134
+ '_preload_content', True
135
+ )
136
+ kwargs['_request_timeout'] = kwargs.get(
137
+ '_request_timeout', None
138
+ )
139
+ kwargs['_check_input_type'] = kwargs.get(
140
+ '_check_input_type', True
141
+ )
142
+ kwargs['_check_return_type'] = kwargs.get(
143
+ '_check_return_type', True
144
+ )
145
+ kwargs['_spec_property_naming'] = kwargs.get(
146
+ '_spec_property_naming', False
147
+ )
148
+ kwargs['_content_type'] = kwargs.get(
149
+ '_content_type')
150
+ kwargs['_host_index'] = kwargs.get('_host_index')
151
+ return self.get_destinations_endpoint.call_with_http_info(**kwargs)
152
+