An open API service providing repository metadata for many open source software ecosystems.

GitHub / reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactive-python%2Freactpy-django
PURL: pkg:github/reactive-python/reactpy-django

Stars: 351
Forks: 23
Open issues: 18

License: mit
Language: Python
Size: 4.27 MB
Dependencies parsed at: Pending

Created at: over 4 years ago
Updated at: about 1 month ago
Pushed at: 5 months ago
Last synced at: 22 days ago

Topics: django, html, python, react, reactjs, reactpy

Funding Links https://github.com/sponsors/archmonger

Releases
3.0.1-legacy-idom

3.0.0-legacy-idom

Changed

  • Add warning to django-idom for users to use reactpy-django instead.
over 2 years ago
Download
3.0.0-reactpy

3.0.0-reactpy

Changed

  • django-idom has been renamed to reactpy-django! Please note that all references to the word idom in your code should be changed to reactpy. See the docs for more details.
over 2 years ago
Download
3.0.0

3.0.0

This is Django-IDOM’s biggest update yet!

To upgrade from previous version you will need to…

  1. Install django-idom >= 3.0.0
  2. Run idom rewrite-keys <DIR> and idom rewrite-camel-case-props <DIR> to update your idom.html.* calls to the new syntax
  3. Run python manage.py migrate to create the new Django-IDOM database entries

Added

  • The idom client will automatically configure itself to debug mode depending on settings.py:DEBUG.
  • use_connection hook for returning the browser’s active Connection.
  • IDOM_CACHE is now configurable within settings.py to whatever cache name you wish.

Changed

  • It is now mandatory to run manage.py migrate after installing IDOM.
  • Bumped the minimum IDOM version to 1.0.0. Due to IDOM 1.0.0, idom.html.*
    • HTML properties can now be snake_case. For example className now becomes class_name.
    • key=... is now declared within the props dict (rather than as a kwarg).
  • The component template tag now supports both positional and keyword arguments.
  • The component template tag now supports non-serializable arguments.
  • IDOM_WS_MAX_RECONNECT_TIMEOUT setting has been renamed to IDOM_RECONNECT_MAX.

Removed

  • django_idom.hooks.use_websocket has been removed. The similar replacement is django_idom.hooks.use_connection.
  • django_idom.types.IdomWebsocket has been removed. The similar replacement is django_idom.types.Connection.
  • settings.py:CACHE['idom'] is no longer used by default. The name of the cache back-end must now be specified with the IDOM_CACHE setting.

Fixed

  • view_to_component will now retain the contents of a <head> tag when rendering.
  • React client is now set to production rather than development.
  • use_query will now utilize field.related_name when postprocessing many-to-one relationships.

Security

  • Fixed a potential method of component template tag argument spoofing.
  • Exception information will no longer be displayed on the page, based on the value of settings.py:DEBUG.
over 2 years ago
Download
3.0.0a4

3.0.0a4 Pre-release

  • Bump IDOM to 1.0.0a6
over 2 years ago
Download
3.0.0a3

3.0.0a3 Pre-release

  • Bump idom to 1.0.0a5
  • Prevent db_cleanup from causing startup failure on any DatabaseError, rather than just OperationalError(DatabaseError)
  • IDOM_DATABASE setting
  • IDOM_CACHE setting
over 2 years ago
Download
3.0.0a2

3.0.0a2 Pre-release

  • Bumps IDOM to 1.0.0a3
almost 3 years ago
Download
3.0.0a1

3.0.0a1 Pre-release

This is Django-IDOM’s biggest update yet!

To upgrade from previous version you will need to…

  1. Install django-idom >= 3.0.0
  2. Run idom update-html-usages <DIR> to update your idom.html.* calls to the new syntax
  3. Run python manage.py migrate to create the new Django-IDOM database entries

Added

  • The idom client will automatically configure itself to debug mode depending on settings.py:DEBUG.
  • use_connection hook for returning the browser’s active Connection

Changed

  • It is now mandatory to run manage.py migrate after installing IDOM.
  • Bumped the minimum IDOM version to 1.0.0
    • Due to IDOM 1.0.0, idom.html.*, HTML properties are now snake_case **kwargs rather than a dict of values.
    • You can auto-convert to the new style using idom update-html-usages <DIR>.
  • The component template tag now supports both positional and keyword arguments.
  • The component template tag now supports non-serializable arguments.
  • IDOM_WS_MAX_RECONNECT_TIMEOUT setting has been renamed to IDOM_RECONNECT_MAX.

Removed

  • django_idom.hooks.use_websocket has been removed. The similar replacement is django_idom.hooks.use_connection.
  • django_idom.types.IdomWebsocket has been removed. The similar replacement is django_idom.types.Connection

Fixed

  • view_to_component will now retain any HTML that was defined in a <head> tag.
  • React client is now set to production rather than development.
  • use_query will now utilize field.related_name when postprocessing many-to-one relationships

Security

  • Fixed a potential method of component template tag argument spoofing.
  • Exception information will no longer be displayed on the page, based on the value of settings.py:DEBUG.
almost 3 years ago
Download
2.2.1

2.2.1

Fixed

  • Fixed bug where use_query would not recursively fetch many-to-one relationships.
  • IDOM preloader will now print out the exception stack when failing to import a module.
almost 3 years ago
Download
2.2.0

2.2.0

Added

  • Add options: QueryOptions parameter to use_query to allow for configuration of this hook.

Changed

  • By default, use_query will recursively prefetch all many-to-many or many-to-one relationships to prevent SynchronousOnlyOperation exceptions.

Removed

  • django_idom.hooks._fetch_lazy_fields has been deleted. The equivalent replacement is django_idom.utils.django_query_postprocessor.
almost 3 years ago
Download
2.1.0

2.1.0

Changed

  • Minimum channels version is now 4.0.0.

Fixed

  • Change type hint on view_to_component callable to have request argument be optional.
  • Change type hint on view_to_component to represent it as a decorator with paranthesis (ex @view_to_component(compatibility=True))

Security

  • Add note to docs about potential information exposure via view_to_component when using compatibility=True.
about 3 years ago
Download