prismlauncheroldmcsnaps 0.2.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 (31) hide show
  1. prismlauncheroldmcsnaps-0.2.0/PKG-INFO +135 -0
  2. prismlauncheroldmcsnaps-0.2.0/README.md +116 -0
  3. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/__init__.py +59 -0
  4. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/api/__init__.py +5 -0
  5. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/api/default_api.py +550 -0
  6. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/api_client.py +843 -0
  7. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/api_response.py +21 -0
  8. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/configuration.py +646 -0
  9. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/exceptions.py +219 -0
  10. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/__init__.py +22 -0
  11. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/archived_minecraft_version_info.py +131 -0
  12. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/asset_index.py +121 -0
  13. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/library.py +110 -0
  14. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/old_snapshot.py +107 -0
  15. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/models/old_snapshots_manifest.py +96 -0
  16. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/py.typed +0 -0
  17. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps/rest.py +335 -0
  18. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps.egg-info/PKG-INFO +135 -0
  19. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps.egg-info/SOURCES.txt +30 -0
  20. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps.egg-info/dependency_links.txt +1 -0
  21. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps.egg-info/requires.txt +4 -0
  22. prismlauncheroldmcsnaps-0.2.0/prismlauncheroldmcsnaps.egg-info/top_level.txt +1 -0
  23. prismlauncheroldmcsnaps-0.2.0/pyproject.toml +94 -0
  24. prismlauncheroldmcsnaps-0.2.0/setup.cfg +7 -0
  25. prismlauncheroldmcsnaps-0.2.0/setup.py +49 -0
  26. prismlauncheroldmcsnaps-0.2.0/test/test_archived_minecraft_version_info.py +65 -0
  27. prismlauncheroldmcsnaps-0.2.0/test/test_asset_index.py +56 -0
  28. prismlauncheroldmcsnaps-0.2.0/test/test_default_api.py +46 -0
  29. prismlauncheroldmcsnaps-0.2.0/test/test_library.py +60 -0
  30. prismlauncheroldmcsnaps-0.2.0/test/test_old_snapshot.py +63 -0
  31. prismlauncheroldmcsnaps-0.2.0/test/test_old_snapshots_manifest.py +69 -0
@@ -0,0 +1,135 @@
1
+ Metadata-Version: 2.4
2
+ Name: prismlauncheroldmcsnaps
3
+ Version: 0.2.0
4
+ Summary: PrismLauncher Old Minecraft Snapshots
5
+ Home-page: https://github.com/oapicf/prismlauncher-oldmcsnaps
6
+ Author: OpenAPI Clients Factory
7
+ Author-email: OpenAPI Clients Factory <blah+oapicf@cliffano.com>
8
+ License: MIT
9
+ Project-URL: Repository, https://github.com/oapicf/prismlauncher-oldmcsnaps
10
+ Keywords: OpenAPI,OpenAPI-Generator,PrismLauncher Old Minecraft Snapshots
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: urllib3<3.0.0,>=2.7.0
14
+ Requires-Dist: python-dateutil>=2.8.2
15
+ Requires-Dist: pydantic>=2.11
16
+ Requires-Dist: typing-extensions>=4.7.1
17
+ Dynamic: author
18
+ Dynamic: home-page
19
+
20
+ # prismlauncheroldmcsnaps
21
+ SDK-friendly OpenAPI description for PrismLauncher's old Minecraft snapshots metadata and the corresponding archived Minecraft version JSON documents hosted by Internet Archive.
22
+
23
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
24
+
25
+ - API version: 0.2.0
26
+ - Package version: 0.2.0
27
+ - Generator version: 7.26.0
28
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
29
+ For more information, please visit [https://github.com/oapicf/prismlauncher-oldmcsnaps](https://github.com/oapicf/prismlauncher-oldmcsnaps)
30
+
31
+ ## Requirements.
32
+
33
+ Python 3.10+
34
+
35
+ Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
36
+ Install the package with `python -m pip install .`; install development dependencies
37
+ with Poetry 2.2 or newer using `poetry install`, or pip 25.1 or newer using
38
+ `python -m pip install --group dev`. The latter installs the group, not the package.
39
+
40
+ ## Installation & Usage
41
+ ### pip install
42
+
43
+ If the python package is hosted on a repository, you can install directly using:
44
+
45
+ ```sh
46
+ pip install git+https://github.com/oapicf/prismlauncher-oldmcsnaps.git
47
+ ```
48
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/oapicf/prismlauncher-oldmcsnaps.git`)
49
+
50
+ Then import the package:
51
+ ```python
52
+ import prismlauncheroldmcsnaps
53
+ ```
54
+
55
+ ### Setuptools
56
+
57
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
58
+
59
+ ```sh
60
+ python setup.py install --user
61
+ ```
62
+ (or `sudo python setup.py install` to install the package for all users)
63
+
64
+ Then import the package:
65
+ ```python
66
+ import prismlauncheroldmcsnaps
67
+ ```
68
+
69
+ ### Tests
70
+
71
+ Execute `pytest` to run the tests.
72
+
73
+ ## Getting Started
74
+
75
+ Please follow the [installation procedure](#installation--usage) and then run the following:
76
+
77
+ ```python
78
+
79
+ import prismlauncheroldmcsnaps
80
+ from prismlauncheroldmcsnaps.rest import ApiException
81
+ from pprint import pprint
82
+
83
+ # Defining the host is optional and defaults to https://raw.githubusercontent.com
84
+ # See configuration.py for a list of all supported configuration parameters.
85
+ configuration = prismlauncheroldmcsnaps.Configuration(
86
+ host = "https://raw.githubusercontent.com"
87
+ )
88
+
89
+
90
+
91
+ # Enter a context with an instance of the API client
92
+ with prismlauncheroldmcsnaps.ApiClient(configuration) as api_client:
93
+ # Create an instance of the API class
94
+ api_instance = prismlauncheroldmcsnaps.DefaultApi(api_client)
95
+ version_json_id = 'b1.9-pre3' # str | Archive.org Minecraft-JSONs filename without the `.json` suffix. For example, `b1.9-pre3`.
96
+
97
+ try:
98
+ # Get archived Minecraft version info
99
+ api_response = api_instance.get_archived_minecraft_version_info(version_json_id)
100
+ print("The response of DefaultApi->get_archived_minecraft_version_info:\n")
101
+ pprint(api_response)
102
+ except ApiException as e:
103
+ print("Exception when calling DefaultApi->get_archived_minecraft_version_info: %s\n" % e)
104
+
105
+ ```
106
+
107
+ ## Documentation for API Endpoints
108
+
109
+ All URIs are relative to *https://raw.githubusercontent.com*
110
+
111
+ Class | Method | HTTP request | Description
112
+ ------------ | ------------- | ------------- | -------------
113
+ *DefaultApi* | [**get_archived_minecraft_version_info**](docs/DefaultApi.md#get_archived_minecraft_version_info) | **GET** /download/Minecraft-JSONs/{versionJsonId}.json | Get archived Minecraft version info
114
+ *DefaultApi* | [**get_old_minecraft_snapshots**](docs/DefaultApi.md#get_old_minecraft_snapshots) | **GET** /PrismLauncher/meta/main/meta/common/mojang-minecraft-old-snapshots.json | Get old Minecraft snapshots manifest
115
+
116
+
117
+ ## Documentation For Models
118
+
119
+ - [ArchivedMinecraftVersionInfo](docs/ArchivedMinecraftVersionInfo.md)
120
+ - [AssetIndex](docs/AssetIndex.md)
121
+ - [Library](docs/Library.md)
122
+ - [OldSnapshot](docs/OldSnapshot.md)
123
+ - [OldSnapshotsManifest](docs/OldSnapshotsManifest.md)
124
+
125
+
126
+ <a id="documentation-for-authorization"></a>
127
+ ## Documentation For Authorization
128
+
129
+ Endpoints do not require authorization.
130
+
131
+
132
+ ## Author
133
+
134
+ blah+oapicf@cliffano.com
135
+
@@ -0,0 +1,116 @@
1
+ # prismlauncheroldmcsnaps
2
+ SDK-friendly OpenAPI description for PrismLauncher's old Minecraft snapshots metadata and the corresponding archived Minecraft version JSON documents hosted by Internet Archive.
3
+
4
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
+
6
+ - API version: 0.2.0
7
+ - Package version: 0.2.0
8
+ - Generator version: 7.26.0
9
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
+ For more information, please visit [https://github.com/oapicf/prismlauncher-oldmcsnaps](https://github.com/oapicf/prismlauncher-oldmcsnaps)
11
+
12
+ ## Requirements.
13
+
14
+ Python 3.10+
15
+
16
+ Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
17
+ Install the package with `python -m pip install .`; install development dependencies
18
+ with Poetry 2.2 or newer using `poetry install`, or pip 25.1 or newer using
19
+ `python -m pip install --group dev`. The latter installs the group, not the package.
20
+
21
+ ## Installation & Usage
22
+ ### pip install
23
+
24
+ If the python package is hosted on a repository, you can install directly using:
25
+
26
+ ```sh
27
+ pip install git+https://github.com/oapicf/prismlauncher-oldmcsnaps.git
28
+ ```
29
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/oapicf/prismlauncher-oldmcsnaps.git`)
30
+
31
+ Then import the package:
32
+ ```python
33
+ import prismlauncheroldmcsnaps
34
+ ```
35
+
36
+ ### Setuptools
37
+
38
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
39
+
40
+ ```sh
41
+ python setup.py install --user
42
+ ```
43
+ (or `sudo python setup.py install` to install the package for all users)
44
+
45
+ Then import the package:
46
+ ```python
47
+ import prismlauncheroldmcsnaps
48
+ ```
49
+
50
+ ### Tests
51
+
52
+ Execute `pytest` to run the tests.
53
+
54
+ ## Getting Started
55
+
56
+ Please follow the [installation procedure](#installation--usage) and then run the following:
57
+
58
+ ```python
59
+
60
+ import prismlauncheroldmcsnaps
61
+ from prismlauncheroldmcsnaps.rest import ApiException
62
+ from pprint import pprint
63
+
64
+ # Defining the host is optional and defaults to https://raw.githubusercontent.com
65
+ # See configuration.py for a list of all supported configuration parameters.
66
+ configuration = prismlauncheroldmcsnaps.Configuration(
67
+ host = "https://raw.githubusercontent.com"
68
+ )
69
+
70
+
71
+
72
+ # Enter a context with an instance of the API client
73
+ with prismlauncheroldmcsnaps.ApiClient(configuration) as api_client:
74
+ # Create an instance of the API class
75
+ api_instance = prismlauncheroldmcsnaps.DefaultApi(api_client)
76
+ version_json_id = 'b1.9-pre3' # str | Archive.org Minecraft-JSONs filename without the `.json` suffix. For example, `b1.9-pre3`.
77
+
78
+ try:
79
+ # Get archived Minecraft version info
80
+ api_response = api_instance.get_archived_minecraft_version_info(version_json_id)
81
+ print("The response of DefaultApi->get_archived_minecraft_version_info:\n")
82
+ pprint(api_response)
83
+ except ApiException as e:
84
+ print("Exception when calling DefaultApi->get_archived_minecraft_version_info: %s\n" % e)
85
+
86
+ ```
87
+
88
+ ## Documentation for API Endpoints
89
+
90
+ All URIs are relative to *https://raw.githubusercontent.com*
91
+
92
+ Class | Method | HTTP request | Description
93
+ ------------ | ------------- | ------------- | -------------
94
+ *DefaultApi* | [**get_archived_minecraft_version_info**](docs/DefaultApi.md#get_archived_minecraft_version_info) | **GET** /download/Minecraft-JSONs/{versionJsonId}.json | Get archived Minecraft version info
95
+ *DefaultApi* | [**get_old_minecraft_snapshots**](docs/DefaultApi.md#get_old_minecraft_snapshots) | **GET** /PrismLauncher/meta/main/meta/common/mojang-minecraft-old-snapshots.json | Get old Minecraft snapshots manifest
96
+
97
+
98
+ ## Documentation For Models
99
+
100
+ - [ArchivedMinecraftVersionInfo](docs/ArchivedMinecraftVersionInfo.md)
101
+ - [AssetIndex](docs/AssetIndex.md)
102
+ - [Library](docs/Library.md)
103
+ - [OldSnapshot](docs/OldSnapshot.md)
104
+ - [OldSnapshotsManifest](docs/OldSnapshotsManifest.md)
105
+
106
+
107
+ <a id="documentation-for-authorization"></a>
108
+ ## Documentation For Authorization
109
+
110
+ Endpoints do not require authorization.
111
+
112
+
113
+ ## Author
114
+
115
+ blah+oapicf@cliffano.com
116
+
@@ -0,0 +1,59 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ PrismLauncher Old Minecraft Snapshots
7
+
8
+ SDK-friendly OpenAPI description for PrismLauncher's old Minecraft snapshots metadata and the corresponding archived Minecraft version JSON documents hosted by Internet Archive.
9
+
10
+ The version of the OpenAPI document: 0.2.0
11
+ Contact: blah+oapicf@cliffano.com
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "0.2.0"
19
+
20
+ # Define package exports
21
+ __all__ = [
22
+ "DefaultApi",
23
+ "ApiResponse",
24
+ "ApiClient",
25
+ "Configuration",
26
+ "OpenApiException",
27
+ "ApiTypeError",
28
+ "ApiValueError",
29
+ "ApiKeyError",
30
+ "ApiAttributeError",
31
+ "ApiException",
32
+ "ArchivedMinecraftVersionInfo",
33
+ "AssetIndex",
34
+ "Library",
35
+ "OldSnapshot",
36
+ "OldSnapshotsManifest",
37
+ ]
38
+
39
+ # import apis into sdk package
40
+ from prismlauncheroldmcsnaps.api.default_api import DefaultApi as DefaultApi
41
+
42
+ # import ApiClient
43
+ from prismlauncheroldmcsnaps.api_response import ApiResponse as ApiResponse
44
+ from prismlauncheroldmcsnaps.api_client import ApiClient as ApiClient
45
+ from prismlauncheroldmcsnaps.configuration import Configuration as Configuration
46
+ from prismlauncheroldmcsnaps.exceptions import OpenApiException as OpenApiException
47
+ from prismlauncheroldmcsnaps.exceptions import ApiTypeError as ApiTypeError
48
+ from prismlauncheroldmcsnaps.exceptions import ApiValueError as ApiValueError
49
+ from prismlauncheroldmcsnaps.exceptions import ApiKeyError as ApiKeyError
50
+ from prismlauncheroldmcsnaps.exceptions import ApiAttributeError as ApiAttributeError
51
+ from prismlauncheroldmcsnaps.exceptions import ApiException as ApiException
52
+
53
+ # import models into sdk package
54
+ from prismlauncheroldmcsnaps.models.archived_minecraft_version_info import ArchivedMinecraftVersionInfo as ArchivedMinecraftVersionInfo
55
+ from prismlauncheroldmcsnaps.models.asset_index import AssetIndex as AssetIndex
56
+ from prismlauncheroldmcsnaps.models.library import Library as Library
57
+ from prismlauncheroldmcsnaps.models.old_snapshot import OldSnapshot as OldSnapshot
58
+ from prismlauncheroldmcsnaps.models.old_snapshots_manifest import OldSnapshotsManifest as OldSnapshotsManifest
59
+
@@ -0,0 +1,5 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from prismlauncheroldmcsnaps.api.default_api import DefaultApi
5
+