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.
Metadata
Release files for shipreal 2.0.0
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 | Actions |
|---|---|---|---|---|
| shipreal-2.0.0.tar.gz | 7.5 kB | Without provenance | Details for shipreal-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shipreal-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for shipreal-2.0.0-py3-none-any.whl |
Total release size: 15.5 kB
Release files / shipreal-2.0.0.tar.gz
| Download URL | shipreal-2.0.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
684f4a41b0f344c608336e0e2a83a60d196f0a2b609ed82cfb55c68c57c44b8f
|
|
BLAKE2b-256 checksum How to use checksums |
72bcd71d9cade06c1f59fe64033ee7afba12177b5a2bbc25d3be1310b1c6b015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Release files / shipreal-2.0.0-py3-none-any.whl
| Download URL | shipreal-2.0.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98457d1497d3719ca69dcb54944f51b1688b00f5591d847ad02a2907ef41bc16
|
|
BLAKE2b-256 checksum How to use checksums |
623db9666733d6f7b6972ab2c4482c1c84de611cd5d368e078a9cf0808a77f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Security for shipreal 2.0.0
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.