pythonanywhere-core 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pythonanywhere-core
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: API wrapper for programmatic management of PythonAnywhere services.
5
5
  License: MIT
6
6
  Keywords: pythonanywhere,api,cloud,web hosting
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pythonanywhere-core"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "API wrapper for programmatic management of PythonAnywhere services."
5
5
  authors = ["PythonAnywhere <developers@pythonanywhere.com>"]
6
6
  license = "MIT"
@@ -58,13 +58,15 @@ class Website:
58
58
  )
59
59
 
60
60
 
61
- def create(self, domain_name: str, command: str) -> dict:
61
+ def create(self, domain_name: str, command: str, nuke: bool = False) -> dict:
62
62
  """Creates new website with ``domain_name`` and ``command``.
63
63
 
64
64
  :param domain_name: domain name for new website
65
65
  :param command: command for new website
66
66
  :returns: dictionary with created website info"""
67
67
 
68
+ self.sanity_check(domain_name, nuke)
69
+
68
70
  response = call_api(
69
71
  self.websites_base_url,
70
72
  "post",