How to use the vortexasdk.client.create_client function in vortexasdk

To help you get started, we’ve selected a few vortexasdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github V0RT3X4 / python-sdk / tests / conversions / test_convert_vessels.py View on Github external
def test_convert_name_to_vessel_ids(self):
        set_client(create_client())

        result = convert_to_vessel_ids(["OCEAN"])

        assert len(result) >= 10
github V0RT3X4 / python-sdk / tests / conversions / test_convert_vessels.py View on Github external
def test_convert_mmsi_to_vessel_ids(self):
        set_client(create_client())

        result = convert_to_vessel_ids([563064200])
        assert result == [
            "b9f5cf3e2a3b17fe2c7eed717f7ab36d481ad69290c28197c7cd00e1669ca66a"
        ]
github V0RT3X4 / python-sdk / tests / conversions / test_convert_vessels.py View on Github external
def test_convert_class_to_vessel_ids(self):
        set_client(create_client())

        result = convert_to_vessel_ids(["panamax"])

        assert result == [
            v.id for v in Vessels().search(vessel_classes="panamax").to_list()
        ]
github V0RT3X4 / python-sdk / tests / conversions / test_convert_vessels.py View on Github external
def test_convert_imo_to_vessel_ids(self):
        set_client(create_client())

        result = convert_to_vessel_ids([9083287])
        assert result == [
            "84a82843ec84ac6d67b65c50056eff78e0d58e6b9fc7a5ba9adc6c0442162cf4"
        ]
github V0RT3X4 / python-sdk / tests / endpoints / test_products_real.py View on Github external
def test_lookup_crude(self):
        set_client(create_client())

        result = Products().reference(
            "6f11b0724c9a4e85ffa7f1445bc768f054af755a090118dcf99f14745c261653"
        )

        assert result["name"] == "Crude"
github V0RT3X4 / python-sdk / tests / conversions / test_convert_vessels.py View on Github external
def test_convert_combination_to_vessel_ids(self):
        set_client(create_client())

        from_mmsi = convert_to_vessel_ids([563064200])
        from_imo = convert_to_vessel_ids([9083287])
        from_name = convert_to_vessel_ids(["OCEAN"])
        from_class = convert_to_vessel_ids(["aframax"])

        result = set(
            convert_to_vessel_ids([563064200, 9083287, "OCEAN", "aframax"])
        )
        assert result == set(from_mmsi + from_imo + from_name + from_class)
github V0RT3X4 / python-sdk / tests / endpoints / test_products_real.py View on Github external
def test_search_crude(self):
        set_client(create_client())

        result = [p.id for p in Products().search("Crude").to_list()]

        assert (
            "6f11b0724c9a4e85ffa7f1445bc768f054af755a090118dcf99f14745c261653"
            in result
        )
github V0RT3X4 / python-sdk / tests / testcases.py View on Github external
def setUp(self) -> None:
        set_client(create_client())