Skip to main content

pyCruiseMapper

Python package for retrieving data on (cruise) ships from cruisemapper.com

This is a very basic implementation, and it might stay like this, but I still wanted to share it in case anyone finds it useful. I can't promise that I will keep this package updated or that it's going to work forever as is, though.

I wanted to keep it simple, so this package has no dependencies outside the standard library. Tested on Python 3.10.6 only, but should work on any >= 3.8.

Basic Usage

from pycruisemapper import CruiseMapper

cruisemapper = CruiseMapper()

# First, retrieve basic data on all ships
# Returns a list of Ship objects

all_ships = cruisemapper.get_ships()

# Then, select the ship(s) you are interested in from that list

meinschiff1 = list(filter(lambda x: x.imo == 9783564))[0]

# You may want to retrieve additional information of a ship's current status
# Pass the Ship object into fill_ship and it will return an object with details

meinschiff1 = cruisemapper.fill_ship(meinschiff1)

# You can now access things like the current location or temperature

location = meinschiff1.location # .latitude/.longitude
temperature = meinschiff1.current_temperature # returned in °C

# Check the class definitions in /classes/*.py to see all possible attributes

Metadata

Release files for pycruisemapper 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycruisemapper 0.9.0
File Size Uploaded
pycruisemapper-0.9.0.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycruisemapper 0.9.0
File Interpreter ABI Platform
pycruisemapper-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / pycruisemapper-0.9.0.tar.gz

Download URL pycruisemapper-0.9.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8a481adf268ff0d540b7d49ffe094960495baf9fd8c012b6c25e5d1e976d1e8e
BLAKE2b-256 checksum
How to use checksums
ccd6c0901394a80dd683f4346883e18274026f90d369a4b1693f7e844ee5a7c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / pycruisemapper-0.9.0-py3-none-any.whl

Download URL pycruisemapper-0.9.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e3377e3f734989cab69be9feafa5fd3416c0a32c122b92bc419b5968284ee3a
BLAKE2b-256 checksum
How to use checksums
58d0f6fbd7b55595d9be8de4b8e837086b512c78875ed3541b81382dd9646b1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page