Skip to content

Commit

Permalink
[chore] Use inventory client (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Feb 27, 2024
1 parent 78a55e8 commit fbf3fcc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fixdatalink/remote_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional, ClassVar

from attr import define, field
from fixclient import FixClient, JsObject
from fixclient import FixInventoryClient, JsObject
from fixlib.baseplugin import BaseCollectorPlugin
from fixlib.baseresources import (
BaseResource,
Expand Down Expand Up @@ -58,7 +58,7 @@ def collect(self) -> None:

def _collect_remote_graph(self) -> Graph:
config: RemoteGraphConfig = Config.remote_graph
client = FixClient(config.fix_url, psk=config.psk)
client = FixInventoryClient(config.fix_url, psk=config.psk)
search = config.search or "is(graph_root) -[2:]->"
return self._collect_from_graph_iterator(client.search_graph(search, graph=config.graph))

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fixdatalink"
version = "2.0.0"
version = "2.0.1"
authors = [{name="Some Engineering Inc."}]
description = "Data Pipelines for Fix infrastructure data."
license = {file="LICENSE"}
Expand Down Expand Up @@ -29,7 +29,7 @@ keywords = ["data source", "data sink", "data synchronization", "data pipeline"]

dependencies = [
"networkx",
"fixclient>=2.0.0",
"fixinventoryclient>=2.0.0",
"fixinventorylib",
"rich",
"sqlalchemy",
Expand Down
2 changes: 1 addition & 1 deletion requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pytz==2023.3.post1
pyyaml==6.0.1
requests==2.31.0
fixinventory-plugin-example-collector==4.0.0a2
fixclient==2.0.0
fixinventoryclient==2.0.0
fixinventorylib==4.0.0a1
rich==13.7.0
rsa==4.9
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ python-dateutil==2.8.2
pytz==2023.3.post1
pyyaml==6.0.1
requests==2.31.0
fixclient==2.0.0
fixinventoryclient==2.0.0
fixinventorylib==4.0.0a1
rich==13.7.0
rsa==4.9
Expand Down

0 comments on commit fbf3fcc

Please sign in to comment.