Installation
Installation Guide
Requirements
- Python 3.8 or higher
- pip package manager
Install from PyPI
pip install pathao
Install from Source
git clone https://github.com/mojnomiya/pathao-python.git
cd pathao-python
pip install -e .
Development Installation
git clone https://github.com/mojnomiya/pathao-python.git
cd pathao-python
pip install -r requirements-dev.txt
pip install -e .
Verify Installation
import pathao
print(pathao.__version__)
# Create a client (will fail without credentials, but verifies import)
try:
client = pathao.PathaoClient(
client_id="test",
client_secret="test",
username="test",
password="test",
environment="sandbox"
)
print(" Installation successful!")
except Exception as e:
print(f"❌ Installation issue: {e}")
Dependencies
The package automatically installs these dependencies:
requests>=2.28.0- HTTP clientpython-dotenv>=0.21.0- Environment variable loading
Environment Setup
Option 1: Environment Variables
export PATHAO_CLIENT_ID="your_client_id"
export PATHAO_CLIENT_SECRET="your_client_secret"
export PATHAO_USERNAME="your_email"
export PATHAO_PASSWORD="your_password"
Option 2: .env File
Create a .env file in your project root:
PATHAO_CLIENT_ID=your_client_id
PATHAO_CLIENT_SECRET=your_client_secret
PATHAO_USERNAME=your_email
PATHAO_PASSWORD=your_password