Skip to content

Commit c755edb

Browse files
committed
Update readme and setup
1 parent 3b54cc9 commit c755edb

File tree

7 files changed

+53
-38
lines changed

7 files changed

+53
-38
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ __pycache__/
77

88
# Distribution / packaging
99
.Python
10+
.python-version
1011
.env/
1112
env/
1213
bin/
@@ -53,3 +54,6 @@ coverage.xml
5354
*.swp
5455
# Sphinx documentation
5556
docs/_build/
57+
58+
# IDE
59+
.idea/

CONTRIBUTING.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
## Code of Conduct
44

55
All interactions with this project follow our [Code of Conduct][code-of-conduct].
6-
By participating, you are expected to honor this code. Violators can be banned
7-
from further participation in this project, or potentially all Coinbase projects.
6+
By participating, you are expected to honor this code.
87

98
[code-of-conduct]: https://github.com/coinbase/code-of-conduct
109

@@ -40,14 +39,5 @@ The best way to see a feature added, however, is to submit a pull request.
4039

4140
* Submit your pull request!
4241

43-
## Support Requests
44-
45-
For security reasons, any communication referencing support tickets for Coinbase
46-
products will be ignored. The request will have its content redacted and will
47-
be locked to prevent further discussion.
48-
49-
All support requests must be made via [our support team][3].
50-
5142
[1]: https://github.com/coinbase/coinbase-python/issues
5243
[2]: https://medium.com/brigade-engineering/the-secrets-to-great-commit-messages-106fc0a92a25
53-
[3]: https://support.coinbase.com/customer/en/portal/articles/2288496-how-can-i-contact-coinbase-support-

PYPIREADME.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Coinbase
1919
.. image:: https://img.shields.io/pypi/l/coinbase.svg
2020
:target: https://pypi.python.org/pypi/coinbase/
2121

22-
The official Python library for the `Coinbase API
22+
A fork of the official Python library for the `Coinbase API
2323
<https://developers.coinbase.com/api>`_.
2424

2525

@@ -32,7 +32,7 @@ Features
3232
- Automatic parsing of API responses into relevant Python objects.
3333
- All objects have tab-completable methods and attributes when using `IPython <http://ipython.org>`_.
3434

35-
For more information, please `visit the Github repository <https://github.com/coinbase/coinbase-python>`_.
35+
For more information, please `visit the Github repository <https://github.com/scottdchris/coinbase-python>`_.
3636

3737
*Note: this package name used to refer to the unofficial* ``coinbase_python``
3838
*library maintained by* `George Sibble <https://github.com/sibblegp/>`_ *.

README.rst

+24-21
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Coinbase
1616
.. image:: https://img.shields.io/pypi/l/coinbase.svg
1717
:target: https://pypi.python.org/pypi/coinbase/
1818

19-
The official Python library for the `Coinbase API V2 <https://developers.coinbase.com/api/v2>`_.
19+
A fork of the official Python library for the `Coinbase API V2 <https://developers.coinbase.com/api/v2>`_.
2020

2121
*Important*: this library currently targets the API V2, and the OAuth client requires V2 permissions (i.e. ``wallet:accounts:read``).
2222
If you're still using the API V1, please use `the old version of this library <https://pypi.python.org/pypi/coinbase/1.0.4>`_.
@@ -162,26 +162,29 @@ These exceptions will be subclasses of ``coinbase.wallet.error.CoinbaseError``.
162162
When the error involves an API request and/or response, the error will be a subclass of ``coinbase.error.APIError``, and include ``request`` and ``response`` attributes with more information about the failed interaction.
163163
For full details of error responses, please refer `to the relevant API documentation <https://developers.coinbase.com/api/v2#errors>`_.
164164

165-
============================= ================
166-
Error HTTP Status Code
167-
============================= ================
168-
APIError *
169-
TwoFactorRequiredError 402
170-
ParamRequiredError 400
171-
ValidationError 422
172-
InvalidRequestError 400
173-
PersonalDetailsRequiredError 400
174-
AuthenticationError 401
175-
UnverifiedEmailError 401
176-
InvalidTokenError 401
177-
RevokedTokenError 401
178-
ExpiredTokenError 401
179-
InvalidScopeError 403
180-
NotFoundError 404
181-
RateLimitExceededError 429
182-
InternalServerError 500
183-
ServiceUnavailableError 503
184-
============================= ================
165+
======================================== ================
166+
Error HTTP Status Code
167+
======================================== ================
168+
APIError *
169+
ParamRequiredError 400
170+
InvalidRequestError 400
171+
PersonalDetailsRequiredError 400
172+
IdentityVerificationRequiredError 400
173+
JumioVerificationRequiredError 400
174+
JumioFaceMatchVerificationRequiredError 400
175+
AuthenticationError 401
176+
UnverifiedEmailError 401
177+
InvalidTokenError 401
178+
RevokedTokenError 401
179+
ExpiredTokenError 401
180+
TwoFactorRequiredError 402
181+
InvalidScopeError 403
182+
NotFoundError 404
183+
ValidationError 422
184+
RateLimitExceededError 429
185+
InternalServerError 500
186+
ServiceUnavailableError 503
187+
======================================= ================
185188

186189

187190
OAuth Client

coinbase/wallet/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# coding: utf-8
2-
__version__ = '2.1.0'
2+
__version__ = '2.2.0'

coinbase/wallet/error.py

+15
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ class ServiceUnavailableError(APIError):
9393
pass
9494

9595

96+
class IdentityVerificationRequiredError(APIError):
97+
pass
98+
99+
100+
class JumioVerificationRequiredError(APIError):
101+
pass
102+
103+
104+
class JumioFaceMatchVerificationRequiredError(APIError):
105+
pass
106+
107+
96108
def build_api_error(response, blob=None):
97109
"""Helper method for creating errors and attaching HTTP response/request
98110
details to them.
@@ -122,6 +134,9 @@ def build_api_error(response, blob=None):
122134
'two_factor_required': TwoFactorRequiredError,
123135
'param_required': ParamRequiredError,
124136
'validation_error': ValidationError,
137+
'identity_verification_required': IdentityVerificationRequiredError,
138+
'jumio_verification_required': JumioVerificationRequiredError,
139+
'jumio_face_match_verification_required': JumioFaceMatchVerificationRequiredError,
125140
'invalid_request': InvalidRequestError,
126141
'personal_details_required': PersonalDetailsRequiredError,
127142
'authentication_error': AuthenticationError,

setup.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
license='Apache 2.0',
1717
description='Coinbase API client library',
1818
long_description=README,
19-
url='https://github.com/coinbase/coinbase-python/',
20-
download_url='https://github.com/coinbase/coinbase-python/tarball/%s' % (
19+
url='https://github.com/scottdchris/coinbase-python/',
20+
download_url='https://github.com/scottdchris/coinbase-python/tarball/%s' % (
2121
coinbase.wallet.__version__),
2222
keywords=['api', 'coinbase', 'bitcoin', 'oauth2', 'client'],
2323
install_requires=REQUIREMENTS,
24-
author='Coinbase, Inc.',
24+
author='Chris Scott',
2525
author_email='[email protected]',
2626
classifiers=[
2727
'Intended Audience :: Developers',
@@ -33,6 +33,9 @@
3333
'Programming Language :: Python :: 3.4',
3434
'Programming Language :: Python :: 3.5',
3535
'Programming Language :: Python :: 3.6',
36+
'Programming Language :: Python :: 3.7',
37+
'Programming Language :: Python :: 3.8',
38+
'Programming Language :: Python :: 3.9',
3639
'Programming Language :: Python',
3740
'Topic :: Software Development :: Libraries :: Python Modules',
3841
],

0 commit comments

Comments
 (0)