From ad3c74fa0b2597173937058676eee832171a25b5 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 2 Aug 2021 21:01:03 -0300 Subject: [PATCH] 0.75 Refactored Python3 code and some thinkering to use it with Mimir. --- .DS_Store | Bin 6148 -> 0 bytes Pandora.py | 84 +++++++++++++++++++++++++++++++++++++++ PandoraRun.py | 38 ------------------ README.md | 19 ++++++--- assets/.DS_Store | Bin 6148 -> 0 bytes assets/css/.DS_Store | Bin 8196 -> 0 bytes assets/js/.DS_Store | Bin 6148 -> 0 bytes logo.txt => etc/logo.txt | 0 8 files changed, 97 insertions(+), 44 deletions(-) delete mode 100644 .DS_Store create mode 100644 Pandora.py delete mode 100644 PandoraRun.py delete mode 100644 assets/.DS_Store delete mode 100644 assets/css/.DS_Store delete mode 100644 assets/js/.DS_Store rename logo.txt => etc/logo.txt (100%) diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 -``` + _ __ ,---. .-._ _,.---._ ,---. .-`.' ,`..--.' \ /==/ \ .-._ _,..---._ ,-.' , - `. .-.,.---. .--.' \ /==/, - \==\-/\ \ |==|, \/ /, /==/, - \ /==/_, , - \ /==/ ` \ \==\-/\ \ @@ -9,16 +9,21 @@ |==|, | /==/- /\ - \|==| /\ , ||==| '=' /\==\ - ,_ /|==|_ . ,'./==/- /\ - \ /==/ - | \==\ _.\=\.-'/==/, | |- ||==|-, _`/ '.='. - .' /==/ /\ , )==\ _.\=\.-' `--`---' `--` `--`./ `--``-.`.____.' `--`--'' `--`-`--`--' `--` -``` + ## Pandora Selfhosted -This project was built with Python 3 and uses basic library to handle files within the Pandora folder, it can access it through localserver and via localhost too. The example files are made with Foundation and shows a very basic usage of the funcionality, and you can use it to learn HTML and CSS without worry about setup a specific server, it's usefull specially if you're still learning. +This project started with Python 3 and have been refactored to GO! and then returned from ashes to Python again because more practicall to change the code to specific usage without the need to recompile it. It handles and serve files within the Pandora folder following any given structure. + +It can be accessed through localhost and/or wi-fi. + +It can handle a file transfer protocol too and you can make a little file host inside your network, to transfer files from one machine to another or even stream media now. + +The new example files are made with Foundation and shows a very basic usage of the funcionality, and you can use it to learn HTML and CSS without worry about setup a specific server, it's usefull specially if you're still learning. * [Python](https://www.python.org/) * [Foundation](https://get.foundation/index.html) ### Getting Started - To run and use Pandora, you'll need Python 3 installed on your machine and a modern browser. ### Usage @@ -29,10 +34,12 @@ To run and use Pandora, you'll need Python 3 installed on your machine and a mod 4. Run Pandora with * Python ``` -py PandoraRun.py +py Pandora.py ``` +5. It will listen and serve all the folder that Pandora is located in + ### License -Distributed under the MIT License. See `LICENSE` for more information. +Distributed under the MIT License. See `LICENSE` for more information. \ No newline at end of file diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0p~M!m$qS=`rS96Si}< zd+I-6?T+mPnfAWYD#07e3?rR$sChz z>z;5ybuB-VJX%U}7e1q_o@_yGC3_OHWCXU6z`oyfOXB~l`se@Kcr@Fy5ikNP5^#-P zzt^R4h^;Gb5^G1y56qIpuJo!dEHoUaYB)~){KJs-h^FEb2Q9s_hw0ZJ1bmMus=sXP M{;%(h6}wE}1LCD1wEzGB diff --git a/assets/js/.DS_Store b/assets/js/.DS_Store deleted file mode 100644 index 2fa06c3693bd477e074cecb8d13ddce4b9fe701c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO-lnY5PhjVRJ_!i$NdAXh~Rmtt0(bb(X%UEp{@O3cZ+!2pYEHhdR-+4`3!p<4Y#p=tL1bQZOIl_T47$b$Ickitz@>zBJ#RhRUBzz`ptsZnt598ZjWWAu#UisMXw137z-92Y3n zI-ysAceW*_y5?McC1%RC7Fcq8OZ>i%9`lVgTZJC3xFgX^_OCfJWK_;IBvWmfWEcCM z>fTPZ2M32(KHrlw;0!nezhZ!Qwn*nBqPNa~GvExY8IbQoLKRF6n~3`9V53g}Vw+|a z_T?=hF^OSn*hJ(ECB#r-3=Q_g2r-=Y#QajjCSnXn(9B%NG6#F11kFx+qV5Q3L~oq| zXJC_oqd4r!{eQFj{l6LHBWJ)F_*V>sb~elgJd)k5TZfaoHlaRKMZ~X(xDH`QuVVVj dReVNOp*@ifF*R%=(n9e+0!o87&cL5C@Cm{rMcV)X diff --git a/logo.txt b/etc/logo.txt similarity index 100% rename from logo.txt rename to etc/logo.txt