A module to support an "impure" nautilus architecture, taking advantage of a service registry
## Installing
`nautilus_registry` can be installed from pip:
```bash
pip install nautilus_registry
```
## Connecting a service to consul
Currently, `nautilus_registry` only supports consul and does so through a
service mixin:
```python
import nautilus
from nautilus_registry import RegisterMixin
class MyService(RegisterMixin, nautilus.Service):
# ...
```
This mixin registers the service with consul when the service starts and
handles the removal of the service from consul aswell.
## Referring to the registry in an API
Schemas that are executed from services with this mixin can access various utility functions through the context:
```python
class MyObjectType(graphene.ObjectType):
field = Field(...)
@graphene.with_content
@graphene.resolve_only_args
def resolve_field(self, context=None):
# query the api for some data
data = context.service.query_api(...)
```
Metadata
Release files for nautilus-registry 0.1.7
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 |
|---|---|---|---|---|
| nautilus-registry-0.1.7.tar.gz | 7.7 kB | Without provenance | Details for nautilus-registry-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nautilus_registry-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for nautilus_registry-0.1.7-py3-none-any.whl |
Total release size: 27.6 kB
Release files / nautilus-registry-0.1.7.tar.gz
| Download URL | nautilus-registry-0.1.7.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0a63b5ee96f9ca4dc5bce9117ab2bd9764c676ea762f68fcf4135237b51d3aa
|
|
BLAKE2b-256 checksum How to use checksums |
33794aef2c47c63eadd4c5d3c8b8e21d32e0d64a2420f28f7d842ff6bc7fe188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nautilus_registry-0.1.7-py3-none-any.whl
| Download URL | nautilus_registry-0.1.7-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afa106e52584f0f3a7f23b2ed38c9f0867fea83e9cc0dd81cdfddde597cddbab
|
|
BLAKE2b-256 checksum How to use checksums |
1b9643564e7162f5817d9f3c9fd5ceac6c7e6797186744648b5f8ad4c72bf116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nautilus-registry 0.1.7
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.