pinarkive-sdk 2.1.45__tar.gz → 2.1.46__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.
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/PKG-INFO +2 -2
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/README.md +1 -1
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_client.py +1 -6
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_sdk.egg-info/PKG-INFO +2 -2
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pyproject.toml +1 -1
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_sdk.egg-info/SOURCES.txt +0 -0
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_sdk.egg-info/dependency_links.txt +0 -0
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_sdk.egg-info/requires.txt +0 -0
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/pinarkive_sdk.egg-info/top_level.txt +0 -0
- {pinarkive_sdk-2.1.45 → pinarkive_sdk-2.1.46}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pinarkive-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.46
|
4
4
|
Summary: Python SDK for the Pinarkive API v2.1 - Easy IPFS file management with directory DAG uploads, file renaming, and enhanced API key management. Includes type hints for better IDE support.
|
5
5
|
Author: ITCS VIP, Joel_da
|
6
6
|
License: MIT
|
@@ -47,6 +47,7 @@ The SDK supports two authentication methods:
|
|
47
47
|
```python
|
48
48
|
client = PinarkiveClient(api_key="your-api-key-here")
|
49
49
|
```
|
50
|
+
**Note:** The SDK automatically sends the API key using the `Authorization: Bearer` header format, not `X-API-Key`.
|
50
51
|
|
51
52
|
### JWT Token Authentication
|
52
53
|
```python
|
@@ -339,7 +340,6 @@ PinarkiveClient(token: Optional[str] = None, api_key: Optional[str] = None, base
|
|
339
340
|
- `get_profile()` - Get user profile
|
340
341
|
- `update_profile(data: Dict[str, Any])` - Update user profile
|
341
342
|
- `list_uploads(page: int = 1, limit: int = 10)` - List uploaded files
|
342
|
-
- `delete_upload(cid: str)` - Delete uploaded file
|
343
343
|
- `get_referrals()` - Get referral information
|
344
344
|
|
345
345
|
### Token Management
|
@@ -35,6 +35,7 @@ The SDK supports two authentication methods:
|
|
35
35
|
```python
|
36
36
|
client = PinarkiveClient(api_key="your-api-key-here")
|
37
37
|
```
|
38
|
+
**Note:** The SDK automatically sends the API key using the `Authorization: Bearer` header format, not `X-API-Key`.
|
38
39
|
|
39
40
|
### JWT Token Authentication
|
40
41
|
```python
|
@@ -327,7 +328,6 @@ PinarkiveClient(token: Optional[str] = None, api_key: Optional[str] = None, base
|
|
327
328
|
- `get_profile()` - Get user profile
|
328
329
|
- `update_profile(data: Dict[str, Any])` - Update user profile
|
329
330
|
- `list_uploads(page: int = 1, limit: int = 10)` - List uploaded files
|
330
|
-
- `delete_upload(cid: str)` - Delete uploaded file
|
331
331
|
- `get_referrals()` - Get referral information
|
332
332
|
|
333
333
|
### Token Management
|
@@ -14,7 +14,7 @@ class PinarkiveClient:
|
|
14
14
|
if self.token:
|
15
15
|
headers['Authorization'] = f'Bearer {self.token}'
|
16
16
|
elif self.api_key:
|
17
|
-
headers['
|
17
|
+
headers['Authorization'] = f'Bearer {self.api_key}'
|
18
18
|
return headers
|
19
19
|
|
20
20
|
# --- Authentication ---
|
@@ -218,11 +218,6 @@ class PinarkiveClient:
|
|
218
218
|
headers=self._headers()
|
219
219
|
)
|
220
220
|
|
221
|
-
def delete_upload(self, cid: str) -> Any:
|
222
|
-
return self.session.delete(
|
223
|
-
f'{self.base_url}/users/me/uploads/{cid}',
|
224
|
-
headers=self._headers()
|
225
|
-
)
|
226
221
|
|
227
222
|
def get_referrals(self) -> Any:
|
228
223
|
return self.session.get(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pinarkive-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.46
|
4
4
|
Summary: Python SDK for the Pinarkive API v2.1 - Easy IPFS file management with directory DAG uploads, file renaming, and enhanced API key management. Includes type hints for better IDE support.
|
5
5
|
Author: ITCS VIP, Joel_da
|
6
6
|
License: MIT
|
@@ -47,6 +47,7 @@ The SDK supports two authentication methods:
|
|
47
47
|
```python
|
48
48
|
client = PinarkiveClient(api_key="your-api-key-here")
|
49
49
|
```
|
50
|
+
**Note:** The SDK automatically sends the API key using the `Authorization: Bearer` header format, not `X-API-Key`.
|
50
51
|
|
51
52
|
### JWT Token Authentication
|
52
53
|
```python
|
@@ -339,7 +340,6 @@ PinarkiveClient(token: Optional[str] = None, api_key: Optional[str] = None, base
|
|
339
340
|
- `get_profile()` - Get user profile
|
340
341
|
- `update_profile(data: Dict[str, Any])` - Update user profile
|
341
342
|
- `list_uploads(page: int = 1, limit: int = 10)` - List uploaded files
|
342
|
-
- `delete_upload(cid: str)` - Delete uploaded file
|
343
343
|
- `get_referrals()` - Get referral information
|
344
344
|
|
345
345
|
### Token Management
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "pinarkive-sdk"
|
3
|
-
version = "2.1.
|
3
|
+
version = "2.1.46"
|
4
4
|
description = "Python SDK for the Pinarkive API v2.1 - Easy IPFS file management with directory DAG uploads, file renaming, and enhanced API key management. Includes type hints for better IDE support."
|
5
5
|
authors = [
|
6
6
|
{name = "ITCS VIP"},
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|