A collection of the Apache Pulsar stub files.
Project description
title: Pulsar Stubs
A collection of the Apache Spark stub files. These files were generated by stubgen and manually edited to include accurate type hints.
Tests and configuration files have been originally contributed to the Typeshed project. Please refer to its contributors list and license for details.
Motivation
- Improved autocompletion.
Installation and usage
Please note that the guidelines for distribution of type information is
still work in progress (PEP 561 - Distributing and Packaging Type
Information). Currently
installation script overlays existing Spark installations (pyi stub
files are copied next to their py counterparts in the Pulsar
installation directory). If this approach is not acceptable you can add
stub files to the search path manually.
According to PEP 484:
Third-party stub packages can use any location for stub storage. Type checkers should search for them using PYTHONPATH.
Moreover:
Third-party stub packages can use any location for stub storage. Type checkers should search for them using PYTHONPATH. A default fallback directory that is always checked is shared/typehints/python3.5/ (or 3.6, etc.)
Please check usage before proceeding.
The package is available on PYPI:
pip install pulsar-stubs
and conda-forge:
conda install -c conda-forge pulsar-stubs
Depending on your environment you might also need a type checker, like Mypy or Pytype[^1], and autocompletion tool, like Jedi.
This package is tested against MyPy development branch and in rare cases (primarily important upstream bugfixes), is not compatible with the preceding MyPy release.
Pulsar Version Compatibility
Package versions follow Pulsar versions with exception to maintenance releases - i.e. [pulsar-stubs==2.0.2] should be compatible with [Pulsar>=2.0.2,<2.1.0]. Maintenance releases ([post1], [post2], ..., [postN]) are reserved for internal annotations updates.
API Coverage:
The package is generated from the Pulsar codebase and is not guaranteed to be complete. The goal is to provide type hints for the most commonly used classes and methods. The package is not intended to be a complete replacement for the original codebase.
Disclaimer
Apache Pulsar, Pulsar, Apache, and the Pulsar logo are trademarks of The Apache Software Foundation. This project is not owned, endorsed, or sponsored by The Apache Software Foundation.
Footnotes
[^1]: Not supported or tested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pulsar_client_stubs-0.0.1.dev0.tar.gz.
File metadata
- Download URL: pulsar_client_stubs-0.0.1.dev0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df6e368edb4e2fec9bf72c7ce9ccf306fec9580517145a9b6fc7d792d83e3958
|
|
| MD5 |
ce406f791ce759722e94539c3f604e99
|
|
| BLAKE2b-256 |
9b4201252ea2a25479742e5528f374513da9bee1365e3e627a7b46f0a76eb24e
|
File details
Details for the file pulsar_client_stubs-0.0.1.dev0-py3-none-any.whl.
File metadata
- Download URL: pulsar_client_stubs-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc6efb81eb306cb3b40ab4503ce0c33aced28827750e899146c6550b90bd287e
|
|
| MD5 |
12badfc4523aa07392986d6fd46d927c
|
|
| BLAKE2b-256 |
04f9d107844009afad1d1eda0b710e34618764bbc8812c962e6a1ccc15fb22ed
|