Skip to content

Commit 7f73cca

Browse files
eccleshonourfish
authored andcommitted
Fix minor typos
Problem: Spelling errors ... Solution: Fix spelling errors and some syntax errors in docs Signed-off-by: Paul Hewlett <phewlett76@gmail.com>
1 parent 70a85ac commit 7f73cca

9 files changed

Lines changed: 27 additions & 16 deletions

File tree

archivist/access_policies.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"https://rkvst.poc.jitsuin.io",
1818
auth=authtoken,
1919
)
20-
asset = arch.access_policies.create(...)
20+
access_policy = arch.access_policies.create(...)
2121
2222
"""
2323

@@ -32,6 +32,9 @@
3232

3333
from .assets import Asset
3434

35+
#: Default page size - number of entities fetched in one REST GET in the
36+
#: :func:`~_AccessPoliciesClient.list` method. This can be overridden but should rarely
37+
#: be changed.
3538
DEFAULT_PAGE_SIZE = 500
3639

3740

@@ -182,7 +185,7 @@ def list(
182185
):
183186
"""List access policies.
184187
185-
List access policiess that match criteria.
188+
List access policies that match criteria.
186189
187190
Args:
188191
display_name (str): display name (optional0

archivist/archivist.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
88
The REST methods in this class should only be used directly when
99
a CRUD endpoint for the specific type of entity is unavaliable.
10-
Current CRUD endpoints are assets, events, locations and attachments.
10+
Current CRUD endpoints are assets, events, locations, attachments.
11+
IAM subjects and IAM access policies.
1112
1213
Instantiation of this class encapsulates the URL and authentication
1314
parameters:
@@ -23,8 +24,8 @@
2324
auth=authtoken,
2425
)
2526
26-
The arch variable now has additonal endpoints assets,events,locations and
27-
attachments documented elsewhere.
27+
The arch variable now has additonal endpoints assets,events,locations,
28+
attachments, IAM subjects and IAM access policies documented elsewhere.
2829
2930
"""
3031

archivist/assets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
from .confirm import wait_for_confirmation, wait_for_confirmed
3131

3232

33-
#: Default page size - number of entities fetched in one call to the
34-
#: :func:`~_AssetsClient.list` method.
33+
#: Default page size - number of entities fetched in one REST GET in the
34+
#: :func:`~_AssetsClient.list` method. This can be overridden but should rarely
35+
#: be changed.
3536
DEFAULT_PAGE_SIZE = 500
3637

3738

archivist/attachments.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"https://rkvst.poc.jitsuin.io",
1818
auth=authtoken,
1919
)
20-
attachment = arch.attachments.create(...)
20+
with open("something.jpg") as fd:
21+
attachment = arch.attachments.upload(fd)
2122
2223
"""
2324

@@ -46,7 +47,7 @@ def upload(self, fd, *, mtype="image/jpg"):
4647
Creates attachment from opened file or other data source.
4748
4849
Args:
49-
fd (file): opened file escriptor or other file-type iterable.
50+
fd (file): opened file descriptor or other file-type iterable.
5051
mtype (str): mimetype of data.
5152
5253
Returns:

archivist/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class ArchivistError(Exception):
11-
"""Base exception fot=r archivist package"""
11+
"""Base exception for archivist package"""
1212

1313

1414
class ArchivistBadFieldError(ArchivistError):

archivist/events.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
from .confirm import wait_for_confirmation, wait_for_confirmed
3434

3535

36-
#: Default page size - number of entities fetched in one call to the
37-
#: :func:`~_EventsClient.list` method.
36+
#: Default page size - number of entities fetched in one REST GET in the
37+
#: :func:`~_EventsClient.list` method. This can be overridden but should rarely
38+
#: be changed.
3839
DEFAULT_PAGE_SIZE = 500
3940

4041

archivist/locations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
from .constants import LOCATIONS_SUBPATH, LOCATIONS_LABEL
2626

2727

28-
#: Default page size - number of entities fetched in one call to the
29-
#: :func:`~_LocationsClient.list` method.
28+
#: Default page size - number of entities fetched in one REST GET in the
29+
#: :func:`~_LocationsClient.list` method. This can be overridden but should rarely
30+
#: be changed.
3031
DEFAULT_PAGE_SIZE = 500
3132

3233

archivist/subjects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"https://rkvst.poc.jitsuin.io",
1818
auth=authtoken,
1919
)
20-
asset = arch.subjects.create(...)
20+
subject = arch.subjects.create(...)
2121
2222
"""
2323

@@ -26,6 +26,9 @@
2626
SUBJECTS_LABEL,
2727
)
2828

29+
#: Default page size - number of entities fetched in one REST GET in the
30+
#: :func:`~_SubjectsClient.list` method. This can be overridden but should rarely
31+
#: be changed.
2932
DEFAULT_PAGE_SIZE = 500
3033

3134

docs/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ REST api (in any language):
2727
* fully unittested - 100% coverage.
2828
* code style managed and enforced.
2929

30-
See the **examples/** directory for code that creates assets and events and lists them.
30+
See the **examples/** directory for example code.

0 commit comments

Comments
 (0)