Saravanan666/pypi-org huggingface dataset:
Package: django-ip-whitelist
1Welcome to django-ip-whitelist’s documentation!Version:0.1.7Source:https://github.com/maykinmedia/django-ip-whitelistKeywords:Django IP Whitelist, IP whitelist, pip packagePythonVersion:3.9This package provides a Django middleware that allows you to whitelist IP addresses that are allowed to access your site.By default the user’s IP needs to conform to the IP whitelist in order to access the Django admin. You can either specify individual IP addresses or IP ranges, and the whitelist is manageable via the Django admin.Contents1Welcome to django-ip-whitelist’s documentation!2Installation2.1Requirements2.2Install3Usage3.1Migrations2Installation2.1RequirementsPython 3.8 or abovesetuptools 40.8.0 or aboveDjango 3.2 or newer2.2Installpipinstalldjango-ip-whitelistAddip_whitelistto yourINSTALLED_APPS:INSTALLED_APPS=[...'ip_whitelist',...]3UsageAdd the middleware to yourMIDDLEWAREsetting:MIDDLEWARE=[...'ip_whitelist.middleware.IPWhitelistMiddleware',...]Add the IP addresses you want to whitelist to yoursettings.py:WHITELIST_IPS=[...'127.0.0.1',...]Add the WHITELIST_IP_RANGES to yoursettings.py:WHITELIST_IP_RANGES=[...'...]Add the OUTSIDE_IP_DISALLOWED_PATHS to yoursettings.pywith disallowed URLs:OUTSIDE_IP_DISALLOWED_PATHS=(...'/admin',...)3.1MigrationsRun the migrations:pythonmanage.pymigrate
Package: django-ipyfield
ipyfieldprovides a model field fordjangothat allows the storage of an ip address as a “pretend”PositiveBigInt(currentlyvarchar(39)until I can figure out how to get an unsigned 64bit
integer column across all supported DBs)
on the db side by usingIPyto handle
conversion to anIPy.IPinstance (orNone) on the python side.Wut?In its way, it gives us a way to store bothipv4andipv6consistently
without having to throw them in long charfields. Also, it gives us an easy way
to validate data as it comes in, while giving us access to additional meta
information (basically everything that makesIPyso awesome).InstallationAdd this to your django project by installing withpip:pip install django-ipyfieldor witheasy_install:easy_install django-ipyfieldUsageIn your models, do something like the following:from django.db import models
from ipyfield.models import IPyField

class MyModel(models.Model):

    # the regular params should work well enough here
    ipaddr = IPyField()
    # ... and so onFrom here, any assignments toobj.ipaddrcan be considered a constructor
argument to a newIPy.IPinstance. AnythingIP()can use to make a new
object can be used.When making queries, I added one extra piece of syntactical sugar. For__in(range) lookups, you can pass aCIDRnotation address range, for
example:MyModel.objects.filter(ipaddr__in='10.0.0.0/24')Currently you need to use this form of notation supported for this kind of
query. For now, if you need to use aprefix-netmaskstyle notation, pass it
toIPy.IPyourself and use the resulting instance as your filter parameter.TODOsfigure out how to build an appropriately sized integer field across all DBs.Changelog0.1.6Added support forgt,gte,lt, andltelookups.0.1.5Added south support.0.1.4IPy.IP instance raises exception when compared to a non-IP instance. This
becomes an issue when you get into ModelForm validation (didn’t come up when
only using the ORM) with regards to empty/null values. Fixed by subclassing
(wrapping) IPy.IP.0.1.3Basic field functionality in place.
Package: django-iranian-cities
Django Iranian CitiesThedjango-iranian-citiesis a valuable package based on Django Web Framework for Iranian cities support. You can see full documentation herereadthedocs.Project DetailGet StartedUsageAdminGit RulesProject DetailLanguage: Python > 3.6Framework: Django > 3.1Getting StartedFirst you have to install package using pip:$pipinstalldjango-iranian-citiesThen you should addiranian_citiesto INSTALLED_APPS:INSTALLED_APPS=[...'iranian_cities',...]Now you can migrate to apply model changes:$pythonmanage.pymigrateFor generating all data you can run this command:$pythonmanage.pygenerate_cityNOTE: you should run this command once (if you want to run again flush db or delete all objects in iranian_cities app)UsageYou can use field like this:fromdjango.dbimportmodelsfromiranian_cities.fieldsimportOstanFieldclassTestModel(models.Model):ostan=OstanField()list of fields:OstanFieldShahrestanFieldBakhshFieldShahrFieldDehestanFieldAbadiFieldAdminYou can also use admin mixin class:fromdjango.contribimportadminfromiranian_cities.adminimportIranianCitiesAdminfromtest_app.modelsimportTestModel@admin.register(TestModel)classTestModelAdmin(IranianCitiesAdmin):passGit RulesS.A.G.E. team Git Rules Policy is available here:S.A.G.E. Git PolicyTeamSepehr Akbarazadeh MaintainerMehran Rahmanzadeh Maintainer
Package: django-iris
django-irisInterSystems IRIS backend forDjangoPrerequisitesYou must install, the latest version of InterSystems IRIS DB-API Python driverpip3installhttps://github.com/intersystems-community/intersystems-irispython/releases/download/3.7.3/intersystems_iris-3.7.3-py3-none-any.whlInstall and usageInstall with pippip install django-irisConfigure the DjangoDATABASESsetting similar to this:DATABASES={'default':{'ENGINE':'django_iris','NAME':'USER','USER':'_SYSTEM','PASSWORD':'SYS','HOST':'localhost','PORT':'1972',},}
Package: django-iron-sessions
Info:iron.iocache as Django sessions backendWhy new sessions backend with non free solution?!Why not!iron.iois great service with
awesome live support :)iron.ioprovides 100mb and 10M API requests
per month for free10 000 000 / 30 / 24 / 60 / 60 it’s about 4 requests per seconds
with 24/7 loading for your Django applictionquick startrun:heroku addons:add iron_cache:developer
pip install django-iron-sessionsconfigure setiron_sessions.sessionas your session engine:SESSION_ENGINE = 'iron_sessions.session'options:IRON_CACHE_PROJECT_ID=<YOUR_PROJECT_ID>
IRON_CACHE_TOKEN=<YOUR_TOKEN>if you are on heroku, just skip ittests:export IRON_CACHE_PROJECT_ID=<YOUR_PROJECT_ID>
export IRON_CACHE_TOKEN=<YOUR_TOKEN>
toxPython 3.2+ Django 1.5+ ready,
but currently iron_core and iron_cache have some issues with Python 3
Package: django-irs-filings
A Django app for downloading and parsing IRS campaign finance data, inspired by the [New York Times Fech library](https://github.com/NYTimes/Fech).[![PyPI version](https://badge.fury.io/py/django-irs-filings.svg)](http://badge.fury.io/py/django-irs-filings)[![Build Status](https://travis-ci.org/sahilchinoy/django-irs-filings.svg?branch=master)](https://travis-ci.org/sahilchinoy/django-irs-filings)Background---------------Some political committees report their contributions and expenditures to the IRS under § 527 of the U.S. tax code. The IRS publishes these disclosure forms as a bulk download. This app attempts to make sense of that archive.The [archive](http://forms.irs.gov/app/pod/dataDownload/dataDownload) is updated every Sunday at 1:00 AM.Getting started---------------Install it.```bash$ pip install django-irs-filings```Add `irs` to your list of `INSTALLED_APPS` in `settings.py`.```pythonINSTALLED_APPS = (...'irs',...)```Migrate your database.```bash$ python manage.py migrate irs```Finally, call the `updateIRS` command. This will download the latest zipped archive from the IRS website, unzip and parse it, and load it into the database.```bash$ python manage.py updateIRS```
Package: djangoiscan
ISCANIntroductionISCAN (Integrated Speech Corpus ANalysis) is a package to manage and analyze corpora from within a Django server with support for
multiple clients enriching and querying the corpora as needed.  ISCAN contains functionality for installing/starting/stopping
the databases that PolyglotDB (the Python API) uses, as well as running most functionality for enriching and querying
corpora via a web interface or REST calls.This package is intended to be used by developers who wish to extend functionality or contribute to the code.  For installation
instructions for a fully operational ISCAN server, please see theISCAN SPADE server repositoryfor an example configuration and more instructions.
Package: django-is-core
PrologDjango IS Core is a lightweight framework built on Django. It augments Django great design patterns and minimizes
annoying programming work. It takes best from Django-admin. ISCore provides a simple way how to build a rich
administration. It is very simlar to Django admin but there are several differences that justifies why IS Core is
created.Featuressame detail/add/table views as Django admin, but it uses REST and AJAX call to achieve it (it adds easier usage and
broaden usability)it can be used for creation only REST resources without UImodels UI (add/detail) is more linked together, links between foreign keys are automatically addedit provides more posibilities for read-only fields (e.g. the fields defined only inside form can be readonly too)add new custom view is for Django admin is nightmare, with IS Core is very easyit uses class based views, it is cleaner and changes are simplieradd new model administration without its registrationgenerated forms from models with validationsgenerated REST resources from models again with validations (no code duplication)automatic exports to XLSX, PDF, CSV can be very simply add to a table viewautomatic filtering and sorting for list viewspre-built reusable views and formsautomatic CRUD views for models (with REST resources)authorization (token based) and permissionsadvanced permissions (e.g. a link between objects is not added to UI if a user does not have permissions to see it)and much more ...DocsFor more details seedocsContributionTo run Livereload for Sphinx you needlivereloadpip install livereload.
After installing simply callmake htmllivereloadand openhttp://localhost:5500/.
Package: django-isegory
Isegory is a simple Django app to declare the provenance of a dataset. A dataset
can be built extracting the data manually or it can be created by a script.
A working example in Spanish language can be found athttp://kelsenproject.org/Quick startAdd “isegory” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'isegory',
)Include the isegory URLconf in your project urls.py like this:url(r'^isegory/', include('isegory.urls')),Runpython manage.py syncdbto create the isegory models.Start the development server and visithttp://127.0.0.1:8000/admin/to create the app (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/isegory/
Package: django-isitup
Django Is It Up==================Is it up is a fairly straight forward app that takes on the task of checkingweb services to see if they are up and running. At the moment, the only goalis to have it checking http services and sending out emails if an error codeis reached at a specified url.Install---------```pip install django-isitup```Else you could follow whatever procedure you use to install python packakges (easy_install, etc)Configuration--------------Currently there is little to configure. The important part is to wire it up in your django project:```INSTALLED_APPS = (...'isitup',...)```In your urls:```urlpatterns += patterns('',...(r'^<your hook>/', include('isitup.urls')),...)```Templates (& URLs)--------------------All templates go in a 'isitup' directory in your TEMPLATE_DIR:```service_list.html (/)service_create.html (/create/)service_detail.html (/<slug>/)service_edit.html (/<slug>/edit/)```
Package: django-ismobile
django-ismobile"is_mobile" middleware for DjangoRequirementsRequires Django 2.0 or later.InstallingInstall withpipor your favorite PyPi package manager.pip install django-ismobileUsingInclude MobileControlMiddleware into your MIDDLEWARE:MIDDLEWARE = (
    ...
    'ismobile.middleware.MobileControlMiddleware',
    ...
)ConfigIn order to change request attribute name,
setIS_MOBILE_ATTR_NAMEin djangosettingsfile.IS_MOBILE_ATTR_NAME="custom_name"
Package: django-isnull-list-filter
Simple list_filter that offers filtering by __isnull or by blank char field.DocumentationThe full documentation is athttps://django-isnull-list-filter.readthedocs.io.QuickstartInstall django-isnull-list-filter:pip install django-isnull-list-filteror use development version:pip install -e git+https://github.com/PetrDlouhy/django-isnull-list-filter#egg=django-isnull-list-filterDirectly use it in your admin:fromisnull_filterimportisnull_filterclassMyAdmin(admin.ModelAdmin):list_filter=(isnull_filter('author'),# Just set the fieldisnull_filter('author',_("Hasn't got author")),# Or you can override the default filter titleisnull_filter('author',_("Has got author"),negate=True),# And you can negate the condition)or:fromisnull_filterimportisblank_filterclassMyAdmin(admin.ModelAdmin):list_filter=(isblank_filter('author'),# Just set the fieldisblank_filter('author',_("Hasn't got author")),# Or you can override the default filter titleisblank_filter('author',_("Has got author"),negate=True),# And you can negate the condition)FeaturesCan be used on:simple fieldForeignKeyFieldrelatedForeignKeyFieldManyToManyFieldOneToOneFieldDefault title can be overridenRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsAuthor:Petr DlouhýTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.3.2 (2021-12-16)Fix for Django 4.00.3.1 (2021-11-18)Fix isblank_filter0.3.0 (2021-11-17)Add also isblan_filter0.1.0 (2017-04-26)First release on PyPI.
Package: django-iso3166
Django ISO3166ISO 3166is a three-part standard published by the Organization for
Standardization (ISO), and defines codes for the names of countries, dependent
territories, and special areas of geographical interest, and their principal
subdivisions (e.g., provinces or states). The official name is Codes for the
representation of names of countries and their subdivisions.This project only uses one part of the standard, ISO 3166-1, It defines three
sets of country codes:alpha-2 : two-letter country codes which are the most widely used of the
three.alpha-3 : three-letter country codes.numeric : three-digit country codes which are identical to those developed
and maintained by the United Nations Statistics Division, with the advantage
of script (writing system) independence, and hence useful for people or
systems using non-Latin scripts.Basic configuration and useOnce installed, you can add django-iso3166 to any Django-based project you’re
developing. The only thing needed is to addiso3166to yourINSTALLED_APPSsetting.Automatic UpdateThis application comes with automatic update feature, this will only update themodels in this application. Use the management command:python manage.py updateISO3166You can adjust the default urls provided, by specify theISO3166_SOURCESsetting appropriately. It should point to a fixture
containing only fixtures for iso3166, it will consume xml or json format dumps.DefaultISO3166_SOURCESsetting:urls = (
    "http://files.co-capacity.biz/iso3166/latest.json.bz2",
    "http://files.co-capacity.biz/iso3166/latest.xml.bz2",
    "http://files.co-capacity.biz/iso3166/latest.json.gz",
    "http://files.co-capacity.biz/iso3166/latest.xml.gz",
    "http://files.co-capacity.biz/iso3166/latest.json",
    "http://files.co-capacity.biz/iso3166/latest.xml",
)django-iso3166 changelogversion 10.1.1, 26 Jan 2010added locale filesfixed rst markup bugschanged download url to pypiVersion 10.1, 26 Jan 2010Packaged from revision 105 in Subversion; download athttp://files.co-capacity.biz/iso3166/releases/django-iso3166-10.1.tar.gzFirst packaged version using distutils.
Package: django-iso8601
django-iso8601 provides Django tools for working with ISO 8601.You can find the latest version at http://github.com/k0001/django-iso8601Along with this project, you should have recieved a file named LICENSE with thelicensing terms.Installation============pip install django-iso8601Django utils============Form Fields:- django_iso8601.ISO8601DateField- django_iso8601.ISO8601DatetimeField- django_iso8601.ISO8601TimeFieldForm Widgets:- django_iso8601.ISO8601DateInput- django_iso8601.ISO8601DatetimeInput- django_iso8601.ISO8601TimeInputTests=====You can run them with:python setup.py testThanks======Thanks to Gerhard Weis for his work on the 'isodate' library. You can find itat http://pypi.python.org/pypi/isodate
Package: django-isomorphic
NoteThe server has to be restarted for template updates as the
templates are cached on the template server if you are using React.It’s important to know that the context is available on the client side,
so putting sensitive data in the context is a bad idea.The template server is using a Unix domain socket. This means that the
server will not run on windows, and the server is not accessible outside
of the machine it’s running on.Why?There are few easy to use libraries for rendering JavaScript server side
for Django. The aim is to create a solution that requires as little
setup as possible and performs well.DocsSeeDocs
Package: django-issue
django-issueAn app for tracking ongoing issues within your web application.In a nutshell: a ticketing system for use by software components!InstallationTo install the latest release, type:pip install django-issueTo install the latest code directly from source, type:pip install git+git://github.com/ambitioninc/django-issue.gitDocumentationFull documentation is available athttp://django-issue.readthedocs.orgLicenseMIT License (see LICENSE)
Package: django-issueinspector
https://github.com/idlesign/django-issueinspectorDescriptionIssue inspector for your GitHub repositoriesThis application allows you to inspect issues in your repositories that require your attention.It could be helpful when you have to manage many repositories, to not to forget what issues you need to attend to.Wire this application into your existing Django project and you’re done.RequirementsPython 3.2+Django 1.4+How to run standaloneCheck you’re on Unix-based system;Check Python 3.2+ is installed;Checkdjango-xrossis installed;Using a terminal switch intoissueinspectordirectory withinspector.pyfile;Issue command:./inspector.py;If browser is not started automatically go to:http://127.0.0.1:8000/You can storeusernameand token in.inspector.confconfiguration file nearinspect.pyusing the following format:[core]
username = idlesign
token = 123123123123123How to run as Django appGiven your already have your Django project configured do the following simple steps:AddissueinspectorintoINSTALLED_APPS(usually insettings.py).Linkissueinspector.views.inspector_mainto an URL (usually inurls.py)Go to that URL and pushAboutbutton for further instructions.
Package: django-istat-italian-places
Django ISTAT API italian placesDjango ISTAT is a Django app to localize the ISTAT API.
The result is a Django app that you can plug into your existing Django project to localize the ISTAT API.The resources are: Region, Provinces and Cities.The data are taken from the ISTAT API (https://www.istat.it/it/archivio/6789)Detailed documentation is in the “docs” directory.Quick startAdd “comuni_italiani” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "comuni_italiani",
]Include the polls URLconf in your project urls.py like this:path("comuni_italiani/", include("comuni_italiani.urls")),Runpython manage.py migrateto create the comuni_italiani models.Start the development serverRun the management command to populate the database with the ISTAT API data:``python manage.py import_istat_data``

(If use the --force option, the command start without asking for confirmation)Visithttp://127.0.0.1:8000/comuni-italiani/to view the API index.Visithttp://127.0.0.1:8000/comuni-italiani/regioni/to view the API regioni.Visithttp://127.0.0.1:8000/comuni-italiani/province/to view the API province.Visithttp://127.0.0.1:8000/comuni-italiani/comuni/to view the API cities.
Package: django-istio-opentracing
Django-istio-opentracingDjango opentracing middleware works with k8s and istioinstall:pip install django-istio-opentracingexample:Add a middleware to your Django middleware.MIDDLEWARE+=['django_istio_opentracing.middleware.Middleware']And if you usingrequests,
jusing using the patch in maybe your__init__.pyfile.Hint: make sure the patch line before your code.fromdjango_istio_opentracingimportmonkeymonkey.patch_requests()Then userequestswhatever you want,
every request you make will carry the b3 code in header without extra coding.Also you can use it directly in view:fromdjango_istio_opentracingimportget_opentracing_span_headersdefindex(request):print(get_opentracing_span_headers())returnHttpResponse('ok')
Package: django-italian-utils
django-italian-utilsLibreria di utility per semplificare la creazione di applicazioni italianeInstallazioneInstallare il pacchetto pypipip install django-italian-utilsAggiungereitalian_utilsalle app installate#...INSTALLED_APPS=(# ...'italian_utils','django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',)# ...Effettuare le migrazionipython manage.py migrateContenutoSono presenti dei validatori percodice fiscaleepartita ivada usare nei modelli.fromitalian_utils.validatorsimportvalidate_codice_fiscale,validate_partita_ivaclassPersona(models.Model):codice_fiscale=models.CharField(max_length=16,validators=[validate_codice_fiscale])# ...classAzienda(models.Model):partita_iva=models.CharField(max_length=11,validators=[validate_partita_iva])# ...Un dizionario delleregioni e le relative province con abbreviazioni annesse.Elenco dei comuniÈ possibile importare il file CSV con l'elenco dei comuni proveniente dal sito istatcon un comando manage.pypython manage.py importacomuni <file_csv>TODOAggiornare la validazione del CF per includere i casi di omocodiaCreare le tuple da usare nei ChoiceFieldMappare i modelli di comuni, province e regioni tramite i codici istat
Package: django-item-messages
DescriptionItem-messages allows you to add item specific messages which are rendered
beneath the related item in an admin changelist view.Item messages are permanent within a session and can be added, updated or
removed. This makes them also useful for long running asynchronious background
processes.InstallationInstall from pypi.org:pip install django-item-messagesSetupAdd item_messages to your installed apps:INSTALLED_APPS = [
    ...
    'item_messages',
    ...
]Add the item_messages’ middleware class:MIDDLEWARE = [
    ...
    'item_messages.middleware.ItemMessageMiddleware',
    ...
]Note: The item-messages middelware class have to be listed after the session’s
middelware class.Add item_messages’ context processor:TEMPLATES = [
    {
        ...
        'OPTIONS': {
            'context_processors': [
                ...
                'item_messages.context_processors.item_messages',
                ...
            ],
        },
    },
]UsageTODO