Skip to main content
Help us improve Python packaging – donate today!

A module for powering a nautilus application with a service registry.

Project Description

# nautilus-registry
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(...)
```

Release history Release notifications

This version
History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nautilus_registry-0.1.7-py3-none-any.whl (19.9 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 25, 2016
nautilus-registry-0.1.7.tar.gz (7.7 kB) Copy SHA256 hash SHA256 Source None Jun 25, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page