Saravanan666/pypi-org huggingface dataset:
Package: django-ultratenant
Django UltratenantPitch (Portuguese)Part 1:https://www.loom.com/share/a90948958c184a0fb64868bbb0230a28Part 2:https://www.loom.com/share/52fd66b6f5a047f88a9fed56c1cf70d1What isDjango multi-tenant library that implements diferent approachesSimple API with minimal setupTransparent for the applicationSupported isolations approaches:multi-dbmulti-schematenant-idSupported URL approaches: subdomain and pathtenant.url.comurl.com/tenant/admin/Support multiple databasesGood documentationContributingRules to contributeClone the codegitclonehttps://github.com/HBN3tw0rk/django-ultratenantcddjango-ultratenant
gitcheckoutmainOrgitclonegit@github.com:HBN3tw0rk/django-ultratenant.gitcddjango-ultratenant
gitcheckoutmainSetup the projectpython-mvenv.venvsource.venv/bin/activate
pipinstall-Upip
pipinstall".[test]"pre-commitinstall
pre-commitautoupdate
pytestCreate a new branchgitfetchorigin
gitcheckout-btask/branch-name-you-work-issueCreate a pull request to the branchmainUltimate Django app for multi-tenant.Documentation:https://django-ultratenant.readthedocs.io.Installationpipinstalldjango-ultratenantHow to UseTODOAlternativeshttps://github.com/django-tenants/django-tenants/- only Postgres
with multi-schemahttps://github.com/citusdata/django-multitenant- only Postgres
(with Citus extension)Base projectshttps://github.com/henriquebastos/pds-multi-tenant/https://github.com/eli-junior/djangoDefault/MVPsetup and pipSQLite3 supportmulti-dbtenant on URL pathdocumetation about how customize manage.pyAPI# settings.pyfromultratenant.multidbimportDatabases...MIDDLEWARE=[...'ultratenant.path.Middleware',]...DATABASES=Databases(config('DATABASE_URL',cast=dburl))DATABASE_ROUTERS=['ultratenant.multidb.Router'](maybe it won't be necessary)# urls.py...fromultimate_tenants.urlsimporttenants_pathurlpatterns=tenants_path([path('admin/',admin.site.urls),path('',index,name='index'),])# url.com/tenant/adminRoadmapother databases supported by Django:PostgreSQL,MariaDB,MySQL,Oraclemulti-schematenant-idcustom [manage.py]{.title-ref} to access different tenantscookiecutter to create a new projectChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.0.1] - 2022-07-31AddedFirst release on PyPI.
Package: django-umsebenzi
Django-UmsebenziUmsebenzi, which means work in the Zulu language, is a set of simple Django REST apis to manage and keep track of your personal
projects and tasks.It consists of 2 Endpoints:ProjectsTasksInstallationpip install django-umsebenziSetupAdd the appumsebenzitoINSTALLED_APPSUmsebenzi usesDefaultRouterfor its urls. To add it to your main router in your project:from umsebenzi.urls import router as umsebenzi_router 

main_router.registry.extend(umsebenzi_router.registry)Once the urls are connected you will be to view docs if you have the swagger tool for api documentation
There are some examples below to see some of the data that can be createdExample Request/ResponseProject APIRequestdata = {
    'title': 'New Project',
    'description': 'Build stuff here',
    'code': 'NP'
}Response[{
    'id': <project.id>,
    'title': 'New Project,
    'description': 'Build stuff here,
    'code': NP,
    'created_by': {
        'username': 'creator',
        'email': ''
    },
    'created_at': <datetime>,
    'modified_at': <datetime>,
    'status': 'DRAFT'
}]Task APIRequestdata = {
    'project_id': <project.id>,
    'title': 'Write Tests',
    'description': 'Write Tests to finish project',
    'assigned_to_id': <user.id>,
}Response{
    'project': {
        'id': <project.id>,
        'title': 'New Project',
        'description': 'Build Stuff here',
        'code': 'NP',
        'status': 'DRAFT',
        'created_at': <datetime>,
        'modified_at': <datetime>,
        'created_by': {
            'username': 'creator',
            'email': ''
        }
    },
    'title': 'Write Tests',
    'description': 'Write Tests to finish project',
    'due_date': None
    'status': 'DRAFT',
    'code': 'NP-1',
    'created_at': <datetime>,
    'modified_at': <datetime>,
    'assigned_to': {
        'username': 'assignee',
        'email': ''
    },
    'created_by': {
        'username': 'creator',
        'email': ''
    }
}Filtering TasksTasks can be filtered by using the project code, example url is shown below.eg: http://localhost:8000/v1/api/tasks?project=<code>OpenAPI Endpoints
Package: django-uncharted
django-uncharted================This is a `Django <http://djangoproject.com>`_ integration of `amCharts <http://amcharts.com>`_Authored by `Basil Shubin <http://github.com/bashu>`_, inspired by `django-chartit <https://github.com/pgollakota/django-chartit>`_.. image:: https://img.shields.io/pypi/v/django-uncharted.svg:target: https://pypi.python.org/pypi/django-uncharted/.. image:: https://img.shields.io/pypi/dm/django-uncharted.svg:target: https://pypi.python.org/pypi/django-uncharted/.. image:: https://img.shields.io/github/license/bashu/django-uncharted.svg:target: https://pypi.python.org/pypi/django-uncharted/Installation------------Either clone this repository into your project, or install with ``pip install django-uncharted``You'll need to add ``uncharted`` to ``INSTALLED_APPS`` in your project's ``settings.py`` file:.. code-block:: pythonINSTALLED_APPS += ['uncharted',]Please see ``example`` application. This application is used tomanually test the functionalities of this package. This also serves asa good example.You need Django 1.4 or above to run that. It might run on olderversions but that is not tested.External dependencies~~~~~~~~~~~~~~~~~~~~~* `amCharts <https://github.com/amcharts/amcharts2>`_ - This is notincluded in the package since it is expected that in most scenariosthis would already be available.Configuration (optional)------------------------Usage-----Templates---------Contributing------------If you've found a bug, implemented a feature or customized thetemplate and think it is useful then please consider contributing.Patches, pull requests or just suggestions are welcome!License-------``django-uncharted`` is released under the MIT license.
Package: django-underconstruction
🛠️ Django Under ConstructionPut your Django website "under construction" with a single setting.InstallInstall the package frompypi.$ pip install django-underconstructionAdddjango_underconstructionto your INSTALLED_APPS.# settings.pyINSTALLED_APPS=[...'django_underconstruction',...]Add theUnderConstructionMiddlewaremiddleware class to your MIDDLEWARE.# settings.pyMIDDLEWARE=[...'django_underconstruction.middleware.UnderConstructionMiddleware',...]Once you setsettings.UNDER_CONSTRUCTIONtoTruethe under construction page is shown.# settings.pyUNDER_CONSTRUCTION=notDEBUGSettingsOptionDescriptionDefaultUNDER_CONSTRUCTIONWhether the site is under construction.FalseUNDER_CONSTRUCTION_TEMPLATEHTML template to show while under construction.'django_underconstruction/construction.html'LicenseReleased under theMIT license.
Package: django-undermythumb
The Django thumbnail generator with a heart of stone.Read the docs!Changelog0.2.2Added initial project documentation.Sphinx-written docs now found in/docsdir.Cleaned up grammatical and formatting mistakes inrenderersmodule.0.2.1Mainteance update.Abtracted thumbnail collection object and field files into own modules.Added*~to.gitignore.0.2Improved path traversal and type checking for undermythumb fields.ImageFallbackFieldperforms a better type check to determine
if its content is a real field upload or the result of a fallback.BaseRenderernow uses a default quality of “100”. “75” is ridiculously low.Abstracted fallback logic into separate functionScrapped current tests in favor of a simple approach. more tests coming soon.Cleaned up test runner, models, and settings0.1.1Thumbnail cache now populated only when instances have ids.FallbackFieldDescriptornow ensures that thumbnails it persists
are actually what it wants to persist.More documentation around thicker logic.0.1.0Initial release.
Package: django-unfold-admin
RTL Unfold Django Admin Panel ThemeThis project is forked fromhttps://github.com/unfoldadmin/django-unfoldwith RTL support.How to install?1.using pip to install packagepipinstalldjango-unfold-admin2.addunfoldtosettings.pyINSTALLED_APPS:# settings.pyINSTALLED_APPS=["unfold",# before django.contrib.admin"django.contrib.admin",...]3.now you can useModelAdminclass defined inunfold.admininadmin.py:# admin.pyfromdjango.contribimportadminfromunfold.adminimportModelAdmin@admin.register(MyModel)classCustomAdminClass(ModelAdmin):passthats that!FeaturesRTL supportDark mode is availablePersian font Vazir includedResponsive designScreenShots
Package: django-un-foo
DescriptionQuick startInstall the lib:pip install django-un-fooAdd “foo” to yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [
    ...
    'un_foo',
    ...
]Include the foo URLconf in your projecturls.pylike this:path('', include('un_foo.urls')),Add this variableFOO_SETTINGtosettings.pyYou will find the foo api documentation in/foo/.
Package: django-unfriendly
The unfriendliest urls in town!django-unfriendlyis a Django app that obfuscates urls and allows your application to natively execute the original view.There is lots of talk about SEO friendly urls. The trend is towards more and more human readable information in your urls and Django makes it easy to create urls like:http://yoursite.com/music/awesome/the-melvins/But sometimes urls can give too much away. This is wheredjango-unfriendlycomes in.django-unfriendlyprovides a template filter that obfuscates urls in your templates, and a url handler/view that deobfuscates and executes the original view (e.g. no redirection).Read the docshttps://django-unfriendly.readthedocs.org/en/latest/Version compatibilityv0.6Python 2.7, 3.5Django 1.8, 1.9, 1.10v0.5.0Python 2.7Django 1.8, 1.9, 1.10v0.4.1Python 2.6 and 2.7Django 1.0 - 1.8
Package: django-unfurl
Author:Keryn KnightVersion:0.1.1ReleaseStatusstable (0.1.1)masterWhat it isA small re-usable app forDjangoto output all the URLs used in a project,
both via a view and a management command. Internally re-uses functionality ofadmindocsRationaleEver come onto a project for the first time, or after a long period of time away
from it, and can’t remember all the URLs being used? This is a quick and dirty
way to find out what’s going on, if you’re not usingadmindocs(which I
never do) …Getting startedYou’ll need to get the package onto your python path. For now, that’s something like:pip install git+https://github.com/kezabelle/django-unfurl.git#egg=django-unfurlYou’ll also need to ensure it’s part of yourINSTALLED_APPS:INSTALLED_APPS += (
  'unfurl',
)Setting up the viewThen, in your rootURLCONF(usuallyprojectname/urls.py), add:urlpatterns = [
  # ...
  url(r'^urls/', include('unfurl.urls')),
  # ...
]Using the management commandSimply callpython manage.py urls_listto have a list of all URLs output
to your console. If possible, it will output them in thelesspager, unless
you’re redirecting output (ie:python manage.py urls_list > all_urls.txtTestsThere aren’t many. This was just an experiment which I’ve refined a touch.
Trust it or don’t.The licenseIt’s theFreeBSD. There’s should be aLICENSEfile in the root of the repository, and in any archives.Copyright (c) 2017, Keryn Knight
All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Change history for django-unfurl0.1.1Initial release
Package: django-uniapi
django-uniapiDjango General/Universal APIInstallationpipinstalldjango-uniapiUrls.pyurlpatterns=[url(r'^uniapi/',include('django_uniapi.urls',namespace='django_uniapi')),]orfromdjango.conf.urlsimportinclude,urlfromdjango_uniapiimportviewsasuni_viewsurlpatterns=[url(r'^status$',uni_views.server_status,name='server_status'),url(r'^time$',uni_views.server_time,name='server_time'),url(r'^error$',uni_views.raise_error,name='raise_error'),]urlpatterns+=[url(r'^set_cookie$',uni_views.set_cookie,name='set_cookie'),url(r'^del_cookie$',uni_views.del_cookie,name='del_cookie'),url(r'^del_cookie2$',uni_views.del_cookie2,name='del_cookie2'),]Settings.pyINSTALLED_APPS=(...'django_uniapi',...)
Package: django-unicorn-gbusby
UnicornThe magical full-stack framework for Django ✨Unicornis a reactive component framework that progressively enhances a normal Django view, makes AJAX calls in the background, and dynamically updates the DOM. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or re-building your website.⚡ How to useInstallUnicornCreatea componentLoad theUnicorntemplatetag with{% load unicorn %}and add the component to your template with{% unicorn 'component-name' %}🎉📖 More detailsChangelogDocsScreencastsExamples🔧 To hack on the codePythonpoetry install -E minify -E docspoetry run pytestJavaScriptnpm installnpm run testCheck outDEVELOPING.mdfor more details.👏 ContributorsThanks goes to these wonderful people (emoji key):Adam Hill💻⚠️Andres Vargas💻Eddy Ernesto del Valle Pino💻Yaser Al-Najjar💻Stephan Traub⚠️Fredrik Borg💻⚠️mbacicc💻Ron📖Franziskhan💻Josh Higgins⚠️💻Amayas Messara💻Apoorva Pandey⚠️💻Christian González💻📖robwa💻⚠️Preston Badeer📖Sergei📖💻⚠️bazubii💻⚠️This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: django-unified-signals
Django Unified SignalsThis package extends behavior of the Django Signals, by unifying the data passed
when the signal is sent. That way both: the sender and the receiver can be sure
that the data passed is always of the same type.Django Signals are not very strict on the data that can be passed withsend method.
Basically anything can be passed as the arguments and receivers
need to be aware of that from the project documentation. It gets even worse when on one
side the signal send params change and the receivers' maintainers may not be aware of that.
It gets even worse, when using send_robust method, which ignores all exceptions
and any errors may pass without being noticed.Using this package you have to define the message type class which objectis always expected to be passed when sending the signal. That way receiver
knows what type of message will be received. This package automates the process
of checking if the send message is following the contract.InstallationThe package isavailable on PyPI:pipinstalldjango-unified-signalsUsageLet's start by defining the message structure. It can be any class you want.
In the example we will usedataclass:importdataclasses@dataclasses.dataclassclassUserMessage:name:strage:intNow that we have the message structure defined, we can create the signal:fromunified_signalsimportUnifiedSignaluser_deactivated_signal=UnifiedSignal(UserMessage)It extends the standarddjango.dispatch.Signalclass,
so it can be used in the same way.user_deactivated_signal.send(sender,UserMessage(name='John',age=30))The receiver can be defined in the same way as for the standard Django Signal:@receiver(user_deactivated_signal)defhandle_user_deactivated(sender,message:UserMessage,**kwargs):print(message.name)print(message.age)...The difference is that the message is always of the same type, so the receiver
can be sure that the message is always of the same type. If the message is not
of the expected type when sending the signal, theunified_signals.exceptions.UnifiedSignalMessageTypeErrorexception will be raised.user_deactivated_signal.send(sender,'not a message')# raises UnifiedSignalMessageTypeError
Package: django-uni-form
=====================================django-uni-form (django-uni-form)=====================================Django_ forms are easily rendered as tables,paragraphs, and unordered lists. However, elegantly rendered div based formsis something you have to do by hand. The purpose of this application is toprovide a simple tag and/or filter that lets you quickly render forms in a divformat.`Uni-form`_ has been selected as the base model for the design of the forms.Documentation=============http://readthedocs.org/docs/django-uni-form/en/latest/.. note:: django-uni-form only supports Django 1.2 or higher and Python2.5.4, Python 2.6.x and Python 2.7.x. If you need to support earlier versionsof Django or Python you will need to use django-uni-form 0.7.0... _`Uni-form`: http://sprawsm.com/uni-form.. _Django: http://djangoproject.com
Package: django-unihandecodejs
A Django app that simply provides unihandecode.js (https://github.com/ojii/unihandecode.js) out of box to be used along side with Django CMS.InstallationTo get started usingdjango-unihandecodejs:install it withpip:$ pip install django-unihandecodejsadd the app toINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'unihandecodejs',
    ...
)UsageThis app does nothing excepts injecting unihandecode.js as static files into your Django project. No specific usage is needed.Most people just need unihandecode.js for their Django CMS project as they have East Asian languages on their sites. Due to licence issue, unihandecode.js isn’t included in Django CMS. You have to download and throw the codes of unihandecode.js into your project’s static file folder, which becomes a tedious step of each Django CMS site’s setup phase. That’s why this app is created: a simple pip install to replace download and copy.Since this app is mainly used for Django CMS project, please refer tohttp://docs.django-cms.org/en/latest/reference/configuration.html#unicode-support-for-automated-slugsfor configuration. For the impatient, just add the below lines into your settings.py:CMS_UNIHANDECODE_HOST = '%sunihandecodejs/' % STATIC_URL

CMS_UNIHANDECODE_VERSION = '1.0.0'

CMS_UNIHANDECODE_DECODERS = ['zh'] #Change to your desired language list
Package: django-unique-user-email
django-unique-user-emailEnable login-by-email with the default User model for your Django project by making auth.User.email unique.A quick note on why?Django'sleaky batteryis its recommendation that you create a custom user model.
Auth is so central and so standard that, into the high-nines (99.99%?), the vast majority of projects shouldneverneed to customise the central auth model.
This is a battery that Django should very much provide.There's a complexity tax from exposing the auth model.
There's a performance tax as the auth model becomes a generic dumping ground for User related data that has nothing to do with authentication.
There's a learning tax as users hit the custom user model, and the (frankly, misplaced) warnings about it's importance.Again, the vast majority of projects shouldneverneed to customise the central auth model.Can I login with my email?Most projects, all folks wanted was login-by-email.
By making the defaultauth.Usermodel have unique email field, and a few other bits and bobs, this is enabled.The goal of this package is to give you the tools you need for login-by-email with Django's defaultUsermodel. I believe this should be a option in Django itself, so it's a proof-of-concept for a future discussion there too.A longer discussion,Coming Soon. Until then I dida blog post that says a little more.OverviewInstall frompip:pip install django-unique-user-emailAdd toINSTALLED_APPSINSTALLED_APPS = [
      "django.contrib.admin",
      "django.contrib.auth",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.messages",
      "django.contrib.staticfiles",

      "unique_user_email",
      ...
  ]Migrate to add the unique constraint toUser.email.Install auth backend to allow email loginAUTHENTICATION_BACKENDS = [
      'unique_user_email.backend.EmailBackend',
      'django.contrib.auth.backends.ModelBackend',
  ]Use the customAuthenticationFormto login withusernameoremail.# urls.py
  from django.contrib.auth.views import LoginView
  from unique_user_email.forms import AuthenticationForm

  urlpatterns = [
      # Route LoginView before other auth views to match first.
      # https://docs.djangoproject.com/en/dev/topics/auth/default/#module-django.contrib.auth.views
      path(
          "accounts/login/",
          LoginView.as_view(form_class=AuthenticationForm),
          name="login",
      ),
      ...
  ]Fuller tutorial,Coming Soon.TestingClone the repo, create a virtual environment, andpip install -e .the package.You can run withjust test.This wraps the full command:django-admin test --settings=tests.settings --pythonpath=.
Package: django-unitology
Custom model fields to store, retrieve and convert measurements of height, weight and more…Authored byBasil Shubin,  and some greatcontributors.Installationpipinstalldjango-unitologyExternal dependenciesjQuery - this is not included in the package since it is expected
that in most scenarios this would already be available.SetupAddunitologytoINSTALLED_APPS:INSTALLED_APPS+=('unitology',)Update yoururls.pyfile:urlpatterns+=[url(r'^unitology/',include('unitology.urls')),]When deploying on production server, don’t forget to run:pythonmanage.pycollectstaticUsage# models.pyfromdjango.dbimportmodelsfromdjango.contribimportadminfromunitology.modelsimportUnitsFieldMixinfromunitology.fieldsimportWeightField,HeightFieldfromunitology.formsimportUnitsFieldFormMixinclassPerson(UnitsFieldMixin):name=models.CharField(max_length=128)weight=WeightField(blank=True,null=True)height=HeightField(blank=True,null=True)classPersonChangeForm(UnitsFieldFormMixin):classMeta:model=PersonclassPersonAdmin(admin.ModelAdmin):form=PersonChangeFormadmin.site.register(Person,PersonAdmin)Please seeexampleapplication. This application is used to manually test the functionalities of this package. This also serves as a good example.You need only Django 1.4 or above to run that. It might run on older versions but that is not tested.Licensedjango-unitologyis released under the MIT license.
Package: django-units
A Django app to convert units between different systems.It is meant to simplify the need to use different unit systems at the same
time. E.g. providing inputs, that allow entering distances and weights in the
imperial or the metric system.InstallationTo get the latest stable release from PyPipipinstalldjango-unitsTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-units.git#egg=unitsTODO: Describe further installation steps (edit / remove the examples below):Addunitsto yourINSTALLED_APPSINSTALLED_APPS=(...,'units',)Add theunitsURLs to yoururls.pyurlpatterns=patterns('',...url(r'^units/',include('units.urls')),)Before your tags/filters are available in your templates, load them by using{% load units_tags %}Don’t forget to migrate your database./manage.pymigrateunitsUsageTODO: Describe usage or point to docs. Also describe available settings and
templatetags.Point to constants, form mixin and general conversion utils. [WIP]ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-unitsmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsgitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch