Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.


title: Pulsar Stubs

PyPI version Conda Forge version

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 Pytype1, 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. ↩

Metadata

Release files for pulsar-stubs 0.0.1.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulsar-stubs 0.0.1.dev3
File Size Uploaded
pulsar_stubs-0.0.1.dev3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pulsar-stubs 0.0.1.dev3
File Interpreter ABI Platform
pulsar_stubs-0.0.1.dev3-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / pulsar_stubs-0.0.1.dev3.tar.gz

Download URL pulsar_stubs-0.0.1.dev3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c17035147adb05b5afa0d58f91d5e5688eabdaac9db0e2e9a5de5d1ce24bdb08
BLAKE2b-256 checksum
How to use checksums
fcf785f217db379c595d8e53628f87db289aec5bd5940cbf87d281613774f5a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / pulsar_stubs-0.0.1.dev3-py3-none-any.whl

Download URL pulsar_stubs-0.0.1.dev3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32dfc78c4e3ae19ea71fa6b99e1f28313b34aa181f0b36304f35e81343968ed6
BLAKE2b-256 checksum
How to use checksums
08a6be1151d40d3b87a6a2fb0a811dc8a86fb11cbe325295de1c0acc17558671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.1.dev3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page