Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"initialVersions": {
"@fingerprint/python-sdk": "8.11.0"
},
"changesets": []
"changesets": [
"late-peas-drop",
"plenty-clouds-tie"
]
}
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
# Fingerprint Pro Server Python SDK

## 9.0.0-rc.0

### Major Changes

- Changed library name to `fingerprint_server_sdk`

**BREAKING CHANGE**:

- You need to change package name to `fingerprint_server_sdk`.

**MIGRATION_GUIDE**:

Replace imports to new name:

```diff
- import fingerprint_pro_server_api_sdk
+ import fingerprint_server_sdk
```

If you are using docker compose file, please re-build the SDK. ([1f8ea14](https://github.com/fingerprintjs/python-sdk/commit/1f8ea14bbd77d439c53bc30bcd7f0e64c66c7d3e))

- Migrate to Server API v4.

### Breaking Changes

- Flatten event structure. Access fields directly intead of through `products` wrapper.
- Remove `get_visitors` and `get_releated_visitors` endpoints (use `search_events` instead).
- Remove deprecated v3 models (webhook models, product wrapper models, etc.)

### Migration Guide

**Event structure:**

```diff
- event.products.identification.data.visitor_id
+ event.identification.visitor_id
```

**Region parameter:**

```diff
- Configuration(api_key="key", region="us")
+ from fingerprint_server_sdk.configuration import Region
+ Configuration(api_key="key", region=Region.US)
```

**New Features:**

- New exception classes: `TooManyRequestsException`, `ConflictException`, `UnprocessableEntityException`, ...
- New v4 models: `BotInfo`, `Canvas`, `Emoji`, `EventRuleAction`, `FontPreferences`, ... ([f61ab2c](https://github.com/fingerprintjs/python-sdk/commit/f61ab2c876f538de8bca02f60cbab14ceae91801))

## 8.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Fingerprint Server Python SDK is an easy way to interact with the Fingerprin
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 4
- Package version: 8.11.0
- Package version: 9.0.0-rc.0
- Generator version: 7.19.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion fingerprint_server_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Do not edit the class manually.
""" # noqa: E501

__version__ = '8.11.0'
__version__ = '9.0.0-rc.0'

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion fingerprint_server_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def to_debug_report(self) -> str:
f'OS: {sys.platform}\n'
f'Python Version: {sys.version}\n'
'Version of the API: 4\n'
'SDK Package Version: 8.11.0'
'SDK Package Version: 9.0.0-rc.0'
)

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fingerprint/python-sdk",
"version": "8.11.0",
"version": "9.0.0-rc.0",
"private": true,
"devDependencies": {
"@changesets/cli": "^2.27.8",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fingerprint_server_sdk"
version = "8.11.0"
version = "9.0.0-rc.0"
description = "Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. "
authors = [
{name = "Fingerprint Support",email = "support@fingerprint.com"},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from setuptools import find_packages, setup

NAME = 'fingerprint-server-sdk'
VERSION = '8.11.0'
VERSION = '9.0.0-rc.0'
PYTHON_REQUIRES = '>= 3.9'
# To install the library, run the following
#
Expand Down
Loading