Package Documentation¶
Vessels API Package.
Classes:
Name | Description |
---|---|
VesselsAPI |
Represents Signal's Vessels API. |
Vessel |
Represents a Vessel. |
VesselType |
Represents the type of the vessel. |
VesselClass |
Represents the class of the vessel. |
Vessel
dataclass
¶
Contains all details of a vessel.
Attributes:
Name | Type | Description |
---|---|---|
imo |
int
|
A seven-digits number that uniquely identifies a ship and does not change when the ship's owner, country of registry or name of the vessel changes. |
vessel_type_id |
int
|
Numeric ID corresponding to the different values of the VesselType field. 1 -> Tanker, 3 -> Dry, 4 -> Containers, 5 -> LNG(Liquified Natural gas), 6 -> LPG(Liquified Petroleum Gas), -2 -> NotSet, -1 -> Unknown |
built_for_trade_id |
int
|
Numeric ID corresponding to the different values of the BuiltForTrade field. 1 -> Crude, 2 -> Product, 3 -> Chemical, -2 -> NotSet, -1 -> Unknown |
trade_id |
int
|
Numeric ID that takes the same values as the BuiltForTradeID field. 1 -> Crude, 2 -> Product, 3 -> Chemical, -2 -> NotSet, -1 -> Unknown |
vessel_class_id |
int
|
60-> VLGCLpg, 61-> MidsizeLpg, 62-> HandyLpg, 63-> SmallLpg, 69-> VLOC, 70-> Capesize, 72-> PostPanamaxDry, 74-> PanamaxDry, 75-> Supramax, 76-> Handymax, 77-> Handysize, 78-> ULCV, 79-> NewPanamaxContainer, 80-> PostPanamaxContainer, 81-> PanamaxContainer, 82-> FeedermaxContainer, 83-> FeederContainer, 84-> VLCC, 85-> Suezmax, 86-> Aframax, 87-> PanamaxTanker, 88-> MR2, 89-> MR1, 90-> Small, 91-> LNGLng, 92-> SmallDry, 94-> ULCC, 95-> SmallContainer |
commercial_operator_id |
int
|
Numeric ID corresponding to the maritime company that manages the vessel commercially. |
deadweight |
int
|
Numeric, measured in tonnes [t], often shortened as DWT, denotes the total carrying capacity of the vessel including cargo, ballast water, stores, provisions, crew and so on. |
breadth_extreme |
int
|
Numeric, measured in meters [m], denotes the width of a ship over the outside of all planking or plating at the widest frame. |
gross_rated_tonnage |
int
|
Numeric, measured in register tons, often shortened as GRT, denotes the sum of all the closed and/or closable spaces. |
reduced_gross_tonnage |
int
|
Numeric, measured in register tons, often shortened as RGT, denotes a measure applicable for open-top container ships and tankers with a double hull (ships equipped with segregated ballast tanks).This quantity can be used to compute various tonnage-based fees. |
net_rated_tonnage |
int
|
Numeric, measured in register tons, often shortened as NRT, denotes the difference between the GRT and the sum of all spaces which are not used for the purpose for which the ship is built. |
draught |
float
|
Numeric, measured in meters [m], denotes the distance between the ship’s keel and the waterline of the vessel. As the instantaneous draught of a vessel is a function of the vessel's loading status, this vessel characteristics refers to the maximum draught of the vessel. |
length_overall |
float
|
Numeric, measured in meters [m], denotes the vessel's maximum length between the extremes points, forward and aft. |
moulded_depth |
float
|
Numeric, measured in meters [m], denotes the vertical distance between the moulded base line and the top of the beams of the uppermost continuous deck. |
year_built |
int
|
Numeric, year format, the year the vessel was built. |
clean_dirty_willing |
bool
|
Boolean, indicates whether a tanker vessel is ‘willing’ to compete in the market complementary to the one shown in Trade. For example an LR willing dirty will have Trade=Product and CleanDirtyWilling=true. |
main_engine_manufacturer_id |
int
|
Numeric ID corresponding to the different values of the MainEngine field. 1-> MAN B&W, 2-> Wartsila, 3-> Mitsubishi. |
classification_register_id |
int
|
The id of the classification register. Default value: -2. |
updated_date |
datetime
|
Date, format YYYY-MM-DD HH:MM:SS, corresponding to the latest update. |
geared |
Optional[bool]
|
Boolean, denotes whether the vessel has cranes installed for handling its cargo or not. |
interline_coating |
Optional[int]
|
interline coating |
vessel_name |
Optional[str]
|
The current vessel name corresponding to that IMO. |
call_sign |
Optional[str]
|
Alphanumeric code that uniquely identifies a vessel and is used for radio communication with land based operators or stations and between the vessels. |
vessel_type |
Optional[str]
|
Description of the type of the vessel, based on the carried cargo. Main categories are Tankers, Dry (bulk carriers), Containers, LNG and LPG. |
built_for_trade |
Optional[str]
|
Additional attribute to specify a Tanker vessel with finer granularity. This classification is derived by the vessel characteristics only. It indicates the initial cargo the vessel was designed for, here called "trade". For example, an LR2 is a vessel of VesselClass Aframax and BuiltForTrade Clean. |
trade |
Optional[str]
|
Time-dependent version of the attribute BuiltForTrade. It is specified by the last cargo carried by the vessel at the time of query. For example, an LR2 with fueloil as last cargo has BuiltForTrade = Crude and Trade = Product. |
vessel_class |
Optional[str]
|
Name of the vessel class the vessel belongs to. Assignment of a vessel to a certain VesselClass is based on the VesselType and the value of its Deadweight (if Tanker or Dry), its LiquidCap (if LNG/LPG) or its TEU (if Containers). For example, an Aframax is a Tanker vessel with Deadweight within the range 82kt - 125kt, while a Capesize is a Dry vessel with Deadweight within the range 120kt-220kt. LR2 are defined as Aframax, as only Deadweight is used to define vessel classes. |
flag_code |
Optional[str]
|
ISO 3166-1 alpha-2 code representing the vessel's country of registration. |
flag |
Optional[str]
|
The country where the vessel has been registered and whose law is subject to. |
commercial_operator |
Optional[str]
|
Name of the maritime company that manages the vessel commercially. |
built_country_code |
Optional[str]
|
Two letters code representing the country where the vessel was built. |
built_country_name |
Optional[str]
|
String, the name of the country where the vessel was built. |
scrapped_date |
Optional[datetime]
|
Date, with format YYYY-MM-DD, indicates when the vessel was scrapped. If the vessel is active, ScrappedDate is null. |
shipyard_built_id |
Optional[int]
|
Numeric ID corresponding to the geo location where the vessel was built, for example the specific shipyard. |
shipyard_built_name |
Optional[str]
|
String, the name of the shipyard where the vessel was built, e.g. Hyundai Heavy Industries Co. |
ice_class |
Optional[str]
|
Alphanumeric code that denotes the vessel's additional level of strengthening as well as other arrangements that make navigation through frozen seas possible. For example 1A, 1D, etc. |
teu |
Optional[int]
|
Numeric, measured in TEU (Twenty-Foot Equivalent Unit), denotes a volumetric measure of a container's cargo carrying capacity. Used for Containers, that is vessels with VesselType=4. |
teu14 |
Optional[int]
|
Numeric, denotes the capacity of the vessel measured in twenty- foot equivalent units (TEU) loaded at 14 tons. |
reefers |
Optional[int]
|
Numeric, denotes the capacity of the vessel measured in refrigerated twenty-foot equivalent units (TEU), i.e., the maximum number of refrigerated containers that could be carried. |
panama_canal_net_tonnage |
Optional[int]
|
Numeric, measured in register tons, volumetric measure derived by the NRT (NetRatedTonnage) and modified for Panama Canal purposes. Often used to compute tonnage- based fees. |
cubic_size |
Optional[int]
|
Numeric, measured in cubic meters [cbm] denotes the carrying capacity of Gas vessels (LNG, LPG). For tankers it is the volume of cargo tanks. |
scrubbers_date |
Optional[datetime]
|
Date, format YYYY-MM-DD HH:MM:SS, best estimate of the scrubbers installation date. |
summer_tpc |
Optional[float]
|
Numeric, measured in [metric tonnes/cm], acronym of Summer Tonnes Per Centimeter, denotes the cargo in metric tonnes (10^3 kg) needed to further increase the vessel's salt water draught by one centimeter. |
lightship_tonnes |
Optional[int]
|
The weight of the vessels without any cargo or bunkers. It is an important parameter to estimate the scrap value of the vessel as it represents the amount of steel that can be recycled. |
main_engine_manufacturer |
Optional[str]
|
String denoting the brand of the vessel's main engine. |
delivery_date |
Optional[datetime]
|
Date, with format YYYY-MM-DD, indicates when the vessel was delivered to the owner and commenced its first voyage. |
classification_register |
Optional[str]
|
The name of the organization that issued the vessel's classification certificate. Default value: Not set. |
number_of_holds |
Optional[int]
|
Numeric, the number of separate enclosed spaces within a ship designed for storing cargo. |
number_of_hatches |
Optional[int]
|
Numeric, the number of cargo hatches on the vessel that cover the opening to the cargo hold to protect the cargo. Most cargo holds have a cargo hatch. |
number_of_grabs |
Optional[int]
|
Numeric, the number of separate grabs a vessel is equipped with for handling and lifting the cargo. |
number_of_cranes |
Optional[int]
|
Numeric, the number of separate cranes a vessel is equipped with for handling and lifting the cargo. |
number_of_bow_chain_stoppers |
Optional[int]
|
Numeric denotes the number of bow chain stoppers the vessel is equipped with. Ships likely to trade to Single Point Moorings should be equipped with bow chain stoppers. |
grain_capacity |
Optional[int]
|
This is the space available for a liquid-type cargo, like bulk grain, which can flow into every corner. |
bale_capacity |
Optional[int]
|
This is the space available for solid cargo. Bale space is usually about 7–10% less than grain space. |
main_engine_kw |
Optional[int]
|
This value indicates the main engine's power in KW |
main_engine_rpm |
Optional[int]
|
This value indicates the main engine's revolutions per minute (RPM) |
air_draught |
Optional[float]
|
This value indicates the distance from the top of a vessel's highest point to its waterline |
deck_teu |
Optional[int]
|
This value indicates the number of containers that can be stacked on the deck of the vessel |
under_deck_teu |
Optional[int]
|
This value indicates the number of containers that can be carried in the vessel's holds ("under deck") |
suez_canal_net_tonnage |
Optional[int]
|
Numeric, measured in register tons, volumetric measure derived by the NRT (NetRatedTonnage) and modified for Suez Canal purposes. Often used to compute tonnage-based fees |
class_renewal_date |
Optional[datetime]
|
This value indicates the latest date of the vessel's “Class Renewal”, which is the official survey that all seagoing vessels that travel international must do every 5 years |
mewis_duct |
Optional[datetime]
|
The date the Becker Mewis Duct equipment was installed |
inert_gas_system |
Optional[str]
|
Boolean, indicates whether a vessel has inert gas system, which is a system of preventing any explosion in the cargo tanks of a tanker |
imo_type_1 |
Optional[str]
|
The safest type of tanker, for most severe cargoes |
imo_type_2 |
Optional[str]
|
Can carry more polluting cargoes than ImoRating3 |
imo_type_3 |
Optional[str]
|
Can carry cargoes that are not very polluting but need special containment(ex: edibles) |
stst_coating |
Optional[int]
|
STSS coating |
epoxy_coating |
Optional[int]
|
Epoxy coating |
zinc_coating |
Optional[int]
|
Zinc coating |
marineline_coating |
Optional[int]
|
Marineline coating |
crude_oil_washing |
Optional[str]
|
Crude Oil Washing system |
beneficial_owner_id |
Optional[int]
|
Numeric ID corresponding to the beneficial owner of the vessel |
beneficial_owner |
Optional[str]
|
Name of the beneficial owner of the vessel |
parallel_body_length |
Optional[float]
|
The Parallel Body Length of the vessel |
heating_coils_fitted |
Optional[bool]
|
Boolean, denotes whether the vessel is equipped with a heating coils system. Tanker vessels may be fitted with heating coils in order to maintain the required temperature of the cargo for pumping. |
cranes_max_outreach |
Optional[float]
|
Numeric, in meters (m). The maximum outreach range across all the cranes that the vessel has. This range is measured as the distance from the boom tip to the crane hook. |
cranes_max_lifting_capacity |
Optional[float]
|
Numeric in metric tons [MT]. It is the computed maximum SWL (Safe Working Load) across all non auxiliary cranes of the vessel. |
hold_details_as_str |
Optional[str]
|
String, dimensions in meters (length x breadth x depth) of each single hold, collected in one single string with the format commonly used across market reports. Example: "17.96 m x 17.6 m, 17.96 m x 20.24 m, 17.96 m x 20.24 m, 17.96 m x 20.24 m, 17.96 m x 20.24 m". |
hatch_details_as_str |
Optional[str]
|
String, dimensions in meters (length x breadth) of each single hatch, collected in one single string with the format commonly used across market reports. |
grab_details_as_str |
Optional[str]
|
String, capacity range in cbm (minimum capacity - maximum capacity) and maximum lifting capacity in mt of each single grab, collected in one single string with the format commonly used across market reports. Example: "4 x 12 CBM". |
crane_details_as_str |
Optional[str]
|
String, SWL (Safe Working Load) in mt for each crane, collected in one single string with the format commonly used across market reports. Example: "4 x 30 MT". |
bow_chain_stopper_details_as_str |
Optional[str]
|
String, number of Bow
Chain Stoppers with their maximum load capacity for
each type of bow chain stopper in a string format.
Example: |
box_shaped_holds |
Optional[bool]
|
Boolean, denotes whether the vessel has any hold with box shape. |
neo_panama_locks |
Optional[bool]
|
Boolean, denotes whether the vessel is fitted to cross the Panama Canal through the new locks. |
australian_hold_ladder |
Optional[bool]
|
Boolean, denotes whether the vessel has any Australian hold ladder on board. This system is a specific inclined ladder used to inspect the cargo. |
co2_fitted |
Optional[bool]
|
Boolean, denotes whether the vessel has any CO2 fire suppression system.This system is used to fight fire in the cargo hold of a vessel. |
a60_bulkhead |
Optional[bool]
|
Boolean, denotes whether the vessel has any bulkhead of class A, insulated with approved insulation and passed the standard fire test for 60 minutes. A bulkhead is a vertical partition to provide compartments or subdivisions. |
log_fitted |
Optional[bool]
|
Boolean, denotes whether the vessel is fitted to carry logs. |
open_hatch |
Optional[bool]
|
Boolean, denotes whether the bulk carrier vessel is of the open hatch type. These vessels are designed to offer direct access to the hold through cargo hatches that extend the full width of the vessel. OHBC (Open Hatch Bulk Carriers) are often used to carry forest products, such as pre-slung timber and slugs. |
bwts |
Optional[bool]
|
Boolean, denotes whether the vessel has any Ballast Water Treatment System. This system is designed to remove and destroy/inactive biological organisms (zooplankton, algae, bacteria) from ballast water. |
grabs_fitted |
Optional[bool]
|
Boolean, denotes whether the vessel is fitted with grabs. Grabs are fitted on cranes to allow the handling of cargo. |
ghg |
Optional[str]
|
String, denotes the vessel’s GHG (Greenhouse Gas) Emissions Rating. Developed by RightShip, GHG compares a ship's design efficiency with peer vessels using a simple A–G scale. |
order_book_status_id |
Optional[int]
|
Int (1-8), denotes the OrderBook Status ID (1: UnconfirmedExistence, 2: ReportedOrder, 3: OnOrder, 4: CancelledOrder, 5: UnderConstruction, 6: Launched, 7: Live, 8: Dead) |
order_book_status |
Optional[str]
|
String, denotes the OrderBook Status. Dead (Scrapped Date in the past), CancelledOrder (Cancelled Date in the past), Live (Delivery Date in the past), Launched (Launch Date in the past), UnderConstruction (Construction Start Date in the past), OnOrder (has a Construction Start Date), ReportedOrder (has an Order Date), UnconfirmedExistence. |
order_date |
Optional[datetime]
|
Date, format YYYY-MM-DD, the date the order of the vessel was placed. |
construction_start_date |
Optional[datetime]
|
Date, format YYYY-MM-DD, the date of the start of the construction. |
launch_date |
Optional[datetime]
|
Date, format YYYY-MM-DD, the date of the vessel launch into the water. |
scheduled_delivery_date |
Optional[datetime]
|
Date, format YYYY-MM-DD, the date of the scheduled delivery of the vessel. |
cancelled_date |
Optional[datetime]
|
Date, format YYYY-MM-DD HH:MM:SS, the date of the order. |
minimum_temperature |
Optional[float]
|
Numeric, denotes the minimum temperature of cargo and tanks. |
maximum_pressure |
Optional[float]
|
Numeric, measured in Bar, denotes the maximum tank pressure. |
ammonia |
Optional[bool]
|
Boolean, denotes whether the vessel can carry ammonia. |
vcm |
Optional[bool]
|
Boolean, denotes whether the vessel can carry vinyl chloride monomer. |
ethylene |
Optional[bool]
|
Boolean, denotes whether the vessel can carry ethylene. |
ballast_parallel_body_length |
Optional[float]
|
Numeric, denotes the length of the ship's hull that is parallel to the waterline when the ship is in its normal ballast condition. The normal ballast condition refers to the state of the vessel when it carries only ballast water (no cargo) to ensure stability and seaworthiness. |
empty_parallel_body_length |
Optional[float]
|
Numeric, denotes the length of the ship's hull parallel to the baseline when the ship is completely empty, without any cargo or ballast water. This is essentially the ship's hull form at its lightest draft. |
stern_line |
Optional[bool]
|
Boolean, denotes whether the vessel is equipped with a stern line at the rear end, which is used to secure the vessel to a dock, pier, or another ship during mooring operations. Stern lines are especially crucial during the process of berthing and unberthing, as they assist in guiding the stern while the ship pivots or moves sideways. |
yard_number |
Optional[str]
|
String, the Yard Number refers to a unique identifier assigned to a vessel by the shipyard during its construction. |
design_model |
Optional[str]
|
String, the Design Model refers to a specific class or series of ships designed and often standardized by a particular shipyard or shipbuilder. The design model encapsulates detailed specifications, layouts, and features that are common across all ships built to that particular design. |
bow_to_center_manifold |
Optional[float]
|
Numeric, measured in meters [m], represents the distance from the bow (the front end) of the vessel to the center of the manifold. The manifold is the point on the ship where cargo hoses or arms are connected for the loading or unloading of liquid cargoes. |
water_line_to_manifold |
Optional[float]
|
Numeric, measured in meters [m], represents the vertical distance from the water line of the vessel to the center of the manifold. The manifold is the point on the ship where cargo hoses or arms are connected for the loading or unloading of liquid cargoes. |
deck_to_center_manifold |
Optional[float]
|
Numeric, measured in meters [m], refers to the vertical distance from the main deck of the vessel to the center of the cargo manifold. The manifold is the point on the ship where cargo hoses or arms are connected for the loading or unloading of liquid cargoes. |
rail_to_center_manifold |
Optional[float]
|
Numeric, measured in meters [m], represents the horizontal distance from the ship’s rail (the protective barrier along the edge of the deck) to the center of the manifold. The manifold is the point on the ship where cargo hoses or arms are connected for the loading or unloading of liquid cargoes. |
bow_chain_stoppers_fitted |
Optional[bool]
|
Boolean, indicates whether the vessel is equipped with bow chain stoppers. Ships likely to trade to Single Point Moorings should be equipped with bow chain stoppers. |
Source code in signal_ocean/vessels/models.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
|
VesselClass
dataclass
¶
Vessel class characteristics.
Detailed characteristics of each vessel class, including its defining measurement and the range that corresponds to this vessel class.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The vessel class id e.g. 81 (refers to Panamax), 86 (Aframax), 85 (Suezmax). |
vessel_type_id |
int
|
Numeric ID corresponding to the different values of the VesselType field. 1-> Tanker, 3-> Dry, 4 -> Containers, 5 ->LNG(Liquified Natural gas) , 6-> LPG(Liquified Petroleum Gas). |
from_size |
int
|
The minimum value that corresponds to this vessel class (Deadweight/TEU/CubicSize). |
to_size |
int
|
The maximum value that corresponds to this vessel class (Deadweight/TEU/CubicSize). |
name |
Optional[str]
|
The vessel class e.g. Panamax, Aframax, Suezmax. |
vessel_type |
Optional[str]
|
Description of the type of the vessel, based on the carried cargo. Main categories are Tankers, Dry (bulk carriers), Containers, LNG and LPG. |
defining_size |
Optional[str]
|
The attribute(DeadWeight, TEU, CubicSize) that defines the size of the vesselClass. |
size |
Optional[str]
|
The units of the DefiningSize attribute. DeadWeight-> kt(kilotons), TEU-> TEU, CubicSize-> cbm(cubic meters). |
Source code in signal_ocean/vessels/models.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
VesselType
dataclass
¶
A vessel type.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The vessel type id, e.g. 1 -> Tanker, 3 -> Dry, 4 -> Containers, 5 -> LNG (Liquified Natural gas), 6-> LPG (Liquified Petroleum Gas). |
name |
str
|
The vessel type name, e.g. Tanker, Dry, Containers, LNG (Liquified Natural gas), LPG (Liquified Petroleum Gas). |
Source code in signal_ocean/vessels/models.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
VesselsAPI
¶
Represents Signal's Vessels API.
Source code in signal_ocean/vessels/vessels_api.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
__init__(connection=None)
¶
Initializes VesselsAPI.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
connection
|
Optional[Connection]
|
API connection configuration. If not provided, the default connection method is used. |
None
|
Source code in signal_ocean/vessels/vessels_api.py
28 29 30 31 32 33 34 35 |
|
get_vessel(imo)
¶
Retrieves a vessel by its IMO.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
imo
|
int
|
IMO of the vessel to retrieve. |
required |
Returns:
Type | Description |
---|---|
Optional[Vessel]
|
A vessel or None if no vessel with the specified IMO has been found. |
Source code in signal_ocean/vessels/vessels_api.py
55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
get_vessel_classes()
¶
Retrieves all available vessel classes.
Returns:
Type | Description |
---|---|
Tuple[VesselClass, ...]
|
A tuple of all available vessel classes. |
Source code in signal_ocean/vessels/vessels_api.py
37 38 39 40 41 42 43 44 |
|
get_vessel_types()
¶
Retrieves all available vessel types.
Returns:
Type | Description |
---|---|
Tuple[VesselType, ...]
|
A tuple of all available vessel types. |
Source code in signal_ocean/vessels/vessels_api.py
46 47 48 49 50 51 52 53 |
|
get_vessels(name=None)
¶
Retrieves all available vessels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
Optional[str]
|
String to filter and return only companies the name of which contains the provided string. If None, all companies are returned. |
None
|
Returns:
Type | Description |
---|---|
Tuple[Vessel, ...]
|
A tuple of all available vessels. |
Source code in signal_ocean/vessels/vessels_api.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
get_vessels_by_vessel_class(vesselClass)
¶
Retrieves all vessels of a specific vessel class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vesselClass
|
int
|
Vessel Class of the vessels to retrieve. |
required |
Returns:
Type | Description |
---|---|
Optional[Tuple[Vessel, ...]]
|
A tuple of all available vessels. |
Source code in signal_ocean/vessels/vessels_api.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
get_vessels_commOp_history(imo=None)
¶
Retrieves all commOp changes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
imo
|
Optional[int]
|
IMO of the vessel to retrieve. |
None
|
Returns:
Type | Description |
---|---|
Tuple[VesselFieldResponse, ...]
|
A tuple of all commOp changes. |
Source code in signal_ocean/vessels/vessels_api.py
117 118 119 120 121 122 123 124 125 126 127 128 |
|
get_vessels_name_history(imo=None)
¶
Retrieves all vessel names changes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
imo
|
Optional[int]
|
IMO of the vessel to retrieve. |
None
|
Returns:
Type | Description |
---|---|
Tuple[VesselFieldResponse, ...]
|
A tuple of all vessel names changes. |
Source code in signal_ocean/vessels/vessels_api.py
104 105 106 107 108 109 110 111 112 113 114 115 |
|