Skip to main content

Hexonet ISP API

Project description

This is a clone of Hexonet ispapi 2.2.

Install ispapi

pip install ispapi
# Import the ispapi library
import ispapi

# Create a connection with the URL, entity, login and password
# Use "1234" as entity for the OT&E, and "54cd" for productive use
# Don't have a HEXONET Account yet? Get one here: www.hexonet.net/sign-up
api = ispapi.connect(
    url = 'https://coreapi.1api.net/api/call.cgi',
    entity = '1234',
    login = 'test.user',
    password = 'test.passw0rd'
)

# Call a command
response = api.call({
'Command': "QueryDomainList", 'limit' : 5
})

# Display the result in the format you want
res = response.as_list()
res = response.as_list_hash()
res = response.as_hash()

# Get the response code and the response description
code = response.code()
description = response.description()

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

ispapi-2.2.0.tar.gz (15.4 kB view details)

Uploaded Source

File details

Details for the file ispapi-2.2.0.tar.gz.

File metadata

  • Download URL: ispapi-2.2.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ispapi-2.2.0.tar.gz
Algorithm Hash digest
SHA256 495307e798a6446ce2bedba658741e46f85355ca04f0c678f8079abf0ab03ece
MD5 a62a8d49505a7a16a4f20e724cb5320d
BLAKE2b-256 8a3743bdc64ddc659da1e76340d2fa0387de70636b0a0fcf9e3ef69b6010405c

See more details on using hashes here.

Supported by

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