diffbot-python 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
diffbot/__init__.py CHANGED
@@ -2,7 +2,12 @@
2
2
  diffbot - Python client library for the Diffbot APIs.
3
3
  """
4
4
 
5
- __version__ = "0.1.0"
5
+ from importlib.metadata import PackageNotFoundError, version as _version
6
+
7
+ try:
8
+ __version__ = _version("diffbot-python")
9
+ except PackageNotFoundError: # not installed (e.g. running from a source tree)
10
+ __version__ = "0.0.0"
6
11
 
7
12
  from ._auth import resolve_token
8
13
  from .client import Diffbot, DiffbotAsync
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffbot-python
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python client library for Diffbot APIs
5
5
  Project-URL: Homepage, https://github.com/diffbot/diffbot-python
6
6
  Project-URL: Documentation, https://github.com/diffbot/diffbot-python#readme
@@ -1,4 +1,4 @@
1
- diffbot/__init__.py,sha256=hyIdyzIjXYvM2XXE20bDggIcJkTC7aR5s--LdLGFXOI,619
1
+ diffbot/__init__.py,sha256=OUDi3bVvKowQAQB4m8I4t761ct4pC-3de461qPI4Zok,827
2
2
  diffbot/_auth.py,sha256=dzNMWqIjtG3YtRBb_EKpPRiBxvZgogxvoE0ABLvzfOk,1251
3
3
  diffbot/ask.py,sha256=iNv613j4CoIfdDTOE-pl9KUkjqI-2AxGDMR1prm3DGM,1853
4
4
  diffbot/client.py,sha256=G6vYUEDEaIqjJXcIRxAjwS_cvaXvM7KdQFVMIedkgUY,11315
@@ -15,8 +15,8 @@ diffbot/cli/_common.py,sha256=_s8WRukzSX3krjJW6HJmT7_3hEjNyv1i_y45tm81b2A,654
15
15
  diffbot/cli/dql.py,sha256=iIMaGysMWTScnbAHAdWei2iVUJpMV5lA1pk1E9uQg4s,11439
16
16
  diffbot/cli/entities.py,sha256=tsHKexF0b6NnsoUEZJUS2rJidTIE8lt6xrcSenPbwtY,5630
17
17
  diffbot/cli/ontology.py,sha256=cLuRQ0KTsOJnFCXdG_zIX9J1ODK8ThPznWVDDEpO1pg,2055
18
- diffbot_python-0.2.0.dist-info/METADATA,sha256=LooJOiHWS4HP8JlLvackJ2JEauezwZ2qe39xCgyhk2c,7402
19
- diffbot_python-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
- diffbot_python-0.2.0.dist-info/entry_points.txt,sha256=FCxJhrbl7VNEsTK7zl7qYvXID7gQ1_wxhiw5_Vllb_M,40
21
- diffbot_python-0.2.0.dist-info/licenses/LICENSE,sha256=UZlamI1XGeiG0Mit8dsHssNhOuMGKfmNOp5qpf1533w,1063
22
- diffbot_python-0.2.0.dist-info/RECORD,,
18
+ diffbot_python-0.2.1.dist-info/METADATA,sha256=xNpRnsnbGtPxU-zUAPwozdiHprTBS82zjUD87BMO36U,7402
19
+ diffbot_python-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ diffbot_python-0.2.1.dist-info/entry_points.txt,sha256=FCxJhrbl7VNEsTK7zl7qYvXID7gQ1_wxhiw5_Vllb_M,40
21
+ diffbot_python-0.2.1.dist-info/licenses/LICENSE,sha256=UZlamI1XGeiG0Mit8dsHssNhOuMGKfmNOp5qpf1533w,1063
22
+ diffbot_python-0.2.1.dist-info/RECORD,,