Skip to main content

Interfaced

Python interface system

Install

pip install interfaced

Quick Start

from interfaced import interface, implements, is_implementation

@interface
class DataStore:
    def save(self, data: str) -> bool: ...
    async def load(self, id: str) -> str: ...

@implements(DataStore)
class MemoryStore:
    def save(self, data: str) -> bool:
        return True
    
    async def load(self, id: str) -> str:
        return "data"

store = MemoryStore()
print(is_implementation(store, DataStore))  # True

Features

  • Strict type enforcement for methods and attributes
  • Generic interfaces with type variables
  • Zero configuration required

Metadata

Release files for interfaced 0.1.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 interfaced 0.1.0
File Size Uploaded Provenance Actions
interfaced-0.1.0.tar.gz 8.6 kB Without provenance Details for interfaced-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interfaced 0.1.0
File Interpreter ABI Platform Actions
interfaced-0.1.0-py3-none-any.whl Python 3 none any Details for interfaced-0.1.0-py3-none-any.whl

Total release size: 22.4 kB

Release files / interfaced-0.1.0.tar.gz

Download URL interfaced-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d466246f663337436e79688758e8a5911ac45459d5eaabd52f86b9843b9366d3
BLAKE2b-256 checksum
How to use checksums
ac1f008a90d5b778a4d40118a0f9b1ee6b15ca44e5779d01a5a528f46cc00a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.6 Windows/11

Release files / interfaced-0.1.0-py3-none-any.whl

Download URL interfaced-0.1.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
745aee57edcac57c33ac54409c7c6ba77d79fcffeddb16b14c1c0639ef7b6dbc
BLAKE2b-256 checksum
How to use checksums
b584b6d70467ab83f3ca29f41a1f8abe46c8539f69668ffeffcf489004b8425a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.6 Windows/11

Security for interfaced 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 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