pyramid_services_autowire
An autowire utility for pyramid_services.
before:
class IService(Interface):
pass
class Service(object):
def __init__(self, dep_svc1=None, dep_svc2=None, dep_svc3=None):
self.dep_svc1 = dep_svc1
self.dep_svc2 = dep_svc2
self.dep_svc3 = dep_svc3
def includeme(config):
config.include('pyramid_services')
def factory(context, request):
svc = Service(
dep_svc1=request.find_service(IDependService1),
dep_svc2=request.find_service(IDependService2),
dep_svc3=request.find_service(IDependService3),
)
return svc
config.register_service_factory(factory, IService)
after:
from pyramid_services_autowire import Autowire
class IService(Interface):
pass
class Service(object):
dep_svc1 = Autowire(IDependService1)
dep_svc2 = Autowire(IDependService2)
dep_svc3 = Autowire(IDependService3)
def includeme(config):
config.include('pyramid_services_autowire')
config.register_autowire(Service, IService)
Change History
0.1.1 - 2018-06-09
fixes relase date.
0.1 - 2018-06-09
Initial release.
Metadata
Release files for pyramid-services-autowire 0.1.1
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 | Actions |
|---|---|---|---|---|
| pyramid_services_autowire-0.1.1.tar.gz | 3.1 kB | Without provenance | Details for pyramid_services_autowire-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyramid_services_autowire-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyramid_services_autowire-0.1.1-py2.py3-none-any.whl |
Total release size: 5.8 kB
Release files / pyramid_services_autowire-0.1.1.tar.gz
| Download URL | pyramid_services_autowire-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73ee2b38fffd3a13deebe267fd13225ff1ef5755cfb353e7a8b27875a1b36935
|
|
BLAKE2b-256 checksum How to use checksums |
bd49b77fbd5df90a031e44fd8a471b1af95737fea74824499f59042536433dce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyramid_services_autowire-0.1.1-py2.py3-none-any.whl
| Download URL | pyramid_services_autowire-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c2c62afe7f8a5238cee848ae4f69a9018b61ef805a41a5f4cdb374bb540ef972
|
|
BLAKE2b-256 checksum How to use checksums |
14556c2b1b3d2e28cab0446213ff2469e9b36250bfa684f59fca5839b7099f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid-services-autowire 0.1.1
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.