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:
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.
|
The part of `royalnet` that handles the webserver and webpages.
|
||||||
|
|
||||||
It uses many features of [`starlette`](https://www.starlette.io).
|
It uses many features of [`starlette`](https://www.starlette.io).
|
||||||
|
|
||||||
|
## Hierarchy
|
||||||
|
|
||||||
|
- `constellation`
|
||||||
|
- `star`
|
||||||
|
- `shoot`
|
|
@ -23,14 +23,17 @@ class Star:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def alchemy(self):
|
def alchemy(self):
|
||||||
|
"""A shortcut for the :class:`Alchemy` of the :class:`Constellation`."""
|
||||||
return self.constellation.alchemy
|
return self.constellation.alchemy
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def Session(self):
|
def Session(self):
|
||||||
|
"""A shortcut for the alchemy :class:`Session` of the :class:`Constellation`."""
|
||||||
return self.constellation.alchemy.Session
|
return self.constellation.alchemy.Session
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def session_acm(self):
|
def session_acm(self):
|
||||||
|
"""A shortcut for the session :func:`asynccontextmanager` of the :class:`Constellation`."""
|
||||||
return self.constellation.alchemy.session_acm
|
return self.constellation.alchemy.session_acm
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue