Using the Kodexa Python SDK
This guide will help you set up your environment and start using the Kodexa Python SDK to interact with Kodexa’s documents and platform features.
# Navigate to your project directory python -m venv kodexa_env # Activate the environment # Windows: kodexa_env\Scripts\activate # macOS/Linux: source kodexa_env/bin/activate
pip install kodexa
Create a file named kodexa_script.py:
kodexa_script.py
import os from kodexa import KodexaClient # Set environment variables os.environ['KODEXA_URL'] = 'https://your-kodexa-url.com' os.environ['KODEXA_ACCESS_TOKEN'] = 'your-access-token' # Initialize the client client = KodexaClient( url=os.environ.get('KODEXA_URL'), access_token=os.environ.get('KODEXA_ACCESS_TOKEN') ) # Verify connection me = client.me print(f"Logged in as: {me.email}") # Ready to use the Kodexa platform!
python kodexa_script.py