Metadata-Version: 2.5
Name: passageway-sdk
Version: 0.4.0
Summary: Write a passageway connector as three small functions: the protocol plumbing is done for you
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.12
Provides-Extra: html
Requires-Dist: selectolax>=0.3.21; extra == 'html'
Provides-Extra: web
Requires-Dist: httpx>=0.28.1; extra == 'web'
Requires-Dist: truststore>=0.10; extra == 'web'
Description-Content-Type: text/markdown

# passageway-sdk

Write a [passageway](https://getpassageway.com/) connector as three small functions. No dependencies; `passageway-sdk[web]` adds a polite web client for connectors that read a website, `passageway-sdk[html]` turns HTML into markdown.

```python
from passageway_sdk import Connector

class Notes(Connector):
    def versions(self): ...      # {id: version} for every item
    def fetch(self, ids): ...    # an item record per id

Notes.main()
```

The SDK dispatches the mode, reads the ids, buffers the output (all or nothing), maps errors to exit codes and validates each item. Reference: https://getpassageway.com/reference/sdk/ and the [guide](https://getpassageway.com/guides/write-a-connector/).
