lilliepy 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lilliepy-0.1.0/PKG-INFO +7 -0
- lilliepy-0.1.0/README.md +28 -0
- lilliepy-0.1.0/lilliepy/__init__.py +3 -0
- lilliepy-0.1.0/lilliepy/bin.bat +40 -0
- lilliepy-0.1.0/lilliepy/bin.sh +34 -0
- lilliepy-0.1.0/lilliepy/main.py +29 -0
- lilliepy-0.1.0/lilliepy.egg-info/PKG-INFO +7 -0
- lilliepy-0.1.0/lilliepy.egg-info/SOURCES.txt +10 -0
- lilliepy-0.1.0/lilliepy.egg-info/dependency_links.txt +1 -0
- lilliepy-0.1.0/lilliepy.egg-info/top_level.txt +1 -0
- lilliepy-0.1.0/setup.cfg +4 -0
- lilliepy-0.1.0/setup.py +17 -0
lilliepy-0.1.0/PKG-INFO
ADDED
lilliepy-0.1.0/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# LilliePy #
|
|
2
|
+
|
|
3
|
+
this module initializes a LilliePy project
|
|
4
|
+
|
|
5
|
+
## What is LilliePy? #
|
|
6
|
+
it is a web framework that uses [ReactPy](https://reactpy.dev) fro the frontend, and [Flask](https://flask.palletsprojects.com/en/stable/) for the backend. It also includes other libraries to make the dev experience better.
|
|
7
|
+
|
|
8
|
+
## Requirements ##
|
|
9
|
+
##### you must need
|
|
10
|
+
* [python](https://www.python.org/)
|
|
11
|
+
* [pip](https://pypi.org/project/pip/)
|
|
12
|
+
* [git](https://git-scm.com/)
|
|
13
|
+
|
|
14
|
+
## How to Use?
|
|
15
|
+
first you must create a python file,
|
|
16
|
+
after that, you must import ``` lilliepy ``` module, and put this code in:
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
# config.py (name this file anything)
|
|
20
|
+
|
|
21
|
+
from lilliepy import create
|
|
22
|
+
|
|
23
|
+
create() # put sh if you are using a linuxOS and not a windowsOS
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
it will generate a Lilliepy app, you will know it was a success if the command line is in a green hue
|
|
27
|
+
|
|
28
|
+
and boom, your done, now have fun with the web framework, you can go ahead and delete you config file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
set blank=07
|
|
4
|
+
set error=04
|
|
5
|
+
set success=02
|
|
6
|
+
set load=01
|
|
7
|
+
|
|
8
|
+
color %load%
|
|
9
|
+
echo Initializing Lilliepy App...
|
|
10
|
+
|
|
11
|
+
git clone https://github.com/websitedeb/Lilliepy-2.0
|
|
12
|
+
if %errorlevel% equ 0 (
|
|
13
|
+
ren "Lilliepy-2.0" "app"
|
|
14
|
+
if %errorlevel% equ 0 (
|
|
15
|
+
echo Downloading dependencies...
|
|
16
|
+
cd app
|
|
17
|
+
pip install -r requirements.txt
|
|
18
|
+
|
|
19
|
+
if %errorlevel% equ 0 (
|
|
20
|
+
color %success%
|
|
21
|
+
echo Created Lilliepy App!
|
|
22
|
+
pause
|
|
23
|
+
) else (
|
|
24
|
+
color %error%
|
|
25
|
+
echo An error occurred while downloading the dependencies...
|
|
26
|
+
pause
|
|
27
|
+
)
|
|
28
|
+
) else (
|
|
29
|
+
color %error%
|
|
30
|
+
echo An error occurred while renaming the app...
|
|
31
|
+
pause
|
|
32
|
+
)
|
|
33
|
+
) else (
|
|
34
|
+
color %error%
|
|
35
|
+
echo An error occurred while creating the app...
|
|
36
|
+
pause
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
cls
|
|
40
|
+
color %blank%
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
blank='\033[0m'
|
|
4
|
+
error='\033[31m'
|
|
5
|
+
success='\033[32m'
|
|
6
|
+
load='\033[34m'
|
|
7
|
+
|
|
8
|
+
echo -e "${load}Initializing Lilliepy App...${blank}"
|
|
9
|
+
|
|
10
|
+
git clone https://github.com/websitedeb/Lilliepy-2.0
|
|
11
|
+
if [ $? -eq 0 ]; then
|
|
12
|
+
mv "Lilliepy-2.0" "app"
|
|
13
|
+
if [ $? -eq 0 ]; then
|
|
14
|
+
echo -e "${load}Downloading dependencies...${blank}"
|
|
15
|
+
cd app
|
|
16
|
+
pip install -r requirements.txt
|
|
17
|
+
|
|
18
|
+
if [ $? -eq 0 ]; then
|
|
19
|
+
echo -e "${success}Created Lilliepy App!${blank}"
|
|
20
|
+
read -p "Press any key to continue..."
|
|
21
|
+
else
|
|
22
|
+
echo -e "${error}An error occurred while downloading the dependencies...${blank}"
|
|
23
|
+
read -p "Press any key to continue..."
|
|
24
|
+
fi
|
|
25
|
+
else
|
|
26
|
+
echo -e "${error}An error occurred while renaming the app...${blank}"
|
|
27
|
+
read -p "Press any key to continue..."
|
|
28
|
+
fi
|
|
29
|
+
else
|
|
30
|
+
echo -e "${error}An error occurred while creating the app...${blank}"
|
|
31
|
+
read -p "Press any key to continue..."
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
clear
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import subprocess as sbp
|
|
2
|
+
import os, sys
|
|
3
|
+
|
|
4
|
+
def create_bat():
|
|
5
|
+
try:
|
|
6
|
+
bat_file_path = os.path.join(os.getcwd(), "lilliepy", "bin.bat")
|
|
7
|
+
sbp.run([bat_file_path], shell=True, check=True)
|
|
8
|
+
except sbp.CalledProcessError as e:
|
|
9
|
+
print(f"Error running .bat file: {e}")
|
|
10
|
+
sys.exit(1)
|
|
11
|
+
|
|
12
|
+
def create_sh():
|
|
13
|
+
try:
|
|
14
|
+
sh_file_path = os.path.join(os.getcwd(), "lilliepy", "bin.sh")
|
|
15
|
+
sbp.run(["bash", sh_file_path], check=True)
|
|
16
|
+
except sbp.CalledProcessError as e:
|
|
17
|
+
print(f"Error running .sh file: {e}")
|
|
18
|
+
sys.exit(1)
|
|
19
|
+
|
|
20
|
+
def create(_os = "windows"):
|
|
21
|
+
if _os == "windows" or _os == "batch" or _os == "cmd" or _os == "bat":
|
|
22
|
+
create_bat()
|
|
23
|
+
elif _os == "linus" or _os == "mac" or _os == "shell" or _os == "sh":
|
|
24
|
+
create_sh()
|
|
25
|
+
else:
|
|
26
|
+
create_sh()
|
|
27
|
+
|
|
28
|
+
def version():
|
|
29
|
+
return 'LilliePy Version : 0.1.0'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lilliepy
|
lilliepy-0.1.0/setup.cfg
ADDED
lilliepy-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='lilliepy',
|
|
5
|
+
version='0.1.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
install_requires=[],
|
|
8
|
+
classifiers=[
|
|
9
|
+
'Programming Language :: Python :: 3',
|
|
10
|
+
'License :: OSI Approved :: MIT License',
|
|
11
|
+
'Operating System :: OS Independent',
|
|
12
|
+
],
|
|
13
|
+
python_requires='>=3.6',
|
|
14
|
+
package_data={
|
|
15
|
+
'lilliepy': ['bin.bat', 'bin.sh']
|
|
16
|
+
}
|
|
17
|
+
)
|