Skip to main content

Note: This package is in the dangerous land of 0.x.y versions and may be subject to breaking changes with minor version increments.

Important: Development of nr.interface is discontinued. We recommend to use the abc module instead.

nr.interface

Interface definitions for Python. Inspired by zope.interface.

Quickstart

from nr.interface import Interface, implements, override

class Pet(Interface):

  def make_sound(self) -> str:
    pass

@implements(Pet)
class Dog:

  @override
  def make_sound(self) -> str:
    return 'Bark!'

assert 'make_sound' in Pet.members
assert Pet.implemented_by(Dog)
assert list(Pet.implementations()) == [Dog]

Copyright © 2020 Niklas Rosenstein

Metadata

Release files for nr.interface 0.0.5

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

Source distribution (sdist)

Source distribution for nr.interface 0.0.5
File Size Uploaded Provenance Actions
nr.interface-0.0.5.tar.gz 11.5 kB Without provenance Details for nr.interface-0.0.5.tar.gz

Built distribution (wheel)

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

Total release size: 22.6 kB

Release files / nr.interface-0.0.5.tar.gz

Download URL nr.interface-0.0.5.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed6043954813247555299ce3032033bbbcaa2d7906f849e1f8317df4011ade83
BLAKE2b-256 checksum
How to use checksums
149fa004ed3f261a8041de0557ad9b507f9c7cc9e24ee807b53688840c9d7c57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / nr.interface-0.0.5-py2.py3-none-any.whl

Download URL nr.interface-0.0.5-py2.py3-none-any.whl
Size 11.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8287f817297d825641793bf3e860445c43e271f4f87ff34f3e30b94bf1aa79a8
BLAKE2b-256 checksum
How to use checksums
9a24611a16157232b5d205f9f6bffdaf2db8eee71ea156a1f381ff7e76c6ad79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Security for nr.interface 0.0.5

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