Typed models and client methods for third-party lexicons, rebuilt daily
Catalog
•
SDK documentation
•
PyPI
•
Discord Bluesky API
Python models and clients for third-party AT Protocol lexicons, generated for the atproto SDK.
The SDK ships the Bluesky and core atproto lexicons. Everything else on the network is someone's own lexicon: Teal.fm plays, Tangled repos, Leaflet documents, and so on. This package has them generated ahead of time, so you do not have to download schemas and run codegen yourself.
Browse the services and their lexicons at lex.atproto.blue, or see SUPPORTED.md for the plain list.
Install
pip install atproto-lexicons
It needs Python 3.9 or newer and installs the atproto SDK (0.0.75 or newer) with it.
Use
AtprotoLexiconsClient is the SDK's Client with the extra namespaces attached. Everything the SDK client does still works.
from atproto_lexicons import models
from atproto_lexicons.client import AtprotoLexiconsClient
client = AtprotoLexiconsClient()
client.login('handle.example.com', 'app-password')
# a third-party record
play = models.FmTealFeedPlay.Record(track_name='Song', played_time=client.get_current_time_iso())
client.fm.teal.feed.play.create(client.me.did, play)
# the namespaces of the SDK are still there
client.app.bsky.feed.post.create(
client.me.did, models.AppBskyFeedPost.Record(text='hi', created_at=client.get_current_time_iso())
)
To add the namespaces to a client you already have:
from atproto import Client
from atproto_lexicons.client import attach_namespaces
client = Client()
attach_namespaces(client)
Async works the same way through atproto_lexicons.async_client.
The exact client path and model name of every lexicon are in the catalog: find the service, open it, and copy them.
Things to know
- Versions are dates. A release is a snapshot of what the services published that day. A service can change its schema at any time, and the next release follows it. Pin the version if you need stability.
- Not every lexicon is valid. Invalid ones are skipped, and a reference to something that does not exist becomes an untyped field. SUPPORTED.md shows where that happened.
- Lexicons the SDK already ships are left to the SDK. They are not generated a second time: import their models from
atproto, as the catalog shows for each of them. - This project is not affiliated with the listed services. The schemas belong to their authors. If you run one of them and want it removed or fixed, write in the discussions of the atproto SDK.
Getting help
Questions, bug reports, wrong models and missing services all go to the discussions of the atproto SDK. The SDK itself is documented at atproto.blue.
Contributing
Contributions of all sizes are welcome. The most useful one is a new service. CONTRIBUTING.md explains how to add one, how the package is built and how to work on the tooling and the website.
License
MIT. See LICENSE.
The license covers the tooling and the generated code. The schemas in lexicons/ are stored unmodified and belong to the services that publish them.
Metadata
Release files for atproto-lexicons 2026.11.21
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 |
|---|---|---|---|---|
| atproto_lexicons-2026.11.21.tar.gz | 1.5 MB | With provenance | Details for atproto_lexicons-2026.11.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atproto_lexicons-2026.11.21-py3-none-any.whl | Python 3 | none | any | Details for atproto_lexicons-2026.11.21-py3-none-any.whl |
Total release size: 5.1 MB
Release files / atproto_lexicons-2026.11.21.tar.gz
| Download URL | atproto_lexicons-2026.11.21.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8150e93e84fc43d700f4cfa0a6d666836bf7055417f6d0d3e8eaf6f84df6199a
|
|
BLAKE2b-256 checksum How to use checksums |
bff4d60f2979818d75bdb8d06a62bf22879fc1807557e9474998310d4ce48b10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / atproto_lexicons-2026.11.21-py3-none-any.whl
| Download URL | atproto_lexicons-2026.11.21-py3-none-any.whl |
|---|---|
| Size | 3.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
224d9af1879b02e45486a5cab8d8aecc73c796031efa2da3398eee9f16088278
|
|
BLAKE2b-256 checksum How to use checksums |
0bdbdc8bafedf2c9533f1466394fd731b45327753855a091ff066dd0bb21c708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for atproto-lexicons 2026.11.21
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for atproto_lexicons-2026.11.21.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA 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.