mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Update template structure
This commit is contained in:
parent
37092a426f
commit
f97bf35b75
8 changed files with 26 additions and 2 deletions
|
@ -2,4 +2,6 @@
|
||||||
|
|
||||||
This is an example Pack for [Royalnet](https://github.com/Steffo99/royalnet)!
|
This is an example Pack for [Royalnet](https://github.com/Steffo99/royalnet)!
|
||||||
|
|
||||||
> To be updated with more info on how to create your own pack.
|
To create your own pack, [read the documentation](https://gh.steffo.eu/royalnet/html/packs/pack.html)!
|
||||||
|
|
||||||
|
<!-- TODO: replace this with the readme for your own pack! -->
|
||||||
|
|
|
@ -2,6 +2,8 @@ from typing import *
|
||||||
from royalnet.commands import *
|
from royalnet.commands import *
|
||||||
from royalnet.utils import *
|
from royalnet.utils import *
|
||||||
|
|
||||||
|
# TODO: delete this file!
|
||||||
|
|
||||||
|
|
||||||
class ExampleCommand(Command):
|
class ExampleCommand(Command):
|
||||||
name: str = "example"
|
name: str = "example"
|
||||||
|
|
|
@ -2,6 +2,8 @@ from typing import *
|
||||||
from royalnet.commands import *
|
from royalnet.commands import *
|
||||||
from royalnet.utils import *
|
from royalnet.utils import *
|
||||||
|
|
||||||
|
# TODO: delete this file!
|
||||||
|
|
||||||
|
|
||||||
class ExampleEvent(Event):
|
class ExampleEvent(Event):
|
||||||
name = "example"
|
name = "example"
|
||||||
|
|
|
@ -2,8 +2,8 @@ import royalnet.utils as ru
|
||||||
import royalnet.constellation.api as rca
|
import royalnet.constellation.api as rca
|
||||||
import royalnet.constellation.api.apierrors as rcae
|
import royalnet.constellation.api.apierrors as rcae
|
||||||
|
|
||||||
|
|
||||||
# View autogenerated docs for all ApiStars at the HTTP path `/docs`
|
# View autogenerated docs for all ApiStars at the HTTP path `/docs`
|
||||||
|
# TODO: delete this file!
|
||||||
|
|
||||||
|
|
||||||
class EchoStar(rca.ApiStar):
|
class EchoStar(rca.ApiStar):
|
||||||
|
|
|
@ -3,6 +3,8 @@ from starlette.responses import *
|
||||||
from royalnet.constellation import *
|
from royalnet.constellation import *
|
||||||
from royalnet.utils import *
|
from royalnet.utils import *
|
||||||
|
|
||||||
|
# TODO: delete this file!
|
||||||
|
|
||||||
|
|
||||||
class ExampleStar(PageStar):
|
class ExampleStar(PageStar):
|
||||||
path = "/example"
|
path = "/example"
|
||||||
|
|
|
@ -2,6 +2,8 @@ from sqlalchemy import *
|
||||||
from sqlalchemy.orm import *
|
from sqlalchemy.orm import *
|
||||||
from sqlalchemy.ext.declarative import declared_attr
|
from sqlalchemy.ext.declarative import declared_attr
|
||||||
|
|
||||||
|
# TODO: delete this file!
|
||||||
|
|
||||||
|
|
||||||
class Example:
|
class Example:
|
||||||
__tablename__ = "examples"
|
__tablename__ = "examples"
|
||||||
|
|
7
examplepack/types/__init__.py
Normal file
7
examplepack/types/__init__.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Imports go here!
|
||||||
|
# from .example import Example
|
||||||
|
|
||||||
|
# A list of strings containing the name of the classes imported here
|
||||||
|
__all__ = [
|
||||||
|
# "Example",
|
||||||
|
]
|
7
examplepack/utils/__init__.py
Normal file
7
examplepack/utils/__init__.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Imports go here!
|
||||||
|
# from .example import Example
|
||||||
|
|
||||||
|
# A list of strings containing the name of the classes imported here
|
||||||
|
__all__ = [
|
||||||
|
# "Example",
|
||||||
|
]
|
Loading…
Reference in a new issue