Skip to main content

bowmark-web-stubs

PEP 561 type stubs for bowmark-web — the whole Bowmark capability surface, typed.

pip install bowmark-web bowmark-web-stubs
async with session() as bm:
    found = await bm.providers.gymshark.search({"query": "hoodie"})
    #                                  ^ your editor knows every provider, every
    #                                    function, every argument and every field

Why it is a separate distribution

PEP 561 is explicit: "The name of the stub package MUST follow the scheme foopkg-stubs." So this is mandated rather than chosen, and PyPI has no rename, alias or redirect mechanism to undo it with.

bowmark-web still ships py.typed, so installing only the client keeps the client's own types and loses only the catalog.

This distribution is marked partial, which matters: without that marker a checker resolving bowmark_web-stubs stops looking at bowmark_web altogether, and every private submodule becomes unresolvable to anyone who imports one.

What is in it, and where it comes from

bowmark_web-stubs/__init__.pyi is generated — from the same LibraryManifest that produces the TypeScript declarations in @bowmark/web. One manifest, one refusal rule, two languages, so the two clients cannot come to disagree about what the library offers. A gate in the source repo asserts the parity on every change.

Everything the library can do is in CAPABILITIES.md and PROVIDERS.md, regenerated daily.

What it deliberately does NOT type

Some functions are absent, on purpose. A function whose declared argument is a bare destructuring pattern with no field types, or whose signature names a type its own documentation never defines, gets a comment in place of a signature naming it and saying why. Those functions are real and callable at runtime — the stub withholds only the compile-time claim, because we have none to make. A (*args: Any) -> Any stand-in would pass every check and tell you nothing.

Family members are not enumerated. bowmark.providers.gymshark.search(…) works and is not in these stubs: there are half a million Shopify storefronts and no manifest carries one. Type checkers will not complete them; the client sends them happily.

Everything leans toward accepting. An argument-position list is Sequence[T], a number is float (so an int is fine), and anything the schema could not model is Any. A stub that refuses a correct argument is a red squiggle you cannot turn off, and that is a worse failure than one round trip.

Versioning

bowmark-web, bowmark-web-stubs and @bowmark/web on npm are released together and always carry the same version. A skew would mean one ecosystem is on an older contract.

Download files

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

Source Distribution

bowmark_web_stubs-1.5.0.tar.gz (151.2 kB view details)

Uploaded Source

Built Distribution

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

bowmark_web_stubs-1.5.0-py3-none-any.whl (152.4 kB view details)

Uploaded Python 3

File details

Details for the file bowmark_web_stubs-1.5.0.tar.gz.

File metadata

  • Download URL: bowmark_web_stubs-1.5.0.tar.gz
  • Upload date:
  • Size: 151.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bowmark_web_stubs-1.5.0.tar.gz
Algorithm Hash digest
SHA256 195b476f13ab04279c6f05cce19eae127b55c53c4d1ec03a9e11658314a43edb
MD5 a72e428511db75c4d1c6dcc4ef6ed730
BLAKE2b-256 9a65543d7d47ed2a741576f000a36b52e2b25b98551d0a12f3b012b1864f2cab

See more details on using hashes here.

File details

Details for the file bowmark_web_stubs-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: bowmark_web_stubs-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 152.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bowmark_web_stubs-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bbb6eebe0b673e04b5da8a973dee165be4d66ed0f5953d219140149d840f95d
MD5 36edb04566e8e2e34a0286445deb7d7d
BLAKE2b-256 7e9af7d4e50a81d3920e18548657d330ccbaef5e0145b00b1b3488d502bce44a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

This release

1.5.0 This release

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page