1
Fork 0
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:
Steffo 2020-07-31 17:06:54 +02:00
parent 37092a426f
commit f97bf35b75
8 changed files with 26 additions and 2 deletions

View file

@ -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! -->

View file

@ -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"

View file

@ -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"

View file

@ -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):

View file

@ -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"

View file

@ -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"

View 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",
]

View 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",
]