Shodan Data: Ships
A data feed of NMEA messages from open, public ship receivers on the Internet.
OpenAPI Specification: https://ships.data.shodan.io/openapi.json
Installation
pip install shodan-data-ships
Quickstart
The library provides both synchronous and asynchronous clients to the Ships datafeed. The easiest way to get started is using the synchronous interface:
from shodan_data_ships.client import Client
client = Client("YOUR SHODAN API KEY")
for msg in client.messages():
print(msg)
Data Schema
For the latest list of properties that are available please refer to the OpenAPI documentation at:
https://ships.data.shodan.io/docs
Data models are generated from the above JSON schema and are available in the respective shodan_data_ships.model.NMEAMessage and shodan_data_ships.model.Receiver classes.
Asynchronous Client
The library also lets you subscribe to data using asyncio. Simply use the shodan_data_ships.client.AsyncClient class:
from shodan_data_ships.client import AsyncClient
async def main():
client = AsyncClient("YOUR SHODAN API KEY")
async for msg in client.messages():
print(msg)
if __name__ == '__main__':
import asyncio
asyncio.run(main())
Metadata
Release files for shodan-data-ships 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| shodan-data-ships-0.1.2.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shodan_data_ships-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / shodan-data-ships-0.1.2.tar.gz
| Download URL | shodan-data-ships-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e68dbef04253a8ce483c0bac1162531f3a83877a836aad83fda8b1f62281cf37
|
|
BLAKE2b-256 checksum How to use checksums |
eb124e8f36ede2fd4038f01de30589c6f715a9330410a6fe1509377ad82e32a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.2 Linux/4.18.0-25-generic
|
Release files / shodan_data_ships-0.1.2-py3-none-any.whl
| Download URL | shodan_data_ships-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63d944944549673348f5d97e288fabe6008bc27c6712b21e04fa3da66b66af59
|
|
BLAKE2b-256 checksum How to use checksums |
f77e7264a184523fdd385523b316ed330f0a06c7eaee08e35259f4108ef1b921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.2 Linux/4.18.0-25-generic
|
Security for shodan-data-ships 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.