Skip to main content

netcup-webservice - unofficial client for Netcup's API

netcup.com

^^ Click to support me AND redeem a netcup DISCOUNT VOUCHER on www.mihnea.dev

An unofficial Python client library for interacting with Netcup's server control panel webservice. This library allows you to manage your vServers (virtual servers) and interact with the Netcup API programmatically.

Disclaimer: This project is not affiliated with, endorsed, or sponsored by Netcup GmbH. It is an independent, open-source project created to simplify interaction with the Netcup API.

Features

  • Manage vServers: Start, stop, suspend, resume, and more.
  • Get vServer Information: Retrieve state, uptime, nickname, traffic statistics, and other information.
  • Set vServer Nickname: Easily update the nickname for your vServers.
  • Change Password: Programmatically change user passwords.
  • And many more methods available via Netcup's API.

Installation

pip install netcup-webservice

Usage

Import the Library

To start using the client, simply import the NetcupWebservice class after installation:

from netcup_webservice import NetcupWebservice

Initialize the Client

You need your Netcup credentials (login name and password) to interact with the API.

client = NetcupWebservice(loginname="your_login", password="your_password")

Example: get all vServers

vServers = client.get_vservers()

Available Methods

  • get_vserver_nickname(vserver_name): Get the nickname of a vServer.
  • set_vserver_nickname(vserver_name, nickname): Set a new nickname for a vServer.
  • get_vserver_state(vserver_name): Get the state (running, stopped, etc.) of a vServer.
  • get_vserver_uptime(vserver_name): Get the uptime of a vServer.
  • get_vserver_update_notification(vserver_name): Get the update notifications for a vServer.
  • start_vserver(vserver_name): Start a vServer.
  • stop_vserver(vserver_name): Stop a vServer.
  • suspend_vserver(vserver_name): Suspend a vServer.
  • resume_vserver(vserver_name): Resume a suspended vServer.
  • restore_vserver(vserver_name): Restore a vServer from a backup.
  • get_vserver_stat_token(vserver_name): Get a statistics token for a vServer.
  • get_vserver_traffic_of_day(vserver_name): Get the traffic statistics for the current day.
  • get_vserver_traffic_of_month(vserver_name): Get the traffic statistics for the current month.
  • change_user_password(new_password): Change the user’s password.
  • get_vserver_information(vserver_name): Get detailed information about a vServer.
  • get_vserver_ips(vserver_name): Get the IP addresses assigned to a vServer.
  • acpi_shutdown_vserver(vserver_name): Perform an ACPI shutdown of a vServer.
  • acpi_reboot_vserver(vserver_name): Perform an ACPI reboot of a vServer.
  • reset_vserver(vserver_name): Perform a hard reset of a vServer.
  • poweroff_vserver(vserver_name): Power off a vServer.
  • add_cloud_vlan_interface(vserver_name, vlan_id): Add a VLAN interface to a vServer.
  • change_ip_routing(vserver_name, route): Change the IP routing configuration of a vServer.
  • get_vservers(): Get a list of all vServers associated with the account.
  • get_panel_settings(): Get the current control panel settings.
  • send_password_reset_request(): Send a password reset request.
  • get_vserver_log_entry_count(vserver_name): Get the log entry count for a vServer.
  • get_vserver_log_entries(vserver_name, start, limit): Get log entries for a vServer.
  • set_panel_settings(panel_settings): Update the panel settings.

Disclaimer

This package is not affiliated with, endorsed, or sponsored by Netcup GmbH. It is an independent project and is maintained solely by its contributors.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for netcup-webservice 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netcup-webservice 0.1.7
File Size Uploaded
netcup_webservice-0.1.7.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netcup-webservice 0.1.7
File Interpreter ABI Platform
netcup_webservice-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / netcup_webservice-0.1.7.tar.gz

Download URL netcup_webservice-0.1.7.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
944677bd0d8c2487a03afd1715fc0c4a810005c981acbd86d4ac772613b18372
BLAKE2b-256 checksum
How to use checksums
01129cf1c9077eaeb4c48661ea6e16b2a8292a8e258965c7d0d17fef8a8f8c99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / netcup_webservice-0.1.7-py3-none-any.whl

Download URL netcup_webservice-0.1.7-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76b39497b143749cb080d0662a2b0bd274c4586a7e694c9c9e9f15ccf3bb242a
BLAKE2b-256 checksum
How to use checksums
6efdeb43d10294b274556f510f1c935d1eb5c20832d0248cb85e656957a6814d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page