Skip to main content

shipreal

SDK and CLI for the public ShipReal course API: search the curriculum, read a module, read pricing.

Zero dependencies, standard library only. No authentication: the API is public read-only reference data about one course, so there is no key to hold and no token to refresh. If something asks you for a ShipReal API key, it is not us.

pip install shipreal

Library

from shipreal import ShipReal

sr = ShipReal()

sr.search("caching")                  # one page of matches
list(sr.modules())                    # every module, pagination followed
sr.module("observability")            # by slug or partial title
sr.pricing(region="il")               # flattened to one billing region
sr.course()                           # totals and subtitle languages
sr.ask("how do I size a database")    # natural language, keyword search behind it

Errors carry RFC 9457 problem details. Branch on type, not on status: the status says a request failed, the type says which failure it was.

from shipreal import ShipReal, ShipRealError

try:
    ShipReal().module("does-not-exist")
except ShipRealError as err:
    print(err.status, err.type, err)

CLI

shipreal search caching
shipreal search --all --json
shipreal module observability
shipreal pricing --region il
shipreal ask "what should I learn before deploying"

Testing against the sandbox

Frozen fixture data over the same code path, so a test written against it stays green when the course changes:

sr = ShipReal(sandbox=True)

Fixture prices are 1 unit and fixture links point at example.invalid, so sandbox data that leaks into real output is obvious on sight. Assert on shape, pagination and error format, not on prices or titles. Details at shipreal.dev/sandbox.

There is nothing to write

The API has no write path and no purchase endpoint in either environment. Enrollment runs through a hosted checkout that a person completes, so if a task needs a transaction the answer is a link for a human, not a call.

Other surfaces

REST is one of several. There is an OpenAPI 3.1 spec, an MCP server at /mcp, and a JavaScript client with the same surface. Full notes at shipreal.dev/developers.

MIT licensed. Source at github.com/mluggy/shipreal-dev.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shipreal-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shipreal-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file shipreal-1.0.0.tar.gz.

File metadata

  • Download URL: shipreal-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.15

File hashes

Hashes for shipreal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab0de4ca92a95ceeee6b0453def5f816c82903ef49a2416965168f64f91324eb
MD5 bf3ff2d83a362b1acbe324a502374ddc
BLAKE2b-256 c042ccd485e0a28a126ceaf244e3952e29feb4616611b4d7582c7180b8397c90

See more details on using hashes here.

File details

Details for the file shipreal-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: shipreal-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.15

File hashes

Hashes for shipreal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d53f4ace3fbdabaebaa9e4ecbe67d0c32de97752a36107e113104ace5cb57bf
MD5 76ba814dd4bf8cca025a67977ca01a4a
BLAKE2b-256 825c3894c832a5fecbccefe09f7127b05890e7326749c9dedc55b2a22bbbb6c1

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.0

2 files

This release

1.0.0 This release

2 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