Saravanan666/pypi-org huggingface dataset:
Package: django-master
Master dashboard for django[![Build Status](https://travis-ci.org/django-master/django-master.svg?branch=master)](https://travis-ci.org/django-master/django-master)
[![Coverage Status](https://coveralls.io/repos/django-master/django-master/badge.png?branch=master)](https://coveralls.io/r/django-master/django-master?branch=master)
[![Requirements Status](https://requires.io/github/django-master/django-master/requirements.png?branch=master)](https://requires.io/github/django-master/django-master/requirements/?branch=master)## Installing and RunningClone this repositoryWe recomend you to create a [virtual envorinment](http://virtualenv.readthedocs.org/en/latest/virtualenv.html)Install the dependenciespip install -r requirements-dev.txtRun the dev serverpython manage.py runserver 0.0.0.0:8000## InterfaceReference:https://github.com/IronSummitMedia/startbootstrap-sb-admin-2
Package: django-master-password
OverviewThis app provides a mixin class that adds fallback master password
authentication to an existing backend, and a ready to use subclass of
Django’sModelBackendwith master password authentication.This could be dangerous and is generally not recommended for production,
but is super handy for development and staging environments.In a pinch it can also be used temporarily (with a strong password) to
troubleshoot end-user issues in production environments, without having
to reset their password.InstallationInstall with pip:$ pip install django-master-passwordUpdate theAUTHENTICATION_BACKENDsetting:AUTHENTICATION_BACKEND += ('master_password.auth.ModelBackend', )If you want to use the optionalmake_passwordmanagement command,
update theINSTALLED_APPSsetting as well:INSTALLED_APPS += ('master_password', )UsageTheMasterPasswordMixin.authenticate()method will first try to
authenticate with its superclass, and then it will fallback to master
password authentication.The default implementation authenticates against theMASTER_PASSWORDSsetting, which should be a dictionary with clear
text or hashed passwords as keys, and callback functions (orNone)
as values.A callback function must take a user object as its only argument, and
should returnTrueif the user is allowed to authenticate with that
password.For example, you might have one master password that cannot be used for
staff or superuser accounts, and another that can be used for any
account:MASTER_PASSWORDS = {
    'user123': lambda u: not u.is_staff and not u.is_superuser,
    'superuser123': None,
}The use of clear text master passwords is intended as a convenience
during development. WhenDEBUG=False, youmustuse a strong hashed
password with at least 50 characters, 1 digit, 1 uppercase letter, 1
lowercase letter, and 1 non-alphanumeric character:MASTER_PASSWORDS = {
    'pbkdf2_sha256$'
    '20000$'
    'kGdCcfmJtsUY$'
    'euTmHbJ9sdHirlsM2MvUjHQPDJ6CZdu02gYrxY3aAbI=': None,
}This is a failsafe against accidentally enabling an unsafe master
password for production and staging environments.You can generate a hashed password in Python:>>> from django.contrib.auth.models import make_password
>>> print make_password('password123')
pbkdf2_sha256$20000$kGdCcfmJtsUY$euTmHbJ9sdHirlsM2MvUjHQPDJ6CZdu02gYrxY3aAbI=Or use themake_passwordmanagement command:(venv)$ ./manage.py make_password
Password:
Hashed password: pbkdf2_sha256$20000$kGdCcfmJtsUY$euTmHbJ9sdHirlsM2MvUjHQPDJ6CZdu02gYrxY3aAbI=CustomisingIf you are already using a custom auth backend, use the mixin class to
add master password authentication to it. You will need to define aget_user_object(**kwargs)method, which should be the same as theauthenticate()method on the superclass but without any password
validation.You can also override theget_master_passwords()method if you want
to get master passwords from another source than theMASTER_PASSWORDSsetting.
Package: django-master-slave-router
# django-master-slave-router---A simple database router that lets you route all reads to slave(s) and writes to a master database in a django project. It **DOES NOT** take care of replication nor does it handle scenarios where your databases are down/unavailable.## InstallationInstall the package through pip.pip install django-master-slave-routerPrerequisites:* Django >= 1.5## UsageAdd the following settings inside your project's **settings.py**1) Add 'master\_slave_router' to INSTALLED\_APPS.INSTALLED_APPS = (...'master_slave_router',)2) Add MasterSlaveRouter to DATABASE_ROUTERSDATABASE_ROUTERS = ('master_slave_router.MasterSlaveRouter')3) Add connection settings for slave/master databases.DATABASES = {'default': {...},'test_slave_1': {...},'test_slave_2': {...}}4) Specify name(s) of the master and slave connections.SLAVE_DATABASES = ('test_slave1', 'test_slave2')MASTER_DATABASE = 'default'## LicenceMIT.
Package: django-matchbox-orm
Django-Matchbox-ORMDetailsdjango-matchbox-orm is orm package for Google Cloud firestore with Django.Repositoryhttps://github.com/jeanluc243/django-matchbox-ormAuthorJeanluc kabulu (https://github.com/jeanluc243)Contactjeanluc.kabulu@gmail.comLicenseMIT LicenseVersion0.0.1DetailsDjango-Matchbox-ORMis a Python Object-Relational Mapper for Google Firestore with django.
It is in development.
Package: django-material-admin
Django Material Design AdminQuick startAdd "material.admin" and "material.admin.default" to your INSTALLED_APPS setting instead of "django.contrib.admin":.. code-block:: pythonINSTALLED_APPS = (
     'material',
     'material.admin',

     'django.contrib.auth',
     ...
 )Include the material templates URLconf in your project urls.py like this:.. code-block:: pythonurlpatterns = [
     path('admin/', admin.site.urls),
 ]Use the admin with material styles.. code-block:: pythonfrom django.contrib.admin import ModelAdmin, register

 from persons.models import Person


 @register(Person)
 class PersonAdmin(ModelAdmin):
     list_display = ('name', 'first_name', 'last_name')Add icon to the application inapp.pyhttps://materializecss.com/icons.html.. code-block:: pythonfrom django.apps import AppConfig


 class PersonsConfig(AppConfig):
     name = 'persons'
     icon_name = 'person'Add icon to the MaterialModelAdmin inadmin.pyhttps://materializecss.com/icons.html.. code-block:: pythonfrom django.contrib.admin import ModelAdmin, register
 from persons.models import Person


 @register(Person)
 class MaterialPersonAdmin(ModelAdmin):
     icon_name = 'person'
Package: django-material-admin-plus
==============================
Django Material AdministrationQuick startpip install django-material-admin-plusAddmaterial.adminandmaterial.admin.defaultto your INSTALLED_APPS setting instead ofdjango.contrib.admin::required.. code-block:: pythonINSTALLED_APPS = (
    'material',
    'material.admin',

    'django.contrib.auth',
    ...
)Include the material templates URLconf in your projecturls.pylike this:required
.. code-block:: pythonfrom django.contrib import admin
from django.urls import pathurlpatterns = [
path('admin/', admin.site.urls),
]Register your models inadmin.py... code-block:: pythonfrom django.contrib.admin import ModelAdmin, register


from persons.models import Person

@register(Person)
class PersonAdmin(ModelAdmin):
    list_display = ('name', 'first_name', 'last_name')Add icon to the application inapp.pyand specify the app usage ininit.pyhttps://materializecss.com/icons.htmloptionalinit.py.. code-block:: pythondefault_app_config = 'persons.apps.PersonsConfig'apps.py.. code-block:: pythonfrom django.apps import AppConfig


class PersonsConfig(AppConfig):
    name = 'persons'
    icon_name = 'person'Add icon to the MaterialModelAdmin inadmin.pyMaterial icon's name sources:https://materializecss.com/icons.htmlhttps://material.io/resources/icons/?style=baselineoptional.. code-block:: pythonfrom django.contrib.admin import ModelAdmin, register

from persons.models import Person


@register(Person)
class MaterialPersonAdmin(ModelAdmin):
    icon_name = 'person'Add Admin site configurations tosettings.pyfile:optional
##########################################################.. code-block:: pythonMATERIAL_ADMIN_SITE = {
    'HEADER':  _('Your site header'),  # Admin site header
    'TITLE':  _('Your site title'),  # Admin site title
    'FAVICON':  'path/to/favicon',  # Admin site favicon (path to static should be specified)
    'MAIN_BG_COLOR':  'color',  # Admin site main color, css color should be specified
    'MAIN_HOVER_COLOR':  'color',  # Admin site main hover color, css color should be specified
    'PROFILE_PICTURE':  'path/to/image',  # Admin site profile picture (path to static should be specified)
    'PROFILE_BG':  'path/to/image',  # Admin site profile background (path to static should be specified)
    'LOGIN_LOGO':  'path/to/image',  # Admin site logo on login page (path to static should be specified)
    'LOGOUT_BG':  'path/to/image',  # Admin site background on login/logout pages (path to static should be specified)
    'SHOW_THEMES':  True,  #  Show default admin themes button
    'TRAY_REVERSE': True,  # Hide object-tools and additional-submit-line by default
    'NAVBAR_REVERSE': True,  # Hide side navbar by default
    'SHOW_COUNTS': True, # Show instances counts for each model
    'APP_ICONS': {  # Set icons for applications(lowercase), including 3rd party apps, {'application_name': 'material_icon_name', ...}
        'sites': 'send',
    },
    'MODEL_ICONS': {  # Set icons for models(lowercase), including 3rd party models, {'model_name': 'material_icon_name', ...}
        'site': 'contact_mail',
    }
}##########################################################
Package: django-material-icon-widget
Django Material Icon Picker WidgetHow to start:pip install django-material-iconsInclude it in the settings (Installed apps):INSTALLED_APPS = [
    ...
    'django.contrib.staticfiles',
    'icon_picker_widget', #<---- 
    ...Add static path files of widget to settings.py:STATICFILES_DIRS = [
    ('icon_picker_widget',os.path.join(BASE_DIR, 'icon_picker_widget/static'))
]Example of Usage:model.py:from django.db import models

class BlogPost(models.Model):
    name = models.TextField()
    icon = models.TextField()admin.pyfrom django import forms
from django.contrib import admin
from icon_picker_widget.widgets import IconPickerWidget
from .models import BlogPost

class BlogPostAdminForm(forms.ModelForm):
    def __init__(self, *args, **kwargs):
        super(BlogPostAdminForm, self).__init__(*args, **kwargs)
        self.fields['icon'].widget = IconPickerWidget()

class BlogPostAdmin(admin.ModelAdmin):
    form = BlogPostAdminForm

admin.site.register(BlogPost, BlogPostAdmin)AcknowledgementsThis widget wrapsnpick, a no-frills, no-fuss javascript icon picker.
Package: django-materialize
Django Materialize is a simple Django app to include Materialize into your project.Detailed documentation is in the “docs” directory.Quick startAdd “materialize” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'materialize',
]To use materialize in your templates you should extend them from materialize_base.html for production,materialize_base_dev.html - for development, or include Materialize static files manually.
Templates are placed in materialize directory and static files in materialize/(css | js | fonts).
Package: django-materializecss-form
materialize-css-formMaterializecss for Django FormA simple Django template tag to work withMaterializecssInstallFromPyPi:pip install  django-materializecss-formFromGitHubAdd module to INSTALLED_APPS:INSTALLED_APPS = (
     'materializecssform',
     ...
     )Add Materialize CSS to your project (Official Documentation):In your base.html:<head>

{% block css %}
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.1/css/materialize.min.css" integrity="sha256-qj3p6P1fJIV+Ndv7RW1ovZI2UhOuboj9GcODzcNFIN8=" crossorigin="anonymous" />
{% endblock css %}

</head><body >

{% block javascript %}
<script
  src="https://code.jquery.com/jquery-3.3.1.min.js"
  integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.1/js/materialize.min.js" integrity="sha256-SrBfGi+Zp2LhAvy9M1bWOCXztRU9Ztztxmu5BcYPcPE=" crossorigin="anonymous"></script>

<script>
$(document).ready(function(){

  // Initialize materialize data picker
  $('.datepicker').datepicker({'format': 'yyyy-mm-dd'});
  $('select').formSelect();

});
</script>
{% endblock javascript %}

...

</body>UsageImport the module simply like this:{% load materializecss %}Full formFormat a whole form:{{ form|materializecss }}Individual fieldFormat only a specific field:{{ form.<fieldname>|materializecss }}Custom size (default is 's12')Apply custom sizes in grid (see Materialize CSS documentation):{{ form|materializecss:'m6' }}
{{ form|materializecss:'custom_size=m6' }}Icons supportThis is most useful for adding a descriptive icon when you are creating a custom layout by building the form one field at a time. Substitue FIELD_NAME below with one of the field names from your form.{{ form.FIELD_NAME|materializecss:'s12 m6, icon=person' }}
{{ form.FIELD_NAME|materializecss:'custom_size=s12 m6, icon=person' }}Optional icon setsIf you're using optional icon sets you need to setMATERIALIZECSS_ICON_SETin your settings file:MATERIALIZECSS_ICON_SET='fontawesome'CurrentlyFont AwesomeandGLYPHICONSis supported, however you might need to modify your CSS for full support.Note aboutDateTimeFieldInput field is rendered as adatetime-localtype, this lets the user easily enter both a date and a time. As this field requires ISO-8601 format, your main project settings need to include the ISO format in order for the form to interpret this field valid:from django.conf.global_settings import DATETIME_INPUT_FORMATS

# ISO 8601 datetime format to accept html5 datetime input values
DATETIME_INPUT_FORMATS += ["%Y-%m-%dT%H:%M:%S", "%Y-%m-%dT%H:%M"]DemoHelpWidgetTextInputTextareaCheckboxInputRadioSelectSelectSelectMultipleCheckboxSelectMultipleFilefieldDateFieldDateTimeFieldInspired bydjango-bootstrap-formOriginally Built ByFlorent CLAPIÉ (PyPI)
Package: django-materializecss-form-bacchus
# materialize-css-formMaterializecss for Django FormA simple Django template tag to work with [Materializecss](http://materializecss.com/)## Install```pip install  django-materializecss-form```[on pypi](https://pypi.python.org/pypi/django-materializecss-form)[on GitHub](https://github.com/kalwalkden/django-materializecss-form)Add to INSTALLED_APPS:```INSTALLED_APPS = ('materializecssform',...)```Add Materializecss to your project:In your base.html:```<head>{% block css %}<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.1/css/materialize.min.css" integrity="sha256-qj3p6P1fJIV+Ndv7RW1ovZI2UhOuboj9GcODzcNFIN8=" crossorigin="anonymous" />{% endblock css %}</head>``````<body >{% block javascript %}<scriptsrc="https://code.jquery.com/jquery-3.3.1.min.js"integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.1/js/materialize.min.js" integrity="sha256-SrBfGi+Zp2LhAvy9M1bWOCXztRU9Ztztxmu5BcYPcPE=" crossorigin="anonymous"></script><script>$(document).ready(function(){// Initialize materialize data picker$('.datepicker').datepicker({'format': 'yyyy-mm-dd'});$('select').formSelect();});</script>{% endblock javascript %}...</body>```## UsageUse it like this, simple.{% load materializecss %}### All the form{{ form|materializecss }}### Individual field{{ form.<<field name>> | materializecss }}### Custom size (default is 's12'){{ form|materializecss:'m6' }}### Icons supportThis is most useful for adding a descriptive icon when you are creating a custom layout by building the form one field at a time. Substitue FIELD_NAME below with one of the field names from your form.```html{{ form.FIELD_NAME|materializecss:'s12 m6, icon=person' }}{{ form.FIELD_NAME|materializecss:'custom_size=s12 m6, icon=person' }}```### Note about `DateTimeField`Input field is rendered as a *datetime-local* type, this lets the user easily enter both a date and a time. As this field requires ISO-8601 format, your main project settings need to include the ISO format in order for the form to interpret this field valid:```from django.conf.global_settings import DATETIME_INPUT_FORMATS# ISO 8601 datetime format to accept html5 datetime input valuesDATETIME_INPUT_FORMATS += ["%Y-%m-%dT%H:%M:%S", "%Y-%m-%dT%H:%M"]```## Demo![Basic form](https://cloud.githubusercontent.com/assets/3958123/6165004/a1984f52-b2a4-11e4-8ae2-078505991b0d.png)![DatePicker](https://cloud.githubusercontent.com/assets/3958123/6165005/a19bf044-b2a4-11e4-9989-6a64f9c97087.png)![DateTimePicker](https://user-images.githubusercontent.com/556361/49763533-8a44f580-fc92-11e8-8d24-f45373becd11.png)## Help### Widget- TextInput- Textarea- CheckboxInput- RadioSelect- Select- SelectMultiple- CheckboxSelectMultiple- Filefield- DateField- DateTimeField## Inspired by[django-bootstrap-form](https://github.com/tzangms/django-bootstrap-form)## Originally Built ByFlorent CLAPIÉ[https://pypi.org/user/florent1933/] https://pypi.org/user/florent1933/
Package: django-materialized-paths
Django Materialized PathsA simple and lightweight implementation of materialized path tree structures in Django.InstallationTo install, run:pip install django-materialized-pathsConfigurationAdd the following into the INSTALLED_APPS of your projects:INSTALLED_APPS=(...'django-materialized-paths',)UsageTo use, extend theBaseNodeinto your model:fromdjango-materialized-pathsimportBaseNodeclassFolderExample(BaseNode):"""My folder class"""name=models.CharField(max_length=48)The model overrides Django'sdjango.db.models.Modelsave() method to automatically manage changes to inheritance:from.modelsimportFolderExample# concrete class from aboveroot=FolderExample.objects.create(name="root")child=FolderExample.objects.create(name="child",parent=root)grandchild=FolderExample.objects.create(name="child",parent=child)For example, to convertgrandchildto a root:grandchild.parent=Nonegrandchild.save()Usage - Properties and InheritedBaseNode.depth# Root is 0BaseNode.parentBaseNode.children# Only returns direct descendantsBaseNode.save()# Set the parent field to automatically manage hierarchyBaseNode.delete()# NOTE: The BaseNode.parent field is set to cascade, so deleting a parent will delete all childrenUsage - MethodsNote that these methods generally return querysets# AccessorsBaseNode.get_root()BaseNode.get_ancestor(depth=int)BaseNode.get_ancestors()BaseNode.get_descendants()BaseNode.get_siblings()# ConvenienceBaseNode.has_children()BaseNode.is_child_of(parent_id=int)# ID-based accessors - computed directly from path without accessing dbBaseNode.get_ancestors_ids()BaseNode.get_descendants_ids()AuthorsCameron McNierney-Original author-https://github.com/cmcnierneyLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: django-materialize-form
A simple Django library to render your form inMaterial DesignInstallationpip install django-materialize-formUsageAdd“materializeform”to your INSTALLED_APPS.At the top of your django templates load our templatetags{% load materialize %}Then to render your form<form action='.' method='post'>
    {% csrf_token %}
    {{ form|materialize }}
    <button type='submit' class="btn blue">Submit</button>
</form>You can also set column class for each fields on the form<form action='.' method='post'>
    {% csrf_token %}
    <div class="row">
    {{ form.email|materialize:"s12" }}
    </div>

    <div class="row">
    {{ form.first_name|materialize:"s6" }}
    {{ form.last_name|materialize:"s6" }}
    </div>

    <button type='submit' class="btn blue">Submit</button>
</form>If you have ‘select’ menu in your formThen please include,<script>
  $(function(){
    $(document).ready(function() {
      $('select.select').material_select();
      $('select.multiselect').show();
    });
  });
</script>
Package: django-materialize-forms
# django-materialize-formsDjango tamplatetags for materialize cssInstallation------------1. Install using pip:pip install django-materialize-forms2. Add to INSTALLED_APPS:'materialize_forms',Use in templates----------------{% load materialize %}# Using a filter<form action="/url/to/submit/" method="post">{% csrf_token %}{{ form.field_1|as_material:"s12" }}{{ form.field_2|as_material:"s12" }}{{ form.field_3|as_material:"s12" }}<div class="form-actions"><button type="submit" class="btn btn-primary">Submit</button></div></form>
Package: django-material-orange
===============Django Material===============Material design for Django Forms and Admin. Template driven... image:: https://img.shields.io/pypi/v/django-material.svg:target: https://pypi.python.org/pypi/django-material.. image:: https://img.shields.io/pypi/wheel/django-material.svg.. image:: https://img.shields.io/pypi/status/django-material.svg.. image:: https://travis-ci.org/viewflow/django-material.svg:target: https://travis-ci.org/viewflow/django-material.. image:: https://img.shields.io/pypi/pyversions/django-material.svg.. image:: https://img.shields.io/pypi/l/Django.svg:target: https://raw.githubusercontent.com/viewflow/django-material/master/LICENSE.txt.. image:: https://badges.gitter.im/Join%20Chat.svg:alt: Join the chat at https://gitter.im/viewflow/django-material:target: https://gitter.im/viewflow/django-material?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badgeDjango-Material works with Django 1.8/1.9/1.10Tested with:.. image:: demo/static/img/browserstack_small.png:target:  http://browserstack.com/Overview========- Forms_ - New way to render django forms* Strong python/html code separation* Easy redefinition of particular fields rendering* Complex form layout support- Frontend_ - Quick starter template for modular applications development- Admin_ - Material-designed django adminDemo: http://forms.viewflow.io/.. image:: .screen.png:width: 400pxDocumentation=============http://docs.viewflow.io/material_forms.htmlLicense=======Django Material is an Open Source project licensed under the terms of the `BSD3 license <https://github.com/viewflow/django-material/blob/master/LICENSE.txt>`_Django Material Pro has a commercial-friendly license and distributed as part of Viewflow ProChangelog=========0.10.1 2016-11-10 - Beta------------------------- Fix admin raw_id select on django 1.10