Skip to content

Commit a62197f

Browse files
committed
Merge branch 'development' into 'master'
Development See merge request open-platform/sdk/python!7
2 parents 2492a02 + 04951fd commit a62197f

File tree

12 files changed

+53
-46
lines changed

12 files changed

+53
-46
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.0] - 2018-08-02
8+
### Changed
9+
- Renamed module to open_py
10+
- Renamed class to OpenPy
11+
12+
713
## [1.0.1] - 2018-08-01
814
### Changed
915
- Update the README to match the new way of importing the package
@@ -27,5 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2733
- Get all transactions API
2834
- Tests
2935

36+
[2.0.0]: https://github.com/OpenFuturePlatform/open-api-python-sdk/compare/v2.0.0...v1.0.1
37+
[1.0.1]: https://github.com/OpenFuturePlatform/open-api-python-sdk/compare/v1.0.1...v1.0.0
3038
[1.0.1]: https://github.com/OpenFuturePlatform/open-api-python-sdk/compare/v1.0.1...v1.0.0
3139
[1.0.0]: https://github.com/OpenFuturePlatform/open-api-python-sdk/compare/e8d583f41e071d56dbc6dcf924bcc3a35c85b302...v1.0.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ To access the library import an OpenPlatform class and call an instance with the
2929

3030

3131
```python
32-
from openplatform import OpenPlatform
32+
from openp_py import OpenPy
3333

3434
# Access API via instance of OpenPlatform class
35-
op = OpenPlatform(open_key)
35+
op = OpenPy(open_key)
3636
```
3737
`open_key` - your open key.
3838

@@ -100,7 +100,7 @@ transactionIndex|BigInteger | Transact
100100
tokenBalance |BigInteger | Scaffold token balance
101101
enabled |Boolean | Scaffold enabled
102102
currency |String | Fiat amount currency
103-
shareHolders |[ShareHolder](#share-holder-attributes) | Scaffold share holders
103+
shareHolders |[ShareHolder](#shareholder-attributes) | Scaffold shareholders
104104

105105
##### get_summary(address)
106106

@@ -192,7 +192,7 @@ quota = op.scaffold.get_quota()
192192
```
193193
#### Shareholder
194194

195-
##### Share holder attributes
195+
##### Shareholder attributes
196196

197197
Attribute | Type | Description
198198
----------------|-----------------------------------------------------|-----------

open_py/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from open_py.open_py import OpenPy
2+
3+
__all__ = [OpenPy]

open_py/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
api_prefix = 'api/'
2+
remote_api = ''
3+
4+
# base_url = 'https://api.open-platform.zensoft.io'
5+
base_url = 'https://api.openfuture.io'

openplatform/open_api.py renamed to open_py/open_py.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from openplatform.senders import Scaffold, Shareholder
1+
from open_py.senders import Scaffold, Shareholder
22

33

4-
class OpenPlatform(object):
4+
class OpenPy(object):
55
def __init__(self, open_key=''):
66
if open_key == '':
77
raise AttributeError('open_key can not be empty')

openplatform/senders.py renamed to open_py/senders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22

3-
from openplatform.urls import base
4-
from openplatform.utils import validate_address, merge_headers, CONTENT_JSON
3+
from open_py.urls import base
4+
from open_py.utils import validate_address, merge_headers, CONTENT_JSON
55

66

77
class Scaffold:

openplatform/urls.py renamed to open_py/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from openplatform import config
2-
from openplatform.config import base_url
1+
from open_py import config
2+
from open_py.config import base_url
33
import urllib.parse
44

55

File renamed without changes.

openplatform/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

openplatform/config.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)