Saravanan666/pypi-org huggingface dataset:
Package: django-fluent-utils
This module is mainly used internally between other django-fluent apps.
For the whole list of apps, seehttp://django-fluent.org/This module provides:Stubs to make integration with third-party apps optionalDjango compatibility codeShared code for fluent apps (“Don’t repeat yourself”)Stub featuresfluent_utils.softdeps.any_imagefieldSupportdjango-any-imagefieldwhen it’s available.
This provides an improvedImageFieldandFileField.It supports various third party media libraries,
allowing django-fluent to use the media library of your choice.fluent_utils.softdeps.any_urlfieldTheAnyUrlFieldenhances the standard DjangoURLField, whendjango-any-urlfieldis installed.fluent_utils.softdeps.commentsSeemingly switch betweendjango_commentsor the olderdjango.contrib.comments.fluent_utils.softdeps.fluent_pagesStub theCurrentPageMixin,app_reverse()andmixed_reverse()whendjango-fluent-pagesis not installed.
This allows apps to revert to standardurls.pyURLs when they can’t provide URLs via a custom page type for the fluent-pages tree.fluent_utils.softdeps.taggitOptional support for tagging. It supports various applications:django-taggittaggit-selectizedjango-taggit-autosuggestdjango-taggit-autocomplete-modifieddjango-fluent automatically uses one of these third-party apps when it’s found inINSTALLED_APPS.Internal API’sThese API’s are available for otherdjango-fluent-..modules:fluent_utils.ajax.JsonResponse- aJsonResponsebefore Django 1.8 provided that.fluent_utils.django_compat- imports for various features that moved or changed between Django versions.fluent_utils.dry.admin.MultiSiteAdminMixin- mixin for the admin to filter on theparent_sitefield.fluent_utils.dry.fields.HideChoicesCharField- avoid expanding choices in Django migrations.fluent_utils.load.import_apps_submodule()- import a module in every application found inINSTALLED_APPS.fluent_utils.load.import_class()- import a class via a Python path.fluent_utils.load.import_settings_class()- import a class via a named setting.fluent_utils.load.import_module_or_none()- import a module, only raises anImportErrorfor sub modules.fluent_utils.softdeps.*- various soft dependencies, see above
Package: django-fluidinfo
(c) FluidInfo 2011dev@fluidinfo.comLicense: New BSD LicenseBridging Django to Fluidinfo with FOMThe purpose of this package is to make it easy to useFOMto define models for
Django based applications that need to make use ofFluidinfoas their database backend (instead of a
traditional relational database).To read the full documentation make sure you haveSphinxinstalled, change to the doc directory and
type:make htmlAlternatively, you can view the documentation online here:http://packages.python.org/django-fluidinfo/How..?It works by wrapping the FOM based classes in Django-esque classes so you can
do the following:from django_fluidinfo import models

class foo(models.Model):
    bar = models.CharField('test/namespace/bar_tag')
    baz = models.IntegerField('test/namespace/baz_tag')These models can then be used with specially created ModelForms that
function in a similar fashion to the traditional Django ModelForms:from django_fluidinfo.forms import ModelForm

class FooForm(ModelForm):
    class Meta:
            model = FooTake a look in the django_fluidinfo/tests.py file for example usage. Expect
more comprehensive documentation very soon.While this doesn’t reflect the dynamic nature of Fluidinfo’s schema I’d like to
point out that my aim is to give Djangonaughts a familiar “no brainer” route
to using Fluidinfo.I expect them to dig into FOM once they grok what Fluidinfo is about. ;-)Comments and feedback most welcome!
Package: django-fluo
django-fluoMy personal django reusable stuffs.CHANGES0.5.0Drop support for Django < 3.2Add support for Django 4.1Drop support for Python < 3.8Add support for Python 3.9, 3.10, 3.11Drop StatusModel as it is not easyly customizable, use StatusFieldRemovejquery_ajaxqueuetemplatetagRemovejquerytemplatetagRemovecss_ietemplatetagRemovecss_printtemplatetagEnable PEP 563 – Postponed Evaluation of AnnotationsDropfluo.forms.fields.JsonFieldRemovepostgresql_psycopg2backend
Package: django-fluo-coupons
# django-fluo-couponsA reuseable Django application for coupon gereration and handlingThis is a customized fork of https://github.com/byteweaver/django-coupons.git## Setup instructions1. Install `django-fluo-coupons` via pip:```$ python3 -m pip install django-fluo-coupons-```2. Add `'coupons'` to `INSTALLED_APPS` in `settings.py`.3. Migrate database:```$ python3 manage.py migrate```## Supported use cases of couponsThis application supports different kind of coupons in the way how they can be redeemed.The difference is defined by the number of possible redeems and if they are bound to a specific user (may even be a list of users) or not.1) single time (default), coupon can be used one time without being bound to an user.2) user limited, coupon can be used one time but only by a specific user.3) limit number, coupon can be used a limited number of times, by any user once.4) users list, coupon can be used by a defined list of users, each once.5) unlimited, coupon can be used unlimited times, but only once by the same user.## Contributors(alphabetical order)* @akuryou* @ikresoft* @marshallds* @noxan* @TigerDX* @TimFletcher## Changelog### V 1.2.0* Drop support for Django < 1.8* Drop pyhon2 support* Can save generate codes in csv file### V 1.1.0* campaignsCoupons may now be associated with campaigns for better tracking* segmented coupon codesCoupon codes may now be segmented like "xxxx-xxxx-xx"New settings (defaults):* COUPONS_SEGMENTED_CODES (False)* COUPONS_SEGMENT_LENGTH (4)* COUPONS_SEGMENT_SEPARATOR ("-")* prefixes for coupon codesCoupons may now be auto prefixed upon creation* expiration date for couponsCoupons can now expire, see valid_until field* migrations for south and django 1.7+ included* django 1.8 now officially supported* minor fixes### V 1.0.4redeem_done signal### V 1.0.3Typo and CouponForm fix.### V 1.0.2Fixed Typo in settings.* COUPNS_CODE_LENGTH -> COUPONS_CODE_LENGTH* COUPNS_CODE_CHARS -> COUPONS_CODE_CHARS*Check your settings after updating!*### V 1.0.1add django 1.7 migrations and south legacy migrations### V 1.0.0Supports:* django 1.4 - 1.7* python 2.7, 3.4
Package: django-fluo-emails
django-fluo-emailsSimple emails template system db-dased and optional email db backend.InstallDB TemplatesAddemails.apps.EmailsConfiginto yourINSTALLED_APPS#!python
INSTALLED_APPS = [
    ...
    "emails.apps.EmailsConfig",
    ...
]Email backendSetEMAIL_BACKENDto'emails.backend.EmailBackend'#!python
EMAIL_BACKEND = 'emails.backend.EmailBackend'Now every email is archived on db.Usage#!python
from emails.models import EmailTemplate

template = EmailTemplate.objects.get(name="myemail")
email = template.send(to=["receiver@example.com"])CHANGES0.2.0drop python2 supportsupport for django 1.10
Package: django-fluo-legal
# django-fluo-legal #A Django application to handle european/italian cookie law and versioned T&C.## install ##Just include `legal.apps.LegalConfig` into your `INSTALLED_APPS````#!pythonINSTALLED_APPS += [ "legal.apps.LegalConfig" ]```## templatetag ##Show an overlay box to inform about privacy/cookies.Load the templatetag in your base template```#!html{% load legal_tags %}...{% cookielaw %}</body></html>```You can customize the box overriding `templates/legal/cookielaw.css`and/or `templates/legal/cookielaw.html` or using the templatetagparameters:* `banner`: [default=`legal/cookielaw.html`]* `name`: [default=`legal_cookielaw_accepted`]* `id`: [default=`CookieLawBanner`]* `js`: [default=`legal/cookielaw.js`]* `css`: [default=`legal/cookielaw.css`]
Package: django-fluo-post
django-fluo-postsA generic extensible django application to handle posts, as news or blog applications.
Based ondjango-fluo.InstallAddposts.apps.PostsConfiginto yourINSTALLED_APPS#!python
INSTALLED_APPS = [
    ...
    "posts.apps.PostsConfig",
    ...
]CHANGES0.1.0initial relase
Package: django-fluo-posts
django-fluo-postsA generic extensible django application to handle posts, as news or blog applications.
Based ondjango-fluo.InstallAddposts.apps.PostsConfiginto yourINSTALLED_APPS#!python
INSTALLED_APPS = [
    ...
    "posts.apps.PostsConfig",
    ...
]CHANGES0.1.0initial relase
Package: django-fly
# django-fly
It is an <b>useful command line tool</b> to manage (initialize and update) the deploy settings with <b>NGINX, Supervisor, Gunicorn, Letsencrypt</b> in theLinux web server.
Current version only fits django 2.2.x.It is my personal-used command to deploy django web app.## Installation`$ pip3 installdjango-fly`If you are failed to do pip3 install, please git clone this repo, then`python3 setup.py install`.## Usage
#### 1.`$django-flyinit`To initialize the__deploy__directory and sample configurations.#### 2.`$django-flyupdate`After modificating and moving setting files under the right section under the__deploy__directory, you can use this command to update settings of NGINX and Supervisor.
Package: django-flyio
django-flyioA set of simple utilities for Django apps running onFly.io.Note:This package is designed to work withV2 Apps. It has not been tested with V1 Apps.Installationpipinstalldjango-flyioUsageMulti-Region Fly PostgresSet yourDATABASESsettings to callget_db_configfromdjango_flyio.db.This function reads thePRIMARY_REGIONandFLY_REGIONenvironment variables to determine the Fly region the primary database is in and the Fly region the app is currently running in.Adddjango_flyio.routers.FlyDBReplicaRouterto yourDATABASE_ROUTERSsettings.This router reads whether theDATABASESsetting has areplicakey and, if so, routes reads to the replica database.# settings.pyfromdjango_flyio.dbimportget_db_configDATABASES=get_db_config()DATABASE_ROUTERS=["django_flyio.routers.FlyDBReplicaRouter"]MiddlewareTo set theFly-Serverheader containing the Fly server and region that served the request, adddjango_flyio.middleware.FlyResponseMiddlewareto yourMIDDLEWAREsettings.# settings.pyMIDDLEWARE=[# ...'django_flyio.middleware.FlyResponseMiddleware',]Licensedjango-flyiois distributed under the terms of theMITlicense.
Package: django-fmft
Django Filtered Model Formset TablesRe-usable Class-Based Views that integratedjango-filteranddjango-tables2with model formsets. Render and process a user-filterable,
user-sortable modelformset in a table with just a few lines of code. Rainbows and
unicorns!FeaturesUse aModelForm/formsetto define editable fields, add / delete, extra
forms, etc.Use aFilterSetto define filters the formset's querysetUse aTableto lay out the formset, define paging, sorting, etc.Render theTablewith its filteredformsetin just a few lines of
template codeViewsFilteredTableViewMixesFilterViewwithSingleTableMixinfor views that Filter tabular
data.FilteredModelFormsetViewIntegratesFilterViewwithModelFormsetViewfor views that Filter
the queryset used by a formsetModelFormsetTableViewIntegratesModelFormsetViewwithSingleTableMixinfor views that
render a formset in a Table.FilteredModelFormsetTableViewIntegratesFilterView,ModelFormsetView, andSingleTableMixinfor views that Filter the queryset used by a formset and render the formset in a
Table.Note:Table.Column optionslinkifyandempty_valuesare overridden for columns
rendered as form fieldslinkifyis incompatible with a form field representation, so is disabled;to ensure 'empty' form fields are rendered,empty_valuesis set to () (i.e., render all values)Quick StartInstall thedjango-fmftpackage from PyPI$pipinstalldjango-fmftFor other installation methods seeInstallation.Add'fmft'toINSTALLED_APPS:INSTALLED_APPS=[...,"fmft","django_tables2","django_filters","extra_views",# optional...,]Get Me Some of ThatSource CodeRead The DocsIssuesPyPIMIT LicenseCheck Out the Demo Apppip install -e git+https://github.com/powderflask/django-fmft.git#egg=django-fmftpython manage.py migrate demopython manage.py loaddata demo/fmft_fixture.jsonpython manage.py runserverAcknowledgmentsSpecial thanks to BC Hydro,Chartwell,
and allContributorsTechnology ColophonThis package just glues together the amazing functionality provided bydjango-filter,django-tables2, anddjango-extra-views.Python3, Django, HTML5, CSS3, JavaScriptFor Developers$pipinstall-rreqirements_dev.txtTests$pytestor$toxCode Style / Linting$isort
$black
$flake8VersioningSemantic Versioning$bumpvershowDocsSphinx+MyST parserRead The DocsBuild / Deploy Automationinvoke$invoke-lGitHub Actions(see.github/workflows)GitHub Webhooks(seesettings/hooks)Known Issueshidden form fields are rendered in first form field column - can't have dynamically hidden fields,
hidden on some rows while visible in others, without a little magic.TODOMy wish list...write test for case where form field is not included in table
E.g. as when DELETE field not included in export table
Package: djangofobi-email-router
Django fobi email routerA django-fobi handler plugin to send the content of a form to different e-mails addresses, depending on a value of a form field.InstallInstall modulepython3-mpipinstalldjangofobi-email-routerAdd it to your INSTALLED_APPS"djangofobi_email_router",Create a fobi form with at least one choice field (select, select multiple, checkbox select multiple or radio)Add anE-mail routerhandler, fill in the name of your choice field and the e-mails corresponding to the different possible valuesRequirementsdjango-fobiScreenshot
Package: django-folderless
django-folderlesssimple media manager for django, folderless.key features:filterable file list with multi upload possibilityFolderlessFileField, as a replacement for FileField, with instant upload possibilityInstallationTo get the latest stable release from PyPi.. code-block:: bashpip install django-folderlessAddfolderlessto yourINSTALLED_APPS.. code-block:: pythonINSTALLED_APPS = (
    ...,
    'folderless',
)Don't forget to migrate your database.. code-block:: bash./manage.py migrate folderlessUsageHave a look at thefolderless/tests/test_app/models.pyfor some example... code-block:: pythonfrom folderless.fields import FolderlessFileField

class TestModel(models.Model):
    file = FolderlessFileField(blank=True, null=True)ContributeFork and code. Either runtoxfor complete tests, orpython manage.py test --settings=folderless.tests.settings_testCredits / Ideamain repository:https://github.com/benzkji/django-folderless. many similiar things already exist. no wonder this project is heavily experienced byhttps://github.com/stefanfoulis/django-filer, and to some extent, feincms.module.medialibrary andhttps://github.com/samluescher/django-media-tree. initial idea credits:https://github.com/wullerot/(manipulated django-filer to hide folders completely). more ideas:http://de.slideshare.net/motivesystems/slideshare-upload-gartner-pcc-presentation-going-folderless-with-metadatathis project useshttp://semver.org.
Package: django-followit
Thefollowitdjango app allows for the site users
to follow various instances of Django models,
represented by django modelfollowit.models.FollowRecordusing thedjango.contrib.models.ContentTypessystem.Release NotesThe list below shows compatibility ofdjango-followitwith versions of Django and Python.
Python version compatibility was thoroughly tested only with release0.4.0:* ``0.6.x`` supports Django 1.10 to 4.x
* ``0.5.x`` supports Django versions 1.10 up to 3.2
* ``0.4.x`` Django 1.7(**) - 1.9. Python 2 and 3.
* ``0.3.x`` - Django 1.9 - 1.11
* ``0.2.x`` - Django 1.8
* ``0.1.x`` - Django 1.7
* ``0.0.9`` can be used for the earlier versions(**) versions0.4.xdo not support Django 1.7 with Python 3.SetupTo the INSTALLED_APPS in yoursettings.pyadd entry'followit'.Runpython manage.py migrate followitThen, in the body ofAppConfig.readymethod, add:import followit
followit.register(Thing)Not it will be possible for the user to follow instances ofSomeModel.If you decide to allow following another model, just add anotherfollowit.register(...)statement.UsageExamples below show how to usefollowit:bob.follow_thing(x)
bob.unfollow_thing(x)
things = bob.get_followed_things()
x_followers = x.get_followers()To follow/unfollow items via the HTTTP, make AJAX post requests at urls,
available urlsfollowit/urls.py:/follow/<model_name>/<item_id>/
{% url follow_object "somemodel" item_id %} #model name lower case

/unfollow/<model_name>/<item_id>/
{% url unfollow_object "somemodel" item_id %} #lower case model name

/toggle-follow/<model_name>/<item_id>/
{% url toggle_follow_object "somemodel" item_id %} #lower case model name
Package: django-fontawesome
django-fontawesome is aDjangoapp that provides a couple of Fontawesome/Django related utilities, namely:anIconFieldto associate Fontawesome icons with model instancestemplatetags to render Fontawesome iconsalso included:admin support for theIconFieldfr locale translationRequirementsPyYAMLSelect2 (included)JQuery (uses django’s jquery in admin panel)SettingsBy default, django-fontawesome ships with and uses the lastest fontawesome release.
You can configure django-fontawesome to use another release/source/cdn by specifying:# default uses locally shipped version at 'fontawesome/css/font-awesome.min.css'
FONTAWESOME_CSS_URL = '//cdn.example.com/fontawesome-min.css'  # absolute url
FONTAWESOME_CSS_URL = 'myapp/css/fontawesome.min.css'  # relative urlYou can also tell it the fontawesome prefix, which as of right now is ‘fa’, using:FONTAWESOME_PREFIX = 'bg'  # default is 'fa'Installation / UsageInstall via pip:pip install django-fontawesomeAdd ‘fontawesome’ to your installed apps setting like this:INSTALLED_APPS = (
    ...
    'fontawesome',
)Import and use theIconField:from fontawesome.fields import IconField


class Category(models.Model):
    ...
    icon = IconField()Here’s what the widget looks like in the admin panel:You can then render the icon in your template like this:{% for category in categories.all %}
    {% if category.icon %}
        {{ category.icon.as_html }}
    {% endif %}
{% endfor %}django-fontawesome ships with two template tags,fontawesome_stylesheetandfontawesome_icon.the former inserts a stylesheet link with a pre-configured href according to theFONTAWESOME_CSS_URLsettingthe latter renders icons, and accepts the following optional keywords arguments: large, spin, fixed, li, border: (true/false), rotate: (90/180/270), title: (string)you can also colorize an icon using thecolor='red'keyword argument to thefontawesome_icontemplate tagexample usage:{% load fontawesome %}

<head>
  {% fontawesome_stylesheet %}
  ...
</head>

{% fontawesome_icon 'user' color='red' %}

{% fontawesome_icon 'star' large=True spin=True %}

<ul class="fa-ul">
   <li> {% fontawesome_icon 'home' rotate=90 li=True %} One</li>
</ul>profit!!!changelog1.0 - May 10, 2018django 1.11 compabilityusage of yaml’ssafe_loadinstead of insecureloadnew pypi release (1.0), is now considered a stable release0.3.1 - Dec 19, 2016added unicode literals import for cases where icon title attribute uses non ascii charsNov 28, 2016now suppots django 1.8+python3 supported, supposedlyrelative import issues fixedupdated icon mapping for fontawesome 4.7tabular and stacked inlines now supportedother small fixesnew PyPI release (0.3)Jan 28, 2016updated icon mapping file (icons.yml) for fontawesome 4.5.0new keyword arg for fontawesome_icon template tag: titleDec 17, 2015Updated locally shipped fontawesome to 4.5.0fontawesome_icon’s output is now marked safeSep 11, 2015Updated locally shipped fontawesome to 4.4.0Feb 27, 2015added two new keyword argument to the fontawesome_icon template tag, color and borderFONTAWESOME_PREFIX setting is now taken into account when rendering icons using the fontawesome_icon template tag
Package: django-fontawesome-5
django-fontawesome-5A utility for using icons in models, forms, and templates.
Does support Django 3.0, whichdjango-fontawesomewill not.Migration guide from django-fontawesomeRemove all occurences of     {% fontawesome_stylesheet %}Replace {% load fontawesome %} with {% load fontawesome_5 %}Replace '{% fontawesome_icon' with '{% fa5_icon'Replace iconnames, for example "bell" needs to be replaced with "bell fas" and "linedin-square" with "linkedin fab"Installation / Usagepipenv install django-fontawesome-5Add 'fontawesome_5' to your installedINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'fontawesome_5',
)Import and useIconField:from fontawesome_5.fields import IconField

class Category(models.Model):
    ...
    icon = IconField()Include Static Files{% load fontawesome_5 %}

<head>
  {% fontawesome_5_static %} 
  ...
</head>SettingsYou can configure django-fontawesome to use another release/source/cdn by specifying::FONTAWESOME_5_CSS = URL or None
    default: 'fontawesome_5/css/django-fontawesome.css'
FONTAWESOME_5_CSS_ADMIN = URL or path
    default: None
FONTAWESOME_5_ICON_CLASS = 'default' or 'semantic_ui' 
    default: 'default'
FONTAWESOME_5_PREFIX = 'custom_prefix'
    default: 'fa'RenderingYou can do a simple render  in your template like this:{% for category in categories.all %}
    {% if category.icon %}
        {{ category.icon.as_html }}
    {% endif %}
{% endfor %}Default RendererOr you can use the{% fa5_icon %}template tag.{% fa5_icon 'github' 'fab' %}Positional arguments:icon(required),style_prefix(default: 'fas')Key word arguments:classextra custom classescolorCSS Color Namesborderbooleanfixed_widthbooleanfliphorizontalverticallibooleanpullleftrightpulsebooleanrotateintegersizefa-xsfa-smfa-lgfa-2xfa-3xfa-5xfa-7xfa-10xspinbooleantitlestringSemantic UI RendererOr you can use the{% fa5_icon %}template tag.{% fa5_icon 'check' %}Required positional arguments:iconKey word arguments:classextra custom classesborderedbooleancircularbooleancoloredSemantic UI Colorsdisabledbooleanfittedbooleanflippedhorizontalverticalinvertedbooleanlinkbooleanloadingbooleanrotatedclockwisecounterclockwisepulsebooleanrotateintegersizefa-xsfa-smfa-lgfa-2xfa-3xfa-5xfa-7xfa-10xtitlestringCreditCredit tohttps://github.com/redouanefor the original ~ChangesUpdated for use with Font Awesome 5Removed PyYAML, Select2, and jQuery as dependenciesStatic files tag includes static dependencies for use outside adminMoved rendering logic to renderers