1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Add new things to constellation

This commit is contained in:
Steffo 2019-11-12 14:50:51 +01:00
parent 162f9f842a
commit cb9ff43a6c
2 changed files with 9 additions and 0 deletions

View file

@ -3,3 +3,9 @@
The part of `royalnet` that handles the webserver and webpages.
It uses many features of [`starlette`](https://www.starlette.io).
## Hierarchy
- `constellation`
- `star`
- `shoot`

View file

@ -23,14 +23,17 @@ class Star:
@property
def alchemy(self):
"""A shortcut for the :class:`Alchemy` of the :class:`Constellation`."""
return self.constellation.alchemy
@property
def Session(self):
"""A shortcut for the alchemy :class:`Session` of the :class:`Constellation`."""
return self.constellation.alchemy.Session
@property
def session_acm(self):
"""A shortcut for the session :func:`asynccontextmanager` of the :class:`Constellation`."""
return self.constellation.alchemy.session_acm