Skip to content

Commit bd1728a

Browse files
committed
fix: package name fix
1 parent 32c1bf0 commit bd1728a

File tree

259 files changed

+1022
-994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+1022
-994
lines changed

.github/workflows/python.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
3+
name: hostinger-api python package
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
pip install -r test-requirements.txt
26+
- name: Test with pytest
27+
run: |
28+
pytest --cov=hostinger-api

@hostinger/api/__init__.py

-111
This file was deleted.

@hostinger/api/api/__init__.py

-23
This file was deleted.

@hostinger/api/models/__init__.py

-76
This file was deleted.

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hostinger API Python SDK
22

3-
[![PyPI version](https://badge.fury.io/py/@hostinger/api.svg)](https://badge.fury.io/py/@hostinger/api)
3+
[![PyPI version](https://badge.fury.io/py/hostinger-api.svg)](https://badge.fury.io/py/hostinger-api)
44

55
## About
66
This is a Python SDK for the [Hostinger API](https://developers.hostinger.com).
@@ -22,12 +22,12 @@ source venv/bin/activate
2222

2323
Install the package via [pip](https://pypi.org/project/pip/):
2424
```sh
25-
pip install @hostinger/api
25+
pip install hostinger-api
2626
```
2727

2828
Then import the package:
2929
```python
30-
import @hostinger/api
30+
import hostinger-api
3131
```
3232

3333
### Setuptools
@@ -41,7 +41,7 @@ python setup.py install --user
4141

4242
Then import the package:
4343
```python
44-
import @hostinger/api
44+
import hostinger-api
4545
```
4646

4747
## Getting Started
@@ -50,21 +50,21 @@ Please follow the [installation procedure](#installation--usage) and then run th
5050

5151
```python
5252

53-
import @hostinger/api
54-
from @hostinger/api.rest import ApiException
53+
import hostinger-api
54+
from hostinger-api.rest import ApiException
5555
from pprint import pprint
5656

5757

5858
# Configure Bearer authorization: apiToken
59-
configuration = @hostinger/api.Configuration(
59+
configuration = hostinger-api.Configuration(
6060
access_token = os.environ["BEARER_TOKEN"]
6161
)
6262

6363

6464
# Enter a context with an instance of the API client
65-
with @hostinger/api.ApiClient(configuration) as api_client:
65+
with hostinger-api.ApiClient(configuration) as api_client:
6666
# Create an instance of the API class
67-
api_instance = @hostinger/api.BillingCatalogApi(api_client)
67+
api_instance = hostinger-api.BillingCatalogApi(api_client)
6868

6969
try:
7070
# Get catalog item list

0 commit comments

Comments
 (0)