Skip to content

Commit

Permalink
1.2.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Sep 2, 2016
1 parent aca9f37 commit 13846de
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.4 - 9/2/2016
- Add support for async resource bag (BagIt archive) creation prior to downloading
the bag file in getResource()

# 1.2.3 - 7/12/2016
- Add ability to supply metadata (in addition to 'title', 'abstract', and 'keywords')
to createResource()
Expand Down
12 changes: 12 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ or to get the BagIt archive as a generator (sort of like a buffered stream):
>>> for chunk in resource:
>>> fd.write(chunk)

Note that when the BagIt archive is not ready for download (this archive zip file needs to be
recreated) the client by default will wait until the BagIt archive is recreated. This may take a
while. If you want to get the BagIt archive only if it is ready for download:

>>> from hs_restclient import HydroShare
>>> hs = HydroShare()
>>>try:
>>> hs.getResource('e62a438bec384087b6c00ddcd1b6475a', destination='/tmp', wait_for_bag_creation=False)
>>>except HydroShareBagNotReadyException as e:
>>> print('BagIt file is being generated and not ready for download at this time.')


To create a resource:

>>> from hs_restclient import HydroShare, HydroShareAuthBasic
Expand Down
2 changes: 1 addition & 1 deletion hs_restclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

__title__ = 'hs_restclient'
__version__ = '1.2.3'
__version__ = '1.2.4'


import os
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.2.3',
version='1.2.4',

description='HydroShare REST API client library',
long_description=long_description,
Expand Down

0 comments on commit 13846de

Please sign in to comment.