Saravanan666/pypi-org huggingface dataset:
Package: django-icons-twitterjoy
Free icons sets bundled for use in django projects
(requires django.contrib.staticfiles or django-staticfiles).Public Domain, MIT, BSD, WTFPL, LGPL-licensed sets are preferred.django-icons is splitted into several packages in order to reduce
bandwidth consumption.UsageInstall package using pip, add app to INSTALLED_APPS and use staticfiles.Icon setstangoInstallation:pip install django-icons-tangoApp name:icons_tangoUrl:{{ STATIC_URL }}/icons/tango/Origin:http://tango.freedesktop.org/Tango_Icon_LibraryLicense:Public DomainicojoyInstallation:pip install django-icons-icojoyApp name:icons_icojoyUrl:{{ STATIC_URL }}/icons/icojoy/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.icojoy-pointersInstallation:pip install django-icons-icojoy-pointersApp name:icons_icojoy_pointersUrl:{{ STATIC_URL }}/icons/icojoy-pointers/Origin:http://www.icojoy.com/articles/39/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.twitterjoyInstallation:pip install django-icons-twitterjoyApp name:icons_twitterjoyUrl:{{ STATIC_URL }}/icons/twitterjoy/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.backtopixelInstallation:pip install django-icons-backtopixelApp name:icons_backtopixelUrl:{{ STATIC_URL }}/icons/backtopixel/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.onebitInstallation:pip install django-icons-onebitApp name:icons_icojoyUrl:{{ STATIC_URL }}/icons/onebit/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.splashyiconsInstallation:pip install django-icons-splashyiconsApp name:icons_splashyiconsUrl:{{ STATIC_URL }}/icons/splashyicons/Origin:http://splashyfish.com/sketches/comments/splashy-icons-an-icon-library-for-prototypingLicense:It’s free for whatever you want to do with it and no attribution
is required. Just don’t be an ass about it or karma is coming your
way whether you believe it or not (i.e. you shall be transformed into
a skinny pig in this lifetime, struck by really awesome lightning, etc).web_controlInstallation:pip install django-icons-web_controlApp name:icons_web_controlUrl:{{ STATIC_URL }}/icons/web_control/Origin:http://marko.isfoundhere.com/old-site/webcontrolicons.phpLicense:Public DomaincrystalCrystal icons bundle is not a part of django-icons but there are
similar packages available:https://github.com/LangaCore/django-crystal-smallhttps://github.com/LangaCore/django-crystal-bigUrl:{{ STATIC_URL }}/crystal/Origin:http://www.everaldo.com/crystal/License:LGPLContributingSource code:https://bitbucket.org/kmike/django-icons/Bug tracker:https://bitbucket.org/kmike/django-icons/issuesLicense for django-iconsThe license for django-icons source code is MIT.
Package: django-icons-web_control
Free icons sets bundled for use in django projects
(requires django.contrib.staticfiles or django-staticfiles).Public Domain, MIT, BSD, WTFPL, LGPL-licensed sets are preferred.django-icons is splitted into several packages in order to reduce
bandwidth consumption.UsageInstall package using pip, add app to INSTALLED_APPS and use staticfiles.Icon setstangoInstallation:pip install django-icons-tangoApp name:icons_tangoUrl:{{ STATIC_URL }}/icons/tango/Origin:http://tango.freedesktop.org/Tango_Icon_LibraryLicense:Public DomainicojoyInstallation:pip install django-icons-icojoyApp name:icons_icojoyUrl:{{ STATIC_URL }}/icons/icojoy/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.icojoy-pointersInstallation:pip install django-icons-icojoy-pointersApp name:icons_icojoy_pointersUrl:{{ STATIC_URL }}/icons/icojoy-pointers/Origin:http://www.icojoy.com/articles/39/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.twitterjoyInstallation:pip install django-icons-twitterjoyApp name:icons_twitterjoyUrl:{{ STATIC_URL }}/icons/twitterjoy/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.backtopixelInstallation:pip install django-icons-backtopixelApp name:icons_backtopixelUrl:{{ STATIC_URL }}/icons/backtopixel/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.onebitInstallation:pip install django-icons-onebitApp name:icons_icojoyUrl:{{ STATIC_URL }}/icons/onebit/Origin:http://www.icojoy.com/License:These icons are free to use in any kind of commercial or
non-commercial project unlimited times.splashyiconsInstallation:pip install django-icons-splashyiconsApp name:icons_splashyiconsUrl:{{ STATIC_URL }}/icons/splashyicons/Origin:http://splashyfish.com/sketches/comments/splashy-icons-an-icon-library-for-prototypingLicense:It’s free for whatever you want to do with it and no attribution
is required. Just don’t be an ass about it or karma is coming your
way whether you believe it or not (i.e. you shall be transformed into
a skinny pig in this lifetime, struck by really awesome lightning, etc).web_controlInstallation:pip install django-icons-web_controlApp name:icons_web_controlUrl:{{ STATIC_URL }}/icons/web_control/Origin:http://marko.isfoundhere.com/old-site/webcontrolicons.phpLicense:Public DomaincrystalCrystal icons bundle is not a part of django-icons but there are
similar packages available:https://github.com/LangaCore/django-crystal-smallhttps://github.com/LangaCore/django-crystal-bigUrl:{{ STATIC_URL }}/crystal/Origin:http://www.everaldo.com/crystal/License:LGPLContributingSource code:https://bitbucket.org/kmike/django-icons/Bug tracker:https://bitbucket.org/kmike/django-icons/issuesLicense for django-iconsThe license for django-icons source code is MIT.
Package: django-ics-generator
A simple Django view that returns an .ics file as an attachment download when
called via the icalendar script:http://www.keith-wood.name/icalendar.htmlInstallationYou need to install the following prerequisites in order to use this app:pip install DjangoIf you want to install the latest stable release from PyPi:$ pip install django-ics-generatorIf you feel adventurous and want to install the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/django-ics-generator.git#egg=ics_generatorAddics_generatorto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'ics_generator',
)Include the urls for this app:urlpatterns = patterns(
    '',
    url(r'^ics-generator/', include('ics_generator.urls')),
)ContributeIf you want to contribute to this project, please perform the following steps:# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-ics-generator
$ pip install -r requirements.txt
$ ./logger/tests/runtests.sh
# You should get no failing tests

$ git co -b feature_branch master
# Implement your feature and tests
# Describe your change in the CHANGELOG.txt
$ git add . && git commit
$ git push origin feature_branch
# Send us a pull request for your feature branchWhenever you run the tests a coverage output will be generated intests/coverage/index.html. When adding new features, please make sure that
you keep the coverage at 100%.RoadmapCheck the issue tracker on github for milestones and features to come.
Package: django-ide
The Django-IDE is a web based IDE made with html5 and javascript
Currently, the following features have been written and are working:Local storage: When you open a file once, this is copied to browser local storage,
so the next times you open this file, if it has not changed, it will open intantaneusly
from browser storage instead of getting it from server.Offline mode:
When you lose your connection, as it uses the local storage to save data on your browser,
you can continue working in the open files and the changes generated offline will be sent
to the server the next time the ide detects a connection.Sync changes:
If you are editing a file and, at the same time, other person edits it, the ide notify you
of these changes and proposes you to get external changes or override with yoursResources filterSource code color syntaxSource code formattingInstallationFrom pypi:$pip install django-ideFrom source:$python setup.py installConfigurationThe django-ide has two settings that can be set insettings.py:Adddjideto your INSTALLED_APPS in yoursettings.pyproject:INSTALLED_APPS = (‘djide’,Include djide urls in yoururls.pyproject:urlpatterns = patterns((r’^djide/’, include(‘djide.urls’)),RUN$python manage.py runserver
That’s it, the last command should start a local server on port 8000, now you can
open your browser and go to 127.0.0.1:8000/djide to edit your projects apps.TODOs and BUGSSee:https://github.com/lusob/django-ide/issues
Package: django-ideal-aligo
=====
IDEAL aligoPolls is a Django app to conduct Web-based polls. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the "docs" directory.Quick startAdd "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'aligo',
]Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you'll need the Admin app enabled).
Package: django-ideler-mfa
Ideler MFADie Multi-Faktor Authentisierung wird automatisch in das Admin-Interface von Django
eingesetzt. Oben rechts, in der nähe des Logout-Links, lässt sich die MFA einrichten.InstallationPaket ‘django-ideler-mfa’ installieren:pip install django-ideler-mfaNach der Installation,ideler_mfadenINSTALLED_APPSin der settings.py hinzufügen:INSTALLED_APPS = (
    ...
    'ideler_mfa',
)URLs hinzufügen:urlpatterns = [
    ...
    path("mfa/", include("ideler_mfa.urls")),
    ...
]Die Middleware nach derAuthenticationMiddlewarehinzufügen:MIDDLEWARE = (
    ...
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "ideler_mfa.middleware.MFAMiddleware",
    ...
)KonfigurationIn der settings.py:IDELER_MFA = {
    "ISSUER_NAME": "Ideler MFA Demo",
    "CONFIGURATION_REDIRECT_URL": "/",
}Templates zum überschreiben:'ideler_mfa/select.html'
'ideler_mfa/configure.html'
'ideler_mfa/verify.html'
'ideler_mfa/disable.html'
Package: django-identities
django-identitiesReleasesThis project follows thesemantic versioning specificationfor its releases.DevelopmentRequirementsPython >=3.10Django >=3.2django-rest-framework >=3.12SetupCreate and activate a python3 venv.Install the library in the editable modepip install -e .[test,stubs]Install dev requirementspip install -r requirements-dev.txt.Install git hooks to automatically format code using black withpre-commit installMigrationsTo create migrations after modifying database models run./manage.py makemigrationsInstallationFrom git inrequirements.txtTo install this package from this git repository, add thedjango-identitiespackage to therequirements.txtfile.Addguardianandidentitiestosettings.INSTALLED_APPS:INSTALLED_APPS=(#...'guardian','identities',#...)Add the following to yoursettings, replacing all values withREPLACEwith your configuration:AUTH_USER_MODEL="identities.User"GUARDIAN_MONKEY_PATCH=FalseGUARDIAN_GET_INIT_ANONYMOUS_USER="identities.models.get_anonymous_user_instance"AUTHENTICATION_BACKENDS=["django.contrib.auth.backends.ModelBackend","guardian.backends.ObjectPermissionBackend",]AUTHLIB_OAUTH_CLIENTS={"identity_provider":{"client_id":"REPLACE OIDC client_id","client_secret":"REPLACE OIDC client_secret","server_metadata_url":"REPLACE OIDC config_url","client_kwargs":{"scope":"openid email profile"},}}LOGIN_REDIRECT_URL="REPLACE OIDC login_redirect_url"LOGOUT_REDIRECT_URL="REPLACE OIDC logout_redirect_url"In<app>/urls.py, extendurlpatternslike this:urlpatterns=[#...re_path(r"^backend/identity/",include("identities.urls")),re_path(r"^backend/identity/auth/local/",include("rest_framework.urls",namespace="rest_framework"),),#...]Extend the file<app>/templates/rest_framework/base.htmlwith the following:{% if user.is_authenticated %}<liclass="dropdown"><ahref="#"class="dropdown-toggle"data-toggle="dropdown">{{ user.email }}<bclass="caret"></b></a><ulclass="dropdown-menu"style="padding: 0;"><formaction="{% url 'identities:oidc-logout' %}"method="post">{% csrf_token %}<buttonname="logout"value="logout"class="btn btn-default btn-block">Log out</button></form></ul></li>{% else %}<li><ahref="{% url 'identities:oidc-authenticate' %}">Log in (federation)</a></li><li><ahref="{% url 'rest_framework:login' %}">Log in (local)</a></li>{% endif %}Run./manage.py migrateRestart your application server
Package: django-identity-external
Set of middlewares to simplify consumption of external identity
information in Web projects set up with Django Web framework.identity.external.PersistentRemoteUserMiddlewareVarWhen non-standard (different thanREMOTE_USER) environment variable is
used to pass information about externally authenticated user, this
middleware can be used to customize the variable name without writing
Python code.For example, when consuming the information from some authentication
HTTP proxy, HTTP request header values are passed asHTTP_-prefixed
environment variables. If the authenticated user name is inX-Remote-UserHTTP request header, it is available inHTTP_X_REMOTE_USERenvironment variable. Setting variableREMOTE_USER_VARtoHTTP_X_REMOTE_USER, for example with Apache HTTP Server directiveSetEnv REMOTE_USER_VAR HTTP_X_REMOTE_USERand enablingidentity.external.PersistentRemoteUserMiddlewareVarinMIDDLEWARElist afterdjango.contrib.auth.middleware.AuthenticationMiddlewarelikeMIDDLEWARE = [
        ...
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'identity.external.PersistentRemoteUserMiddlewareVar',
        ...
]will rundjango.contrib.auth.middleware.PersistentRemoteUserMiddlewarewith value from environment variableHTTP_X_REMOTE_USER.identity.external.RemoteUserAttrMiddlewareWhen user is externally authenticated, for example viadjango.contrib.auth.middleware.RemoteUserMiddlewareordjango.contrib.auth.middleware.PersistentRemoteUserMiddleware, additional
user attributes can be provided by the external authentication source.This middleware will update user’s email address, first and last name,
and group membership in groups prefixed with ext: with information coming
from environment variablesREMOTE_USER_EMAILREMOTE_USER_FIRSTNAMEREMOTE_USER_LASTNAMEREMOTE_USER_GROUP_NREMOTE_USER_GROUP_1,REMOTE_USER_GROUP_2, …REMOTE_USER_GROUPSwhere theREMOTE_USERprefix of these variables can be changed with theREMOTE_USER_VARenvironment variable, just like withidentity.external.PersistentRemoteUserMiddlewareVar.The values are used verbating, as provided by Django. WhenREMOTE_USER_VALUES_ENCODINGenvironment variable is set tobase64url,
the values are expected to be in this format and decoded to Unicode.Users that are in external groupadmins(and thus get assigned to groupext:adminsin Django) will also get theis_staffflag set and thus
will be able to log in to the admin application.Theext:prefixed groups have to be already created in Django database for
the user membership to be updated in them.In theMIDDLEWARElist, this middleware has to be listed after the
authenticating middleware, for exampleMIDDLEWARE = [
    ...
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.PersistentRemoteUserMiddleware',
    'identity.external.RemoteUserAttrMiddleware',
    ...
]See alsoExternal authentication for Django projects:https://www.adelton.com/django/external-authentication-for-django-projectsPresentation at EuroPython 2015.
Package: django-idfield
# django-idfieldChar ID filed for DjangoInstallation============Install it with pip (or easy_install):```pip install django-idfield```Usage=====```from idfield import IDFieldclass MyModel(models.Model):id = IDField(max_length=10, readable=False, primary_key=True, editable=False)code = IDField(max_length=4, readable=True)```Notes=====* IDField is not a completely unique ID. The larger value of **max_length** makes less collisions possible.* IDField always generate a value, if value is not set.* If **readable=True**, value will be generated from caps letters and numbers, which do not look alike.
Package: django-idom
Django-IDOM ·Django-IDOM connects your Python project to a ReactJS front-end, allowing you to createinteractive websites without needing JavaScript!Following ReactJS styling, web elements are combined intoreusable "components". These components can utilizehooksandeventsto create infinitely complex web pages.When needed, IDOM canuse components directly from NPM. For additional flexibility, components can also befully developed in JavaScript.Any Python web framework with Websockets can support IDOM. See below for what frameworks are supported out of the box.Supported FrameworksSupported Frameworks (External)Flask,FastAPI,Sanic,TornadoDjango,Plotly-Dash,JupyterAt a Glancemy_app/components.pyYou will need a file to define yourIDOMcomponents. We recommend creating acomponents.pyfile within your chosenDjango appto start out. Within this file, we will create a simplehello_worldcomponent.fromidomimportcomponent,html@componentdefhello_world(recipient:str):returnhtml.h1(f"Hello{recipient}!")my_app/templates/my-template.htmlIn yourDjango app's HTML template, you can now embed your IDOM component using thecomponenttemplate tag. Within this tag, you will need to type in your dotted path to the component function as the first argument.Additionally, you can pass inargsandkwargsinto your component function. For example, after reading the code below, pay attention to how the function definition forhello_world(in the previous example) accepts arecipientargument.{%loadidom%}<!DOCTYPE html><html><body>{%component"example_project.my_app.components.hello_world"recipient="World"%}</body></html>ResourcesFollow the links below to find out more about this project.Try it Now- Check out IDOM in a Jupyter Notebook.Documentation- Learn how to install, run, and use IDOM.Community Forum- Ask questions, share ideas, and show off projects.
Package: django-idp-user
Django IDP UserInstallationInstall the package:pip install django-idp-userIf you want to use the async version of the package, you can install it with theasyncextra:pip install django-idp-user[async]Addidp_userto yourINSTALLED_APPS:INSTALLED_APPS=[# ...'idp_user',]Add the settings of the app insettings.pylike this:APP_ENV="development"or"staging"or"production"or"demo"AUTH_USER_MODEL='idp_user.User'IDP_USER_APP={"APP_IDENTIFIER":"str","ROLES":"path.to.roles_choices","FAUST_APP_PATH":"backend.kafka_consumer.app","USE_REDIS_CACHE":True,"IDP_URL":"idp_url",# Optional"APP_ENTITIES":{"<entity_type>":{"model":"<path.to.entity_type.model>","identifier_attr":"<field_name>","label_attr":"<field_name>",}},"CONSUMER_APP_ENV":"staging"or"production",# Optional}REST_FRAMEWORK={'DEFAULT_SCHEMA_CLASS':'drf_spectacular.openapi.AutoSchema'or'idp_user.schema_extensions.AutoSchemaWithRole','DEFAULT_AUTHENTICATION_CLASSES':('idp_user.auth.AuthenticationBackend',),}SPECTACULAR_SETTINGS={'DEFAULT_AUTHENTICATION_CLASSES':('idp_user.schema_extensions.BearerTokenScheme',),'SERVE_AUTHENTICATION':()}# Kafka RelatedKAFKA_ARN="<aws_kafka_arn>"# Encoded in base64KAFKA_AWS_ACCESS_KEY_ID="<access_key_id>"KAFKA_AWS_SECRET_ACCESS_KEY="<secret_access_key_id>"# Encoded in base64AWS_S3_REGION_NAME="<region_name>"Create the database tables for the app by running the following command:python manage.py migrateAsync SupportDjango version 4.1.1 is required for async support.To use the async version of the package, you need to add theasyncextra when installing the package:pip install django-idp-user[async]If you are using Channels for websockets, you can use theIDPChannelsAuthenticationMiddlewarelike so:fromchannels.routingimportProtocolTypeRouter,URLRouterfromidp_user.authimportIDPChannelsAuthenticationMiddlewareapplication=ProtocolTypeRouter({"websocket":IDPChannelsAuthenticationMiddleware(AuthMiddlewareStack(URLRouter(# ...))),})Settings ReferenceAPP_IDENTIFIERThe app identifier, as defined in the IDP.ROLESThe path to the roles choices.FAUST_APP_PATHThe path to the Faust app.IDP_URLThe URL of the IDP, used for local development, or when using the IDP as an Authentication Backend.USE_REDIS_CACHEIf True, the cache will be usedWhen developing locally, you can leave this asFalse.APP_ENTITIESThis dict links the AppEntityTypes declared on the IDP for this app to their actual models,
so that they can be used for authorization purposes. In the value dicts, the attributes that will be
used as the identifier and label are declared as well.CONSUMER_APP_ENVThe environment of the Faust Kafka Consumer app.If not set, the value ofAPP_ENVwill be used.
Package: django-idshost
# django-idshostDjango app to integrate your project in the ids infrastructure.### InstallationYou can get django-idshost from PyPi:```bashpip install django-idshost```### ConfigureTo use the app you should add it to your `INSTALLED_APPS` in `settings.py`.```pythonINSTALLED_APPS = (...'django_idshost',...)```Django-idshost custom the backend, the midleware and the model of the django user, so you have to override these datas in the `settings.py`.```pythonAUTHENTICATION_BACKENDS = ('django_idshost.auth.idsauth.IdsRemoteUserBackend', #use to authenticate an ids user'django.contrib.auth.backends.ModelBackend',#if you want to keep the default authentication, keep this line)MIDDLEWARE_CLASSES = (...'django_idshost.auth.idsauth.IdsHeaderMiddleware',#allow the specific http header use by ids to transmit the authenticate user...)AUTH_USER_MODEL = 'django_idshost.IdsUser'```You should also add your ids datas in the `settings.py`. These datas are transmited by ids.```pythonDJANGO_IDSHOST_SETTINGS = {'APP_NAME': '...', #the name of the app 'xxx.idshost.fr''PRIVATE_IP': '...',#the private ip of your server in the ids infrastructure}```
Package: django-ief
What isdjango_ief?It is a field for django database models which you don't need any extra forms to edit nor save.How to use it?First, install the application and add the urls.# settings.pyinstalled_apps=[...,'django_ief',...,]# urls.pyurlpatterns=[path('',include('django_ief.urls')),# others]Then just use it as a field.fromdjango.dbimportmodelsfromdjango_ief.fieldsimportInlineEditableFielddefpermission_function(request):returnget_perm_from_request(request)classBlogPost(models.Model):content=InlineEditableField(can_edit=permission_function,text_field_kwargs={**kwargs_for_text_field},image_field_kwargs={**kwargs_for_image_field})The above creates an additional model to hold its images which looks like this:classBlogPost_Images(models.Model):owner=models.ForeignKey(BlogPost,on_delete=models.CASCADE)image=models.ImageField(**kwargs_for_image_field)which you can access withBlogPost.image_modeland creates a text field in the original model which looks like:classBlogPost(models.Model):content=InlineEditableField(...)content_text=models.TextField(**kwargs_for_text_field)If you want you may interact with those underlying fields and models but you don't need to,
all you need to do is to use one attribute of theInlineEditableFieldin your templates,rendered.<!-- you need to add the actual editor static for it to work --><scriptsrc="{% static 'django_ief/ckeditor.js' %}"></script><!-- it is just a single file, you now can use any number of fields with the .rendered attribute on the page -->{{ obj.content.rendered }}And that's it, everything else is automatically taken care of.
Package: django-ifgy-login
ifgy_login is a simple Django app to conduct login and logout.It uses bootstrap as login page tplt.Detailed documentation is in the “docs” directory. (not yet!)Quick startAdd “ifgy_login” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'ifgy_login',
)Include the ifgy_login URLconf in your project urls.py like this:url(r'^', include('ifgy_login.urls')),Obs.: if you use it with django-cms, must be located prior to cms urls.Start the development server and visithttp://127.0.0.1:8000/login/you’ll need an account in admin(so you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/logout/to logoff your site._