Skip to main content

Unofficial Python client for Netcup Webservice API

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netcup_webservice-0.1.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netcup_webservice-0.1.7-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file netcup_webservice-0.1.7.tar.gz.

File metadata

  • Download URL: netcup_webservice-0.1.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for netcup_webservice-0.1.7.tar.gz
Algorithm Hash digest
SHA256 944677bd0d8c2487a03afd1715fc0c4a810005c981acbd86d4ac772613b18372
MD5 f83efea5666371e4f8497d40679f0de9
BLAKE2b-256 01129cf1c9077eaeb4c48661ea6e16b2a8292a8e258965c7d0d17fef8a8f8c99

See more details on using hashes here.

File details

Details for the file netcup_webservice-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for netcup_webservice-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 76b39497b143749cb080d0662a2b0bd274c4586a7e694c9c9e9f15ccf3bb242a
MD5 bd507cf709711cbb94d5204f3cd779c9
BLAKE2b-256 6efdeb43d10294b274556f510f1c935d1eb5c20832d0248cb85e656957a6814d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page