Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

epregistry

Latest version: v2.0.6

Overview

Last scanned
27 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: phil65
1 Stars
1 Forks
2 Versions
1.4K Downloads
Python Repo language

Scan summary

epregistry was last scanned on 27 Nov 2026 at version 2.0.6. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 5 days (22–26 Nov 2026).
  • Findings: No rules fired in version 2.0.6.
  • Downloads: 1,391 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.6 LATEST 26 Nov 2026 No rules fired
2.0.5 22 Nov 2026 No rules fired

No rules fired in 2.0.6

Findings

Findings for v2.0.6. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.6; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

epregistry

PyPI License Package status Monthly downloads Distribution format Wheel availability Python version Implementation Releases Github Contributors Github Forks Github Issues Github Issues Github Watchers Github Stars Github Repository size Github last commit Github release date Github language count Github commits this month

Read the documentation!

Overview

epregistry is a small, dependency-free layer over importlib.metadata for working with Python entry points. All entry points are read once and cached, and registries are generically typed so that loaded plugins get the type you expect. It offers two ways to access entry points:

  • Group-based access: Work with all entry points in a specific group
  • Module-based access: Work with all entry points provided by a specific module

On top of that it provides discovery/search helpers and cached conversion between package (import) names and distribution names. This makes it useful for plugin systems, extensions, or any modular components in Python applications.

Installation

pip install epregistry
# or
uv add epregistry

Requires Python 3.13 or newer.

Basic Usage

Group-based Registry

When you want to work with entry points organized by their group:

from collections.abc import Callable

from epregistry import EntryPointRegistry

# Create a registry for console scripts
registry = EntryPointRegistry[Callable]("console_scripts")

# Get and load an entry point
script = registry.load("my-script")

# Get all entry points in the group
all_scripts = registry.get_all()
Module-based Registry

When you want to work with all entry points provided by a specific module:

from typing import Any

from epregistry import ModuleEntryPointRegistry

# Create a registry for a specific module
registry = ModuleEntryPointRegistry[Any]("your_module_name")

# Get all groups that have entry points from this module
groups = registry.groups()

# Get entry points for a specific group
group_eps = registry.get_group("console_scripts")

# Load all entry points for a group
loaded_eps = registry.load_group("console_scripts")

💡 Tip: Type Hints Use the generic type parameter to specify the expected type of your entry points. For example, EntryPointRegistry[Callable] indicates that the entry points are callable objects.

Working with Group-based Registry
Get Entry Points
# Get an entry point (returns None if not found)
entry_point = registry.get("script_name")

# Get and load an entry point (returns None if not found)
loaded_entry_point = registry.load("script_name")

# Get an entry point with exception handling
try:
    entry_point = registry["script_name"]
except KeyError:
    print("Entry point not found")
Working with Multiple Entry Points
# Get all entry point names
names = registry.names()

# Get all entry points as a dictionary
all_entry_points = registry.get_all()  # dict[str, EntryPoint]

# Load all entry points
loaded_points = registry.load_all()  # dict[str, T]
Working with Module-based Registry
Get Entry Points by Group
# Get all entry points for a specific group
eps = registry.get_group("console_scripts")

# Load all entry points for a group
loaded_eps = registry.load_group("console_scripts")
Access All Entry Points
# Get all groups that contain entry points from this module
groups = registry.groups()

# Get all entry points organized by group
all_eps = registry.get_all()  # dict[str, list[EntryPoint]]

# Load all entry points from all groups
loaded_eps = registry.load_all()  # dict[str, list[T]]
Common Operations
# Check if an entry point exists
if "script_name" in registry:
    print("Entry point exists")

# Get the total number of entry points
count = len(registry)

# Iterate over entry points
for entry_point in registry:
    print(entry_point.name)

Advanced Features

Metadata Access
# For group-based registry
metadata = registry.get_metadata("script_name")
print(f"Module: {metadata['module']}")
print(f"Attribute: {metadata['attr']}")
print(f"Distribution: {metadata['dist']}")
print(f"Version: {metadata['version']}")
Extension Point Directory

For entry points that point to a module (i.e. the loaded object has a __file__), get the directory the module is installed in:

# For group-based registry
directory = registry.get_extension_point_dir("plugin_name")
print(f"Extension is installed at: {directory}")
Discovery and Search
from epregistry import (
    available_groups,
    filter_entry_points,
    search_entry_points,
    list_distributions,
)

# Get all available groups
groups = available_groups()

# Filter entry points
flask_eps = filter_entry_points(group="flask.*")
pytest_eps = filter_entry_points(distribution="pytest")
test_eps = filter_entry_points(name_pattern="test_*")

# Search across all entry points
results = search_entry_points(
    "test", include_groups=True, include_names=True, include_distributions=True
)

# List all distributions with entry points
distributions = list_distributions()

💡 Tip: Filtering Patterns The filtering system supports wildcards:

  • * matches any number of characters
  • ? matches exactly one character
  • Patterns are case-insensitive

Package and Distribution Name Conversion

The package also contains helpers to convert between package (import) names and distribution names. The mapping is cached as well; only the first conversion takes time to build the index.

from epregistry import (
    distribution_to_package,
    distribution_to_packages,
    package_to_distribution,
    package_to_distributions,
)

# Convert package name to distribution
dist_name = package_to_distribution("PIL")  # Returns 'Pillow'
dist_name = package_to_distribution("requests")  # Returns 'requests'

# Convert distribution to primary package
pkg_name = distribution_to_package("Pillow")  # Returns 'PIL'
pkg_name = distribution_to_package("requests")  # Returns 'requests'

# All packages of a distribution / all distributions of a (namespace) package
pkgs = distribution_to_packages("python-dateutil")  # Returns {'dateutil'}
dists = package_to_distributions("zope")  # e.g. ['zope.interface', 'zope.event']

# Return a normalized best guess instead of None if no mapping is found
pkg_name = distribution_to_package("some-dist", fallback=True)  # 'some_dist'

Editable installs that only ship a .pth file (e.g. built with uv_build) are resolved when the normalized distribution name is importable from the path in that .pth file.

Integration with Package Management

The Entry Point Registry integrates with Python's importlib.metadata system, making it compatible with:

📝 Note: Automatic Caching Both registry types implement automatic caching of entry points for better performance. The cache is initialized on first use and shared across all registry instances. Entry points of packages installed after the cache was built are not picked up.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases epregistry

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229