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

I ran reformat code on the whole project

This commit is contained in:
Steffo 2020-08-05 02:52:06 +02:00
parent 3dee72f20e
commit c581c8d08e
74 changed files with 1349 additions and 1311 deletions

View file

@ -1,3 +1,3 @@
[defaults]
org=stefano-pigozzi
project=royalnet
org = stefano-pigozzi
project = royalnet

View file

@ -5,10 +5,9 @@
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns="http://www.w3.org/2000/svg"
width="1280"
height="640"
viewBox="0 0 338.66666 169.33335"
@ -24,27 +23,27 @@
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-9"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-0"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-3-2"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-8-6"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-2-3"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-8-2"
is_visible="true" />
is_visible="true"/>
</defs>
<sodipodi:namedview
id="base"
@ -68,7 +67,7 @@
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
fit-margin-bottom="0"/>
<metadata
id="metadata5011">
<rdf:RDF>
@ -76,7 +75,7 @@
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
@ -93,7 +92,7 @@
width="338.59897"
height="169.26562"
x="-0.059404384"
y="127.7019" />
y="127.7019"/>
</g>
<g
inkscape:groupmode="layer"
@ -127,14 +126,14 @@
inkscape:connector-curvature="0"
id="path4734"
d="m 72.008205,108.22192 c -1.298662,-0.12455 -2.528663,-0.16144 -4.015472,-0.0311 L 49.036385,96.196667 50.579489,94.565515 Z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736"
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -142,7 +141,7 @@
inkscape:connector-curvature="0"
id="path4738"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
<g
@ -154,14 +153,14 @@
d="m 156.24182,195.63617 c 0.52356,-0.68844 1.23943,-1.19659 2.1157,-1.55436 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -169,7 +168,7 @@
id="path4812"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-0"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="matrix(-1,0,0,1,224.10371,96.838062)"
@ -183,14 +182,14 @@
inkscape:connector-curvature="0"
id="path4734-0"
d="m 72.008205,108.22192 -2.297446,1.06532 -20.674374,-13.090573 1.543104,-1.631152 z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736-1"
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -198,7 +197,7 @@
inkscape:connector-curvature="0"
id="path4738-5"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
<g
@ -212,14 +211,14 @@
d="m 156.01691,195.44483 c 0,0 1.03691,-0.78683 2.34061,-1.36302 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808-5"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810-9"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -227,7 +226,7 @@
id="path4812-9"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-8-6"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="rotate(-130.0044,153.8328,239.47705)"
@ -238,14 +237,14 @@
d="m 156.32889,195.84023 c 0.55471,-0.68202 1.24114,-1.24509 2.02863,-1.75842 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810-6"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -253,7 +252,7 @@
id="path4812-3"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-2-3"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="rotate(180,116.68483,185.47497)"
@ -267,14 +266,14 @@
inkscape:connector-curvature="0"
id="path4734-4"
d="m 72.008205,108.22192 -4.027874,0.002 -18.943946,-12.027223 1.543104,-1.631152 z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736-6"
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -282,7 +281,7 @@
inkscape:connector-curvature="0"
id="path4738-6"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:#a0cafd;fill-opacity:1;stroke:#a0cafd;stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -6,11 +6,10 @@
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns="http://www.w3.org/2000/svg"
width="1280"
height="640"
viewBox="0 0 338.66666 169.33335"
@ -28,7 +27,7 @@
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop2341" />
id="stop2341"/>
</linearGradient>
<linearGradient
id="linearGradient2337"
@ -36,32 +35,32 @@
<stop
style="stop-color:#a0cafd;stop-opacity:1;"
offset="0"
id="stop2335" />
id="stop2335"/>
</linearGradient>
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-9"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-0"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-3-2"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-8-6"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4814-3-2-3"
is_visible="true" />
is_visible="true"/>
<inkscape:path-effect
effect="spiro"
id="path-effect4740-4-8-2"
is_visible="true" />
is_visible="true"/>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2337"
@ -70,7 +69,7 @@
y1="215.38629"
x2="260.77929"
y2="215.38629"
gradientUnits="userSpaceOnUse" />
gradientUnits="userSpaceOnUse"/>
</defs>
<sodipodi:namedview
id="base"
@ -94,7 +93,7 @@
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
fit-margin-bottom="0"/>
<metadata
id="metadata5011">
<rdf:RDF>
@ -102,7 +101,7 @@
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
@ -119,7 +118,7 @@
width="338.59897"
height="169.26562"
x="-0.059404384"
y="127.7019" />
y="127.7019"/>
</g>
<g
inkscape:groupmode="layer"
@ -155,14 +154,14 @@
inkscape:connector-curvature="0"
id="path4734"
d="m 72.008205,108.22192 c -1.298662,-0.12455 -2.528663,-0.16144 -4.015472,-0.0311 L 49.036385,96.196667 50.579489,94.565515 Z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736"
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -170,7 +169,7 @@
inkscape:connector-curvature="0"
id="path4738"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
<g
@ -182,14 +181,14 @@
d="m 156.24182,195.63617 c 0.52356,-0.68844 1.23943,-1.19659 2.1157,-1.55436 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -197,7 +196,7 @@
id="path4812"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-0"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="matrix(-1,0,0,1,224.10371,96.838062)"
@ -212,14 +211,14 @@
inkscape:connector-curvature="0"
id="path4734-0"
d="m 72.008205,108.22192 -2.297446,1.06532 -20.674374,-13.090573 1.543104,-1.631152 z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736-1"
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -227,7 +226,7 @@
inkscape:connector-curvature="0"
id="path4738-5"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
<g
@ -241,14 +240,14 @@
d="m 156.01691,195.44483 c 0,0 1.03691,-0.78683 2.34061,-1.36302 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808-5"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810-9"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -256,7 +255,7 @@
id="path4812-9"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-8-6"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="rotate(-130.0044,153.8328,239.47705)"
@ -267,14 +266,14 @@
d="m 156.32889,195.84023 c 0.55471,-0.68202 1.24114,-1.24509 2.02863,-1.75842 l -0.90168,-4.19832 -1.77591,-10.28568 -2.42533,0.43459 z"
id="path4808-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
sodipodi:nodetypes="cccccc"/>
<ellipse
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.08753412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4810-6"
cx="153.28587"
cy="173.23436"
rx="5.5337849"
ry="5.5682526" />
ry="5.5682526"/>
<path
sodipodi:nodetypes="cccscccc"
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -282,7 +281,7 @@
id="path4812-3"
inkscape:connector-curvature="0"
inkscape:path-effect="#path-effect4814-3-2-3"
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459" />
inkscape:original-d="m 155.67993,179.59781 c 0.16078,-0.54597 0.33056,-1.07665 0.49545,-1.61457 0.16488,-0.53793 0.28228,-0.50274 0.35688,-0.55113 0.0746,-0.0484 -2.96992,0.002 -4.38913,-0.19901 -1.41921,-0.20112 -0.51799,0.47248 -0.42185,0.9737 0.0961,0.50123 1.05871,0.92708 1.23214,1.12643 0.17342,0.19934 0.20105,0.46584 0.30118,0.69917 0.10013,0.23332 1.61715,-0.28999 2.42533,-0.43459"/>
</g>
<g
transform="rotate(180,116.68483,185.47497)"
@ -297,14 +296,14 @@
inkscape:connector-curvature="0"
id="path4734-4"
d="m 72.008205,108.22192 -4.027874,0.002 -18.943946,-12.027223 1.543104,-1.631152 z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
<ellipse
ry="5.6216612"
rx="5.4344773"
cy="91.733978"
cx="44.573582"
id="path4736-6"
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
style="opacity:1;fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.29205444;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path
sodipodi:nodetypes="cccccccc"
inkscape:original-d="m 50.579488,94.565824 c -2.64e-4,2.64e-4 -0.303197,-0.388803 -0.455192,-0.582808 -0.151994,-0.194005 -0.186907,-0.584452 -0.280754,-0.87628 -0.09385,-0.291827 -1.18252,1.954034 -1.774173,2.931449 -0.591655,0.977412 0.18156,0.02148 0.271947,0.03263 0.09038,0.01114 0.463641,0.08384 0.695067,0.126156 0.231426,0.04232 1.029,-1.087698 1.543105,-1.631151 z"
@ -312,7 +311,7 @@
inkscape:connector-curvature="0"
id="path4738-6"
d="m 50.579488,94.565824 c -0.19561,-0.153916 -0.353242,-0.35574 -0.455192,-0.582808 -0.125746,-0.280068 -0.16588,-0.59158 -0.280754,-0.87628 -0.129281,-0.320405 -0.353925,-0.601278 -0.636711,-0.799785 -0.282786,-0.198507 -0.622572,-0.314232 -0.967619,-0.332011 -0.345046,-0.01778 -0.694281,0.06215 -0.99841,0.226092 -0.304129,0.163948 -0.56245,0.411219 -0.741612,0.706641 -0.179162,0.295422 -0.278954,0.638128 -0.288835,0.98349 -0.0099,0.345363 0.06991,0.692617 0.227397,1.000143 0.314966,0.615052 0.947156,1.051981 1.631617,1.146879 0.09044,0.01254 0.181591,0.01951 0.271947,0.03263 0.233191,0.03386 0.460094,0.108482 0.695067,0.126156 0.427171,0.03213 0.865211,-0.137278 1.159604,-0.44847 0.294394,-0.311191 0.439261,-0.757947 0.383501,-1.182681 z"
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
style="fill:none;fill-opacity:1;stroke:url(#linearGradient2337);stroke-width:0.26406372px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -66,7 +66,6 @@ templates_path = ['_templates']
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for

918
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,81 +4,81 @@
# poetry install -E telegram -E discord -E matrix -E alchemy_easy -E bard -E constellation -E sentry -E herald -E coloredlogs
[tool.poetry]
name = "royalnet"
version = "5.11.0"
description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+"
readme = "README.md"
homepage = "https://github.com/Steffo99/royalnet"
documentation = "https://gh.steffo.eu/royalnet/"
classifiers = [
name = "royalnet"
version = "5.11.0"
description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+"
readme = "README.md"
homepage = "https://github.com/Steffo99/royalnet"
documentation = "https://gh.steffo.eu/royalnet/"
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)"
]
]
# Library dependencies
[tool.poetry.dependencies]
python = "^3.8"
dateparser = "^0.7.2"
toml = "^0.10.0"
python = "^3.8"
dateparser = "^0.7.2"
toml = "^0.10.0"
# telegram
python_telegram_bot = {version="^12.2.0", optional=true}
# telegram
python_telegram_bot = { version = "^12.2.0", optional = true }
# discord
"discord.py" = {version="^1.3.1", optional=true}
pynacl = {version="^1.3.0", optional=true} # This requires libffi-dev and python3.*-dev to be installed on Linux systems
# discord
"discord.py" = { version = "^1.3.1", optional = true }
pynacl = { version = "^1.3.0", optional = true } # This requires libffi-dev and python3.*-dev to be installed on Linux systems
# matrix
matrix-nio = {version="^0.6", optional=true}
# matrix
matrix-nio = { version = "^0.6", optional = true }
# bard
ffmpeg_python = {version="~0.2.0", optional=true}
youtube_dl = {version="*", optional=true}
eyed3 = {version="^0.9", optional=true}
# bard
ffmpeg_python = { version = "~0.2.0", optional = true }
youtube_dl = { version = "*", optional = true }
eyed3 = { version = "^0.9", optional = true }
# alchemy
sqlalchemy = {version="^1.3.18", optional=true}
psycopg2 = {version="^2.8.4", optional=true} # Requires quite a bit of stuff http://initd.org/psycopg/docs/install.html#install-from-source
psycopg2_binary = {version="^2.8.4", optional=true} # Prebuilt alternative to psycopg2, not recommended
bcrypt = {version="^3.1.7", optional=true}
# alchemy
sqlalchemy = { version = "^1.3.18", optional = true }
psycopg2 = { version = "^2.8.4", optional = true } # Requires quite a bit of stuff http://initd.org/psycopg/docs/install.html#install-from-source
psycopg2_binary = { version = "^2.8.4", optional = true } # Prebuilt alternative to psycopg2, not recommended
bcrypt = { version = "^3.1.7", optional = true }
# constellation
starlette = {version="^0.12.13", optional=true}
uvicorn = {version="^0.10.7", optional=true}
python-multipart = {version="^0.0.5", optional=true}
# constellation
starlette = { version = "^0.12.13", optional = true }
uvicorn = { version = "^0.10.7", optional = true }
python-multipart = { version = "^0.0.5", optional = true }
# sentry
sentry_sdk = {version="~0.13.2", optional=true}
# sentry
sentry_sdk = { version = "~0.13.2", optional = true }
# herald
websockets = {version="^8.1", optional=true}
# herald
websockets = { version = "^8.1", optional = true }
# logging
coloredlogs = {version="^10.0", optional=true}
# logging
coloredlogs = { version = "^10.0", optional = true }
# Development dependencies
[tool.poetry.dev-dependencies]
pytest = "^5.2.1"
sphinx = "^2.2.1"
sphinx_rtd_theme = "^0.4.3"
pytest = "^5.2.1"
sphinx = "^2.2.1"
sphinx_rtd_theme = "^0.4.3"
# Optional dependencies
[tool.poetry.extras]
telegram = ["python_telegram_bot"]
discord = ["discord.py", "pynacl", "lavalink", "aiohttp", "cchardet"]
matrix = ["matrix-nio"]
alchemy_easy = ["sqlalchemy", "psycopg2_binary", "bcrypt"]
alchemy_hard = ["sqlalchemy", "psycopg2", "bcrypt"]
bard = ["ffmpeg_python", "youtube_dl", "eyed3"]
constellation = ["starlette", "uvicorn", "python-multipart"]
sentry = ["sentry_sdk"]
herald = ["websockets"]
coloredlogs = ["coloredlogs"]
telegram = ["python_telegram_bot"]
discord = ["discord.py", "pynacl", "lavalink", "aiohttp", "cchardet"]
matrix = ["matrix-nio"]
alchemy_easy = ["sqlalchemy", "psycopg2_binary", "bcrypt"]
alchemy_hard = ["sqlalchemy", "psycopg2", "bcrypt"]
bard = ["ffmpeg_python", "youtube_dl", "eyed3"]
constellation = ["starlette", "uvicorn", "python-multipart"]
sentry = ["sentry_sdk"]
herald = ["websockets"]
coloredlogs = ["coloredlogs"]
# Executable aliases
@ -87,5 +87,5 @@ royalnet = 'royalnet.__main__:run'
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

View file

@ -1,7 +1,9 @@
import click
import multiprocessing
import toml
import logging
import multiprocessing
import click
import toml
import royalnet.utils as ru
try:
@ -34,7 +36,6 @@ try:
except ImportError:
coloredlogs = None
log = logging.getLogger(__name__)

View file

@ -14,8 +14,8 @@ then run: ::
"""
from .alchemy import Alchemy
from .table_dfs import table_dfs
from .errors import *
from .table_dfs import table_dfs
__all__ = [
"Alchemy",

View file

@ -1,14 +1,16 @@
from typing import *
from contextlib import contextmanager, asynccontextmanager
from royalnet.utils import asyncify
from royalnet.alchemy.errors import TableNotFoundError
from typing import *
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.schema import Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.declarative.api import DeclarativeMeta
from sqlalchemy.orm import sessionmaker
from sqlalchemy.orm.session import Session
from sqlalchemy.schema import Table
from royalnet.alchemy.errors import TableNotFoundError
from royalnet.utils import asyncify
class Alchemy:

View file

@ -1,8 +1,8 @@
# Imports go here!
from .royalnetversion import RoyalnetversionCommand
from .royalnetsync import RoyalnetsyncCommand
from .royalnetroles import RoyalnetrolesCommand
from .royalnetaliases import RoyalnetaliasesCommand
from .royalnetroles import RoyalnetrolesCommand
from .royalnetsync import RoyalnetsyncCommand
from .royalnetversion import RoyalnetversionCommand
# Enter the commands of your Pack here!
available_commands = [

View file

@ -1,4 +1,3 @@
from typing import *
import royalnet.commands as rc
from ..tables import User

View file

@ -1,4 +1,3 @@
from typing import *
import royalnet.commands as rc
from ..tables import User

View file

@ -1,12 +1,10 @@
from typing import *
import royalnet
import royalnet.commands as rc
import royalnet.utils as ru
import royalnet.serf.telegram as rst
import royalnet.serf.discord as rsd
import royalnet.serf.matrix as rsm
from ..tables.telegram import Telegram
import royalnet.serf.telegram as rst
import royalnet.utils as ru
from ..tables.discord import Discord
from ..tables.telegram import Telegram
class RoyalnetsyncCommand(rc.Command):

View file

@ -1,4 +1,5 @@
import pkg_resources
from royalnet.commands import *

View file

@ -1,12 +1,12 @@
# Imports go here!
from .api_royalnet_version import ApiRoyalnetVersionStar
from .api_auth_login_royalnet import ApiAuthLoginRoyalnetStar
from .api_user_passwd import ApiUserPasswd
from .api_auth_token import ApiAuthTokenStar
from .api_royalnet_version import ApiRoyalnetVersionStar
from .api_user_create import ApiUserCreateStar
from .api_user_find import ApiUserFindStar
from .api_user_get import ApiUserGetStar
from .api_user_list import ApiUserListStar
from .api_user_find import ApiUserFindStar
from .api_user_create import ApiUserCreateStar
from .api_user_passwd import ApiUserPasswd
from .docs import DocsStar
# Enter the PageStars of your Pack here!

View file

@ -1,9 +1,10 @@
import datetime
import royalnet.utils as ru
import royalnet.constellation.api as rca
import royalnet.constellation.api.apierrors as rcae
from ..tables.users import User
import royalnet.utils as ru
from ..tables.tokens import Token
from ..tables.users import User
class ApiAuthLoginRoyalnetStar(rca.ApiStar):

View file

@ -1,7 +1,7 @@
from typing import *
import datetime
import royalnet.utils as ru
import royalnet.constellation.api as rca
import royalnet.utils as ru
from ..tables.tokens import Token

View file

@ -1,8 +1,5 @@
from typing import *
import datetime
import royalnet.constellation.api as rca
import royalnet.utils as ru
import royalnet.backpack.tables as rbt
from ..tables import *

View file

@ -1,6 +1,6 @@
import royalnet.utils as ru
import royalnet.backpack.tables as rbt
import royalnet.constellation.api as rca
import royalnet.utils as ru
class ApiUserFindStar(rca.ApiStar):

View file

@ -1,6 +1,6 @@
import royalnet.utils as ru
import royalnet.backpack.tables as rbt
import royalnet.constellation.api as rca
import royalnet.utils as ru
class ApiUserGetStar(rca.ApiStar):

View file

@ -1,7 +1,8 @@
from starlette.responses import *
import royalnet.utils as ru
import royalnet.backpack.tables as rbt
import royalnet.constellation.api as rca
import royalnet.utils as ru
class ApiUserListStar(rca.ApiStar):

View file

@ -1,8 +1,10 @@
from typing import *
import datetime
import royalnet.utils as ru
import royalnet.constellation.api as rca
from typing import *
from sqlalchemy import and_
import royalnet.constellation.api as rca
import royalnet.utils as ru
from ..tables.tokens import Token

View file

@ -1,11 +1,11 @@
import json
from typing import *
from royalnet.constellation import PageStar
from royalnet.constellation.api import ApiStar
from starlette.requests import Request
from starlette.responses import Response, HTMLResponse
import royalnet
import royalnet
from royalnet.constellation import PageStar
from royalnet.constellation.api import ApiStar
backtick = "\u0060"

View file

@ -1,11 +1,11 @@
# Imports go here!
from .users import User
from .telegram import Telegram
from .aliases import Alias
from .discord import Discord
from .matrix import Matrix
from .aliases import Alias
from .tokens import Token
from .roles import Role
from .telegram import Telegram
from .tokens import Token
from .users import User
# Enter the tables of your Pack here!
available_tables = {

View file

@ -2,8 +2,8 @@ from sqlalchemy import Column, \
Integer, \
String, \
ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
class Alias:

View file

@ -3,8 +3,9 @@ from sqlalchemy import Column, \
String, \
BigInteger, \
ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
# noinspection PyUnresolvedReferences
from .users import User

View file

@ -1,9 +1,11 @@
import re
from sqlalchemy import *
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
# noinspection PyUnresolvedReferences
from .users import User
import re
class Matrix:

View file

@ -2,8 +2,8 @@ from sqlalchemy import Column, \
Integer, \
String, \
ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
class Role:

View file

@ -3,8 +3,9 @@ from sqlalchemy import Column, \
String, \
BigInteger, \
ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
# noinspection PyUnresolvedReferences
from .users import User

View file

@ -1,8 +1,10 @@
import datetime
import secrets
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import *
import royalnet.utils as ru

View file

@ -1,14 +1,16 @@
from typing import *
import bcrypt
import royalnet.utils as ru
from sqlalchemy import Column, \
Integer, \
String, \
LargeBinary, \
inspect
from sqlalchemy.ext.declarative import declared_attr
from .roles import Role
import royalnet.utils as ru
from .aliases import Alias
from .roles import Role
from ...utils import JSON, asyncify

View file

@ -15,9 +15,9 @@ try:
except ImportError:
raise ImportError("The `bard` extra is not installed. Please install it with `pip install royalnet[bard]`.")
from .ytdlinfo import YtdlInfo
from .ytdlfile import YtdlFile
from .errors import BardError, YtdlError, NotFoundError, MultipleFilesError
from .ytdlfile import YtdlFile
from .ytdlinfo import YtdlInfo
__all__ = [
"YtdlInfo",

View file

@ -8,8 +8,8 @@ You can install them with: ::
"""
from .ytdldiscord import YtdlDiscord
from .fileaudiosource import FileAudioSource
from .ytdldiscord import YtdlDiscord
__all__ = [
"YtdlDiscord",

View file

@ -1,12 +1,14 @@
import typing
import re
import os
import logging
import ffmpeg
import discord
import os
import re
import typing
from contextlib import asynccontextmanager
from royalnet.utils import asyncify, MultiLock
import discord
import ffmpeg
from royalnet.bard import YtdlInfo, YtdlFile
from royalnet.utils import asyncify, MultiLock
from .fileaudiosource import FileAudioSource
log = logging.getLogger(__name__)
@ -99,7 +101,8 @@ class YtdlDiscord:
}
embed = discord.Embed(title=self.info.title,
colour=discord.Colour(colors.get(self.info.extractor, 0x4F545C)),
url=self.info.webpage_url if (self.info.webpage_url and self.info.webpage_url.startswith("http")) else discord.embeds.EmptyEmbed)
url=self.info.webpage_url if (self.info.webpage_url and self.info.webpage_url.startswith(
"http")) else discord.embeds.EmptyEmbed)
if self.info.thumbnail:
embed.set_thumbnail(url=self.info.thumbnail)
if self.info.uploader:

View file

@ -1,15 +1,16 @@
import os
import logging
import os
import re
import eyed3
from asyncio import AbstractEventLoop, get_event_loop
from contextlib import asynccontextmanager
from typing import *
from royalnet.utils import *
from asyncio import AbstractEventLoop, get_event_loop
from .ytdlinfo import YtdlInfo
from .errors import NotFoundError, MultipleFilesError
import eyed3
from youtube_dl import YoutubeDL
from royalnet.utils import *
from .errors import NotFoundError, MultipleFilesError
from .ytdlinfo import YtdlInfo
log = logging.getLogger(__name__)
@ -74,6 +75,7 @@ class YtdlFile:
async def download_file(self) -> None:
"""Download the file."""
def download():
"""Download function block to be asyncified."""
with YoutubeDL(self.ytdl_args) as ytdl:

View file

@ -1,11 +1,12 @@
from typing import *
import asyncio as aio
import datetime
import dateparser
import logging
import royalnet.utils as ru
from typing import *
import dateparser
import youtube_dl
import royalnet.utils as ru
log = logging.getLogger(__name__)

View file

@ -1,13 +1,13 @@
"""The subpackage providing all classes related to Royalnet commands."""
from .command import Command
from .commanddata import CommandData
from .commandargs import CommandArgs
from .heraldevent import HeraldEvent
from .commanddata import CommandData
from .configdict import ConfigDict
from .errors import \
CommandError, InvalidInputError, UnsupportedError, ConfigurationError, ExternalError, UserError, ProgramError
from .heraldevent import HeraldEvent
from .keyboardkey import KeyboardKey
from .configdict import ConfigDict
__all__ = [
"Command",

View file

@ -1,6 +1,7 @@
import abc
import asyncio as aio
from typing import *
from .commandargs import CommandArgs
from .commanddata import CommandData

View file

@ -1,5 +1,6 @@
import re
import typing
from .errors import InvalidInputError
@ -32,12 +33,12 @@ class CommandArgs(list):
try:
return super().__getitem__(item)
except IndexError:
raise InvalidInputError(f'Missing argument #{item+1}.')
raise InvalidInputError(f'Missing argument #{item + 1}.')
if isinstance(item, slice):
try:
return super().__getitem__(item)
except IndexError:
raise InvalidInputError(f'Cannot get arguments from #{item.start+1} to #{item.stop+1}.')
raise InvalidInputError(f'Cannot get arguments from #{item.start + 1} to #{item.stop + 1}.')
raise ValueError(f"Invalid type passed to CommandArgs.__getattr__: {type(item)}")
def joined(self, *, require_at_least=0) -> str:

View file

@ -1,11 +1,11 @@
from typing import *
import contextlib
import logging
import asyncio as aio
import royalnet.utils as ru
import io
from .errors import UnsupportedError
import logging
from typing import *
import royalnet.utils as ru
from royalnet.backpack.tables.users import User
from .errors import UnsupportedError
if TYPE_CHECKING:
from .keyboardkey import KeyboardKey

View file

@ -2,6 +2,7 @@ class CommandError(Exception):
"""Something went wrong during the execution of this command.
Display an error message to the user, explaining what went wrong."""
def __init__(self, message=""):
self.message = message

View file

@ -1,4 +1,5 @@
from typing import *
from .commanddata import CommandData

View file

@ -15,8 +15,8 @@ You can install them with: ::
"""
from .constellation import Constellation
from .star import Star
from .pagestar import PageStar
from .star import Star
__all__ = [
"Constellation",

View file

@ -1,5 +1,3 @@
from .apistar import ApiStar
from .jsonapi import api_response, api_success, api_error
from .apidata import ApiData
from .apierrors import \
ApiError, \
@ -11,9 +9,10 @@ from .apierrors import \
InvalidParameterError, \
MethodNotImplementedError, \
UnsupportedError
from .apistar import ApiStar
from .jsonapi import api_response, api_success, api_error
from .magic import magic
__all__ = [
"ApiStar",
"api_response",

View file

@ -1,10 +1,10 @@
from typing import *
import logging
from .apierrors import MissingParameterError
from typing import *
import royalnet.utils as ru
from royalnet.backpack.tables.tokens import Token
from royalnet.backpack.tables.users import User
from .apierrors import *
import royalnet.utils as ru
log = logging.getLogger(__name__)

View file

@ -1,15 +1,17 @@
from typing import *
from json import JSONDecodeError
from abc import *
from starlette.requests import Request
from starlette.responses import JSONResponse
from ..pagestar import PageStar
from .jsonapi import api_error, api_success
from .apidata import ApiData
from .apierrors import *
import royalnet.utils as ru
import logging
import re
from abc import *
from json import JSONDecodeError
from typing import *
from starlette.requests import Request
from starlette.responses import JSONResponse
import royalnet.utils as ru
from .apidata import ApiData
from .apierrors import *
from .jsonapi import api_error, api_success
from ..pagestar import PageStar
log = logging.getLogger(__name__)

View file

@ -1,5 +1,5 @@
from typing import *
import royalnet.utils as ru
try:
from starlette.responses import JSONResponse
except ImportError:

View file

@ -1,4 +1,3 @@
from typing import *
import functools
@ -12,4 +11,5 @@ def magic(func):
@functools.wraps(func)
async def f(*args, **kwargs):
return await func(*args, **kwargs)
return f

View file

@ -1,19 +1,20 @@
from typing import *
import asyncio as aio
import logging
import importlib
import uvicorn
import logging
from typing import *
import starlette.applications
import starlette.middleware
import starlette.middleware.cors
import uvicorn
import royalnet.alchemy as ra
import royalnet.commands as rc
import royalnet.herald as rh
import royalnet.utils as ru
import royalnet.commands as rc
from .pagestar import PageStar
from ..utils import init_logging
log = logging.getLogger(__name__)
UVICORN_LOGGING_CONFIG = {
@ -31,6 +32,7 @@ class Constellation:
It runs multiple :class:`Star`, which represent the routes of the website.
It also handles the :class:`Alchemy` connection, and Herald connections too."""
def __init__(self,
alchemy_cfg: Dict[str, Any],
herald_cfg: Dict[str, Any],

View file

@ -1,4 +1,3 @@
from typing import *
from .star import Star

View file

@ -1,4 +1,5 @@
from typing import *
from starlette.requests import Request
from starlette.responses import Response
@ -13,6 +14,7 @@ class Star:
"""A Star is a class representing a part of the website.
It shouldn't be used directly: please use :class:`PageStar` and :class:`ExceptionStar` instead!"""
def __init__(self, constellation: "Constellation", config: "ConfigDict"):
self.constellation: "Constellation" = constellation
self.config: "ConfigDict" = config

View file

@ -1,6 +1,7 @@
import toml
import importlib
import click
import toml
p = click.echo

View file

@ -10,6 +10,7 @@ You can install it with: ::
"""
from .broadcast import Broadcast
from .config import Config
from .errors import *
from .link import Link
@ -17,8 +18,6 @@ from .package import Package
from .request import Request
from .response import Response, ResponseSuccess, ResponseFailure
from .server import Server
from .broadcast import Broadcast
__all__ = [
"Config",

View file

@ -1,16 +1,17 @@
from typing import *
import asyncio as aio
import uuid
import functools
import logging
import uuid
from typing import *
import websockets
from .broadcast import Broadcast
from .config import Config
from .errors import ConnectionClosedError, InvalidServerResponseError
from .package import Package
from .request import Request
from .response import Response, ResponseSuccess, ResponseFailure
from .broadcast import Broadcast
from .errors import ConnectionClosedError, InvalidServerResponseError
from .config import Config
log = logging.getLogger(__name__)
@ -39,6 +40,7 @@ def requires_connection(func):
async def new_func(self, *args, **kwargs):
await self.connect_event.wait()
return await func(self, *args, **kwargs)
return new_func
@ -47,6 +49,7 @@ def requires_identification(func):
async def new_func(self, *args, **kwargs):
await self.identify_event.wait()
return await func(self, *args, **kwargs)
return new_func

View file

@ -1,20 +1,22 @@
from typing import *
import asyncio as aio
import re
import datetime
import uuid
import logging
import websockets
import royalnet.utils as ru
from .package import Package
from .config import Config
import re
import uuid
from typing import *
import websockets
import royalnet.utils as ru
from .config import Config
from .package import Package
log = logging.getLogger(__name__)
class ConnectedClient:
"""The :py:class:`Server`-side representation of a connected :py:class:`Link`."""
def __init__(self, socket: "websockets.WebSocketServerProtocol"):
self.socket: "websockets.WebSocketServerProtocol" = socket
self.nid: Optional[str] = None

View file

@ -1,7 +1,7 @@
"""The subpackage providing all Serf implementations."""
from .serf import Serf
from .errors import SerfError
from .serf import Serf
__all__ = [
"Serf",

View file

@ -8,8 +8,8 @@ Install it with: ::
"""
from .escape import escape
from .discordserf import DiscordSerf
from .escape import escape
from .playable import Playable
from .voiceplayer import VoicePlayer

View file

@ -1,16 +1,17 @@
import asyncio as aio
import logging
import io
import logging
import sys
from typing import *
import royalnet.backpack.tables as rbt
import royalnet.commands as rc
from royalnet.utils import asyncify, sentry_exc
from royalnet.serf import Serf
from .escape import escape
from .voiceplayer import VoicePlayer
import discord
import royalnet.backpack.tables as rbt
import royalnet.commands as rc
from royalnet.serf import Serf
from royalnet.utils import asyncify, sentry_exc
from .escape import escape
from .voiceplayer import VoicePlayer
log = logging.getLogger(__name__)
@ -128,6 +129,7 @@ class DiscordSerf(Serf):
def client_factory(self) -> Type["discord.Client"]:
"""Create a custom class inheriting from :py:class:`discord.Client`."""
# noinspection PyMethodParameters
class DiscordClient(discord.Client):
# noinspection PyMethodMayBeStatic

View file

@ -1,16 +1,17 @@
import logging
from typing import Optional, AsyncGenerator, Tuple, Any, Dict
try:
import discord
except ImportError:
discord = None
log = logging.getLogger(__name__)
class Playable:
"""An abstract class representing something that can be played back in a :class:`VoicePlayer`."""
def __init__(self):
"""Create a :class:`Playable`.

View file

@ -1,10 +1,12 @@
import asyncio
import threading
import logging
import threading
from typing import Optional
from .errors import *
from .playable import Playable
from ...utils import sentry_exc
try:
import discord
except ImportError:

View file

@ -8,8 +8,8 @@ Install it with: ::
"""
from .matrixserf import MatrixSerf
from .escape import escape
from .matrixserf import MatrixSerf
__all__ = [
"MatrixSerf",

View file

@ -1,13 +1,15 @@
from typing import *
import logging
import datetime
import asyncio as aio
import datetime
import logging
from typing import *
import nio
import royalnet.backpack as rb
import royalnet.commands as rc
import royalnet.utils as ru
from ..serf import Serf
from .escape import escape
import nio
from ..serf import Serf
log = logging.getLogger(__name__)

View file

@ -1,16 +1,18 @@
import logging
import importlib
import abc
import asyncio as aio
import importlib
import logging
import sys
import traceback
from typing import *
from sqlalchemy.schema import Table
import royalnet.commands as rc
import royalnet.utils as ru
import royalnet.alchemy as ra
import royalnet.backpack.tables as rbt
import royalnet.commands as rc
import royalnet.herald as rh
import traceback
import abc
import royalnet.utils as ru
log = logging.getLogger(__name__)

View file

@ -1,5 +1,5 @@
from typing import *
import re
from typing import *
def escape(string: Optional[str]) -> Optional[str]:

View file

@ -1,17 +1,17 @@
from typing import *
import asyncio as aio
import contextlib
import logging
import asyncio as aio
import uuid
from dataclasses import dataclass
from typing import *
import telegram
import urllib3
from telegram.utils.request import Request as TRequest
from dataclasses import dataclass
import royalnet.backpack.tables as rbt
import royalnet.commands as rc
import royalnet.utils as ru
import royalnet.backpack.tables as rbt
from .escape import escape
from ..serf import Serf

View file

@ -1,12 +1,12 @@
from .asyncify import asyncify
from .sleep_until import sleep_until
from .formatters import andformat, underscorize, ytdldateformat, numberemojiformat, ordinalformat
from .urluuid import to_urluuid, from_urluuid
from .multilock import MultiLock
from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap
from .log import init_logging
from .multilock import MultiLock
from .royaltyping import JSON
from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap
from .sleep_until import sleep_until
from .strip_tabs import strip_tabs
from .urluuid import to_urluuid, from_urluuid
__all__ = [
"asyncify",

View file

@ -1,5 +1,5 @@
import typing
import re
import typing
def andformat(coll: typing.Collection[str], middle=", ", final=" and ") -> str:

View file

@ -1,5 +1,5 @@
from typing import *
import logging
from typing import *
try:
import coloredlogs

View file

@ -1,13 +1,13 @@
import logging
from asyncio import Event
from contextlib import asynccontextmanager
import logging
log = logging.getLogger(__name__)
class MultiLock:
"""A lock that can allow both simultaneous access and exclusive access to a resource."""
def __init__(self):
self._counter: int = 0
self._normal_event: Event = Event()

View file

@ -1,9 +1,10 @@
import functools
import logging
import sys
import traceback
from typing import *
import royalnet
import functools
try:
import sentry_sdk
@ -16,7 +17,6 @@ except ImportError:
SqlalchemyIntegration = None
LoggingIntegration = None
log = logging.getLogger(__name__)
@ -57,7 +57,9 @@ def sentry_wrap(level: str = "ERROR"):
except Exception as exc:
sentry_exc(exc=exc, level=level)
raise
return new_func
return decorator
@ -70,5 +72,7 @@ def sentry_async_wrap(level: str = "ERROR"):
except Exception as exc:
sentry_exc(exc=exc, level=level)
raise
return new_func
return decorator

View file

@ -1,5 +1,5 @@
import uuid as _uuid
import base64
import uuid as _uuid
def to_urluuid(uuid: _uuid.UUID) -> str: