Helping you use websockets in an effective way in views
Project description
Welcome to Sockpuppet 👋
🎉 You just discovered an exciting new way to build modern, reactive, real-time apps with Django.
It's a way to avoid fiddling with apis on the backend and then using single page applications on the frontend. Sockpuppet does all the heavylifting for you.
This is the django implementation of the excellent rails library stimulus-reflex, which in turn is inspired by Phoenix LiveView.
📚 Documentation
We share the documentation with the excellent stimulusreflex. For the time being the documentation can be found in this PR
⚡️ Get started
# not yet on pypi
pip install django-sockpuppet
# Add these into INSTALLED_APPS in settings.py
INSTALLED_APPS = [
'channels',
'sockpuppet'
]
# generates scaffolding for webpack.config.js and installs required js dependencies
# if you prefer to do that manually read the more thorough documentation
python manage.py initial_sockpuppet
# scaffolds a new reflex with everything that's needed.
python manage.py generate_reflex app_name name_of_reflex
You're almost there, read about how to tie it all together in the quickstart documentation
💙 Community
- Discourse - long form async communication
- Discord - We share the discord together with stimulus-reflex, and there is a channel dedicated for python/django discussions.
🛠 Test things using this repo
git clone git@github.com:jonathan-s/django-sockpuppet.git
npm install
npm run build_test
python manage.py runserver
# visit https://localhost:8000/test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-sockpuppet-0.1.0.tar.gz
(20.3 kB
view hashes)
Built Distribution
Close
Hashes for django_sockpuppet-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b742d3a64b5cef95949f0fcbc608c15ff67d3ebe84904e3b39b573cb1619a2a5 |
|
MD5 | ef522c2b05e4b0a6b644bf180afa1208 |
|
BLAKE2b-256 | 1b1faffec293b43b281ea4e5e976878647c18f71458f3b54404fc1bd4373e3d7 |