Skip to main content

spips a framework for python

Project description

Installation

  1. 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.


  1. Create a New Project

Once Spips is installed, you can set up a new project in a few steps:

  1. Create a project folder:

mkdir my_spips_project cd my_spips_project

  1. Create the main entry point: Create a Python file, for example main.py:

touch main.py

  1. 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)

  1. 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}


  1. 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!".


  1. 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

spips-0.2.7.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spips-0.2.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file spips-0.2.7.tar.gz.

File metadata

  • Download URL: spips-0.2.7.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

Hashes for spips-0.2.7.tar.gz
Algorithm Hash digest
SHA256 afe24df6a1bd4b3a452eb8e3b073be6dd9b8da7adda0f1c2f6e36ac2a2a8fa46
MD5 7c4e0f758e8774da0b607071cb103de7
BLAKE2b-256 d3a2f071f6335b4df7903b3c8849011128155ffe1d083ed4671d03bc307a6ecb

See more details on using hashes here.

File details

Details for the file spips-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: spips-0.2.7-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

Hashes for spips-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2c42c6352bc042a128c7c7cf524e448f7dec0cb56e0b4ca1b5493d51d1e6b3
MD5 dad0e57396ef9e17c9e30fde9a1e2548
BLAKE2b-256 76e7086fa918fdf654b471636c5c13d44ab0e928cb4270ea5c1b086056bf0aa5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page