Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing old endpoint URLs #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
provstore-api [![PyPI version](https://badge.fury.io/py/provstore-api.svg)](http://badge.fury.io/py/provstore-api) [![Build Status](https://travis-ci.org/millar/provstore-api.svg?branch=master)](https://travis-ci.org/millar/provstore-api) [![Coverage Status](https://coveralls.io/repos/millar/provstore-api/badge.png)](https://coveralls.io/r/millar/provstore-api)
=========

Client for the [ProvStore](https://provenance.ecs.soton.ac.uk/store/)'s [API](https://provenance.ecs.soton.ac.uk/store/help/api/).
Client for the [ProvStore](https://openprovenance.org/store/)'s [API](https://openprovenance.org/store/help/api/).

## Installation
```bash
Expand All @@ -16,7 +16,7 @@ To use the client import the API and configure your access credentials:
```python
from provstore.api import Api

# API key can be found at https://provenance.ecs.soton.ac.uk/store/account/developer/
# API key can be found at https://openprovenance.org/store/account/developer/
api = Api(userame="your_provstore_username", api_key="your_api_key")
```

Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
provstore-api
==========================================

provstore-api is a python API client for `ProvStore <https://provenance.ecs.soton.ac.uk/store/>`_.
provstore-api is a python API client for `ProvStore <https://openprovenance.org/store/>`_.

Installation
------------
Expand Down
2 changes: 1 addition & 1 deletion provstore/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self,
base_url=None):

if base_url is None:
self.base_url = 'https://provenance.ecs.soton.ac.uk/store/api/v0'
self.base_url = 'https://openprovenance.org/store/api/v0'
else:
self.base_url = base_url.rstrip('/')

Expand Down
4 changes: 2 additions & 2 deletions provstore/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get(self, document_id):
Example::
>>> api = Api()
>>> api.document.get(148)
https://provenance.ecs.soton.ac.uk/store/api/v0/documents/148
https://openprovenance.org/store/api/v0/documents/148
>>> api.id
148
>>> api.name
Expand Down Expand Up @@ -339,7 +339,7 @@ def url(self):

:Example:
>>> stored_document.url
'https://provenance.ecs.soton.ac.uk/store/documents/148'
'https://openprovenance.org/store/documents/148'
"""
if not self.abstract:
return "%s/documents/%i" % ("/".join(self._api.base_url.split("/")[:-2]), self.id)
Expand Down