grobid-client-python 0.1.1__tar.gz → 0.1.2__tar.gz

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.
Files changed (58) hide show
  1. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/PKG-INFO +1 -1
  2. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/grobid_client.py +4 -1
  3. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/PKG-INFO +1 -1
  4. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/pyproject.toml +1 -1
  5. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/test_grobid_client.py +3 -4
  6. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/.github/workflows/ci-build.yml +0 -0
  7. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/.github/workflows/ci-release.yml +0 -0
  8. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/.gitignore +0 -0
  9. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/LICENSE +0 -0
  10. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/MANIFEST.in +0 -0
  11. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/Readme.md +0 -0
  12. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/config.json +0 -0
  13. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/example.py +0 -0
  14. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/__init__.py +0 -0
  15. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/client.py +0 -0
  16. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/format/TEI2LossyJSON.py +0 -0
  17. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/format/TEI2Markdown.py +0 -0
  18. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/format/__init__.py +0 -0
  19. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client/format/validate_json_refs.py +0 -0
  20. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/SOURCES.txt +0 -0
  21. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/dependency_links.txt +0 -0
  22. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/entry_points.txt +0 -0
  23. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/requires.txt +0 -0
  24. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/grobid_client_python.egg-info/top_level.txt +0 -0
  25. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/pytest.ini +0 -0
  26. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/requirements.txt +0 -0
  27. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/20180928112135.png +0 -0
  28. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/20180928112138.csv +0 -0
  29. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_pdf/0046d83a-edd6-4631-b57c-755cdcce8b7f.pdf +0 -0
  30. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_pdf/0046d83a-edd6-4631-b57c-755cdcce8b7f.tei.xml +0 -0
  31. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-1.txt +0 -0
  32. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-2.txt +0 -0
  33. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-3.txt +0 -0
  34. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-4.txt +0 -0
  35. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-5.txt +0 -0
  36. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-6.txt +0 -0
  37. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/resources/test_txt/reference-strings-7.txt +0 -0
  38. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/setup.cfg +0 -0
  39. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/__init__.py +0 -0
  40. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/conftest.py +0 -0
  41. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/0046d83a-edd6-4631-b57c-755cdcce8b7f.tei.xml +0 -0
  42. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/__init__.py +0 -0
  43. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41477-023-01501-1.grobid.tei.xml +0 -0
  44. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41477-023-01501-1.json +0 -0
  45. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41586-023-05895-y.grobid.tei.xml +0 -0
  46. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41586-023-05895-y.json +0 -0
  47. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41598-023-32039-z.grobid.tei.xml +0 -0
  48. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1038_s41598-023-32039-z.json +0 -0
  49. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1371_journal.pone.0218311.grobid.tei.xml +0 -0
  50. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.1371_journal.pone.0218311.json +0 -0
  51. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.7554_elife.78558.grobid.tei.xml +0 -0
  52. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/10.7554_elife.78558.json +0 -0
  53. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/resources/refs_offsets/2021.naacl-main.224.grobid.tei.xml +0 -0
  54. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/run_tests.py +0 -0
  55. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/test_client.py +0 -0
  56. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/test_config.json +0 -0
  57. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/test_conversions.py +0 -0
  58. {grobid_client_python-0.1.1 → grobid_client_python-0.1.2}/tests/test_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: grobid-client-python
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Simple python client for GROBID REST services
5
5
  Author-email: Patrice Lopez <patrice.lopez@science-miner.com>
6
6
  Maintainer-email: Patrice Lopez <patrice.lopez@science-miner.com>, Luca Foppiano <lucanoro@duck.com>
@@ -720,7 +720,10 @@ class GrobidClient(ApiClient):
720
720
  include_raw_citations,
721
721
  include_raw_affiliations,
722
722
  tei_coordinates,
723
- segment_sentences
723
+ segment_sentences,
724
+ flavor=None,
725
+ start_page=-1,
726
+ end_page=-1
724
727
  ):
725
728
  # create request based on file content
726
729
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: grobid-client-python
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Simple python client for GROBID REST services
5
5
  Author-email: Patrice Lopez <patrice.lopez@science-miner.com>
6
6
  Maintainer-email: Patrice Lopez <patrice.lopez@science-miner.com>, Luca Foppiano <lucanoro@duck.com>
@@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.bumpversion]
6
- current_version = "0.1.1"
6
+ current_version = "0.1.2"
7
7
  commit = "true"
8
8
  tag = "true"
9
9
  tag_name = "v{new_version}"
@@ -1,14 +1,13 @@
1
1
  """
2
2
  Unit tests for the GROBID client main functionality.
3
3
  """
4
- import pytest
5
- from unittest.mock import Mock, patch, MagicMock, mock_open, call
6
4
  import json
7
5
  import os
8
6
  import tempfile
9
- import logging
7
+ from unittest.mock import Mock, patch, mock_open
8
+
9
+ import pytest
10
10
  import requests
11
- from io import StringIO
12
11
 
13
12
  from grobid_client.grobid_client import GrobidClient, ServerUnavailableException
14
13