Skip to content

Commit a78900c

Browse files
feat(centralnic reseller python sdk): Introducing CentralNic Reseller Python SDK API Connector
BREAKING CHANGE: This release deprecates the Hexonet Python SDK and introduces the CentralNic Reseller Python SDK. - Note: To continue using the Hexonet SDK, please install version 4.0.2 or earlier.
1 parent fcb18e0 commit a78900c

File tree

103 files changed

+1243
-7423
lines changed

Some content is hidden

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

103 files changed

+1243
-7423
lines changed

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ concurrency = multiprocessing
33
parallel = true
44
sigterm = true
55
omit =
6-
hexonet/__init__.py
7-
hexonet/apiconnector/__init__.py
6+
centralnicreseller/__init__.py
7+
centralnicreseller/apiconnector/__init__.py

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"ms-vscode-remote.remote-containers",
1414
"mrmlnc.vscode-apache",
1515
"ms-azuretools.vscode-docker",
16-
"eamodio.gitlens"
16+
"eamodio.gitlens",
17+
"GitHub.copilot"
1718
],
1819
"settings": {
1920
"terminal.integrated.defaultProfile.linux": "zsh",

.devcontainer/supporting_files/scripts/post-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source ~/.zshrc
1010
pip install --upgrade pip
1111
pip install --upgrade setuptools
1212
pip -V
13-
pip install -r requirements.txt
13+
#pip install -r requirements.txt
1414

1515
echo "=> Generating Symlinks for Zsh History and Git config"
1616
# Create symlink for gitconfig and zsh history file

.releaserc.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[
1212
"@semantic-release/exec",
1313
{
14-
"prepareCmd": "./scripts/generatedocs.sh && ./scripts/createdistribution.sh",
14+
"prepareCmd": "./scripts/createdistribution.sh",
1515
"publishCmd": "./scripts/uploaddistribution_test.sh && ./scripts/uploaddistribution_live.sh"
1616
}
1717
],
@@ -21,8 +21,8 @@
2121
"replacements": [
2222
{
2323
"files": [
24-
"hexonet/apiconnector/apiclient.py",
25-
"hexonet/apiconnector/__init__.py",
24+
"centralnicreseller/apiconnector/apiclient.py",
25+
"centralnicreseller/apiconnector/__init__.py",
2626
"pyproject.toml"
2727
],
2828
"from": "\"\\d+\\.\\d+\\.\\d+\"",
@@ -40,8 +40,8 @@
4040
"HISTORY.md",
4141
"package?(-lock).json",
4242
"docs",
43-
"hexonet/apiconnector/__init__.py",
44-
"hexonet/apiconnector/apiclient.py",
43+
"centralnicreseller/apiconnector/__init__.py",
44+
"centralnicreseller/apiconnector/apiclient.py",
4545
"htmlcov"
4646
]
4747
}
@@ -52,8 +52,8 @@
5252
{
5353
"assets": [
5454
{
55-
"label": "hexonet.apiconnector (tar.gz)",
56-
"path": "dist/hexonet.apiconnector-${nextRelease.version}.tar.gz"
55+
"label": "centralnicreseller.apiconnector (tar.gz)",
56+
"path": "dist/centralnicreseller.apiconnector-${nextRelease.version}.tar.gz"
5757
}
5858
]
5959
}

AUTHORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
> ⚠ This document _only_ reflects the responsible developers at HEXONET GmbH. For a list of MUCH-APPRECIATED CONTRIBUTORS -- people who helped developing and extending this library, applying patches, adding helpful comments
1+
> ⚠ This document _only_ reflects the responsible developers at Team Internet Group PLC. For a list of MUCH-APPRECIATED CONTRIBUTORS -- people who helped developing and extending this library, applying patches, adding helpful comments
22
> and thus generally made it that much better, see [GitHub's list of contributors](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/contributors).
33
44
- [Kai Schwarz](//github.com/KaiSchwarz-cnic) - Development Lead

CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ email, or any other method with the owners of this repository before making a ch
55

66
Please note we have a code of conduct, please follow it in all your interactions with the project.
77

8-
## Pull Request Process
9-
10-
Read [here](https://hexonet-python-sdk.readthedocs.io/en/latest/developmentguide.html#pull-request-pr-procedure).
11-
128
## Code of Conduct
139

1410
### Our Pledge

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 HEXONET
3+
Copyright (c) 2024 CentralNic Reseller, Team Internet Group PLC.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,45 @@
22

33
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
44
[![Build Status](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/workflows/Release/badge.svg?branch=master)](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/workflows/Release/badge.svg?branch=master)
5-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hexonet.apiconnector.svg)](https://www.python.org/)
6-
[![PyPI](https://img.shields.io/pypi/v/hexonet.apiconnector.svg)](https://pypi.org/project/hexonet.apiconnector/)
7-
[![Documentation Status](https://readthedocs.org/projects/hexonet-python-sdk/badge/?version=latest)](https://hexonet-python-sdk.readthedocs.io/en/latest/?badge=latest)
5+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/centralnicreseller.apiconnector.svg)](https://www.python.org/)
6+
[![PyPI](https://img.shields.io/pypi/v/centralnicreseller.apiconnector.svg)](https://pypi.org/project/centralnicreseller.apiconnector/)
7+
[![Documentation Status](https://readthedocs.org/projects/centralnicreseller-python-sdk/badge/?version=latest)](https://centralnicreseller-python-sdk.readthedocs.io/en/latest/?badge=latest)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
99
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/blob/master/CONTRIBUTING.md)
1010

11-
This module is a connector library for the insanely fast HEXONET Backend API. For further informations visit our [homepage](http://hexonet.net) and do not hesitate to [contact us](https://www.hexonet.net/contact).
11+
This module is a connector library for the insanely fast CentralNic Reseller Backend API. For further informations visit our [homepage](https://www.centralnicreseller.com) and do not hesitate to [contact us](https://www.centralnicreseller.com/contact).
12+
13+
## Deprecation Notice: Hexonet Python SDK
14+
15+
This SDK succeeds the deprecated Hexonet Python SDK. It is an enhanced version that builds upon the foundation laid by the Hexonet SDK, offering improved features and performance. Hexonet is migrating to CentralNic Reseller, ensuring continued support and development under the new branding.
1216

1317
## Resources
1418

15-
- Documentation:
16-
- [HEXONET](https://www.hexonet.support/hc/en-gb/articles/13648020541981-Self-Development-Kit-for-Python)
19+
- [Documentation](https://support.centralnicreseller.com/hc/en-gb/articles/5714403954333-Self-Development-Kit-for-Python)
1720
- [Release Notes](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/releases)
1821

22+
## Running the Demo Application
23+
24+
To run the demo application, follow these steps:
25+
26+
1. **Set Your Credentials**: Ensure your credentials are available. You can either:
27+
- Replace them directly in the application file.
28+
- Set the environment variables `CNR_TEST_USER` and `CNR_TEST_PASSWORD` in your terminal.
29+
30+
2. **Execute the Demo**: Once your credentials are set, run the following command in the terminal:
31+
32+
```sh
33+
npm run test-demo
34+
```
35+
36+
3. **Update Demo Contents**: If you need to update the contents of the demo file, you can find it at:
37+
38+
```plaintext
39+
tests/app.py
40+
```
41+
42+
By following these steps, you can successfully run and update the demo application.
43+
1944
## Authors
2045

2146
List of responsible developers can be found [here](https://github.com/centralnicgroup-opensource/rtldev-middleware-python-sdk/blob/master/AUTHORS.md)
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
centralnicreseller.apiconnector
4+
~~~~~~~~~~~~~~~~~~~~
5+
A connector library for the insanely fast CentralNicReseller (fka. RRPProxy) Backend API.
6+
:copyright: © 2024 Team Internet Group PLC.
7+
:license: MIT, see LICENSE for more details.
8+
"""
9+
10+
__version__ = "4.0.3"
11+
name = "centralnicreseller.apiconnector"

0 commit comments

Comments
 (0)