python-interfaces
Installation
pip install python-interfaces
Usage
from interface import interface
class Iterable:
def be_iterable(self):
pass
@interface(Iterable)
class Foo:
def __init__(self):
pass
# raises InterfaceException
Local Development
git clone https://github.com/tyleragreen/python-interfaces.git && cd python-interfaces
virtualenv ~/.env/interface
source ~/.env/interface/bin/activate
pip install -r requirements_dev.txt
# Since the tests live outside the package, we install the package in editable mode
pip install -e .
py.test
Other Ideas
- Support dunder methods
- Enforce method signatures
- Require interface methods to be empty/abstract/
pass-only
Metadata
Release files for python-interfaces 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python-interfaces-0.1.2.tar.gz | 2.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_interfaces-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / python-interfaces-0.1.2.tar.gz
| Download URL | python-interfaces-0.1.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b809d02d9b9ee635cd1f7088a41184aac0b4ffd8c63424da39c937122972b26
|
|
BLAKE2b-256 checksum How to use checksums |
a864bd3ba8648283efa8b403716f82e0275f5315fd69e65f94e631e6f56dca04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Release files / python_interfaces-0.1.2-py3-none-any.whl
| Download URL | python_interfaces-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d2ffdecaff2ffd7166b654bb6ee667823fe4008dee6d23a19d4d5a51242e2e
|
|
BLAKE2b-256 checksum How to use checksums |
671462c06ba8b8c33e23f361ff28cbe95bf1ea960f8c69fa4edf643c74947bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Security for python-interfaces 0.1.2
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.