mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Add new things to constellation
This commit is contained in:
parent
162f9f842a
commit
cb9ff43a6c
2 changed files with 9 additions and 0 deletions
|
@ -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`
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue