2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
This is the core framework used by the pytest, tox, and devpi projects.
Please read the docs to learn more!
A definitive example
import pluggy
hookspec = pluggy.HookspecMarker("myproject")
hookimpl = pluggy.HookimplMarker("myproject")
class MySpec(object):
"""A hook specification namespace.
"""
@hookspec
def myhook(self, arg1, arg2):
"""My special little hook that you can customize.
"""
class Plugin_1(object):
"""A hook implementation namespace.
"""
@hookimpl
def myhook(self, arg1, arg2):
print("inside Plugin_1.myhook()")
return arg1 + arg2
class Plugin_2(object):
"""A 2nd hook implementation namespace.
"""
@hookimpl
def myhook(self, arg1, arg2):
print("inside Plugin_2.myhook()")
return arg1 - arg2
# create a manager and add the spec
pm = pluggy.PluginManager("myproject")
pm.add_hookspecs(MySpec)
# register plugins
pm.register(Plugin_1())
pm.register(Plugin_2())
# call our `myhook` hook
results = pm.hook.myhook(arg1=1, arg2=2)
print(results)
Metadata
Release files for pluggy 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
2 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pluggy-0.6.0.tar.gz | 19.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pluggy-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
| pluggy-0.6.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 45.4 kB
Release files / pluggy-0.6.0.tar.gz
| Download URL | pluggy-0.6.0.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff
|
|
BLAKE2b-256 checksum How to use checksums |
11bfcbeb8cdfaffa9f2ea154a30ae31a9d04a1209312e2919138b4171a1f8199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pluggy-0.6.0-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pluggy-0.6.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e160a7fcf25762bb60efc7e171d4497ff1d8d2d75a3d0df7a21b76821ecbf5c5
|
|
BLAKE2b-256 checksum How to use checksums |
ba65ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pluggy-0.6.0-py2-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pluggy-0.6.0-py2-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
d345c8fe681115900d6da8d048ba67c25df42973bda370783cd58826442dcd7c
|
|
BLAKE2b-256 checksum How to use checksums |
820543e3947125a2137cba4746135c75934ceed1863f27e050fc560052104a71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |