pywaclient 1.3.2__tar.gz → 1.3.4__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.
Files changed (71) hide show
  1. {pywaclient-1.3.2/pywaclient.egg-info → pywaclient-1.3.4}/PKG-INFO +1 -1
  2. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/manuscripts.py +3 -3
  3. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/maps.py +1 -0
  4. {pywaclient-1.3.2 → pywaclient-1.3.4/pywaclient.egg-info}/PKG-INFO +1 -1
  5. pywaclient-1.3.4/tests/test_manuscript_endpoint.py +120 -0
  6. pywaclient-1.3.2/tests/test_manuscript_endpoint.py +0 -42
  7. {pywaclient-1.3.2 → pywaclient-1.3.4}/.gitignore +0 -0
  8. {pywaclient-1.3.2 → pywaclient-1.3.4}/.gitlab-ci.yml +0 -0
  9. {pywaclient-1.3.2 → pywaclient-1.3.4}/LICENCE +0 -0
  10. {pywaclient-1.3.2 → pywaclient-1.3.4}/README.md +0 -0
  11. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/__init__.py +0 -0
  12. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/api.py +0 -0
  13. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/__init__.py +0 -0
  14. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/articles.py +0 -0
  15. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/block_templates.py +0 -0
  16. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/blocks.py +0 -0
  17. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/canvas.py +0 -0
  18. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/categories.py +0 -0
  19. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/chronicles.py +0 -0
  20. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/histories.py +0 -0
  21. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/images.py +0 -0
  22. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/map_marker_types.py +0 -0
  23. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/notebooks.py +0 -0
  24. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/rpg_system.py +0 -0
  25. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/secrets.py +0 -0
  26. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/subscriber_groups.py +0 -0
  27. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/timelines.py +0 -0
  28. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/users.py +0 -0
  29. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/variables.py +0 -0
  30. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/endpoints/worlds.py +0 -0
  31. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/exceptions/__init__.py +0 -0
  32. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/__init__.py +0 -0
  33. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/article.py +0 -0
  34. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/block.py +0 -0
  35. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/category.py +0 -0
  36. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/entity.py +0 -0
  37. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/genre.py +0 -0
  38. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/manuscript.py +0 -0
  39. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/secret.py +0 -0
  40. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/user.py +0 -0
  41. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient/models/world.py +0 -0
  42. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient.egg-info/SOURCES.txt +0 -0
  43. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient.egg-info/dependency_links.txt +0 -0
  44. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient.egg-info/requires.txt +0 -0
  45. {pywaclient-1.3.2 → pywaclient-1.3.4}/pywaclient.egg-info/top_level.txt +0 -0
  46. {pywaclient-1.3.2 → pywaclient-1.3.4}/requirements.txt +0 -0
  47. {pywaclient-1.3.2 → pywaclient-1.3.4}/setup.cfg +0 -0
  48. {pywaclient-1.3.2 → pywaclient-1.3.4}/setup.py +0 -0
  49. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/data/block.json +0 -0
  50. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/data/form_schema.json +0 -0
  51. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/init_client.py +0 -0
  52. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_article_endpoint.py +0 -0
  53. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_block_endpoint.py +0 -0
  54. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_block_template_endpoint.py +0 -0
  55. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_block_template_part_endpoint.py +0 -0
  56. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_canvas_endpoint.py +0 -0
  57. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_category_endpoint.py +0 -0
  58. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_chronicle_endpoint.py +0 -0
  59. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_history_endpoint.py +0 -0
  60. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_image_endpoint.py +0 -0
  61. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_map_endpoint.py +0 -0
  62. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_notebook_endpoint.py +0 -0
  63. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_parse_response.py +0 -0
  64. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_rpg_system_endpoint.py +0 -0
  65. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_secret_endpoint.py +0 -0
  66. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_subscriber_group_endpoint.py +0 -0
  67. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_timeline_endpoint.py +0 -0
  68. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_user_endpoint.py +0 -0
  69. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_variable_collection_endpoint.py +0 -0
  70. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_variable_endpoint.py +0 -0
  71. {pywaclient-1.3.2 → pywaclient-1.3.4}/tests/test_world_endpoint.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pywaclient
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: A small wrapper library around the World Anvil Aragorn API: https://www.worldanvil.com/api/aragorn/documentation.
5
5
  Home-page: https://gitlab.com/SoulLink/world-anvil-api-client
6
6
  Author: Jonas Waeber
@@ -112,11 +112,11 @@ class ManuscriptCrudEndpoint(CrudEndpoint):
112
112
  self.bookmark = ManuscriptBookmarkCrudEndpoint(client)
113
113
  self._path_bookmarks = f'{self.path}/manuscript_bookmarks'
114
114
  self.tag = ManuscriptTagCrudEndpoint(client)
115
- self._path_tags = 'manuscript_tags'
115
+ self._path_tags = f'{self.path}/manuscript_tags'
116
116
  self.label = ManuscriptLabelCrudEndpoint(client)
117
- self._path_labels = 'manuscript_labels'
117
+ self._path_labels = f'{self.path}/manuscript_labels'
118
118
  self.version = ManuscriptVersionCrudEndpoint(client)
119
- self._path_versions = 'manuscript_versions'
119
+ self._path_versions = f'{self.path}/manuscript_versions'
120
120
 
121
121
  def bookmarks(self, identifier: str) -> Iterable[Dict[str, Any]]:
122
122
  """Retrieve an iterable of all the bookmarks on a manuscript.
@@ -46,6 +46,7 @@ class MapCrudEndpoint(CrudEndpoint):
46
46
  def __init__(self, client: 'AragornApiClient'):
47
47
  super().__init__(client, 'map')
48
48
  self.path_layers = f'{self.path}/layers'
49
+ self.layer = MapLayerCrudEndpoint(client)
49
50
  self.path_groups = f'{self.path}/markergroups'
50
51
  self.marker_group = MapMarkerGroupCrudEndpoint(client)
51
52
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pywaclient
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: A small wrapper library around the World Anvil Aragorn API: https://www.worldanvil.com/api/aragorn/documentation.
5
5
  Home-page: https://gitlab.com/SoulLink/world-anvil-api-client
6
6
  Author: Jonas Waeber
@@ -0,0 +1,120 @@
1
+ # Copyright 2020 Jonas Waeber
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from init_client import world_id, client
16
+
17
+ if __name__ == '__main__':
18
+
19
+ manuscript_1 = client.manuscript.put(
20
+ {
21
+ 'title': 'Test Manuscript Creation',
22
+ 'world': {
23
+ 'id': world_id}
24
+
25
+ })
26
+
27
+ client.manuscript.tag.put(
28
+ {
29
+ 'manuscript': {
30
+ 'id': manuscript_1['id']
31
+ },
32
+ 'title': 'Test Manuscript Tag Creation',
33
+ })
34
+
35
+ for manuscript_tag in client.manuscript.tags(manuscript_1['id']):
36
+ print(manuscript_tag)
37
+
38
+ client.manuscript.label.put(
39
+ {
40
+ 'manuscript': {
41
+ 'id': manuscript_1['id']
42
+ },
43
+ 'title': 'Test Manuscript Label Creation',
44
+ })
45
+
46
+ for manuscript_label in client.manuscript.labels(manuscript_1['id']):
47
+ print(manuscript_label)
48
+
49
+ # for manuscript_bookmark in client.manuscript.bookmarks(manuscript_1['id']):
50
+ # print(manuscript_bookmark)
51
+
52
+ client.manuscript.version.put(
53
+ {
54
+ 'manuscript': {
55
+ 'id': manuscript_1['id']
56
+ },
57
+ 'title': 'Test Manuscript Version Creation',
58
+ }
59
+ )
60
+
61
+
62
+
63
+ for manuscript_version in client.manuscript.versions(manuscript_1['id']):
64
+ print(manuscript_version)
65
+
66
+ client.manuscript.version.part.put(
67
+ {
68
+ 'version': {
69
+ 'id': manuscript_version['id']
70
+ },
71
+ 'type': 'folder',
72
+ 'title': 'Test Manuscript Part Folder Creation',
73
+ }
74
+ )
75
+ client.manuscript.version.part.put(
76
+ {
77
+ 'version': {
78
+ 'id': manuscript_version['id']
79
+ },
80
+ 'type': 'richMediaUrl',
81
+ 'title': 'Test Manuscript Part Image Creation',
82
+ }
83
+ )
84
+ client.manuscript.version.part.put(
85
+ {
86
+ 'version': {
87
+ 'id': manuscript_version['id']
88
+ },
89
+ 'type': 'text',
90
+ 'title': 'Test Manuscript Part Image Creation',
91
+ }
92
+ )
93
+
94
+ for manuscript_part in client.manuscript.version.parts(manuscript_version['id']):
95
+ print(client.manuscript.version.part.get(manuscript_part['id'], 2))
96
+
97
+ client.manuscript.version.part.beat.put(
98
+ {
99
+ 'part': {
100
+ 'id': manuscript_part['id']
101
+ },
102
+ 'title': 'Test Manuscript Beat Creation',
103
+ }
104
+ )
105
+
106
+ for manuscript_beat in client.manuscript.version.part.beats(manuscript_part['id']):
107
+ print(client.manuscript.version.part.beat.get(manuscript_beat['id'], 2))
108
+
109
+
110
+
111
+ for manuscript_plot in client.manuscript.version.plots(manuscript_version['id']):
112
+ print(manuscript_plot)
113
+
114
+ for manuscript_stat in client.manuscript.version.stats(manuscript_version['id']):
115
+ print(manuscript_stat)
116
+ print(manuscript_1)
117
+ full_manuscript_1 = client.manuscript.get(manuscript_1['id'], 3)
118
+
119
+ print(full_manuscript_1)
120
+ client.manuscript.delete(manuscript_1['id'])
@@ -1,42 +0,0 @@
1
- # Copyright 2020 Jonas Waeber
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- from init_client import world_id, client
16
-
17
- if __name__ == '__main__':
18
-
19
- manuscript_1 = client.manuscript.put(
20
- {
21
- 'title': 'Test Manuscript Creation',
22
- 'world': {
23
- 'id': world_id}
24
-
25
- })
26
-
27
- bookmark = client.manuscript.bookmark.put(
28
- {
29
- 'title': 'Test Bookmark Creation',
30
- 'manuscript': {
31
- 'id': manuscript_1['id']
32
- }
33
- }
34
- )
35
- print(bookmark)
36
-
37
- print(manuscript_1)
38
- full_manuscript_1 = client.manuscript.get(manuscript_1['id'], 3)
39
-
40
- print(full_manuscript_1)
41
- client.manuscript.delete(manuscript_1['id'])
42
- client.manuscript.bookmark.delete(bookmark['id'])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes