Skip to main content

prybar: Create temporary pkg_resources entry points at runtime

CI Status Documentation Status PyPI - Status

A Python library to temporarily define pkg_resources entry points at runtime. The primary use case is testing code which works with entry points.

Installing

$ pip install prybar

prybar requires Python 3.6 or greater.

Usage

>>> import prybar
>>> from pkg_resources import iter_entry_points
>>> # Entry point doesn't exist
>>> list(iter_entry_points('example.hash_types', 'sha256'))
[]
>>> # With prybar's context manager we can create entry points temporarily
>>> with prybar.dynamic_entrypoint('example.hash_types',
...                                name='sha256', module='hashlib'):
...     hash = next(iter_entry_points('example.hash_types', 'sha256')).load()
...     hash(b'foo').hexdigest()[:6]
'2c26b4'
>>> # And it's gone again
>>> list(iter_entry_points('example.hash_types', 'sha256'))
[]

See the full documentation for more.

Metadata

Release files for prybar 1.0.0

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

Source distribution (sdist)

Source distribution for prybar 1.0.0
File Size Uploaded Provenance
prybar-1.0.0.tar.gz 12.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for prybar 1.0.0
File Interpreter ABI Platform
prybar-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 28.3 kB

Release files / prybar-1.0.0.tar.gz

Download URL prybar-1.0.0.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9f2af7b4fdce2d0febf6fb73a0854956a384fad65df19c3f57caab7c4726a88a
BLAKE2b-256 checksum
How to use checksums
63ca7237093ffc11b6c62ee3a75d0998bfcc459c40beb1e418ad263265af36ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.21.0

Release files / prybar-1.0.0-py2.py3-none-any.whl

Download URL prybar-1.0.0-py2.py3-none-any.whl
Size 15.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
07d5b12fb12da703fb266d67d3a117e1c20a30cd9daa274586cc4af8081baea7
BLAKE2b-256 checksum
How to use checksums
bb00406f2f474d1bd35a13dbb36f66912111ec32a54018cd05c6160795a700da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.21.0

Security for prybar 1.0.0

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.

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