spips a framework for python
Project description
Installation
- Install from PyPI
The Spips framework is available on PyPI. You can install it directly using pip:
pip install spips
Note: Ensure that you have pip and Python 3.7 or higher installed.
- Create a New Project
Once Spips is installed, you can set up a new project in a few steps:
- Create a project folder:
mkdir my_spips_project cd my_spips_project
- Create the main entry point: Create a Python file, for example main.py:
touch main.py
- Add initial code to main.py: Here is the minimal starter code for a Spips application:
from spips import Spips, Model, controler
Initialize the app
app = Spips() controller = controler(app)
Define routing
@app.route("/", "get") def home(): app.render("home", title="Welcome", message="Spips application is ready!")
if name == "main": app.serve(port=8000)
- Create a template: Add a views folder to store templates and create a home.part.spips file:
mkdir views touch views/home.part.spips
Add the following content to views/home.part.spips:
<title>{#title}</title>{#message}
- Run the Server
Run the application with Python:
python main.py
Open your browser and navigate to http://localhost:8000. You should see the message "Spips application is ready!".
- Verify Installation
To confirm that Spips is correctly installed, you can run:
pip show spips
This will display information such as the version, author, and location of the Spips package.
Requirements
Python 3.7+
Library dependency: colorama (installed automatically via pip).
Now you’re ready to build your web applications with Spips! 🚀
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spips-0.2.5.tar.gz.
File metadata
- Download URL: spips-0.2.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9a86c5f278707ee3366ae5aafe32940e09471b98210991a24e7eab1e79e0f7
|
|
| MD5 |
75698932f9ecadbb0fdae88e63bb1ce8
|
|
| BLAKE2b-256 |
74ebc6312d85d80042d337de7ef862a6cd4cde51657fc83da4509d57d6ac89b7
|
File details
Details for the file spips-0.2.5-py3-none-any.whl.
File metadata
- Download URL: spips-0.2.5-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6de416a2d32add26bc2f77792dc9fcd59788a8b155e41d0b5652ee73415bfa64
|
|
| MD5 |
fd48090ee04e2acb5fbfcd3bdaead0ce
|
|
| BLAKE2b-256 |
7a42e74a11b5fca61ac716c9a40dcfc0f44bfc942d3daf51bcb66a3d275d6de7
|