Skyflow
raw JSON → 2.0.1 verified Fri May 01 auth: no python
Skyflow SDK for Python – a data privacy vault that enables tokenization, detokenization, and secure data operations. Current version: 2.0.1, with a major v2 release that reworked client initialization and requires Fern-based configuration. Release cadence is irregular, with multiple patch releases in the 1.x series and a jump to 2.0.0 in late 2024.
pip install skyflow Common errors
error AttributeError: module 'skyflow' has no attribute 'Client' ↓
cause Upgraded to v2 where `Client` was renamed to `Skyflow`.
fix
Use
from skyflow import Skyflow instead. error ImportError: cannot import name 'Skyflow' from 'skyflow' ↓
cause You are using an outdated v1.x version of skyflow that does not have the `Skyflow` class.
fix
Upgrade to the latest version:
pip install --upgrade skyflow error TypeError: __init__() got an unexpected keyword argument 'bearer_token' ↓
cause In v1.x the token was passed differently; v2 changed the parameter name or structure.
fix
Refer to the v2 documentation: use
Skyflow(vault_id, vault_url, bearer_token=...) or pass via Fern configuration. Warnings
breaking In v2.0.0, the SDK was rewritten to use Fern client re-initialization. The old `skyflow.Client` class is replaced by `skyflow.Skyflow`. Code written for v1.x will not work without updating imports and initialization. ↓
fix Change `from skyflow import Client` to `from skyflow import Skyflow` and adjust constructor arguments.
breaking The `# TODO: write docs` placeholder in the v2 quickstart indicates documentation may be incomplete. Rely on the official GitHub README and examples. ↓
fix Refer to the GitHub README at https://github.com/skyflowapi/skyflow-python for up-to-date usage examples.
gotcha The Skyflow SDK requires Python >=3.8. Using an older Python version will cause installation errors. ↓
fix Use Python 3.8 or later.
Imports
- Skyflow wrong
from skyflow import Clientcorrectfrom skyflow import Skyflow
Quickstart
import os
from skyflow import Skyflow
client = Skyflow(
vault_id=os.environ.get('VAULT_ID', ''),
vault_url=os.environ.get('VAULT_URL', ''),
bearer_token=os.environ.get('BEARER_TOKEN', '')
)
print('Client initialized')
# Example: insert a record
response = client.insert(
table_name='users',
records=[{'fields': {'email': 'test@test.com'}}]
)
print(response)