Skip to content

Commit 2590383

Browse files
authored
v4.3.0 (#20)
1 parent 10b088b commit 2590383

62 files changed

Lines changed: 4390 additions & 3130 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
pip install dist/pixelbin-*.tar.gz
2929
3030
31-
- name: Run tests
31+
- name: Run test
3232
run: |
3333
coverage run -m pytest tests/pixelbin_test.py
3434
coverage report
35-
coverage html
35+
coverage html

CHANGELOG.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,54 @@
1+
## 4.3.0
2+
3+
- Introduces PixelBin's Prediction APIs that offer a suite of AI-powered image editing tools designed to streamline your media workflow.
4+
- Added a wrapper around the Prediction API allowing developers to easily create, track, and manage prediction jobs.
5+
16
## 4.2.0
27

3-
- Added [upload](./README.md#upload) method.
4-
- Removed support for signature generation for APIs.
8+
- Added [upload](./README.md#upload) method.
9+
- Removed support for signature generation for APIs.
510

611
# 4.1.0
712

8-
- Fixed parameters for `getPresets` method.
9-
- Added support for using a proxy with the Pixelbin SDK by setting the `trust_env` option to `True` in the `httpClientOptions` object of `PixelbinConfig`.
10-
- When `trust_env` is set to `True`, the SDK will trust the environment settings for proxy configuration or the `~/.netrc` file if present.
13+
- Fixed parameters for `getPresets` method.
14+
- Added support for using a proxy with the Pixelbin SDK by setting the `trust_env` option to `True` in the `httpClientOptions` object of `PixelbinConfig`.
15+
- When `trust_env` is set to `True`, the SDK will trust the environment settings for proxy configuration or the `~/.netrc` file if present.
1116

1217
# 4.0.0
1318

14-
- **Breaking Change:** Function signature of `sign_url` in `security.py` has been updated. The argument `token_id` has been replaced with `access_key`. Access key for a token can be found by going to console.pixelbin.io > `Settings` > `Tokens` > Click on any Token > `Access Key`.
19+
- **Breaking Change:** Function signature of `sign_url` in `security.py` has been updated. The argument `token_id` has been replaced with `access_key`. Access key for a token can be found by going to console.pixelbin.io > `Settings` > `Tokens` > Click on any Token > `Access Key`.
1520

1621
# 3.2.0
1722

18-
- Added method for generating V2 Signed Multipart Upload Urls `createSignedUrlV2`
23+
- Added method for generating V2 Signed Multipart Upload Urls `createSignedUrlV2`
1924

2025
# 3.1.1
2126

22-
- Fixed regex for Custom Domain URLs
27+
- Fixed regex for Custom Domain URLs
2328

2429
# 3.1.0
2530

26-
- Added support for generating signed Custom Domain and PixelBin CDN urls
31+
- Added support for generating signed Custom Domain and PixelBin CDN urls
2732

2833
# 3.0.0
2934

30-
- Fixed bugs parsing `dpr` & `f_auto` in `obj_to_url` & `url_to_obj`
31-
- Added support for parsing Custom Domains in `obj_to_url` and `url_to_obj`
32-
- Improved support for worker urls in `obj_to_url` and `url_to_obj`
35+
- Fixed bugs parsing `dpr` & `f_auto` in `obj_to_url` & `url_to_obj`
36+
- Added support for parsing Custom Domains in `obj_to_url` and `url_to_obj`
37+
- Improved support for worker urls in `obj_to_url` and `url_to_obj`
3338

3439
# 2.2.0
3540

36-
- Added a method for obtaining the context of a file via url.
41+
- Added a method for obtaining the context of a file via url.
3742

3843
# 2.1.1
3944

40-
- Removed unused model
41-
- Rewritten test suite to improve test reliability
45+
- Removed unused model
46+
- Rewritten test suite to improve test reliability
4247

4348
# 2.1.0
4449

45-
- Fixed `tags` being stringified inadvertently. If you are experiencing validation errors around `tags` in previous versions, you should upgrade your SDKs.
50+
- Fixed `tags` being stringified inadvertently. If you are experiencing validation errors around `tags` in previous versions, you should upgrade your SDKs.
4651

4752
# 2.0.0
4853

49-
- method for getting org details has changed from `getAppByToken` => `getAppOrgDetails`
54+
- method for getting org details has changed from `getAppByToken` => `getAppOrgDetails`

MIGRATION.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,37 @@
66

77
1. **Updated Function Signature in `security.py`**
88

9-
The arguments for `sign_url` function has been updated. The `token_id` parameter has been replaced with `access_key`.
9+
The arguments for `sign_url` function has been updated. The `token_id` parameter has been replaced with `access_key`.
1010

11-
**Previous Method (v3.1.x and above):**
11+
**Previous Method (v3.1.x and above):**
1212

13-
```python
14-
from pixelbin.utils.security import sign_url
13+
```python
14+
from pixelbin.utils.security import sign_url
1515

16-
signed_url = sign_url(
17-
url="https://cdn.pixelbin.io/v2/dummy-cloudname/original/__playground/playground-default.jpeg",
18-
expiry_seconds=20,
19-
token_id=42,
20-
token="dummy-token",
21-
);
22-
```
16+
signed_url = sign_url(
17+
url="https://cdn.pixelbin.io/v2/dummy-cloudname/original/__playground/playground-default.jpeg",
18+
expiry_seconds=20,
19+
token_id=42,
20+
token="dummy-token",
21+
);
22+
```
2323

24-
**New Method (v4.x.x):**
24+
**New Method (v4.x.x):**
2525

26-
```python
27-
from pixelbin.utils.security import sign_url
26+
```python
27+
from pixelbin.utils.security import sign_url
2828

29-
signed_url = sign_url(
30-
url="https://cdn.pixelbin.io/v2/dummy-cloudname/original/__playground/playground-default.jpeg",
31-
expiry_seconds=20,
32-
access_key="6227274d-92c9-4b74-bef8-2528542516d8",
33-
token="dummy-token",
34-
);
35-
```
29+
signed_url = sign_url(
30+
url="https://cdn.pixelbin.io/v2/dummy-cloudname/original/__playground/playground-default.jpeg",
31+
expiry_seconds=20,
32+
access_key="6227274d-92c9-4b74-bef8-2528542516d8",
33+
token="dummy-token",
34+
);
35+
```
3636

37-
**How to Find Your Access Key:**
37+
**How to Find Your Access Key:**
3838

39-
- Go to `console.pixelbin.io`
40-
- Navigate to `Settings` > `Tokens`
41-
- Click on any Token
42-
- Find the `Access Key` in the token details
39+
- Go to `console.pixelbin.io`
40+
- Navigate to `Settings` > `Tokens`
41+
- Click on any Token
42+
- Find the `Access Key` in the token details

0 commit comments

Comments
 (0)