// readme

Hostinger API Python SDK

About

This is a Python SDK for the Hostinger API.

For more information, please visit https://developers.hostinger.com.

Requirements.

Python 3.11+

Installation & Usage

pip install

Setup new virtual environment (optional but recommended):

python3 -m venv venv
source venv/bin/activate

Install the package via pip:

pip install hostinger_api

Then import the package:

import hostinger_api

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import hostinger_api

Getting Started

Please follow the installation procedure and then run the following:


import hostinger_api
from hostinger_api.rest import ApiException
from pprint import pprint

# Configure Bearer authorization: apiToken
configuration = hostinger_api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter aโ€ฆ