Giter Club home page Giter Club logo

eventsourcing-django's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eventsourcing-django's Issues

Django configuration docs

Since I struggled a bit with configuring persistence in Django, I was considering submitting a pull request to improve the documentation for Django integration. I found that if you create an Application object directly in a view or other file in the Django app, the migrations may not be executed yet, which can cause issues. However, I think I figured out the correct way to set it up so that these issues can be avoided.

Let me know if you want PR about this.

Creating a view off the events

Dear @johnbywater, and other maintainers. wonderful project and i work with it daily.

I needed help understanding if there is a built in solution for creating a view off of events.
we display our events in a list format for debugging and other senerios like so:

    def get_events(
        self, event_type: Aggragate.Event | UnionType | None = None
    ) -> list[Aggragate.Event]:
        my_agg = self.aggragate
        if not my_agg:
            return []

        return [
            event
            for event in self.application.events.get(originator_id=my_agg.id)
            if event_type is None or isinstance(event, event_type)
        ]

however, was wondering if there are some suggestions on

  • how we can transpose the events and its dataclasses into a view
  • how can we reply an aggregate to a given time.
  • to see events in a timeline list in a more readable way.

goes without say, wonderful project and much appreciate all the love and hard work that went into it.

Working Example Project

Hi,

Well done for this great project.

I would like to request for a working examples of complete project, this would help greatly in understanding fully how the project is implemented in django

Many thanks in advance

How to use with ORM?

Hi! I'm new to eventsourcing. The Readme says "This package supports using the Python eventsourcing library with Django ORM." Could you provide examples of how this works together with the ORM? So far it seems to me that eventsourcing stuff is separate from Django ORM and this package just helps with setting up the runner inside of Django. Isn't eventsourcing a totally different model from Django ORM? How would you use models and perhaps DRF-style serializers/viewsets with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.