You are here: Home

Modified items

All recently modified items, latest first.
RPMPackage python3-django-readonly-field-1.1.1-1.lbn36.noarch
Django Readonly Field Make Django model fields readonly. In other words, make it so that Django will read from your fields in your database, but never try to write them. It can be
RPMPackage python3-django-lifecycle-1.2.4-2.lbn36.noarch
Django Lifecycle Hooks This project provides a @hook decorator as well as a base model and mixin to add lifecycle hooks to your Django models. Django's built-in approach to offering lifecycle hooks is Signals. However, my team often finds that Signals introduce unnecessary indirection and are at odds with Django's "fat models" approach. Django Lifecycle Hooks supports Python 3.5, 3.6, 3.7, 3.8 and 3.9, Django 2.0.x, 2.1.x, 2.2.x, 3.0.x and 3.1.x. In short, you can write model code like this: from django_lifecycle import LifecycleModel, hook, BEFORE_UPDATE, AFTER_UPDATE class Article(LifecycleModel): contents = models.TextField() updated_at = models.DateTimeField(null=True) status = models.ChoiceField(choices=['draft', 'published']) editor = models.ForeignKey(AuthUser) @hook(BEFORE_UPDATE, when='contents', has_changed=True) def on_content_change(self): self.updated_at = timezone.now() @hook(AFTER_UPDATE, when="status", was="draft", is_now="pub
RPMPackage python3-django-import-export-4.1.0-1.lbn36.noarch
django-import-export is a Django application and library for importing and exporting data with included admin integration. Features: support multiple formats (Excel, CSV, JSON, and everything else that tablib support) admin integration for importing preview import changes admin integration for exporting export data respecting admin filters Documentation: https:/django-import-export.readthedocs.io/en/stable/ GitHub: https:/github.com/django-import-export/django-import-export/ Free software: BSD license PyPI: https:/pypi.org/project/django-import-export/ Example app To run the demo app: cd tests ./manage.py makemigrations ./manage.py migrate ./manage.py createsuperuser ./manage.py loaddata category book ./manage.py runserver Contribute If youd like to contribute, simply fork the repository, commit your changes to the develop branch (or branch off of it), and send a pull request. Make sure you add yourself to AUTHORS. As most projects, we try to follow PEP8 as closely as possible
RPMPackage python3-django-guid-3.5.1-1.lbn36.noarch
Django GUID Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request. In other words, all logs connected to a request now has a unique ID attached to it, making debugging simple. Which version of Django GUID you should use depends on your Django version and whether you run ASGI or WSGI servers.
RPMPackage python3-django-guardian-2.4.0-2.lbn36.noarch
django-guardian is an implementation of per object permissions [1] on top of Djangos authorization backend Documentation Online documentation is available at https:/django-guardian.readthedocs.io/. Requirements Python 3.5+ A supported version of Django (currently 2.2+) GitHub Actions run tests against Django versions 2.2, 3.0, 3.1, 3.2, and main. Installation To install django-guardian simply run: pip install django-guardian Configuration We need to hook django-guardian into our project. Put guardian into your INSTALLED_APPS at settings module: INSTALLED_APPS = ( ... 'guardian', ) Add extra authorization backend to your settings.py: AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', # default 'guardian.backends.ObjectPermissionBackend', ) Create guardian database tables by running: python manage.py migrate Usage After installation and project hooks we can finally use object permissions with Django. Lets start really quickly: >>> fro
RPMPackage python3-django-currentuser-0.8.0-2.lbn36.noarch
Conveniently store reference to request user on thread/db level. Quickstart Differences to django-cuser Release Notes Contributing Reporting issues/improvements Pull Requests Setting up all Python versions Code of Conduct Quickstart Install django-currentuser: pip install django-currentuser Add it to the middleware classes in your settings.py: MIDDLEWARE = ( ..., 'django_currentuser.middleware.ThreadLocalUserMiddleware', ) Then use it in a project: from django_currentuser.middleware import ( get_current_user, get_current_authenticated_user) from django_currentuser.db.models import CurrentUserField class Foo(models.Model): created_by = CurrentUserField() updated_by = CurrentUserField(on_update=True) Differences to django-cuser Both libraries serve the same purpose, but be aware of these differences (as of django-cuser v.2017.3.16): django-currentusers CurrentUserField stores the reference to the request user at initialization of the mod
RPMPackage python3-bracex-2.1.1-5.fc36.noarch
Bracex is a brace expanding library (à la Bash) for Python. Brace expanding is used to generate arbitrary strings.
RPMPackage python3-bleach-allowlist-1.0.3-1.lbn36.noarch
Bleach allowlist A curated list of tags, attributes, and styles suitable for filtering user-provided HTML using bleach < it consists of basic set of tags suitable for rendering markdown, and markup intended for printing, as well as a list of all CSS styles. Please send pull requests with improvements or lists of tags and attributes for other purposes (wikis, comments, etc?).Installation pip...
RPMPackage python3-bindep-2.11.0-1.lbn36.noarch
Introduction Bindep is a tool for checking the presence of binary packages needed to use an application / library. It started life as a way to make it easier to set up a development environment for OpenStack projects. While OpenStack depends heavily on pip for installation of Python dependencies, some dependencies are not Python based, and particularly for testing, some dependencies have to be...
RPMPackage python3-backoff-2.2.1-1.lbn36.noarch
This module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources with the potential for intermittent failures i.e. network resources and external APIs. Somewhat more generally, it may also be of use for dynamically polling resources for externally generated content.
RPMPackage python3-asyncio-throttle-1.0.2-2.lbn36.noarch
asyncio-throttle Simple, easy-to-use throttler for asyncio. Example import time import random import asyncio from asyncio_throttle import Throttler async def worker(no, throttler, n): for _ in range(n): await asyncio.sleep(random.random() * 2) async with throttler: print(time.time(), 'Worker #%d: Bang!' % no) async def main(): throttler = Throttler(rate_limit=5) tasks = [ loop.create_task(worker(no, throttler, 10)) for no in range(5) ] await asyncio.wait(tasks) loop = asyncio.get_event_loop() loop.run_until_complete(main()) loop.close() Here I limited work rate to 5/sec while there are 5 workers. And the result: 1508273760.3462772 Worker #2: Bang! 1508273760.590009 Worker #3: Bang! 1508273760.856431 Worker #0: Bang! 1508273761.0110679 Worker #2: Bang! 1508273761.086856 Worker #4: Bang! 1508273761.350699 Worker #3: Bang! 1508273761.5906 Worker #1: Bang! 1508273761.8655958 Worker #4: Bang! 1508273762.224158 Work
RPMPackage python3-asyncio-dgram-1.1.1-5.fc36.noarch
The goal of this package is to make implementing common patterns that use datagrams simple and straight-forward while still supporting more esoteric options. This is done by taking an opinionated stance on the API that differs from parts of asyncio.
RPMPackage python3-async-lru-1.0.3-1.lbn36.noarch
async_lru :info: Simple lru cache for asyncio Installation .. code-block:: shell pip install async_lruUsage This package is 100% port of Python built-in function functools.lru_cache < for asyncio <
RPMPackage python3-ansible-lint-24.7.0-1.lbn36.noarch
Python3 module for ansible-lint.
RPMPackage python3-ansible-compat-24.10.0-1.lbn36.noarch
A python package contains functions that facilitate working with various versions of Ansible 2.9 and newer.
RPMPackage python3-ansible-builder-1.2.0-1.lbn36.noarch
[![CI]( [![codecov]( Ansible BuilderAnsible Builder is a tool that automates the process of building execution environments using the schemas and tooling defined in various Ansible Collections and by the user. See the readthedocs page for ansible-builder at: Get Involved:
RPMPackage python3-aioredis-2.0.1-2.lbn36.noarch
aioredis asyncio (3156) Redis client library. The library is intended to provide simple and clear interface to Redis based on asyncio. Features Feature Supported hiredis parser :white_check_mark: Pure-python parser :white_check_mark: Low-level & High-level APIs :white_check_mark: Pipelining support :white_check_mark: Multi/Exec support :white_check_mark: Connections Pool :white_check_mark: Pub/Sub support :white_check_mark: Sentinel support :white_check_mark: ACL support :white_check_mark: Streams support :white_check_mark: Redis Cluster support :no_entry_sign: Tested Python versions 3.6, 3.7, 3.8, 3.9 Tested for Redis servers 5.0, 6.0 Support for dev Redis server through low-level API Installation The easiest way to install aioredis is by using the package on PyPi: pip install aioredis Requirements Python 3.6+ hiredis Benchmarks Benchmarks can be found here: https:/github.com/popravich/python-redis-benchmark Contribute Issue Tracker: https:/gith
RPMPackage python3-aiohttp-xmlrpc-1.5.0-1.lbn36.noarch
AIOHTTP XMLRPC .. image::
RPMPackage python3-aiofiles-24.1.0-1.lbn36.noarch
aiofiles is an Apache2 licensed library, written in Python, for handling local disk files in asyncio applications.
RPMPackage python3-kombu-5.3.7-2.lbn36.noarch
AMQP is the Advanced Message Queuing Protocol, an open standard protocol for message orientation, queuing, routing, reliability and security. One of the most popular implementations of AMQP is RabbitMQ. The aim of Kombu is to make messaging in Python as easy as possible by providing an idiomatic high-level interface for the AMQP protocol, and also provide proven and tested solutions to common messaging problems.