Saravanan666/pypi-org huggingface dataset:
Package: django-modernizr
Modernizris a javascript utility that interrogates
a user’s web browser to determine its capabilities.  Unfortunately, all this
delicious data is only available client-side.django-modernizr is a Django Middleware that includes the Modernizr javascript
and stuffs Modernizr’s output into a cookie or session on the first
page request.InstallationAdd themodernizrdirectory to your Python path.Add the following middleware to your project’ssettings.pyfile:'modernizr.middleware.ModenizrMiddleware',The order of MIDDLEWARE_CLASSES is important: the Modernizr Middleware middleware
must come after any other middleware that encodes the response’s content
(such as GZipMiddleware).Note: The modernizr code will only display itself if the mimetype of the
response is eithertext/htmlorapplication/xhtml+xmland contains a
closing</body>tag.Note: Be aware of middleware ordering and other middleware that may
intercept requests and return responses.  Putting the modernizr
middlewareafterthe Flatpage middleware, for example, means modernizr
will not show up on flatpages.Addmodernizrto yourINSTALLED_APPSsetting so Django can find the
template files associated with the modernizr.Alternatively, add the path to the modernizr templates
('path/to/modernizr/templates'to yourTEMPLATE_DIRSsetting.)ConfigurationDjango Modernizr has a few settings that can be set insettings.py(all are optional):MODERNIZR_STORAGE: set to ‘cookie’ or ‘session’Cookie settings (parity todjango.contrib.sessionscookie settings):MODERNIZR_COOKIE_NAME: Name of the cookie. Default is ‘modernizr’.MODERNIZR_COOKIE_AGE: Expire time of the cookie. Default is 2 weeks.MODERNIZR_COOKIE_DOMAIN: Domain name the cookie is issued on.
Default is None.MODERNIZR_COOKIE_SECURE: Whether or not to serve the cookie securely.
Default is False.MODERNIZR_COOKIE_PATH: Path the cookie is issued on. Default is ‘/’.Session settings:MODERNIZR_SESSION_KEY: Session key to use for storage. Default is
‘modernizr’.Modernizr rendering options:MODERNIZR_JS_URL: URL to modernizr.js.
Default ishttp://cachedcommons.org/cache/modernizr/1.5.0/javascripts/modernizr-min.js.MODERNIZR_SENTINEL_IMAGE_URL: URL of sentinel image which includes
Modernizr data. Default is ‘/django-modernizr-endpoint.gif’.MODERNIZR_INCLUDE_TAG: A closing tag of this type will be located, and
the Modernizr template will be rendered and inserted just before it.
Default is ‘body’.ThanksDjango Modernizr is a port of Marshall Yount’srack-modernizr.Portions of code and documentation style were taken from Rob Hudson’sdjango-debug-toolbar.
Package: django-modern-rpc
django-modern-rpcExpose global python functions through XML-RPC and/or JSON-RPC server using Django toolbox.Main featuresXML-RPC and JSON-RPC 2.0 support (JSON-RPC 1.0 is NOT supported)HTTP Basic Auth & custom authentication methodsMultiple entry-points: group your RPC methods under different paths to apply
specific rules, authentication, protocol support, etc.API docs generation (based on docstring)RequirementsThe following Django / Python version are supported, according to Django requirements (seehereandhere)🠗 Django \ Python 🠖3.53.63.73.83.93.103.113.122.1✔️️✔️️✔️️❌❌❌❌❌2.2✔️️✔️️✔️️✔️️✔️️❌❌❌3.0❌✔️️✔️️✔️️✔️️❌❌❌3.1❌✔️️✔️️✔️️✔️️❌❌❌3.2❌✔️️✔️️✔️️✔️️✔️️❌❌4.0❌❌❌✔️️✔️️✔️️❌❌4.1❌❌❌✔️️✔️️✔️️✔️️❌4.2❌❌❌✔️️✔️️✔️️✔️️✔️️SetupAquick startis available as part
of the documentation to help setting up you project.Code qualityContinuous integration and code analysis is performed automatically to ensure a decent code quality. Project health
is publicly available on following apps:
Package: django-modern-user
Django Modern UserDjango Modern User is a custom user model for Django projects that replaces the defaultusernamefield with a case-insensitiveemailfield for authentication, and removes the requirement for first and last names. This model aims to provide a more practical and modern approach to user management in Django.Installation[!IMPORTANT]
The instructions below are intended for integratingdjango-modern-userinto new projects. Incorporating this package into existing projects, especially those with existing user data, can be complex and requires careful database migrations and potentially some code adjustments. The integration into projects with existing users is beyond the scope of this documentation.Installdjango-modern-uservia pip:python-mpipinstalldjango-modern-userAdddjango_modern_userto yourINSTALLED_APPSin your Django settings:INSTALLED_APPS=[# ... other apps'django_modern_user',]Create a new user model in your project by subclassingdjango_modern_user.ModernUser:# In your models.pyfromdjango_modern_user.modelsimportModernUserclassCustomUser(ModernUser):passUpdate your Django settings to use your new user model:AUTH_USER_MODEL="<your_app_name>.CustomUser"To use the providedModernUserAdminclass in your Django admin site, you can subclass it in youradmin.pyfile:fromdjango.contribimportadminfromdjango_modern_user.adminimportModernUserAdminfrom.modelsimportCustomUser@admin.register(CustomUser)classCustomUserAdmin(ModernUserAdmin):passRun migrations to create the necessary database table:pythonmanage.pymigrateThis setup allows you to further customize your user model and admin interface while benefiting from the features provided bydjango-modern-user.UsageWithdjango-modern-userand your subclassed user model, authentication is done using the email field. The email field is case-insensitive, ensuring a user-friendly authentication process.First, ensure that you have created a subclass ofModernUseras described in theInstallationsection.Here's an example of how you might create a new user with your subclassed user model:# Assume you have defined CustomUser in your models.pyfrom<your_app_name>.modelsimportCustomUser# Create a new useruser=CustomUser.objects.create_user(email='example@example.com',password='password123')# Create a superusersuperuser=CustomUser.objects.create_superuser(email='admin@example.com',password='password123')In this example, replace <your_app_name> with the name of your Django app. This way, you're creating users with your project-specific user model, which subclasses django-modern-user's ModernUser.Custom User Managerdjango-modern-usercomes with a custom user manager,ModernUserManager, which handles user creation and ensures the email field is used for authentication.ContributingFeel free to fork the project, open a PR, or submit an issue if you find bugs or have suggestions for improvements.LicenseThis project is licensed under the MIT License. See the LICENSE file for details.
Package: django-modify-history
django-modify-historyis a library to create object modification timeline using Django signalInstallsudo pip install django-modify-historyor:sudo pip install git+git://github.com/lambdalisue/django-modify-history.git#egg=django-modify-historyHow to UseAppendmodify_historytoINSTALLED_APPSrunmanage.py syncdbAddhistory_site.pyto the app and write like below:from modify_history import site
from modify_history.backends.basic import BasicHistoryBackend

from models import Article

class ArticleBackend(BasicHistoryBackend):
        pass
site.register(Article, ArticleBackend)Useget_history_timelinestemplate tags for get history list like below:{% extends 'base.html' %}
{% load historytags %}

{% block content %}
<h2>History</h2>
<ul>
        {% get_history_timelines as timelines %}
        {% for timeline in timelines %}
        <li>{{ timeline.get_message }} at {{ timeline.created_at|date }}</li>
        {% endfor %}
</ul>
{% endblock %}SettingsHISTORY_ENABLEMake history enable, to disable history app just set thisFalseHISTORY_USER_ATTRSmodify_history app find user from target object’s attrs. this is the list of name
of attrs. default is['updated_by', 'user', 'author', 'created_by']
Package: django-modshib-certic
Django mod_shibApplication Django destinée à faciliter la gestion de l'authentification avec mod_shib.
Elle fournit une route (URL) devant être gérée par mod_shib, ainsi que des pages prêtes
à l'emploi pour l'authentification.Distribué sousLicence CeCILL-CAvertissementPour des raisons de sécurité, nejamaisinstaller cette application en production sans que la configuration du module
Apachemod_shibn'ait été correctement réalisée en amont, particulièrement lorsque
les variables de configurationMODSHIB_CREATE_ACCOUNTetMODSHIB_ACTIVATE_ACCOUNTvalent vrai.Pré-requisCette application Django dépend de l'applicationdjango.contrib.auth. Il est également attendu que la variableLOGIN_REDIRECT_URLdans votresettings.pysoit renseignée
(voirdocumentation Django à ce sujet).Un serveur Apache avec le module Shibboleth est requis. Voir à ce sujetla documentation spécifique.installationInstallation via pip:pip install django-modshib-certicOu via poetry:poetry add django-modshib-certicPuis ajoutermodshib.apps.ModshibConfigdans lesettings.pyde votre projet Django:INSTALLED_APPS = [
    [...]
    "modshib.apps.ModshibConfig",
]Ainsi que la configuration des routes dans votreurls.py:urlpatterns = [
    [...]
    path("modshib/", include("modshib.urls"))
]L'URL pour modshib sera alors à/modshib/sso.Ajoutez également le contexte dans la configuration de vos gabarits :TEMPLATES = [
    {
        [...]
        "OPTIONS": {
            "context_processors": [
                [...]
                "modshib.context_processors.modshib_context"
            ],
        },
    },
]Configuration poursettings.pyMODSHIB_CREATE_ACCOUNTValeur par défaut :FalseS'il n'existe pas déjà, crée un compte local (modèledjango.contrib.auth.models.User)
dont leusernameest l'EPPN fournit parmod_shib.
Le compte est créé sans mot de passe et est inactif par défaut.MODSHIB_ACTIVATE_ACCOUNTValeur par défaut :FalseActive le compte local s'il est trouvé (User.is_active=True).MODSHIB_FORMS_TITLEValeur par défaut:AuthentificationTitre utilisé dans les formulaires de connexion/déconnexion.MODSHIB_STYLESHEET_URLValeur par défaut:NoneURL utilisée pour ajouter des styles CSS aux pages d'authentificationMODSHIB_SHOW_SSO_LOGINValeur par défaut:TrueAfficher ou non le formulaire de connexion via SSOMODSHIB_SHOW_LOCAL_LOGINValeur par défaut:TrueAfficher ou non le formulaire de connexion localeMODSHIB_SSO_SUBMIT_LABELValeur par défaut:Connexion via SSOTexte du bouton de connexion via SSOMODSHIB_LOCAL_SUBMIT_LABELValeur par défaut:Connexion avec mot de passeTexte du bouton de connexion localeAPP_URL_BASE_PATHValeur par défaut:/Préfixe utilisé pour déployer l'application
Package: django-modular-user
Modular user model for Djangodjango-modular-userlets you easily customize Django's User model, without any compromises. Unlike Django's ownAbstractBaseUser, here nothing is irremovable, you can use exactly the parts you want.RequirementsDjango 2.0+Installationpipinstalldjango-modular-userCreate a new Django package with following models.py, and a migrations/ subdirectory:fromdjango_modular_user.userimportAbstractUserclassUser(AbstractUser):passInsettings.py, setAUTH_USER_MODEL = 'your_new_package_name.User'Run./manage.py makemigrationsConfigurationYou may configure the basic profile data withUSER_CORE_MODULESsetting. For example, to create an User model without usernames and passwords, that uses email as the username, you may use:USER_CORE_MODULES=['django_modular_user.user:AbstractBaseUser','django_modular_user.user:EmailMixin',# email'django_modular_user.user:NamePartsMixin',# given_name, middle_name, family_name'django_modular_user.user:ActiveMixin',# is_active'django_modular_user.user:StaffMixin',# is_staff'django_modular_user.user:PermissionsMixin',# is_superuser and other permissions'django_modular_user.user:JoinedMixin',# date_joined]USERNAME_FIELD='email'USER_EMAIL_UNIQUE=TrueApp-specific User mixinsdjango-modular-userautomatically scans allINSTALLED_APPSforuser.pymodules that contain aUserMixinclass. Such mixins are automatically added to the User model; you only need to run./manage.py makemigrationsafter adding an app to yourINSTALLED_APPSlist.
Package: django-mogi
Metabolomics organisation with Galaxy and ISAFurther documentation available onReadTheDocsQuick startAdd “mogi” and django application dependencies to your INSTALLED_APPS setting like this (mogi should come before gfiles, galaxy, mbrowse and misa):INSTALLED_APPS = [
    ...
    'mogi',
    'misa',
    'mbrowse',
    'galaxy',
    'gfiles',

    'django_tables2',
    'django_tables2_column_shifter',
    'django_filters',
    'bootstrap3',
    'django_sb_admin',
    'dal',
    'dal_select2',
]Include the URLconf in your project urls.py like this:url(r'^', include('gfiles.urls')),
url('mogi/', include('mogi.urls')),
url('mbrowse/', include('mbrowse.urls')),
url('misa/', include('misa.urls')),
url('galaxy/', include('galaxy.urls')),Runpython manage.py migrateto create the mogi models.Start the development server and visithttp://127.0.0.1:8000/Registerhttp://127.0.0.1:8000/register/and loginhttp://127.0.0.1:8000/login/General overviewhttp://127.0.0.1:8000Create, edit, view and export ISA projectshttp://127.0.0.1:8000/misa/ilist/Upload to Galaxy, run Galaxy workflows and view Galaxy historieshttp://127.0.0.1:8000/misa/ilist/Browse, view and search metabolomic datasetshttp://127.0.0.1:8000/mbrowse/general_summary/
Package: django-mogilefs-explorer
django-mogilefs-explorerdjango-mogilefs-explorer is a Django application, which helps interacting withMogileFSinstallation. Basic usage includes:listing of files in MogileFS on per-directory basisshowing images on admin pagedownloading filesuploading filesRationale for applicationCurrently, as of version 2.73, MogileFS lacks full WebDAV support, namely
listing of files (via OPTIONS) and any concept of collections.
This makes it impossible to use existing API to navigate in filesystem.Consequently, this app is a bit hacky, because it violates an isolation of
services: it connects to internal MogileFS metadata database, and uses it
for discovering stuff inside MogileFS.Development roadmap0.1installation, pypi distribution0.2initial django application structureapplication configurationplain listing of files, not directory-wise0.3direcotries: with help of functional indexes and some complex queries
implement a virtual surrogate of collectionsdual implementation for MySQL and PostgreSQL as MogileFS databasesnavigate in these directories, list files0.4links to download file from MogileFS directly with browserproxying download requests if MogileFS is not directly accessiblein-page display of images using above techniques0.5uploading files0.6archiving entire directory for downloading (?)?.????
Package: django-moj-irat
A set of tools to make it easier to add a Django-based service to Ministry of Justice’s Incidence Response and Tuning:ping.json viewhealthcheck.json view with extensible healthchecksUsageInstall usingpip installdjango-moj-irat.Django settings:HEALTHCHECKS=['moj_irat.healthchecks.database_healthcheck',# override default list of healthcheck callables]AUTODISCOVER_HEALTHCHECKS=True# whether to autodiscover and load healthcheck.py from all installed appsDevelopmentPlease report bugs and open pull requests onGitHub.To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment,
i.e.pip install--editable.Usepython-mteststo run all tests locally.
Alternatively, you can usetoxif you have multiple python versions.[Only for GitHub team members] Distribute a new version toPyPIby:updating theVERSIONtuple inmoj_irat/__init__.pyadding a note to theHistorypublishing a release on GitHub which triggers an upload to PyPI;
alternatively, runpython-mbuild; twine upload dist/*locallyHistory0.9Migrated test, build and release processes away from deprecated setuptools commands.
No significant library changes.0.8Drop support for python 3.6 and 3.7.
Add support for python 3.11.
Add experimental support for Django versions 4.0 & 4.1.
Improve testing and linting.0.7Add support for python 3.9 and 3.10.
Improve testing and linting.0.6Drop support for python 3.5.
Improve linting.0.5Drop python 2 support (now compatible with 3.5 - 3.8).
Support Django 2.2 - 3.2 (both LTS).0.4Include CORS header.0.3Add python 2 compatibility.0.2Allow including JSON response for healthchecks.0.1Original release.CopyrightCopyright (C) 2023 HM Government (Ministry of Justice Digital & Technology).
See LICENSE.txt for further details.
Package: django-mojo
Mojo is a set of django apps that can be used independantely or combined.The list includes:mojo-dashboardThis app adds a dashboard and a menu on the default Django admin. It includes a set of default widget that track metrics about the application and can synchronize with Google Analytics to display a graphic of attendance evolution.mojo-navigationDescription to be added.mojo-pagesDescription to be added.mojo-sectionsDescription to be added.mojo-toolbarThis app manages a toolbar for admins to easily navigate to most relevant admin features, switch between backoffice and front to edit or view objects and indicate version.ContributionPlease feel free to contribute. Any help and advices are much appreciated.LINKSGithub:https://github.com/django-mojo/Pypi:https://pypi.python.org/pypi/django-mojo
Package: django_molder
===============================Django Molder===============================.. image:: https://img.shields.io/travis/zerc/django_molder.svg:target: https://travis-ci.org/zerc/django_molder.. image:: https://img.shields.io/pypi/v/django_molder.svg:target: https://pypi.python.org/pypi/django_molderAnother one painless way to working with forms and they fields* Free software: BSD license.. * Documentation: https://django_molder.readthedocs.org.Features--------It provides multiple tags for rendering form fields in a custom template.Bootstrap3 classes and html as default but you can simple override this for your specification -just make ``molder`` directory in your templates folder.Example:--------In your template:.. code:: html{% loads molder_tags %}<div class="container-fluid"><div class="row"><form class="form"><div class="col-md-6">{% render_field form_one.char_field class="+big_input" placeholder="Hello world" %}{% render_field form_one.radio_field help_on_top=True %}{% render_field form_one.file_field template="myapp/coolest_file_field.html" %}</div><div class="col-md-6">{% render_field form_one.multiple_select_field show_help=False required=False %}{% render_field form_one.checkbox_field %}</div></form></div></div>Template tags-------------render_field============Gets the bound_field and the extra kwargs and then render it.Special kwargs:* show_help - show/hide field help_text* show_label - show/hide field label* help_on_top - show help_text on top* template - template used for this field* required - override field required attr for visual fakerender_form===========Gets form as first arg. Iterates through the fields and render them. Extra kwargs passed in each field.render_messages===============Just render the messages (django.contrib.messages)History-------0.1.0 (2015-01-11)---------------------* First release on PyPI.
Package: django-molly
# Molly`molly` is simple application that injects a signal after the WSGIHandleris instatiated. What this means for you is that you can definitively know whenyour application is live and can receive requests.## Installation:`pip install django-molly`## Usage:```python# settings.py fileINSTALLED_APPS = (...,'molly',...)``````python# in some apps.py file...from molly.signals import application_starteddef hello_world():print "hello world!!!"class MyAppConfig(AppConfig):def ready(self):application_started.connect(hello_world, dispatch_uid='my-silly-message')```So now when you run `python manage.py runserver` or *any* service that utilizesthe `django.core.handlers.wsgi.WSGIHandler` you should see you message.Enjoy the *ecstacy* of it all...
Package: django-mom
Model Object Mapper for DjangoMap YAML files to a database and add/update/delete them as they change.InstallationFor Fresh Buildspip install -i https://test.pypi.org/simple/ django-momFor Milestone Buildspip install django-momUsageModel# File: home/models.pyfromdjango.dbimportmodelsclassPost(models.Model):title=models.CharField(max_length=100,)date=models.DateTimeField()slug=models.SlugField(unique=True,)Map# File: mom.yamlmom:map:post:model:home.models.PostlookupField:slugObject# File: post.my-awesome-post.mom.yaml#            ^^^^^^^^^^^^^^^ is `slug`field:title:My Awesome Titledate:2021-06-25 13:00:00+3Resulttitle:My Awesome Titledate:2021-06-25 13:00:00+3slug:my-awesome-post
Package: django-momoapi
Django MoMo APIThis is a django package for the MTN MoMo API. It can be added to your current django-based application so as to interact with the MTN MoMo API in a much simpler way.Why we created the Django MoMo API PackageMTN Uganda released API documentation to their Mobile Money service and integrations for Python, NodeJS, PHP, Java etc have been created but at the time of writing, there is no django package and yet Django is a popular Python based web framework.Installationpip install django-momoapiDevelopment SetupHow to submit an issuePlease follow ourBug Report Guideon how to submit your issue.How to request for a new featurePlease follow ourFeature Request Guideon how to submit a feature requestCode of ConductWe follow a strict code of conduct and you can read itHereCreditsDjango MoMo API package was designed and built by Mwanja Joel, and is copyright © Mwanja Joel 2020. Django MoMo API is licensed under the MIT license; for the full license please see theLICENSEfile.If you find Django MoMo API useful and want to reach out, find me on Twitter:@mrjoelmwanja.
Package: django-moneta
django-moneta=============Django app for Moneta eTerminal API.Mozzila's NSS library is used for secure communications, because OpenSSL or GnuTLS doesn't work with Moneta's servers.Requirements------------* [Django] 1.3+* [pysimplesoap] 1.08b+* [python-nss] 0.12+Installation--------------```pip install django-moneta```Usage-----1. Create NSS database with Mobitel's root CA certificate and your client certificate (you can use certconvert.sh)2. Edit your settings.py* Add `moneta` to `INSTALLED_APPS`* set `MONETA_DBDIR` to point to NSS directory you've created in the first step* set `MONETA_CERT_NAME` to your client certificate name* optionally set `MONETA_PIN` if you're using it* set `MONETA_PRODUCTION` to `True` when you go to production3. Use `Transaction` model:```pythonfrom decimal import Decimalfrom moneta.models import Transactiont = Transaction(value=Decimal('1.23'), reference='areference123')token = t.getToken()print "Please call %s to pay." % tokent.getStatus()print t.status #should be 11 since it was just createdt.cancel()print t.status #should be 7```When transaction is finished `transaction_done` signal is emitted.TODO====* Suport delayed transaction* Support other API functionsAuthor------[Visionect d.o.o.], [Matevž Mihalič]Licence-------MIT: http://mit-license.org/[Django]: http://djangoproject.com/[pysimplesoap]: https://code.google.com/p/pysimplesoap/[python-nss]: https://www.mozilla.org/projects/security/pki/python-nss/[Visionect d.o.o.]: http://www.visionect.si[Matevž Mihalič]: http://marv.si