Skip to content
Merged
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
36 changes: 16 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,28 @@ client = epo_ops.Client(key="abc", secret="xyz")

# Retrieve bibliography data.
response = client.published_data(

# publication, application, priority
reference_type="publication",

# docdb, epodoc
input=epo_ops.models.Docdb("1000000", "EP", "A1"),

# optional, defaults to biblio in case of published_data
endpoint="biblio",

# optional, list of constituents
constituents=[],
# publication, application, priority
reference_type="publication",
# docdb, epodoc
input=epo_ops.models.Docdb("1000000", "EP", "A1"),
# optional, defaults to biblio in case of published_data
endpoint="biblio",
# optional, list of constituents
constituents=[],
)

# Retrieve description.
response = client.published_data(
reference_type="publication",
input=epo_ops.models.Docdb("1000000", "EP", "A1"),
endpoint="description",
reference_type="publication",
input=epo_ops.models.Docdb("1000000", "EP", "A1"),
endpoint="description",
)

# Retrieve claims.
response = client.published_data(
reference_type="publication",
input=epo_ops.models.Docdb("1000000", "EP", "A1"),
endpoint="claims",
reference_type="publication",
input=epo_ops.models.Docdb("1000000", "EP", "A1"),
endpoint="claims",
)
```

Expand Down Expand Up @@ -134,8 +130,8 @@ middlewares = [
epo_ops.middlewares.Throttler(),
]
client = epo_ops.Client(
key='key',
secret='secret',
key="key",
secret="secret",
middlewares=middlewares,
)
```
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ lint.mccabe.max-complexity = 7

[tool.pytest]
ini_options.minversion = "2.0"
ini_options.testpaths = [ "tests" ]
ini_options.addopts = """
-rsfEX -p pytester --strict-markers --verbosity=3
--cov=epo_ops tests --cov-report=term-missing --cov-report=xml
"""
ini_options.markers = []
ini_options.xfail_strict = true
ini_options.log_level = "DEBUG"
ini_options.log_cli_level = "DEBUG"
ini_options.testpaths = [ "tests" ]
ini_options.xfail_strict = true
ini_options.markers = []

[tool.versioningit]
vcs.method = "git-archive"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
extras_require={
"develop": [
"pyproject-fmt<3",
"ruff<0.17; python_version >= '3.7'",
"ruff==0.17.*; python_version >= '3.7'",
"twine<8",
"wheel<1",
],
Expand Down
Loading