apiverve-filesizeformatter 1.2.4__py3-none-any.whl

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.
@@ -0,0 +1,3 @@
1
+ from .apiClient import FilesizeformatterAPIClient, FilesizeformatterAPIClientError
2
+
3
+ __all__ = ['FilesizeformatterAPIClient', 'FilesizeformatterAPIClientError']
@@ -0,0 +1,253 @@
1
+ import re
2
+ from typing import Dict, Optional, Any, List
3
+ from dataclasses import dataclass
4
+ import requests
5
+
6
+
7
+ class FilesizeformatterAPIClientError(Exception):
8
+ """Custom exception for API client errors"""
9
+ def __init__(self, message: str, status_code: Optional[int] = None, response: Optional[Dict] = None):
10
+ self.message = message
11
+ self.status_code = status_code
12
+ self.response = response
13
+ super().__init__(self.message)
14
+
15
+
16
+ class ValidationError(FilesizeformatterAPIClientError):
17
+ """Custom exception for parameter validation errors"""
18
+ def __init__(self, errors: List[str]):
19
+ self.errors = errors
20
+ message = f"Validation failed: {' '.join(errors)}"
21
+ super().__init__(message)
22
+
23
+
24
+ class FilesizeformatterAPIClient:
25
+ # Validation rules for parameters (generated from schema)
26
+ VALIDATION_RULES = {
27
+ "bytes": {"type": "integer", "required": True, "min": 0},
28
+ "unit": {"type": "string", "required": False},
29
+ "precision": {"type": "integer", "required": False, "min": 0, "max": 10, "default": 2},
30
+ "standard": {"type": "string", "required": False, "default": "binary"}
31
+ }
32
+
33
+ # Format validation patterns
34
+ FORMAT_PATTERNS = {
35
+ 'email': r'^[^\s@]+@[^\s@]+\.[^\s@]+$',
36
+ 'url': r'^https?://.+',
37
+ 'ip': r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$',
38
+ 'date': r'^\d{4}-\d{2}-\d{2}$',
39
+ 'hexColor': r'^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$'
40
+ }
41
+
42
+ def __init__(self, api_key: str, secure: bool = True, debug: bool = False):
43
+ """
44
+ Initialize the FilesizeformatterAPIClient with the API key and optional settings
45
+
46
+ :param api_key: Your APIVerve API key
47
+ :param secure: Deprecated. Always set to True
48
+ :param debug: Enable debug logging (default: False)
49
+ :raises FilesizeformatterAPIClientError: If API key is invalid
50
+ """
51
+
52
+ self._validate_api_key(api_key)
53
+
54
+ self.api_key = api_key
55
+ self.secure = secure
56
+ self.debug = debug
57
+ self.base_url = 'https://api.apiverve.com/v1/filesizeformatter'
58
+ self.headers = {
59
+ 'x-api-key': self.api_key,
60
+ 'auth-mode': 'pypi-package'
61
+ }
62
+
63
+ # Create a session for connection pooling
64
+ self.session = requests.Session()
65
+ self.session.headers.update(self.headers)
66
+
67
+ def _validate_api_key(self, api_key: str) -> None:
68
+ """
69
+ Validate the API key format
70
+
71
+ :param api_key: API key to validate
72
+ :raises FilesizeformatterAPIClientError: If API key is invalid
73
+ """
74
+ if not api_key or not api_key.strip():
75
+ raise FilesizeformatterAPIClientError(
76
+ "API key is required. Get your API key at: https://apiverve.com"
77
+ )
78
+
79
+ # Check format (GUID, prefixed keys like apv_xxx, or alphanumeric)
80
+ if not re.match(r'^[a-zA-Z0-9_-]+$', api_key):
81
+ raise FilesizeformatterAPIClientError(
82
+ "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores. "
83
+ "Get your API key at: https://apiverve.com"
84
+ )
85
+
86
+ def _log(self, message: str) -> None:
87
+ """
88
+ Log a debug message if debug mode is enabled
89
+
90
+ :param message: Message to log
91
+ """
92
+ if self.debug:
93
+ print(f"[FilesizeformatterAPIClient DEBUG] {message}")
94
+
95
+ def _validate_params(self, params: Optional[Dict[str, Any]]) -> None:
96
+ """
97
+ Validate parameters against schema rules
98
+
99
+ :param params: Parameters to validate
100
+ :raises ValidationError: If validation fails
101
+ """
102
+ if not self.VALIDATION_RULES:
103
+ return
104
+
105
+ errors = []
106
+ params = params or {}
107
+
108
+ for param_name, rules in self.VALIDATION_RULES.items():
109
+ value = params.get(param_name)
110
+
111
+ # Check required
112
+ if rules.get('required') and (value is None or value == ''):
113
+ errors.append(f"Required parameter [{param_name}] is missing.")
114
+ continue
115
+
116
+ # Skip validation if value is not provided and not required
117
+ if value is None:
118
+ continue
119
+
120
+ param_type = rules.get('type', 'string')
121
+
122
+ # Type validation
123
+ if param_type in ('integer', 'number'):
124
+ try:
125
+ num_value = float(value) if param_type == 'number' else int(value)
126
+
127
+ # Min/max validation
128
+ if 'min' in rules and num_value < rules['min']:
129
+ errors.append(f"Parameter [{param_name}] must be at least {rules['min']}.")
130
+ if 'max' in rules and num_value > rules['max']:
131
+ errors.append(f"Parameter [{param_name}] must be at most {rules['max']}.")
132
+ except (ValueError, TypeError):
133
+ errors.append(f"Parameter [{param_name}] must be a valid {param_type}.")
134
+ continue
135
+
136
+ elif param_type == 'string':
137
+ if not isinstance(value, str):
138
+ errors.append(f"Parameter [{param_name}] must be a string.")
139
+ continue
140
+
141
+ # Length validation
142
+ if 'minLength' in rules and len(value) < rules['minLength']:
143
+ errors.append(f"Parameter [{param_name}] must be at least {rules['minLength']} characters.")
144
+ if 'maxLength' in rules and len(value) > rules['maxLength']:
145
+ errors.append(f"Parameter [{param_name}] must be at most {rules['maxLength']} characters.")
146
+
147
+ # Format validation
148
+ if 'format' in rules and rules['format'] in self.FORMAT_PATTERNS:
149
+ pattern = self.FORMAT_PATTERNS[rules['format']]
150
+ if not re.match(pattern, value, re.IGNORECASE):
151
+ errors.append(f"Parameter [{param_name}] must be a valid {rules['format']}.")
152
+
153
+ elif param_type == 'boolean':
154
+ if not isinstance(value, bool) and value not in ('true', 'false', True, False):
155
+ errors.append(f"Parameter [{param_name}] must be a boolean.")
156
+
157
+ elif param_type == 'array':
158
+ if not isinstance(value, list):
159
+ errors.append(f"Parameter [{param_name}] must be an array.")
160
+
161
+ # Enum validation
162
+ if 'enum' in rules and value not in rules['enum']:
163
+ errors.append(f"Parameter [{param_name}] must be one of: {', '.join(map(str, rules['enum']))}.")
164
+
165
+ if errors:
166
+ raise ValidationError(errors)
167
+
168
+ def execute(self, params: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: # Returns FileSizeFormatterData in 'data' field
169
+ """
170
+ Execute the API request
171
+
172
+ :param params: API parameters (optional)
173
+ :return: API response as a dictionary
174
+ :raises FilesizeformatterAPIClientError: If the request fails or returns an error
175
+ :raises ValidationError: If parameter validation fails
176
+ """
177
+
178
+ # Validate parameters against schema rules
179
+ self._validate_params(params)
180
+
181
+ method = "GET"
182
+
183
+ self._log(f"Making {method} request to {self.base_url}")
184
+ if params:
185
+ self._log(f"Parameters: {params}")
186
+
187
+ try:
188
+ if method.upper() == 'POST':
189
+ self._log("Sending POST request with JSON body")
190
+ response = self.session.post(self.base_url, json=params, timeout=30)
191
+ else:
192
+ self._log("Sending GET request with query parameters")
193
+ response = self.session.get(self.base_url, params=params, timeout=30)
194
+
195
+ self._log(f"Response status code: {response.status_code}")
196
+
197
+ # Try to parse JSON response
198
+ try:
199
+ response_data = response.json()
200
+ except ValueError as e:
201
+ raise FilesizeformatterAPIClientError(
202
+ f"Invalid JSON response from API: {str(e)}",
203
+ status_code=response.status_code
204
+ )
205
+
206
+ # Check for API-level errors in the response
207
+ if response_data.get('status') == 'error':
208
+ error_message = response_data.get('error', 'Unknown API error')
209
+ self._log(f"API returned error: {error_message}")
210
+ raise FilesizeformatterAPIClientError(
211
+ error_message,
212
+ status_code=response.status_code,
213
+ response=response_data
214
+ )
215
+
216
+ # Check HTTP status code
217
+ if not response.ok:
218
+ error_message = response_data.get('error', f"HTTP {response.status_code} error")
219
+ self._log(f"HTTP error: {error_message}")
220
+ raise FilesizeformatterAPIClientError(
221
+ error_message,
222
+ status_code=response.status_code,
223
+ response=response_data
224
+ )
225
+
226
+ self._log("Request successful")
227
+ return response_data
228
+
229
+ except requests.exceptions.Timeout as e:
230
+ self._log(f"Request timeout: {str(e)}")
231
+ raise FilesizeformatterAPIClientError(f"Request timeout: {str(e)}")
232
+ except requests.exceptions.ConnectionError as e:
233
+ self._log(f"Connection error: {str(e)}")
234
+ raise FilesizeformatterAPIClientError(f"Connection error: {str(e)}")
235
+ except requests.exceptions.RequestException as e:
236
+ self._log(f"Request exception: {str(e)}")
237
+ raise FilesizeformatterAPIClientError(f"Request failed: {str(e)}")
238
+
239
+
240
+ def close(self) -> None:
241
+ """
242
+ Close the session and release resources
243
+ """
244
+ self._log("Closing session")
245
+ self.session.close()
246
+
247
+ def __enter__(self):
248
+ """Context manager entry"""
249
+ return self
250
+
251
+ def __exit__(self, exc_type, exc_val, exc_tb):
252
+ """Context manager exit"""
253
+ self.close()
@@ -0,0 +1,3 @@
1
+ class FilesizeformatterFileSizeFormatterAPIError(Exception):
2
+ """A custom exception for API errors"""
3
+ pass
@@ -0,0 +1,26 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ import os
4
+ lib_folder = os.path.dirname(os.path.realpath(__file__))
5
+ requirements_file = os.path.join(lib_folder, 'requirements.txt')
6
+ install_requires = ["requests >= 2.25.1", "setuptools >= 56.0.0"]
7
+ if os.path.exists(requirements_file):
8
+ with open(requirements_file, 'r') as f:
9
+ install_requires = f.read().splitlines()
10
+
11
+ setup(
12
+ name='apiverve_filesizeformatter',
13
+ version='1.2.4',
14
+ packages=find_packages(),
15
+ include_package_data=True,
16
+ install_requires=install_requires,
17
+ description='File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.',
18
+ author='APIVerve',
19
+ author_email='hello@apiverve.com',
20
+ url='https://apiverve.com/marketplace/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=homepage',
21
+ classifiers=[
22
+ 'Programming Language :: Python :: 3',
23
+ 'Operating System :: OS Independent',
24
+ ],
25
+ python_requires='>=3.6',
26
+ )
@@ -0,0 +1,21 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='apiverve_filesizeformatter',
5
+ version='1.2.4',
6
+ packages=find_packages(),
7
+ include_package_data=True,
8
+ install_requires=[
9
+ 'requests',
10
+ 'setuptools'
11
+ ],
12
+ description='File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.',
13
+ author='APIVerve',
14
+ author_email='hello@apiverve.com',
15
+ url='https://apiverve.com/marketplace/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=homepage',
16
+ classifiers=[
17
+ 'Programming Language :: Python :: 3',
18
+ 'Operating System :: OS Independent',
19
+ ],
20
+ python_requires='>=3.6',
21
+ )
@@ -0,0 +1 @@
1
+ # Initialize test module
@@ -0,0 +1,19 @@
1
+ import unittest
2
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient
3
+
4
+ class TestClient(unittest.TestCase):
5
+
6
+ def setUp(self):
7
+ self.api_key = 'test_api_key'
8
+ self.client = FilesizeformatterAPIClient(self.api_key)
9
+
10
+ def test_get(self):
11
+ # Assuming there's an endpoint 'test_endpoint' for testing purposes
12
+ try:
13
+ response = self.client.get('test_endpoint')
14
+ self.assertIsInstance(response, dict)
15
+ except Exception as e:
16
+ self.fail(f"GET request failed with exception {e}")
17
+
18
+ if __name__ == '__main__':
19
+ unittest.main()
@@ -0,0 +1,331 @@
1
+ Metadata-Version: 2.4
2
+ Name: apiverve-filesizeformatter
3
+ Version: 1.2.4
4
+ Summary: File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.
5
+ Author-email: APIVerve <hello@apiverve.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://apiverve.com/marketplace/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=homepage
8
+ Project-URL: Documentation, https://docs.apiverve.com/ref/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=docs
9
+ Project-URL: Repository, https://github.com/apiverve/filesizeformatter-api
10
+ Project-URL: Twitter, https://twitter.com/apivervehq
11
+ Keywords: file size,bytes converter,kb mb gb,file size formatter,storage size
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Topic :: Internet :: WWW/HTTP
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Natural Language :: English
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: requests>=2.25.0
23
+ Dynamic: license-file
24
+
25
+ File Size Formatter API
26
+ ============
27
+
28
+ File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.
29
+
30
+
31
+ [![PyPI version](https://img.shields.io/pypi/v/apiverve-filesizeformatter.svg)](https://pypi.org/project/apiverve-filesizeformatter/)
32
+
33
+ This is a Python wrapper for the [File Size Formatter API](https://apiverve.com/marketplace/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=readme)
34
+
35
+ ---
36
+
37
+ ## Installation
38
+
39
+ Using `pip`:
40
+
41
+ ```bash
42
+ pip install apiverve-filesizeformatter
43
+ ```
44
+
45
+ Using `pip3`:
46
+
47
+ ```bash
48
+ pip3 install apiverve-filesizeformatter
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Configuration
54
+
55
+ Before using the File Size Formatter API client, you have to setup your account and obtain your API Key.
56
+ You can get it by signing up at [https://apiverve.com](https://apiverve.com?utm_source=pypi&utm_medium=referral&utm_content=readme)
57
+
58
+ ---
59
+
60
+ ## Quick Start
61
+
62
+ Here's a simple example to get you started quickly:
63
+
64
+ ```python
65
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient
66
+
67
+ # Initialize the client with your APIVerve API key
68
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]")
69
+
70
+ query = {
71
+ "bytes": 1073741824,
72
+ "unit": "GB",
73
+ "precision": 2,
74
+ "standard": "binary"
75
+ }
76
+
77
+ try:
78
+ # Make the API call
79
+ result = api.execute(query)
80
+
81
+ # Print the result
82
+ print(result)
83
+ except Exception as e:
84
+ print(f"Error: {e}")
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Usage
90
+
91
+ The File Size Formatter API documentation is found here: [https://docs.apiverve.com/ref/filesizeformatter](https://docs.apiverve.com/ref/filesizeformatter?utm_source=pypi&utm_medium=referral&utm_content=readme).
92
+ You can find parameters, example responses, and status codes documented here.
93
+
94
+ ### Setup
95
+
96
+ ```python
97
+ # Import the client module
98
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient
99
+
100
+ # Initialize the client with your APIVerve API key
101
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]")
102
+ ```
103
+
104
+ ---
105
+
106
+ ## Perform Request
107
+
108
+ Using the API client, you can perform requests to the API.
109
+
110
+ ###### Define Query
111
+
112
+ ```python
113
+ query = {
114
+ "bytes": 1073741824,
115
+ "unit": "GB",
116
+ "precision": 2,
117
+ "standard": "binary"
118
+ }
119
+ ```
120
+
121
+ ###### Simple Request
122
+
123
+ ```python
124
+ # Make a request to the API
125
+ result = api.execute(query)
126
+
127
+ # Print the result
128
+ print(result)
129
+ ```
130
+
131
+ ###### Example Response
132
+
133
+ ```json
134
+ {
135
+ "status": "ok",
136
+ "error": null,
137
+ "data": {
138
+ "bytes": 1073741824,
139
+ "formatted": "1 GiB",
140
+ "value": 1,
141
+ "unit": "GiB",
142
+ "standard": "binary",
143
+ "precision": 2,
144
+ "conversions": {
145
+ "B": 1073741824,
146
+ "KiB": 1048576,
147
+ "MiB": 1024,
148
+ "GiB": 1,
149
+ "TiB": 0,
150
+ "PiB": 0,
151
+ "EiB": 0,
152
+ "ZiB": 0,
153
+ "YiB": 0
154
+ }
155
+ }
156
+ }
157
+ ```
158
+
159
+ ---
160
+
161
+ ## Error Handling
162
+
163
+ The API client provides comprehensive error handling through the `FilesizeformatterAPIClientError` exception. Here are some examples:
164
+
165
+ ### Basic Error Handling
166
+
167
+ ```python
168
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient, FilesizeformatterAPIClientError
169
+
170
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]")
171
+
172
+ query = {
173
+ "bytes": 1073741824,
174
+ "unit": "GB",
175
+ "precision": 2,
176
+ "standard": "binary"
177
+ }
178
+
179
+ try:
180
+ result = api.execute(query)
181
+ print("Success!")
182
+ print(result)
183
+ except FilesizeformatterAPIClientError as e:
184
+ print(f"API Error: {e.message}")
185
+ if e.status_code:
186
+ print(f"Status Code: {e.status_code}")
187
+ if e.response:
188
+ print(f"Response: {e.response}")
189
+ ```
190
+
191
+ ### Handling Specific Error Types
192
+
193
+ ```python
194
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient, FilesizeformatterAPIClientError
195
+
196
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]")
197
+
198
+ query = {
199
+ "bytes": 1073741824,
200
+ "unit": "GB",
201
+ "precision": 2,
202
+ "standard": "binary"
203
+ }
204
+
205
+ try:
206
+ result = api.execute(query)
207
+
208
+ # Check for successful response
209
+ if result.get('status') == 'success':
210
+ print("Request successful!")
211
+ print(result.get('data'))
212
+ else:
213
+ print(f"API returned an error: {result.get('error')}")
214
+
215
+ except FilesizeformatterAPIClientError as e:
216
+ # Handle API client errors
217
+ if e.status_code == 401:
218
+ print("Unauthorized: Invalid API key")
219
+ elif e.status_code == 429:
220
+ print("Rate limit exceeded")
221
+ elif e.status_code >= 500:
222
+ print("Server error - please try again later")
223
+ else:
224
+ print(f"API error: {e.message}")
225
+ except Exception as e:
226
+ # Handle unexpected errors
227
+ print(f"Unexpected error: {str(e)}")
228
+ ```
229
+
230
+ ### Using Context Manager (Recommended)
231
+
232
+ The client supports the context manager protocol for automatic resource cleanup:
233
+
234
+ ```python
235
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient, FilesizeformatterAPIClientError
236
+
237
+ query = {
238
+ "bytes": 1073741824,
239
+ "unit": "GB",
240
+ "precision": 2,
241
+ "standard": "binary"
242
+ }
243
+
244
+ # Using context manager ensures proper cleanup
245
+ with FilesizeformatterAPIClient("[YOUR_API_KEY]") as api:
246
+ try:
247
+ result = api.execute(query)
248
+ print(result)
249
+ except FilesizeformatterAPIClientError as e:
250
+ print(f"Error: {e.message}")
251
+ # Session is automatically closed here
252
+ ```
253
+
254
+ ---
255
+
256
+ ## Advanced Features
257
+
258
+ ### Debug Mode
259
+
260
+ Enable debug logging to see detailed request and response information:
261
+
262
+ ```python
263
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient
264
+
265
+ # Enable debug mode
266
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]", debug=True)
267
+
268
+ query = {
269
+ "bytes": 1073741824,
270
+ "unit": "GB",
271
+ "precision": 2,
272
+ "standard": "binary"
273
+ }
274
+
275
+ # Debug information will be printed to console
276
+ result = api.execute(query)
277
+ ```
278
+
279
+ ### Manual Session Management
280
+
281
+ If you need to manually manage the session lifecycle:
282
+
283
+ ```python
284
+ from apiverve_filesizeformatter.apiClient import FilesizeformatterAPIClient
285
+
286
+ api = FilesizeformatterAPIClient("[YOUR_API_KEY]")
287
+
288
+ query = {
289
+ "bytes": 1073741824,
290
+ "unit": "GB",
291
+ "precision": 2,
292
+ "standard": "binary"
293
+ }
294
+
295
+ try:
296
+ result = api.execute(query)
297
+ print(result)
298
+ finally:
299
+ # Manually close the session when done
300
+ api.close()
301
+ ```
302
+
303
+ ---
304
+
305
+ ## Customer Support
306
+
307
+ Need any assistance? [Get in touch with Customer Support](https://apiverve.com/contact?utm_source=pypi&utm_medium=referral&utm_content=readme).
308
+
309
+ ---
310
+
311
+ ## Updates
312
+ Stay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.
313
+
314
+ ---
315
+
316
+ ## Legal
317
+
318
+ All usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms?utm_source=pypi&utm_medium=referral&utm_content=readme) and all legal documents and agreements.
319
+
320
+ ---
321
+
322
+ ## License
323
+ Licensed under the MIT License (MIT)
324
+
325
+ Copyright (&copy;) 2026 APIVerve, and EvlarSoft LLC
326
+
327
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
328
+
329
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
330
+
331
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,12 @@
1
+ apiverve_filesizeformatter/__init__.py,sha256=P82vR-HpODCtTiq6dynL-WurqLuYYdML8ctAWT3rbtE,159
2
+ apiverve_filesizeformatter/apiClient.py,sha256=Mhpl9PAGXpuheCUhWnGm1hpQDbVLZYfx3FvVKGqn3-8,10073
3
+ apiverve_filesizeformatter/exceptions.py,sha256=VpZC_LC5g3ssC8_937MAjJs0Uo148rB5QnbPIDcTEZs,114
4
+ apiverve_filesizeformatter/setup.py,sha256=DAADY-d8NvIpqD_XGIkpJtIG5x7DDk8yNdmClwx1Z0E,1102
5
+ apiverve_filesizeformatter/setup_dep.py,sha256=QGc36CoRcXsFyjLzlK8mzbMjnejaJKZ6EX7uoHPOK0I,805
6
+ apiverve_filesizeformatter/tests/__init__.py,sha256=5_6uOnBkgWAawI5-lr0N2cZ_UVvIGJ7NCh4XT5KF47o,25
7
+ apiverve_filesizeformatter/tests/test_api.py,sha256=vDX6Pi4WyvRxTcECTXi9NmJnuoxkrBW9VniU05nNAZI,616
8
+ apiverve_filesizeformatter-1.2.4.dist-info/licenses/LICENSE,sha256=V5x7AJRnWqzyPdD_hz1UOO2zYKZGOdRWdXElPTdwxwE,1092
9
+ apiverve_filesizeformatter-1.2.4.dist-info/METADATA,sha256=xEH2o5MtRact5RXLI7bb6ZGNJjhRMiVvUFFEuUDdvDI,9081
10
+ apiverve_filesizeformatter-1.2.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
11
+ apiverve_filesizeformatter-1.2.4.dist-info/top_level.txt,sha256=Ey-h_5_bfPsU1zdJnJmyclYBbfsHVRb6z2HKCUmmAbk,27
12
+ apiverve_filesizeformatter-1.2.4.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 APIVerve and EvlarSoft LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ apiverve_filesizeformatter