Skip to content

Releases: Privex/PyNamecheap

0.1.0 - Major overhaul - methods return dataclasses, caching, new methods + more

02 Sep 01:42
Compare
Choose a tag to compare
  • Moved the code into a Python module namecheap/ instead of a flat namecheap.py file.

    • Exceptions moved to namecheap/exceptions.py
    • Helper functions moved to namecheap/helpers.py
    • Dataclasses for representing objects returned by the API are stored in namecheap/objects.py
    • Main Api class and related variables / private functions moved to namecheap/namecheap.py
  • Completely overhauled almost every method - API call methods now return dataclasses using the classes defined in namecheap/objects.py

  • Added support for more APIs

    • Added API namecheap.domains.getInfo as domains_getInfo and get_domain_info
    • Added API namecheap.domains.renew as domains_renew and renew_domain
    • Added API namecheap.users.getPricing as users_getPricing, with wrapper method get_tld_prices and get_all_tld_prices for simpler querying of specifically domain TLD prices
    • Added API namecheap.domains.gettldlist as domains_getTldList for retrieving available TLDs
    • Added API namecheap.domains.dns.setDefault as domains_dns_setDefault for resetting a domain back to the default Namecheap DNS
    • Probably more APIs which were added, but weren't clear in the diff
  • Added set_endpoint to allow users to override the ENDPOINTS, e.g. for proxy domains to assist with namecheap's IP whitelisting on a private network

  • Changed domains_check to return the actual data from domains.check - availability checking with boolean results has now been moved to domains_available

  • Changed dirty print() statements into log.debug() - debug=True now simple creates a console logger with DEBUG level.

  • Added py36 extra to setup.py - which is just an alias to the dataclasses backport package / shim - required to use privex-namecheap on Python 3.6.x

  • Added namecheap-api-cli to scripts in setup.py - so that the CLI tool gets installed into ~/.local/bin or /usr/local/bin/

  • Updated package name to privex_namecheap (privex-namecheap on pypi), as well as the URL, author, email, description etc.

  • And much much more. If you care enough to find out the nitty gritty changes, read the Git code diff.