Saravanan666/pypi-org huggingface dataset:
Package: django-integer-enum
Django Integer EnumDjango model integer enum fieldFree software: MIT licenseDocumentation:https://django-integer-enum.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-09-22)First release on PyPI.
Package: django-integrations
Django IntegrationsTools for creating and managing multi-site integrations like API Keys and TokensPrerequisitesThis pakcage makes use of Encrypted Fields that come form thedjango-fernet-fieldspackages. Make sure to checkout their documentation for any questions related to Field Encryption.This package makes use of JSON fields so you’ll need Download and install Postgresql. This will change with Django 3.1+ and the universal JSON field.Installation> pip install django-integrationFor DevelopersMake sure you run the following command to ensure you have all the requirements needed to us the develop example project:pip install -e .[dev]Then run the migration command inside the develop folder./manage.py migratefinally create a super user:./manage.py createsuperuserExampleIn the develop django project you will find a core application that has three Forms each with its view to show case how to use the Credential Model in the integration package.For example you have a ZoomForm to present the user with the fields Zoom gives to use their API with you project. The ZoomForm is responsible for presenting and validating the fields and linking it to the credentials Model just like a normal ModelForm would.class ZoomForm(forms.ModelForm):

    class Meta:
        model = Credential
        fields = ['public_key', 'private_key']
        labels = {
            'public_key': "Zoom Key",
            'private_key': "Zoom Secret"
        }

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['public_key'].required = True
        self.fields['private_key'].required = TrueIt is in the view where it creates a Credential Model instance form the form submitted and saved. If you need to add additional fields or logic you can do it here, for example settting the site field in the Credential Model.class ZoomFormView(FormView):
    template_name = "core/form.html"
    form_class = ZoomForm
    success_url = reverse_lazy('integration-list')

    def form_valid(self, form):
        zoom = form.save(commit=False)
        zoom.name = 'Zoom Integration'
        zoom.site = Site.objects.get_current()
        zoom.save()
        return super().form_valid(form)
Package: django-inteliger
Django Inteliger e um pacote da Inteliger para todo mundo
aprender como fazer uma boa estruturacao de codigo.Como usarAdicione os aplicativos do pacote no seu INSTALED_APPS.INSTALLED_APPS = […
‘core’,
‘log’,
‘usr’,
‘filial’]Adicione o middleware de log no MIDDLEWARE, antes de todos os outros.MIDDLEWARE = [‘log.middleware.LogMiddleware’,
…]Adicione as urls no urlpatterns.urlpatterns = […
re_path(r’^core/’, include(‘core.urls’)),]Aproveite
Package: django-inteliger-test
Django Inteliger e um pacote da www.inteliger.com.br para todo mundo
aprender como fazer uma boa estruturacao de codigo.Como usarAdicione os aplicativos do pacote no seu INSTALED_APPS.INSTALLED_APPS = […
‘core’,
‘log’,
‘usr’,
‘filial’]Adicione o middleware de log no MIDDLEWARE.MIDDLEWARE = […
‘log.middleware.LogMiddleWare’]Rodepython manage.py migrationspara criar as migracoesRodepython manage.py migratepara criar as tabelasAproveite
Package: django-intellipages
This app provides only one tiny template filter for now. It allows you to
output page navigation like this:1 ... 6 7 _8_ 9 10 ... 32(where8is the current page number).UsageAddintellipagestoINSTALLED_APPS. In your templates do:{% load intellipages %}

{% for p in page|intellipages %}
    {% if p %}
        {% ifequal p page.number %}
            {{ p }}
        {% else %}
            <a href="?page={{ p }}">{{ p }}</a>
        {% endifequal %}
    {% else %}
        ...
    {% endif %}
{% endfor %}(wherepageis adjango.core.paginator.Pageinstance).Or:{% load intellipages %}

{% for p in paginator|intellipages:number %}
    {% if p %}
        {% ifequal p number %}
            {{ p }}
        {% else %}
            <a href="?page={{ p }}">{{ p }}</a>
        {% endifequal %}
    {% else %}
        ...
    {% endif %}
{% endfor %}(wherepageis adjango.core.paginator.Paginatorinstance, andnumberis a variable of typeint).
Package: django-intenumfield
Django IntEnumFieldAn IntEnumField for Django.FeaturesStore your multiple-choice options as a smallint (2 bytes) instead of varcharReuse existing IntEnums as choice valuesIntegrates well with Django's admin app (display and filter)RequirementsPython 3.6+Django 2.2+UsagefromenumimportIntEnumfromdjango.dbimportmodelsfromdjango_intenumimportIntEnumFieldclassStatus(IntEnum):UNKNOWN=0IN_PROGRESS=1COMPLETED=2ERROR=3classJob(models.Model):status=IntEnumField(enum=Status)LicenseThis project is licensed under the MIT license. The full license text is
available in the LICENSE file.
Package: django-interactive-models
Django Interactive ModelsThis app provides a CLI through themanage.pyscript to create models from the command line.Usage:Install the package into the virtualenv:pip install django-interactive-modelsThen, add the app to the INSTALLED_APPS in settings:INSTALLED_APPS=[..."interactive_models",...]Then, you can finally run themodelscommand like:./manage.py models <app_name> <model_name> <field_name>:<field_type> ...Check the usage by using the-hflag.For example, this command:./manage.py models my_app MyModel number:int text:text page_url:url creation_date:datetimeWill create amodels.pyfile inside my_app with the fieldsnumber, text, page_url, creation_datewith their corresponding django database fields.Field types available:This is the current list of accepted types and their mappingsauto -> AutoField,bool -> BooleanField,char -> CharField,date -> DateField,datetime -> DateTimeField,email -> EmailField,float -> FloatField,int -> IntegerField,slug -> SlugField,text -> TextField,time -> TimeField,url -> URLField,uuid -> UUIDField,Running tests locallyInstall test dependencies withpip install ".[test]"Then, run tests using pytest with:pytest -v
Package: django-interceptor
Django email interceptor provides email backends to intercept outgoing mail and mail them to a specified email instead.QuickstartInstall via pippipinstalldjango-interceptorAdd to installed apps:INSTALLED_APPS=(...'interceptor',...)Change the email backend to use interceptor and set an email to send the intercepted mail to:EMAIL_BACKEND='interceptor.backends.SmtpInterceptorBackend'INTERCEPTOR_EMAIL='test@example.com'TestingTo run tests, install the requirements for testing and run!pipinstall-rrequirements/test.txtpythonruntests.py
Package: django-intercoolerjs
Django intercooler.jsdjango-intercooler.js is just a Django wrapper forintercooler.js.RequirementsDjango1.3 or laterInstallation$pipinstalldjango-intercoolerjsSetupJust add'django.contrib.staticfiles'and'intercoolerjs'to INSTALLED_APPS in
your settings.pyINSTALLED_APPS=(# ...'django.contrib.staticfiles','intercoolerjs',# ...)Refer to Djangostatic filesdocumentation to configure and deploy static files.UsageYou use intercooler.js in your Django templates like this{% load static %}

<!-- only if you also need jQuery -->
<script src="{% static "intercoolerjs/js/jquery.js" %}"></script>
<!-- this is the minified intercooler.js -->
<script src="{% static "intercoolerjs/js/intercooler.min.js" %}"></script>Since version 1.1.0 of intercooler.js it is also possible to use zepto as an alternative
to jQuery. zepto is not yet bundled with django-intercoolerjs.Version numbersWe are keeping the intercooler.js version number, so that intercooler.js releases can
easily be spotted in django-intercoolerjs. But, since we also need a version number, an
other dot number is added.If intercooler.js version 1.0.3. is the current release, django-intercoolerjs will have
the version number 1.0.3.0. This last number will be incremented with every release of
django-intercoolerjs.DemoA demo project can be found in the'demo'folder along with a
README.
Package: django-internationalflavor
django-internationalflavoris born to complement thedjango-localflavorpackage. While localflavor is
awesome when you are making a localized app, the reality is that you often need to accommodate for users from multiple
countries. While Django has great support for internationalization and localization, there is no package that helps you
store data from all over the world. This package aims to fill the gap and provides fields that are designed for use in
almost every country, while enforcing consistent data types.Please note, this package is still in development. Most importantly, it lacks tests.Documentation and sourceThe documentation of this project is available athttp://django-internationalflavor.readthedocs.org/en/latest/The source code lives athttps://github.com/ralphje/django-internationalflavorInstallationpip install django-internationalflavor
Package: django-intlekt
# Django IntlektA Django app for Intlekt, the content curation application using the IEML language.## InstallRequirements:* MongoDB **3.2** (can be installed with Docker)```pip install django-intlekt``````python# django_project/settings.pyINSTALLED_APPS = [# ...'rest_framework','rest_framework_mongoengine',# These are for cross-origin requests# 'rest_framework.authtoken',# 'corsheaders','django_intlekt',]from mongoengine import connectconnect(...)  # See http://docs.mongoengine.org/guide/connecting.html``````python# django_project/urls.pyfrom django.conf.urls import url, includeurlpatterns = [url(r'^', include('django_intlekt.urls')),  # TODO: customize the route# ...]```
Package: django-intl-tel-input
Django intl-tel-inputA Django form widget for international telephone numbers based on the
jQuery pluginintl-tel-input.This package is pre 1.0, so doesn't implement every feature of intl-tel-input. However, it is well tested, and has been stable in production.Version supportTested on the following versions of Python and Django.PackageVersion supportPython2.7, 3.4, 3.5, 3.6, 3.7Django1.11, 2.0, 2.1InstallationInstall from PyPI.pipinstalldjango-intl-tel-inputAdd intl-tel-input to yourINSTALLED_APPS, so Django can find the init
script....INSTALLED_APPS+=('intl_tel_input',)...UsageSimply addIntlTelInputWidgetto your form field.fromintl_tel_input.widgetsimportIntlTelInputWidgetclassMyForm(forms.ModelForm):classMeta:model=MyModelfields=['foo','bar']widgets={'bar':IntlTelInputWidget()}...With a standard form:classMyForm(forms.Form):tel_number=forms.CharField(widget=IntlTelInputWidget())...Form mediaInclude{{ form.media.css }}in the<head>of your template. This
will ensure all styles are parsed before the widget is displayed.If you have included jQuery at the end of your document, then don't
forget to update the template where this widget appears with a{{ form.media.js }}. Put it in a block that allows it to come after
jQuery.If you're usingcrispy-forms,
the static content will be inserted automatically beside the input. To
prevent this, be sure to setinclude_media = Falseon your form
helper.classMyForm(forms.Form):...def__init__(self,*args,**kwargs):self.helper=FormHelper()self.helper.include_media=False...If you need to load all JS in the head, you can make theinit.jsscript wait for the document to be ready with the following snippet.jQuery(document).ready({{form.media.js}});All this assumes your form context variable is calledform.OptionsThe widget can be invoked with keyword arguments which translate to the
options available in intl-tel-input.allow_dropdownShows the country dropdown.
Default:Truedefault_codeCountry code selected by default. Overridden when usingauto_geo_ip.
Default:'us'preferred_countriesArray of countries that will always appear at the top of the dropdown.
Default:['us', 'gb']use_default_initUse the provided init.js to initialize the plugin. Set this toFalseif you want to provide your own initialization for the plugin. This is
useful if, for example, you have your own GeoIP implementation you'd
like to use.
Default:True
Package: django-intranet
Intranet made easy.Abstractdjango-intranetis the minimal codebase to create fast enterprise
management applications.Based on Django-1.4 you start a project, addintranetand the
other module you want to use.That’s it, you are ready to go with your intranet.DocumentationSeedocs/folder for detailed documentation.Read it online at :http://django-intranet.readthedocs.org/Quick startCreate a project folder and enter-it$ pip install django-intranet South
$ django-admin.py startproject myintranetConfigure the database and add intranet and south to you INSTALLED_APPS.$ python manage.py syncdb --migrateNow you can install one of the contrib module or your own.Permissions3 ways of defining a permission :Usingdjango.contrib.auth permission systemof ModelUsing an instance method that will take a user as a parameterUsingdjango-guardianfor user configuration per-object permission
Package: django-introspection
Django IntrospectionIntrospection tools for DjangoInstallpip install django-introspectionUsagefromintrospectionimportAppInspectorapp=AppInspector("myapp_label")# note you can also use a path: django.contrib.auth# get a list of app's models':app.get_models()print(app.models)# get a list of fields for a modelfields=app.models[0].fieldsprint(fields)Management commandPrint details about a model or app:# inspect an apppython3manage.pyinspectappauth# or python3 manage.py inspectapp django.contrib.auth# for a modelpython3manage.pyinspectmodelauth.User# or python3 manage.py inspectmodel django.contrib.auth.UserOutput:========================================================
                  Fields
========================================================
# Found 14 fields: 
profile OneToOneField with related name user 
id AutoField 
password CharField 
last_login DateTimeField 
is_superuser BooleanField 
username CharField 
first_name CharField 
last_name CharField 
email CharField 
is_staff BooleanField 
is_active BooleanField 
date_joined DateTimeField 
groups ManyToManyField with related name user 
user_permissions ManyToManyField with related name user 
========================================================
                  Relations
========================================================
# Found 5 external relations : 
admin.LogEntry.user from auth.User.id ManyToOneRel  
account.EmailAddress.user from auth.User.id ManyToOneRel  
socialaccount.SocialAccount.user from auth.User.id ManyToOneRel  
reversion.Revision.user from auth.User.id ManyToOneRel  
polls.Vote.user from auth.User.id ManyToOneRel  
========================================================
                  Instances
========================================================
# Found 558 instances of UserRun the testsClone then cd in the django-introspection directory and run:make install
make test-initial
Package: django-inventory
Django InventoryFree Open Source Inventory and Fixed Assets Control SystemTranslationsFeaturesObject oriented approach to asset and inventory management.CSV import utility.Per asset or per item type photos and information.Match suppliers to item types.Site wide search capability.User defined states (broken, in repairs, etc) for assets.An item can be defined as a supply to another item.Assign assets to one or more individuals.User photos.Group assets, inventories or user per locations.Purchase request and purchase orders.LicenseThis project is open sourced underApache 2.0 License.InstallationTo installDjango Inventory, simply do:$virtualenvvenv$sourcevenv/bin/activate$pipinstalldjango-inventory==1.0rc1$django-inventory.pyinitialsetup$django-inventory.pyrunserverPoint your browser to 127.0.0.1:8000 and use the automatically created admin
account.ContributeCheck for open issues or open a fresh issue to start a discussion around a feature idea or a bug.Forkthe repositoryon GitHub to start making your changes to themasterbranch (or branch off of it).Write a test which shows that the bug was fixed or that the feature works as expected.Make sure to add yourself to thecontributors file.Send a pull requestAuthorRoberto Rosario -Twitterhttp://twitter.com/siloraptorE-mailroberto.rosario.gonzalez at gmail1.0 (2014-08-??)Updated to use Django 1.6Registered project for translation athttps://www.transifex.com/projects/p/django-inventory/Code cleanupsConversion of view to class based viewsCapitalization of stringImprove project files layoutImprove coding conventionsRemoval of included 3rd party modulesUpdate of required modules and libraries versionsRemoval of obsolete codeRemoval of obsolete scripts and instructionsLicense change, Django Inventory in now licensed under the Apache 2.0 LicensePyPI package, Django Inventory in now available on PyPI:https://pypi.python.org/pypi/django-inventory/
Package: django-invisible-recaptcha-admin
###############################Django Invisible Recaptcha Admin##############################################################How do I get set up?###############################Instale usando PyPI:pip install django_invisible_recaptcha_adminAdd the app ``django_invisible_recaptcha_admin`` to ``settings.py``INSTALLED_APPS = ('django_invisible_recaptcha_admin','nocaptcha_recaptcha',...)Add to ``urls.py`` from:from django_invisible_recaptcha_admin.admin import my_adminurlpatterns = [#url(r'^admin/', include(admin.site.urls)),url(r'^admin/', include(my_admin.urls)),]Add `keys <https://www.google.com/recaptcha/>`_ in ``settings.py``NORECAPTCHA_SITE_KEY = 'SITEKEY'NORECAPTCHA_SECRET_KEY = 'SECRET_KEY'Now, in your ``admin.py`` you should use like this:from django_invisible_recaptcha_admin.admin import my_admin...class TODOAdmin(admin.ModelAdmin):list_display = ['todo']...my_admin.register(TODO, TODOAdmin)###############################To Do###############################* Create tests* Organize the code according to the `PEP 8 <http://www.python.org/dev/peps/pep-0008/>`_
Package: django-invitation-backend
Built on top ofdjango-registration,django-invitation-backendhandles registration through invitations.NoteThis backend is built fordjango-registration0.9or above.FeaturesInvitations can be optional or required to be registered.Admin integrationInstallationThis application depends ondjango-registration.Add"django-invitation-backend"directory to your Python path.Add"invitation"to yourINSTALLED_APPStuple found in your
settings file.Include"invitation.urls"to your URLconf.Testing & ExampleTODOUsageYou can configuredjango-invitation-backendapp’s behaviour with
the following settings:INVITATION_INVITE_ONLY:Set this to True if you want registration to be only possible via
invitations. Default value isFalse.INVITATION_EXPIRE_DAYS:How many days before an invitation is expired. Default value is15.See Alsodjango-inviting
Package: django-inviter2
Let your users invite new users.Useful if you want your webapp to be in a private beta mode or for only permitting access to known users.Installation$ pip install django-inviter2Version SupportWe try to maintain support at or near Django’ssupported versions.Django 3.2 (requires Python 3.6, 3.7, 3.8, 3.9, or 3.10)Django 4.0 (requires Python 3.8, 3.9, or 3.10)HistoryThis is a fork ofdjango-inviter.Documentation is available viaRead the Docs
Package: django-inviting
Attention!This package is no longer maintained.Built on top ofdjango-registration,django-invitinghandles registration through invitations.FeaturesInvitations can be optional or required to be registered.Admin integrationAdding available invitations with custom performance and rewarding
algorithms. (for invite only mode)InstallationThis application depends ondjango-registration.Add"django-inviting"directory to your Python path.Add"invitation"to yourINSTALLED_APPStuple found in
your settings file.Include"invitation.urls"to your URLconf.Testing & ExampleTODOUsageYou can configuredjango-invitingapp’s behaviour with the following
settings:INVITATION_INVITE_ONLY:Set this to True if you want registration to be only possible via
invitations. Default value isFalse.INVITATION_EXPIRE_DAYS:How many days before an invitation is expired. Default value is15.INVITATION_INITIAL_INVITATIONS:How many invitations are available to new users. IfINVITATION_INVITE_ONLYisFalsethis setting
has no effect. Default value is10.INVITATION_PERFORMANCE_FUNC:A method that takes anInvitationStatsinstance and returns afloatbetween0.0and1.0. You can supply a custom
performance method by reference or by import path as a string.
Default value isNone. If a custom performance function is not
supplied one of the default performance functions ininvitation.modelswill be used according toINVITATION_INVITE_ONLYvalue.INVITATION_REWARD_THRESHOLD:Afloatthat determines which users are rewarded. Default value
is0.75.See Alsodjango-invitationdjango-invite
Package: django-invoiceproject
# Django InvoiceProjectThis is a Django project aimed at individuals and small businesses that are
looking for a simple way to invoice their customers.This sample project is aimed at a small pet services business, so the
models and apps are customized for that use case. Anything can be rewritten to
fit other use cases. The invoiceapp relies on Service, Pet, Customer, and
Address. As of now, Address is the only published app. It can be installed with
pip install django-simple-address (address in INSTALLED_APPS). I do not plan on
publishing the services or pets apps as they are very simple and specific to
my current use case. I may publish them bundled with the invoiceapp as it is
dependent on them.## InstallationTo install the project clone the repository or download the project as a zip and
extract it. Change to the django_invoiceproject
directory, and install the requirements withpip install -r requirements.txt. Make sure this is done in a virtualenv.Postfix is used to email customers the invoices.Make sure that postfix is installed and configured.For Ubuntu systems:sudo apt-get install postfixwill install it.To configure it:cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cfAdd the following lines to main.cf:mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128mydestination = localhostThen, reload this config file:/etc/init.d/postfix reloadFor more information checkout the postfix documentationTest that you can send email from the command line.
If this is successfull, you are all done for sending emailsLastly, configure your postgres database.
This project assume that you have created a directory called otm unser /etc/
and created a pass and secret files containing your db user password and your
djangi secret key respectively. So, the db user password is under/etc/otm/passand the secret key is at/etc/otm/secretIf you want to change the email host and information, change the configuration
in the settings.py file## UsageOnce all the required packaged are installed in virtualenv and postfix setup
Run:python manage.py migrateto create the database tables
Then create a superuser:python mange.py createsuperuser,
Finally run the development server:python manage.py runserverThen go to localhost:8000/admin. Login with the super user credentials,
you should be able to add your business information, and other goodies.## ContributingFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am ‘Add some feature’Push to the branch:git push origin my-new-featureSubmit a pull request :D## LicenseLook at the [LICENSE](LICENSE) file at the root of the project
Package: django-io
Django I/OImporting and exporting of data, and other file operations for Django appsQuick startpipinstalldjango-ioAdddjango_iotoINSTALLED_APPSINSTALLED_APPS=[...,'django_io',]Create a form to upload your data and save it, and the view to show the form. In the admin panel for the model you are
importing:@admin.register(SomeModel)classSomeModelAdmin(DataImportableAdmin,admin.ModelAdmin):upload_url=reverse_lazy('app:model:upload')# path to the viewDevelopment and TestingIDE SetupAdd theexampledirectory to thePYTHONPATHin your IDE to avoid seeing import warnings in thetestsmodules. If
you are using PyCharm, this is already set up.Running the TestsInstall requirementspip install -r requirements.txtFor local environmentpytestFor all supported environmentstox