pythonanywhere-core 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

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.
@@ -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",
@@ -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
@@ -5,8 +5,8 @@ pythonanywhere_core/files.py,sha256=qIfbcg472TPeOejpif_i64PtWP_qROlxoz5JbePzX8Q,
5
5
  pythonanywhere_core/schedule.py,sha256=giSO-Gssshkto9de2hSA3VeNKotXYu-lBG-iyqDolIw,3904
6
6
  pythonanywhere_core/students.py,sha256=PeBLUP7AOCRwCDiaH71wURwFx3H3PLQW91f5AjOPQmU,1778
7
7
  pythonanywhere_core/webapp.py,sha256=Oa4DTgFY3iMPsW_PqWGFb6WkMbCQz35q8VuK_-sKBKQ,8969
8
- pythonanywhere_core/website.py,sha256=WKI-fpEA6EW3JsqcOQSjOe1621YyaVsDDfszLZEV2fA,5058
9
- pythonanywhere_core-0.2.1.dist-info/LICENSE,sha256=zOJT_E5Fv8crFEKS5ulv0btbjnUiIkdsEBPEBmLHRlQ,1080
10
- pythonanywhere_core-0.2.1.dist-info/METADATA,sha256=x4kEXZrLqoWOcLIXjxSgRJq4TWxmYbS4n7FSQ6scAF4,1529
11
- pythonanywhere_core-0.2.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
12
- pythonanywhere_core-0.2.1.dist-info/RECORD,,
8
+ pythonanywhere_core/website.py,sha256=II4BZy47DP30P6eVh76iJSUd12HcSBfG0AFqiZ5HYME,5124
9
+ pythonanywhere_core-0.2.2.dist-info/LICENSE,sha256=zOJT_E5Fv8crFEKS5ulv0btbjnUiIkdsEBPEBmLHRlQ,1080
10
+ pythonanywhere_core-0.2.2.dist-info/METADATA,sha256=r0wiK6C4dcApri8TygyHyT2_-RkD-F5J8e1678ii9ps,1529
11
+ pythonanywhere_core-0.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
12
+ pythonanywhere_core-0.2.2.dist-info/RECORD,,