Skip to main content

plyvel-stubs

Type stubs for plyvel, a Python interface to LevelDB.

Installation

pip install plyvel-stubs

Usage

These stubs provide type information for the plyvel package. Once installed, your type checker (like mypy, pyright, or Pylance) will automatically use these stubs when checking code that uses plyvel.

Supported Types

The package provides type information for:

  • DB class for LevelDB database operations
  • WriteBatch class for batch operations
  • PrefixedDB class for prefix-based database operations

Example

from plyvel import DB

db = DB("/path/to/db", create_if_missing=True)
db.put(b"key", b"value")
value = db.get(b"key")  # Type: Optional[bytes]

# Using with context manager
with db.write_batch() as batch:
    batch.put(b"key1", b"value1")
    batch.put(b"key2", b"value2")

# Using prefix database
prefixed_db = db.prefixed_db(b"prefix-")
prefixed_db.put(b"key", b"value")  # Will store as "prefix-key"

Development

This package contains only type stubs (.pyi files) for the plyvel package. It does not contain any runtime code.

License

MIT License - see LICENSE file for details.

Metadata

Release files for plyvel-stubs 0.0.1

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

Source distribution (sdist)

Source distribution for plyvel-stubs 0.0.1
File Size Uploaded Provenance Actions
plyvel_stubs-0.0.1.tar.gz 4.1 kB Without provenance Details for plyvel_stubs-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plyvel-stubs 0.0.1
File Interpreter ABI Platform Actions
plyvel_stubs-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for plyvel_stubs-0.0.1-py2.py3-none-any.whl

Total release size: 7.9 kB

Release files / plyvel_stubs-0.0.1.tar.gz

Download URL plyvel_stubs-0.0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6eca888abcc88d0883d911e10fbe5b1b026686fe13a20068aa32165aff61fa18
BLAKE2b-256 checksum
How to use checksums
8e817ea2d623e2fc721ecc57e236a9a65f93e553c4fa6ff2b286af1c572459b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / plyvel_stubs-0.0.1-py2.py3-none-any.whl

Download URL plyvel_stubs-0.0.1-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
664b2dc70de147fd0b3b52de40d526fc46600760304e0fe503be063da1d1ced7
BLAKE2b-256 checksum
How to use checksums
e73a0d9671965fef1e3b54500887a49a1d68905754c00aaae694bb299d370c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for plyvel-stubs 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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