Saravanan666/pypi-org huggingface dataset:
Package: django-user-auth-asl
User Auth is a Django app to conduct web-based User Auth. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “User Auth” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'user',
]Include the User Auth URLconf in your project urls.py like this:path('api/user/', include('user.urls')),Runpython manage.py migrateto create the User Auth models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a user (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/api/user/to participate in the user auth.all the url for particular action is given below,user registration, url:http://127.0.0.1:8000/api/user/users/, method: post, body:
login, url:http://127.0.0.1:8000/api/user/auth/, method: post, body: username,password
update profile ,http://127.0.0.1:8000/api/user/update_profile/, method: post
get user role,http://127.0.0.1:8000/api/user/user_role/, method: get
path(‘change_password/’,change_password),path(‘token/refresh/’, TokenRefreshView.as_view(), name=’token_refresh’),
path(‘password_reset/’, include(‘django_rest_passwordreset.urls’, namespace=’password_reset’)),
Package: django-user-auth-asl2
User Auth is a Django app to conduct web-based User Auth. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startDependency you have to install:pip installdjango-phonenumber-fielddjangorestframeworkdjangorestframework-simplejwtphonenumbersdjango-rest-passwordresetPillowAdd “User Auth” to your INSTALLED_APPS setting like this:INSTALLED_APPS = […
‘django_rest_passwordreset’,
‘phonenumber_field’,
‘user’,]Include the User Auth URLconf in your project urls.py like this::from django.urls import include
path(‘api/user/’, include(‘user.urls’)),Include the following line in your project settings.py like this:AUTH_USER_MODEL = 'user.User'Runpython manage.py makemigrationsandpython manage.py migrateto create the User Auth models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a user (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/api/to participate in the user auth.all the url for particular action is given below,user registration, url:http://127.0.0.1:8000/api/users/, method: post, body:
login, url:http://127.0.0.1:8000/api/auth/, method: post, body: username, passwordall user, url:http://127.0.0.1:8000/api/users/?limit=<any number. ex: 10>, method: get, body:
retrieve single user, url:http://127.0.0.1:8000/api/users/<id>/, method: get, body:
partial update user, url:http://127.0.0.1:8000/api/users/<id>/, method: patch, body:
delete user, url:http://127.0.0.1:8000/api/users/<id>/, method: delete, body:
update profile ,http://127.0.0.1:8000/api/update_profile/, method: post
change password, url:http://127.0.0.1:8000/api/change_password/, method: patch, body:{“old_password”:””, “new_password”:””}
get refresh token, url:http://127.0.0.1:8000/api/token/refresh/, method: get, body:
reset password ,http://127.0.0.1:8000/api/password_reset/, method: post, body: {“email”:”youremail@gmail.com”}We have used jwt authentication in this packageSo you need to add these following lines in your project settings.py file.REST_FRAMEWORK = {“DEFAULT_AUTHENTICATION_CLASSES”: [“rest_framework_simplejwt.authentication.JWTAuthentication”]}If you want only authenticated permission for your api’s then add the following linesREST_FRAMEWORK = {‘DEFAULT_PERMISSION_CLASSES’: [‘rest_framework.permissions.IsAuthenticated’,]}If you want django model permission for your api’s then add the following linesREST_FRAMEWORK = {‘DEFAULT_PERMISSION_CLASSES’: [‘rest_framework.permissions.DjangoModelPermissions’]}create group, url:http://127.0.0.1:8000/api/groups/, method: post, body:
all group, url:http://127.0.0.1:8000/api/groups/?limit=<any number. ex: 10>, method: get, body:
retrieve single group, url:http://127.0.0.1:8000/api/groups/<id>/, method: get, body:
partial update group, url:http://127.0.0.1:8000/api/groups/<id>/, method: patch, body:
delete group, url:http://127.0.0.1:8000/api/groups/<id>/, method: delete, body:
get user role,http://127.0.0.1:8000/api/user_role/, method: get
Package: django-user-connections
NOTE: This is not stable yet and will likely change!  Please don’t use in production until the 1.0 release.django-user-connectionsdjango-user-connections is a python module written for django that handles user connections.Build StatusIntallationDownload the source from Github and runpython setup.py install.DependenciesTODOExamplesTODOTestsFrom the project root where the manage.py file is, run:python manage.py test
Package: django-user-defined-fields
django-user-defined-fieldsDjango Used Defined Fields is a simple way to allow your users to add extra fields to your models, based on JSONField.InstallationStandard pip install:pipinstalldjango-user-defined-fieldsQuickstartfromuserdefinedfields.modelsimportExtraFieldsJSONFieldclassExample(models.Model):extra_fields=ExtraFieldsJSONField()TestsRun tests in example directory withpython manage.py test librarySettingsUSERDEFINEDFIELDS_INPUT_CLASSES = 'd-none'  # hide the textarea if you're using a frontend solution
Package: django-userdefinedtables
django_userdefinedtablesThis application is intended to be used as a way for an end user to define their own database tables.It is loosely inspired by the way SharePoint lists work.InstallationTo install django_userdefinedtables, use the following command:pip install django_userdefinedtablesuserdefinedtablesshould then added to theAPPSlist in the Django settings.UseModelsThe models which are available for use are:OrganizationalList: Akin to a table in a relational database.Column: Akin to a column/attribute in a relational database. The nakedColumnmodel should not be used, as it is the parent in amulti-table inheritancescheme used to simplify querying for instances of the various column models.Row: Akin to a row in a relational database. Manages order and membership of data entries.Entry: Like,Column, utilizes multi-table inheritance for simplified querying.Data TypeSingleLineOfTextColumn: brief text field. Corresponding value utilizes DjangoCharField.MultipleLineTextColumn: longer length field. Corresponding value utilizes DjangoTextField.ChoiceColumn: option among several user-defined choices. Supported by theChoicemodel, which captures the actual choices available.NumberColumn: A column which allows for entry of a decimal number. Supported byNumericalColumnabstract model, which Utilizes DjangoDecimalField.CurrencyColumn: defines a currency field. Set apart from theNumberColumnin order to support formatting, but is otherwise identical.NOTE: This is possibly unnecessarily redundant to NumberColumn and may be removed in the future.DateTimeColumn: defines a datetime field. Corresponding value utilizes DjangoDateTimeField.BinaryColumnEntry: defines a binary field. Corresponding value utilizes DjangoBooleanField.PictureColumn: defines a picture field. Corresponding value utilizes DjangoImageField.LookupColumn: defines a way for end users to specify a reference to a value in another column. Utilizes several foreign key relationships.URLColumn: defines a url field. Corresponding value utilizes  DjangoURLField.Instance/EntryGenerally, these entries are self-explanatory, given an understanding of the Data Type models.SingleLineOfTextColumnEntryMultipleLineTextColumnEntryChoiceEntryNumberEntryCurrencyEntryDateTimeColumnEntryBinaryColumnEntryLookupColumnEntryURLColumnEntryExamplePlease see theexample pageto see how this package can be used.Active Development & ContributionThis project is still in a nascent stage and is volatile to a degree. Contribution by other members of the community is welcome, whether in the form of pull requests or ideas.
Package: django-userel
Userel is a extend ForeignKey for User model. It addauto_nowandauto_now_addfor setting current
access user automatically.Installsudo pip install django-userelor:sudo pip install git+https://github.com/lambdalisue/django-userel.git#egg=django-userelHow to UseAppend ‘userel’ toINSTALLED_APPSAdd ‘userel.middlewares.UserelDefaultBackendMiddleware’ to yourMIDDLEWARE_CLASSESif you use default userel backendExample mini blog appmodels.py:from django.db import models
from django.contrib.auth.models import User

from userel.fields import UserelField

class Entry(models.Model):
        PUB_STATES = (
                ('public', 'public entry'),
                ('protected', 'login required'),
                ('private', 'secret entry'),
        )
        pub_state = models.CharField('publish status', choices=PUB_STATES)
        title = models.CharField('title', max_length=140)
        body = models.TextField('body')

created_by = UserelField('created by', related_name='entries_create', auto_now_add=True)
updated_by = UserelField('updated_by', related_name='entries_update', auto_now=True)SettingsUSEREL_BACKENDClass or string path of backend. the backend is used to determine user when object is created/updated.BackendThe default backend usethread_localsstorategy to get current request in signal call.If you want to change the strategy or whatever, create your own backend.A backend is a class which haveget_usermethod to determine current user.UserelDefaultBackendDefault backend. This backend return None when no request found or AnonymousUser create/update object.UserelSystemUserBackendSystem user backend. This backend return system user when no request found or AnonymousUser create/update object.system user is determined withget_system_usermethod and default isUser.objects.get(pk=1)
Package: django-user-email
django-user-emailInstallation•Contributing•LicenseCustom, simple Django User model with email as usernameInstallationUse your preferred package manager (pip,poetry,pipenv) to install the package. For example:$poetryadddjango-user-emailThen register 'user_email', in the 'INSTALLED_APPS' section of your project's settings.# settings.py...INSTALLED_APPS=(...'user_email',)...Set AUTH_USER_MODEL - Since it's a custom User model Django needs to know the path of the model# settings.py...AUTH_USER_MODEL='user_email.User'...ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT License
Package: django-user-email-extension
Django-User-Email-ExtensionDjango application that extends User module, and provides email verification process.Installpip install django-user-email-extensionAdd to installed apps, and email provider details:importosINSTALLED_APPS=[# ...'django_user_email_extension',# ...]################################ Define the default user model###############################AUTH_USER_MODEL='django_user_email_extension.User'# if set then users age will be validated for minimal age (in years)USER_MINIMAL_AGE=int(os.environ.get('USER_MINIMAL_AGE',None))# if set, used address cannot be saved with non verified phone numberENFORCE_USER_ADDRESS_VERIFIED_PHONE=int(os.environ.get('ENFORCE_USER_ADDRESS_VERIFIED_PHONE',False))EMAIL_USE_TLS=TrueEMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'EMAIL_HOST=os.environ.get('email_host')EMAIL_PORT=os.environ.get('email_port')EMAIL_HOST_USER=os.environ.get('email_username')EMAIL_HOST_PASSWORD=os.environ.get('email_password')# optional, if not set, verification email will never expire.DJANGO_EMAIL_VERIFIER_EXPIRE_TIME=24# In HoursRun migrations:python3manage.pymakemigrations
python3manage.pymigrateUsage Exampleuse:fromdjango.contrib.authimportget_user_modelUser=get_user_model()user_object=User.objects.create_user(email='EMAIL',password='PASSWORD')# .save() must be called# this option has been modified so extra action could be executed before final user creationuser_object.save()# user is a Django User objectuser_object.create_verification_email()# Send the verification emailuser_object.send_verification_email(subject=subject,body=body,# *** view body example below to contain the unique UUIDfrom_mail=EMAIL_HOST_USER)Then when user click the link (from the body sent via email)# make sure url is getting a uuid key in urls.pypath('verify_account/<uuid:verification_uuid>/',views.VerifyEmailUUIDView.as_view(),name='verify_account')# initiate verification process on the return viewver_uuid=DjangoEmailVerifier.objects.get(verification_uuid='UUID_FROM_REQUEST')ver_uuid.verify_record()The confirmation uuid can be sent as part of the body for example:body='Follow this link to verify your account: https://nalkins.cloud{}'.format(reverse('verify_account',kwargs={'verification_uuid':str(user_object.get_uuid_of_email())}))
Package: django-userena
# Django Userena[![Build Status](https://travis-ci.org/bread-and-pepper/django-userena.svg)](https://travis-ci.org/bread-and-pepper/django-userena)
[![Coverage Status](https://img.shields.io/coveralls/bread-and-pepper/django-userena.svg)](https://coveralls.io/r/bread-and-pepper/django-userena)Userena is a Django application that supplies your Django project with full
account management. It’s a fully customizable application that takes care of
the signup, activation, messaging and more. It’s BSD licensed, which means you
can use it commercially for free!## [Documentation](http://docs.django-userena.org/en/latest/index.html)Complete documentation about the
[installation](http://docs.django-userena.org/en/latest/installation.html),
[settings](http://docs.django-userena.org/en/latest/settings.html) and
[F.A.Q.](http://docs.django-userena.org/en/latest/faq.html) is available on
[Read the Docs](http://docs.django-userena.org/en/latest/index.html).For list of updates and changes seeUPDATES.mdfile.
Package: django-userena-ce
Django Userena (Community Edition)This project is a community edition fork ofdjango-userena.Userena is a Django application that supplies your Django project with full
account management. It's a fully customizable application that takes care of
the signup, activation, messaging and more. It's BSD licensed, which means you
can use it commercially for free!Supported SoftwareSoftwareVersionsPython3.8, 3.9, 3.10, 3.11Django3.2, 4.1, 4.2Django Guardian>2.0DocumentationComplete documentation about theinstallation,settingsandF.A.Q.is available onAll Documentation.For list of updates and changes seeHISTORY.mdfile.
Package: django-user-extension
DescriptionThis is a simple app that that helps you subclass the Django User model. It
makes use of the InheritanceQuerySet provided byDjango-Model-Utilsto make
it possible for you to create as many subclasses of the User model as you like.It’s usually recommended to create a “user profile” model when you want to
store additional information about each user. Unfortunately, this doesn’t work
at all if you need multiple user models with different information in each.
It’s also a bit of a pain to make sure a profile exists andget_profile()can sometimes introduce extra database queries.Requirements and InstallationDjango-User-Extension requires:DjangoDjango-Model-Utilssetuptools or preferablydistributeInstallation is as simple as:pip install django-user-extensionSourceYou can install the latest development version from thehg repositorywith:pip install -e hg+http://code.db-init.com/django-user-extensionOr from atarballwith:pip install django-user-extension==devUsageDjango-User-Extension provides a modified authentication ModelBackend class
that resolves the correct User subclass. This will ensure thatrequest.userrepresents your subclass model. Simply add this to yoursettings.py:AUTHENTICATION_BACKENDS = ('user_extension.backends.SubUserModelBackend',)Also provided is a modified admin UserAdmin class that will allow you to easily
add your subclasses to the Django admin. If you try to use the default
UserAdmin you’ll get an error message when add any of your custom fields tofieldsets. Make sure you also add any required fields toadd_fieldsets.
You can use it like this in youradmin.py:from user_extension.admin import SubUserAdmin

class CustomUserAdmin(SubUserAdmin):
    fieldsets = SubUserAdmin.fieldsets[:2] + (
        (None, {
            'fields': ('picture',)
        }),
    ) + SubUserAdmin.fieldsets[2:]
    add_fieldsets = SubUserAdmin.add_fieldsets + (
        (None, {
            'fields': ('picture',)
        }),
    )
Package: django-userextensions
django-userextensionsA user extension module for django. This includes some basic user profile settings and
tracking of a users favorites and recently visited urls within the project.AuthorDavid SlusserDescriptionA user extension module for django. This includes some basic user profile settings and tracking of a users favorites and recently visited urls within the project.RequirementsPython 3.xDjango 2.2.xDocumentationFull documentation can be found onhttp://django-userextensions.readthedocs.org.
Documentation source files are available in the docs folder.Installationpip install django-userextensionsadd userextensions to your INSTALLED_APPSto include recents tracking, add 'userextensions.middleware.UserRecentsMiddleware' to your middlewareto include views to manage favorites and recents, in the project-level urls.py file add the following to your urls.py:
from userextensions.urls import *
path('', include('userextensions.urls'), ),run migrations python ./manage.py migrate userextensionsLicensedjango-userextensions is licensed under the MIT license (see the LICENSE file for details).FeaturesUser PreferencesExtends the built-in User model to add theme, recents_count, page_refresh_time, and start_page fields.User-Defined Start PageUsers can define a specific page to be routed to after login. This is set in the UserPreference model.
To enable, add 'userextensions' to the INSTALLED_APPS and set the following in the settings.py file:LOGIN_REDIRECT_URL = '/userextensions/user_login_redirect'User FavoritesEach user can add/delete favorites, which stores specified URL. Views are provided to add the current url as a favorite, list user favorites, and delete favorites.Recently viewed URLsEach user can have recently viewed urls stored as a recent Views are provided to list and remove recents. Recents are added via middleware.
To enable, add 'userextensions' to the INSTALLED_APPS and 'userextensions.middleware.UserRecentsMiddleware' to the MIDDLEWARE in the settings.py file.
By default, some fixed URLs and URLs with specific prefixes are excluded from being stored in recents. These can be modified by setting the SKIP_URL_PREFIX_LIST and SKIP_FIXED_URL_LIST parameters in the settings.py file.INSTALLED_APPS = [
    ...
    'userextensions',
]

MIDDLEWARE = [
    ...
    'userextensions.middleware.UserRecentsMiddleware',
]

SKIP_URL_PREFIX_LIST = ['/admin/', '/__debug__/']
SKIP_FIXED_URL_LIST = ['/', '/login/', '/logout/', ]Provided ViewsSeveral views, with applicable templates, are provided for use. To use these, add the following to your project-level urls.py:from userextensions.urls import *

urlpatterns = [
    ...
    path('', include('userextensions.urls'), ),
]ViewUsagelist favoritesuserextensions:list_favoriteslist recentsuserextensions:list_recentsdelete favoriteuserextensions:delete_favoritedelete recentuserextensions:delete_recentadd favoriteuserextensions:add_favoriteset start pageuserextensions:set_start_pagerefresh API tokenuserextensions:refresh_api_tokendetail useruserextensions:detail_userAPIs
Package: django-userforeignkey
Django UserForeignKeyDjango UserForeignKey is a simple Django app that will give you aUserForeignKeymodel field for Django models.
This field extends a regular ForeignKey model field, and has the option to automatically set the currently logged in
user on insert and/or update.Currently, Django 2.2 (Python 3.7+) and Django 3.2 (Python 3.7+) are supported.If you need support for the insecure and deprecated Python 3.6, please fall back to version 0.4.0.If you need support for the insecure and deprecated Django 1.11 and/or Python2, please fall back to version 0.3.0.If you need support for the insecure and deprecated Django 1.8 (and possibly 1.9 and 1.10), please fall back to
version 0.2.1.There also is avideo tutorial on YouTubethat shows you basic
functionality of this package.QuickstartInstall the package from pypi using pip:pipinstalldjango-userforeignkeyAdddjango_userforeignkeyto yourINSTALLED_APPSwithin your Django settings file:INSTALLED_APPS=[...'django_userforeignkey',]Adddjango_userforeignkey.middleware.UserForeignKeyMiddlewareto yourMIDDLEWAREsettings like this:MIDDLEWARE=[...'django.contrib.auth.middleware.AuthenticationMiddleware',...'django_userforeignkey.middleware.UserForeignKeyMiddleware',]Make sure to insert theUserForeignKeyMiddlewaremiddlewareafterAuthenticationMiddleware.Example usageJust addUserForeignKeyto your model like you would with any other foreign key.fromdjango.dbimportmodelsfromdjango_userforeignkey.models.fieldsimportUserForeignKeyclassMyModel(models.Model):my_data=models.CharField(max_length=64,verbose_name="Very important data that are somehow related to a user")user=UserForeignKey(auto_user_add=True,verbose_name="The user that is automatically assigned",related_name="mymodels")TheUserForeignKeybehaves just like a normal foreign key to the user model (usingsettings.AUTH_USER_MODEL), and
thus also has properties such asrelated_name. However, whenever an object is created by calling an authenticated
view (admin, REST API, ...) which contains arequest.userobject, therequest.userobject is automatically
associated.Configuration optionsThe configuration options are similar to Django'sDateField.auto_user: Automatically sets the current user everytime the object is saved (e.g., created or updated). This is
useful forlast modified byinformation.auto_user_add: Automatically sets the current user when the object is first created. This is useful
forcreated byinformation.Development and testsgitclone--recursivehttps://github.com/beachmachine/django-userforeignkeycddjango-userforeignkey
python-mvenv./venvsourcevenv/bin/activate
pipinstall-e.
pipinstallDjangocdtests/user_foreign_key_testapp
pythonmanage.pytest
Package: django-user-images
Django app for managing user files uploads, permissions and limitsQuickstartInstall Django User Images:pip install django-user-imagesAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_user_images',...)If you want to use it with DRF, use django-user-images.rest:INSTALLED_APPS=(...'django_user_images.rest',...)ConfigurationUSER_IMAGE_ONE_FILE_LIMIT - limit one file size upload in bytesUSER_IMAGES_LIMIT - limit total file size per user, static in bytesUSER_IMAGES_LIMITER - limit total file size per user, dynamic. Should be a string pointing to function, accepting user instance and returning limit in bytesCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2018-06-06)First release on PyPI.
Package: django-user-language-middleware
What’s this?This package contains a middleware that activates translations based on the
language field in the user model. This enables easy user-specific localization
of a Django application: just add a language string field to the user model,
install this middleware and you’re good to go!UsageAdd a language field to your user model:classUser(auth_base.AbstractBaseUser,auth.PermissionsMixin):# ...language=models.CharField(max_length=10,choices=settings.LANGUAGES,default=settings.LANGUAGE_CODE)Install the middleware from pip:pipinstalldjango-user-language-middlewareand then add it to your middleware class list to listen to requests:MIDDLEWARE=[# Or MIDDLEWARE_CLASSES on Django < 1.10...'user_language_middleware.UserLanguageMiddleware',...]Supported versionsPython:2.73.4 to 3.6Django:1.8 to 1.112.0