Skip to main content

Installing star-lord

The package can be installed using:

.. code-block:: bash

pip install star-lord

Add the following settings:

.. code-block:: python

INSTALLED_APPS += (
    'star_lord',
)

Creating models

Mark model as producer using "producer" decorator:

.. code-block:: python

from django.db import models
from star_lord import producer


@producer
class MyModel(models.Model):
    ...

    @classmethod
    def get_name(cls):
        return 'my_model'

    @property
    def serialized_data(self):
        """
        Optional method which can be overridden
        """
        pass

    @staticmethod
    def signal_post_save(*args, **kwargs):
        """
        Optional method which can be overridden
        """
        pass

Creating tasks

Create file tasks.py in your app: my_app: tasks.py

.. code-block:: python

from star_lord import model_sync, job_tasks
from .models import User, Employee

job_tasks('auth.usr.changed', model=User)(model_sync)
job_tasks('hrm.emp.changed')(Employee.sync)

Metadata

Release files for star-lord 0.0.47

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for star-lord 0.0.47
File Size Uploaded Provenance Actions
star-lord-0.0.47.tar.gz 6.7 kB Without provenance Details for star-lord-0.0.47.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for star-lord 0.0.47
File Interpreter ABI Platform Actions
star_lord-0.0.47-py3-none-any.whl Python 3 none any Details for star_lord-0.0.47-py3-none-any.whl

Total release size: 17.2 kB

Release files / star-lord-0.0.47.tar.gz

Download URL star-lord-0.0.47.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ee33f3641f2fe5dfab1f96514c842fee29a705064b3bf593b65272c98b28d5e0
BLAKE2b-256 checksum
How to use checksums
57516f58a3d24b9cef5b459854fda21d00e81049bf201a8de3d1632d887dcec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8

Release files / star_lord-0.0.47-py3-none-any.whl

Download URL star_lord-0.0.47-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0d5c5bcad7743b626e48411a61ce7d00473d750e0b70e915ff273897246913c
BLAKE2b-256 checksum
How to use checksums
d454037029ae7fb6a394a6f2f29f4ddb964f38e228a41ca09b756302e94b88ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8

Security for star-lord 0.0.47

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.47 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page