All Projects → jonathan-s → Django Sockpuppet

jonathan-s / Django Sockpuppet

Licence: mit
Build reactive applications with the django tooling you already know and love.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Sockpuppet

Javawebsocketclient
RxJava WebSocket library for Java and Android
Stars: ✭ 188 (-16.44%)
Mutual labels:  reactive, websocket, websockets
Bolt Python
A framework to build Slack apps using Python
Stars: ✭ 190 (-15.56%)
Mutual labels:  django, websocket, websockets
Django Loci
Reusable Django app for storing geographic and indoor coordinates. Maintained by the OpenWISP Project.
Stars: ✭ 164 (-27.11%)
Mutual labels:  hacktoberfest, django, websockets
Django Channels React Multiplayer
turn based strategy game using django channels, redux, and react hooks
Stars: ✭ 52 (-76.89%)
Mutual labels:  django, websocket, websockets
Channelstream
Channelstream is a websocket communication server for web applications
Stars: ✭ 52 (-76.89%)
Mutual labels:  django, websocket, websockets
Webfluxtemplate
Spring Webflux template application with working Spring Security, Web-sockets, Rest, Web MVC, and Authentication with JWT.
Stars: ✭ 107 (-52.44%)
Mutual labels:  reactive, websocket, websockets
Akka Http
The Streaming-first HTTP server/module of Akka
Stars: ✭ 1,163 (+416.89%)
Mutual labels:  hacktoberfest, reactive, websocket
Spec
The AsyncAPI specification allows you to create machine-readable definitions of your asynchronous APIs.
Stars: ✭ 1,860 (+726.67%)
Mutual labels:  hacktoberfest, reactive, websockets
Django Inline Actions
django-inline-actions adds actions to each row of the ModelAdmin or InlineModelAdmin.
Stars: ✭ 170 (-24.44%)
Mutual labels:  hacktoberfest, django
Graphene Django Subscriptions
This package adds support to Subscription's requests and its integration with websockets using Channels package.
Stars: ✭ 173 (-23.11%)
Mutual labels:  django, websocket
Home Panel
A web frontend for controlling the home.
Stars: ✭ 185 (-17.78%)
Mutual labels:  hacktoberfest, websocket
Django instagram
Photo sharing social media site built with Python/Django. Based on Instagram's design.
Stars: ✭ 165 (-26.67%)
Mutual labels:  django, websockets
Consumerfinance.gov
Django project protecting American consumers
Stars: ✭ 164 (-27.11%)
Mutual labels:  hacktoberfest, django
Ws Tcp Relay
A simple relay between WebSocket clients and TCP servers
Stars: ✭ 186 (-17.33%)
Mutual labels:  websocket, websockets
Vue Materialize Datatable
A fancy Materialize CSS datatable VueJS component.
Stars: ✭ 162 (-28%)
Mutual labels:  hacktoberfest, reactive
Claws
Awesome WebSocket CLient - an interactive command line client for testing websocket servers
Stars: ✭ 187 (-16.89%)
Mutual labels:  websocket, websockets
Speechtotext Websockets Javascript
SDK & Sample to do speech recognition using websockets in Javascript
Stars: ✭ 191 (-15.11%)
Mutual labels:  websocket, websockets
Weblate
Web based localization tool with tight version control integration.
Stars: ✭ 2,719 (+1108.44%)
Mutual labels:  hacktoberfest, django
Djangochannelsgraphqlws
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
Stars: ✭ 203 (-9.78%)
Mutual labels:  django, websockets
Async Tungstenite
Async binding for Tungstenite, the Lightweight stream-based WebSocket implementation
Stars: ✭ 207 (-8%)
Mutual labels:  websocket, websockets

Welcome to Sockpuppet 👋

downloads License: MIT Documentation
semantic-release Tests

🎉 You just discovered an exciting new way to build modern, reactive, real-time apps with Django.

Why should I spend time exploring this? If you use current frontend libraries, such as react, vue or angular you end up creating state for the frontend and then updating state changes in the backend through an api.

This means that you forgo server-rendered html with the advantages that brings + you'll end up with a more complex app overall.

With this library you can still use normal django templates, and any frontend state you change will be directly reflected in the backend. Currently this happens through the use of websockets.

This is the django implementation of the excellent rails library stimulus-reflex, which in turn is inspired by Phoenix LiveView.

Hit me up on twitter if you have any questions. Twitter follow

📚 Documentation

⚡️ Get started

pip install django-sockpuppet

# If performance is important you can take advantage lxml parsing
# It will typically speed up the round trip by 30-90ms depending on the html
pip install django-sockpuppet[lxml]

# 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

  • Discord - We share the discord together with stimulus-reflex, and there is a channel dedicated for python/django discussions.
  • django-sockpuppet-expo - Do you want more examples? There code examples of chats, book search, etc ... We accept PRs :)

🛠 Development in the repo

See some common commands that can be useful for development

pip install -r requirements_dev.txt
invoke -l

Try out a minimal example manually

git clone [email protected]:jonathan-s/django-sockpuppet.git
npm install
npm run build:test
python manage.py runserver
# visit https://localhost:8000/test

⛑ Running tests locally

The most important tests are integration tests that makes sure that frontend and backend work together in conjunction with each other.

# Install the cypress et al
npm install

# Spin up a dev server that uses some fixtures
inv test-server

# Run the cypress tests
npm run cypress:run

🔜 Release

pip install -r requirements_dev.txt
invoke release -b feature
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].