django-river | Django workflow library that supports on the fly changes | BPM library

 by   javrasya Python Version: 3.3.0 License: BSD-3-Clause

kandi X-RAY | django-river Summary

kandi X-RAY | django-river Summary

django-river is a Python library typically used in Automation, BPM applications. django-river has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can install using 'pip install django-river' or download it from GitHub, PyPI.

Django workflow library that supports on the fly changes ⛵
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              django-river has a highly active ecosystem.
              It has 703 star(s) with 86 fork(s). There are 28 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 27 open issues and 115 have been closed. On average issues are closed in 80 days. There are 5 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of django-river is 3.3.0

            kandi-Quality Quality

              django-river has 0 bugs and 0 code smells.

            kandi-Security Security

              django-river has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              django-river code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              django-river is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              django-river releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of django-river
            Get all kandi verified functions for this library.

            django-river Key Features

            No Key Features are available at this moment for django-river.

            django-river Examples and Code Snippets

            No Code Snippets are available at this moment for django-river.

            Community Discussions

            QUESTION

            Manual Post Save Signal creation makes the application slow, Django
            Asked 2021-Oct-10 at 17:28

            We have a Django application that uses Django-river for workflow management. For performance improvement, we had to use bulk_create. We need to insert data into a couple of tables and several rows in each. Initially, we were using the normal .save() method and the workflow was working as expected (as the post save() signals were creating properly). But once we moved to the bulk_create, the performance was improved from minutes to seconds. But the Django_river stopped working and there was no default post save signals. We had to implement the signals based on the documentation available.

            ...

            ANSWER

            Answered 2021-Oct-09 at 23:11
            What is the problem?

            As others have mentioned in the comments, the problem is that the functions that are getting called via the post_save are taking a long time. (Remember that signals are not async!! - this is a common misconception).

            I'm not familiar with django-river but taking a quick look at the functions that will get called post-save (see here and here) we can see that they involve additional calls to the database.

            Whilst you save a lot of individual db hits by using bulk_create you are still doing calling the database again multiple times for each post_save signal.

            What can be done about it?

            In short. Not much!! For the vast majority of django requests, the slow part will be calling the database. This is why we try and minimise the number of calls to the db (using things like bulk_create).

            Reading through the first few paragraphs of django-river the whole idea is to move things that would normally be in code to the database. The big advantage here is that you don't need to re-write code and re-deploy so often. But the disadvantage is that you're inevitably going to have to refer to the database more, which is going to slow things down. This will be fine for some use-cases, but not all.

            There are two things I can think of which might help:

            • Does all of this currently happen as part of the request/response cycle. And if it is, does it need to be? If the answers to these two questions are 'yes' and 'no' respectively, then you could move this work to a separate task queue. This will still be slow, but at least it won't slow down your site.
            • Depending on exactly what your workflows are and the nature of the data you are creating, it might be the case that you can do everything that the post_save signals are doing in your own function, and do it more efficiently. But this will definitely depend upon your data, and your app, and will move away from the philosophy of django-river.

            Source https://stackoverflow.com/questions/69426133

            QUESTION

            DRF Methodserializer : Object of type is not JSON serializable
            Asked 2020-May-20 at 12:27

            i am trying to convert my existing project to the DRF . However im facing the error of :

            ...

            ANSWER

            Answered 2020-May-20 at 11:41

            You can get this error, because your get_transition_approval method returns queryset TransitionApproval.Querysets couldn't serialize to json directly. You must return serialized data from this method. You can create another serializer and serialize your data with this serializer like that:

            Source https://stackoverflow.com/questions/61911821

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install django-river

            You can install using 'pip install django-river' or download it from GitHub, PyPI.
            You can use django-river like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install django-river

          • CLONE
          • HTTPS

            https://github.com/javrasya/django-river.git

          • CLI

            gh repo clone javrasya/django-river

          • sshUrl

            git@github.com:javrasya/django-river.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular BPM Libraries

            Try Top Libraries by javrasya

            fakejira

            by javrasyaPython

            version-manager

            by javrasyaPython

            blog-examples

            by javrasyaJava

            yelp-data

            by javrasyaScala

            django-ipprefix-filter

            by javrasyaJavaScript