forked from Bemmu/PyNamecheap
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.1.0 - Major overhaul - methods return dataclasses, caching, new met…
…hods + more - 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.
- Loading branch information
1 parent
8ca9f2b
commit 2c512b3
Showing
14 changed files
with
2,311 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
env | ||
credentials.py | ||
credentials_*.py | ||
.DS_Store | ||
|
||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,40 @@ | ||
+===================================================================+ | ||
| © 2020 Privex Inc. | | ||
| https://www.privex.io | | ||
+===================================================================+ | ||
| | | ||
| Python Namecheap API | | ||
| | | ||
| Repo: https://github.com/Privex/PyNamecheap | | ||
| PyPi Package: privex-namecheap | | ||
| | | ||
| License: X11 / MIT | | ||
| | | ||
| Core Developer(s): | | ||
| | | ||
| (+) Chris (@someguy123) [Privex] | | ||
| (+) Kale (@kryogenic) [Privex] | | ||
| | | ||
+===================================================================+ | ||
|
||
Copyright 2020 Privex Inc. ( https://www.privex.io ) | ||
Copyright (c) 2016-2020 Bemmu Sepponen | ||
|
||
The MIT License (MIT) | ||
Copyright (c) 2016 Bemmu Sepponen | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the | ||
Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
|
||
|
Oops, something went wrong.