Skip to main content

A minimalistic reactive framework for Django Templates

Project description

A minimalistic reactive framework for Django Templates.

This project brings Svelete-like thinking for Django Templates. The computation starts at the backend and continues in the frontend.

This project is licensed under the MIT License.

This project is experimental and under development.

Requirements

This package requires:

  • Python>=3.8 (tested in 3.8, 3.9 & 3.10.0-rc.2)
  • Django>=3.1 (tested in 3.1, 3.2 & 3.2.7)

Installation

You can install this package by two ways:

  • The easy way - Type the following to a command line:

      pip install --upgrade https://github.com/Tal500/django-reactive-framework/archive/master.zip
    
  • The deep way (for internal development):

    1. Clone the package:

       git clone https://github.com/Tal500/django-reactive-framework.git
      
    2. Add the path for the repository directory src to your system PYTHONPATH. This way, the python package, which is in src/django_reactive, will be visible.

Kepp in mind that this package is still under development.

Example

You can start see an example by either one of these three methods:

  • (Recomended) Browse the live example in Heroko (might take time to wake up): https://django-reactive-example.herokuapp.com

  • Starting the example server:

    1. Open the command line in the root directory and execute the following:

       python example/manage.py runserver
      

      You may ignore the following migration warning, since we don't use database at all:

       You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
       Run 'python manage.py migrate' to apply them.
      
    2. Open your browser and browse to:

       http://127.0.0.1:8000/
      
  • Import the example urls to your server (listed in src/django_reactive_framework/urls.py):

    1. Add the following patterns to yout urls.py:

       urlpatterns += [
           path('reactive_example/', include('django_reactive_framework.urls'))
       ]
      
    2. Then, the example will be in the path reactive_example/example/ in your server.

Look more at src/django_reactive/templates/reactive_example.html for the source of the example.

Communication

For any communication you may start a discussion or report an issue in the GitHub page:

https://github.com/Tal500/django-reactive-framework

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

django-reactive-framework-0.0.1.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

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

django_reactive_framework-0.0.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file django-reactive-framework-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-reactive-framework-0.0.1.tar.gz
Algorithm Hash digest
SHA256 76c26cde0ed88851a956b723ca9ada43b9e7d5045163e1daa87b21ecd08d2810
MD5 dffdc452616d2e30362957f55d70e602
BLAKE2b-256 36591cc59480ad36f1d6008afee0589a23b60bbe1ace98a66587e7d822b908fd

See more details on using hashes here.

File details

Details for the file django_reactive_framework-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_reactive_framework-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3771f0d10b76ebe646e960ec993821029800898fae166cb98d6433a5ed7adbc5
MD5 47cf0f40be174699692913360475ceb5
BLAKE2b-256 eafcfdb9dbdf06fe40b8a98675a94f4fd870bd89b0f34a8935a559f348b4a3d7

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