Saravanan666/pypi-org huggingface dataset:
Package: django-migration-vis
The Django command tool for visualizing migration graphsHow to Use1. InstallInstall the pip package locally or globally:pipinstall[--user]django-migration-vis2. ActivateEnable the Django management command by extending your Django project
settings:INSTALLED_APPS+=("django_migration_vis",)3. Applypythonmanage.pyvisualizemigrations\--comment'captions for the picture'\example.gv
Package: django-migrator
django-migrator is a migration framework which allows implement migrations
easily.InstallingInstall package from pypi:$ easy_install django-migratorIncludemigratorin theINSTALLED_APPSsetting.Create data models:$ python manage.py syncdb --migrate0.5.4More flexible model association. The command could use a different model for source data.0.5.3More robust URL fetching from the migrated objects.0.5.2Created a new hooks before deleting non finished migrations.0.5.1Improved logic for –only-new-objects param0.5Fake fields support0.4Relaxed package requirements0.3Added param –register-only-with-errorsAdded command delete_migrated_objects0.2Added param –no-interactiveRefactored0.1Initial version
Package: django-mikoa
django-mikoaA Django application consisting of all Tanzania locations from Regions to District.PrerequisitesPython 3.6+Pip or PipenvIt will CoverRegions (region, capital, number of districts, area, population, postcode and zone)Districts (district, region, population)WardsVilage/StreetsInstallationThis package is available inPython Package Indexand can be installed usingpiporpipenvRunpip install django-mikoaAddmikoatoINSTALLED_APPSRunpython manage.py migrateUsageTo access Tanzania Regionsfrommikoa.modelsimportRegionregions=Region.objects.all()print(regions)To access Tanzania Districtsfrommikoa.modelsimportDistrictdistricts=District.objects.all()print(districts)To access all Districts of Certain Regionfrommikoa.modelsimportRegion,Districtregions=Region.objects.all()forregioninregions:fordistrictinregion.district_set.all():print(district.region.name)print(district.name)Give it a starIf you found this repository useful, give it a star so as the whole galaxy of developer can get to know it.Bug bounty?If you encounter issue with the usage of the package, feel free raise an issue so as we can fix it as soon as possible(ASAP).Pull RequestsIf you have something to add I welcome pull requests on improvement , you're helpful contribution will be merged as soon as possibleDisclaimerAll the location I used to build this repository, I got from an public repository titledtanzania-locations-db, I'm not responsible for any kind of misinformation in it, So use it to your own risk
Package: django-milcam
django-milcam is a backend and frontend for Military Camera projectContentsInstallationConfigurationLicensingContactsInstallationObtain your copy of source code from git repository:git clonehttps://github.com/anonymous-ukrainian-patriot/django-milcam.git. Or download latest release fromhttps://github.com/anonymous-ukrainian-patriot/django-milcam/tags.Runpython ./setup.py installfrom repository source tree or unpacked archive. Or use pip:pip installdjango-milcam.You will then want to create the necessary tables. If you are using south for schema migrations, you’ll want to:python manage.py migrate milcamFor those who are not using south, a normalsyncdbwill work:python manage.py syncdbConfigurationAdd'uuidfield','geoposition','sorl.thumbnail','milcam','tastypie'and'django_js_reverse'tosettings.INSTALLED_APPS.INSTALLED_APPS = (…,‘uuidfield’,
‘geoposition’,
‘sorl.thumbnail’,
‘tastypie’,
‘django_js_reverse’,
‘milcam’,…,)Add'milcam.context_processors.api_name'tosettings.TEMPLATE_CONTEXT_PROCESSORS.TEMPLATE_CONTEXT_PROCESSORS = (…,‘milcam.context_processors.api_name’,…,)And tourls.py.urlpatterns = patterns(‘’,…,url(r’^milcam/’, include(‘milcam.urls’)),…,)Licensingdjango-milcam is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.
All rights to all the libraries are located in themilcam/static/milcam/libdirectory belong to their authors.ContactsProject Website:https://github.com/anonymous-ukrainian-patriot/django-milcamAuthor: Anonymous Ukrainian Patriot <anonymous.ukrainian.patriot@gmail.com>
Package: django-mindscape
(todo: gentle introduction)(todo: add information about use case)featurescollecting information about dependencies of models (model -> parent)collecting information about reverse dependencies of models (model -> [children])listing model with dependencies-considered order.(dependencies-considered ordermeans, when i < j, models[i] doesn’t depends on models[j])how to usefromdjango_mindscapeimportModelMapProvider,Walker,Brainfromdjango.appsimportappswalker=Walker(apps.get_models(),brain=Brain())p=ModelMapProvider(walker)"""
when ParentModel : YourModel = 1 : N
and OtherModel is existed.
"""# model dependencies (bottom up)forrelationinp.dependencies[YourModel].dependencies:print(relation.from_.model)# <YourModel>print(relation.to.model)# <ParentModel>print(relation.type)# relation type (candidates: 11, 1M, MM)# reverse dependencies (top down)forrnodeinp.reverse_dependencies[ParentModel].dependencies:print(rnode.node.model)# <YourModel># clustered model listforclusterinp.cluster_models:# [[ParentModel, YourModel], [OtherModel]]formodelincluster:print(model)# ordered model listformodelinp.ordered_models:# [ParentModel, YourModel, OtherModel]print(model)
Package: django-mini
Django-mini is an MIT-licensed command-line utility for runningDjangomanagement commands without a settings module. It is intended to help developers run and test stand-alone Django apps.InstallationInstall using pip from PyPI:pip install django-miniAlternatively,download the source, unpack it and install it like a typical Python distribution:python setup.py installThe installation consists of a single pure-Python module calleddjangominiand an executable scriptdjango-mini.py. Django-mini assumes a recent version of Django is already installed.Basic UsageDjango-mini has a few flags for configuring Django settings, and then any other arguments are passed to Django’s management utility so it can do its stuff.--database<database>- to specify the default database.--app<appname>- adds your app package to Django’sINSTALLED_APPS.--admin- adds Django’s built-in admin and its requirements.--debug-toolbar- adds Rob Hudson’sdjango-debug-toolbarand its requirements.-por--persisting- use an sqlite database nameddjangomini.sqlite.If you don’t use the persisting option or specify a database, django-mini will use an in-memory sqlite database (implying it will get destroyed after the command finishes).To run Django with your app and the built-in admin, use a named database:django-mini.py --database /tmp/django.sqlite --admin --app myapp syncdb
django-mini.py --database /tmp/django.sqlite --admin --app myapp runserverOr use the persisting option:django-mini.py -p --admin syncdb
django-mini.py -p --admin runserverThat will start Django’s development server with the admin. The admin application will be available athttp://localhost:8000/admin/and all other requests will be directed to your app, i.e. your app’smyapp.urlsis configured to serve all other requests.The full documentationhas more examples of use, including how to use other databases, how to change any setting, and how to mount an app at a particular URL.
Package: django-miniblog
miniBlog is a Django application for managing a simple blog.Home:https://www.pascalpepe.com/en/projects/django-miniblog/Documentation:https://pascalpepe.gitlab.io/django-miniblogSource code:https://gitlab.com/pascalpepe/django-miniblogIssue tracker:https://gitlab.com/pascalpepe/django-miniblog/issuesStatusThis project is still in its initial development stage. Anything may change at
any time.Supported versions of Python and DjangoDjangoPython2.2 LTS3.5, 3.6, 3.7, 3.8 (added in 2.2.8)3.13.6, 3.7, 3.8DocumentationThe documentation of this project is available athttps://pascalpepe.gitlab.io/django-miniblog.Getting startedModule referencesRelease notesLicensesSource codeThis project is licensed under theApache License 2.0.DocumentationThe documentation of this project is licensed under aCreative Commons Attribution-ShareAlike 4.0 International License.Code samples and snippets found in the documentation are licensed under
the Apache License 2.0, same as the project source code.
Package: django-minifier
Django MinifierMinify Django Template.Install:pipinstalldjango_minifierAdd template loader# settings.pyTEMPLATES=[{"BACKEND":"django.template.backends.django.DjangoTemplates","DIRS":[BASE_DIR/"example"/"templates"],# "APP_DIRS": True,"OPTIONS":{"context_processors":[...],"loaders":[("django.template.loaders.cached.Loader",["django_minifier.app_directories.Loader","django_minifier.filesystem.Loader","django_minifier.themes.Loader",],)],},},]TEMPLATE_MINIFIER=notDEBUGTEMPLATE_MINIFIER_EXCLUDED_DIRS=("admin/","wagtailadmin/")TEMPLATE_MINIFIER_FILENAME_EXTENSIONS=(".html",".htm")TEMPLATE_MINIFIER_STRIP_FUNCTION=False
Package: django-minifilter
django-minifilterThe django-minifilter package provides minimal filter functionality for list views, including:a filter search boxfilter linksThe package is compatible with django's pagination.Here's an example of a very basic list-view, showing a search box that filters by name, and links that filter by year and month:InstallationThedjango-minifilterpackage isavailable on pypiand can be installed viapip:pipinstalldjango-minifilteror viapipenv:pipenvinstalldjango-minifilterThen addminifiltertoINSTALLED_APPSin your django settings.Quick exampleSuppose we have the following simple model, part of an application calledmyapp:fromdjango.dbimportmodelsfromdjango.utilsimporttimezoneclassMyModel(models.Model):name=models.CharField(max_length=100)date=models.DateField(default=timezone.now)Here's how we would create a generic list view with a search box filter, links that filter by year and month, and pagination:fromdjango.viewsimportgenericfromminifilter.mixinsimportFilterMixinfrommyapp.modelsimportMyModelclassMyListView(FilterMixin,generic.ListView):model=MyModeltemplate_name='myapp/mymodel_list.html'paginate_by=10search_fields=['name']filter_parameters=[# (url-parameter-name, lookup)('year','start_date__year'),('month','start_date__month'),]And here's a simple template for the above:<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>My filtered list view</title>
</head>
<body>
{% include 'minifilter/includes/search.html' %}
{% include 'minifilter/includes/parameters.html' %}
<div>
    <ol>
        {% for obj in page_obj %}
            <li>{{ obj.name }} - {{ obj.date }}</li>
        {% endfor %}
    </ol>
</div>
{% include 'minifilter/includes/pagination.html' %}
</body>
</html>Instead of a generic class-based view, we could also create a function-based list view:fromdjango.template.responseimportTemplateResponsefromdjango.core.paginatorimportPaginatorfromminifilter.filtersimportsearch_filter,parameter_filterfrommyapp.modelsimportMyModeldefmy_list_view(request):queryset=MyModel.objects.all()# filter by search termqueryset,search_form=search_filter(queryset=queryset,request=request,search_fields=['name'])# filter queryset based on url query parametersqueryset,parameter_choices=parameter_filter(queryset=queryset,request=request,filter_parameters=[('year','start_date__year'),('month','start_date__month')])# paginate filtered queryset# see: https://docs.djangoproject.com/en/stable/topics/pagination/paginator=Paginator(object_list=queryset,per_page=10)page_number=request.GET.get('page')page_obj=paginator.get_page(page_number)# build responsereturnTemplateResponse(request,template='myapp/mymodel_list.html',context=dict(page_obj=page_obj,parameter_choices=parameter_choices,search_form=search_form,))
Package: django-minimal-abstract-user
django-minimal-abstract-userBy default, Django customUsermodel suffers from the following:If you derive fromdjango.contrib.auth.models.base_user.AbstractBaseUseryou don’t get Django Admin integration, permissions andmanage.py createsuperuser(a real deal breaker for simpler projects!)If you derive fromdjango.contrib.auth.models.AbstractUseryou get hard-codedusername,first_name,last_nameandemail(what if you don’t need to separate first and last name, and don’t need usernames at all?)This library provides a betterAbstractUserclass which works around both problems and provides a minimal abstract baseUsermodel that doesn’t have any extra fields but supports permissions and Django Admin.Installationpip install django_minimal_abstract_userUsage# yourproject/accounts/models.pyfromdjango_minimal_abstract_userimportAbstractUserclassUser(AbstractUser):full_name=models.CharField(max_length=60)email=models.EmailField(_('email address'),unique=True)USERNAME_FIELD='email'REQUIRED_FIELDS=['full_name']# Optional# yourproject/settings.pyAUTH_USER_MODEL='accounts.User'
Package: django-minimal-user
# django-minimal-user - Minimum User model for DjangoContains a User implementation without the cruftThere are two primary uses:Useminimal_user.User directlyInherit fromminimal_user.AbstractUserto create a User model with only
the fields necessary for your project.If using the serializers fromminimal_user.drfensure this project is
installed with thedrfextras. (e.g.django-minimal-user[drf]).
Package: django-mininews
Django-mininews===============.. image:: https://pypip.in/v/django-mininews/badge.png:target: https://crate.io/packages/django-mininews/:alt: Latest PyPI version.. image:: https://pypip.in/d/django-mininews/badge.png:target: https://crate.io/packages/django-mininews/:alt: Number of PyPI downloads.. image:: https://travis-ci.org/richardbarran/django-mininews.svg?branch=master:target: https://travis-ci.org/richardbarran/django-mininews.. image:: https://coveralls.io/repos/richardbarran/django-mininews/badge.png?branch=master:target: https://coveralls.io/r/richardbarran/django-mininews?branch=masterDjango-mininews is a basic tool for controlling the *publication* of objects.Let's take an example: you have a 'news' application, that just consists of aArticle model. In the admin interface, mininews will add this fieldset:.. image:: docs/img/mininews-fieldset.pngAll articles will have the following 3 fields:- status: usually 'draft' or 'published'.- start: start date, defaults to whenever the status is changed to ``published``.- end: end date; optional.Articles can only be viewed in the public website **if** they are ``published``**and** between the start and end dates.In addition, we have a fieldset for showing various read-only status fields:.. image:: docs/img/mininews-status-fieldset.pngThese can be of use for tracking changes to an Article.And that's it... Mininews is just an abstract Model, together with plenty of code - in the models,views, admin and sitemap - to make the best use of it, that you will reuseagain and again throughout a project.What can I use it for?----------------------Here are some examples of Mininews at work:- `Minutes of the meetings of an association <http://www.saphra.org.uk/meetings/>`_.- `Controlling the publication of the Events at a well-known racetrack <http://www.silverstone.co.uk/events/>`_.- `Controlling when job offers are displayed <http://www.ipglobal-ltd.com/en/about/careers/>`_.Alternatives------------There are several similar projects that take slightly different approachesto publication control; usually they introduce more sophisticated control. A well-knownexample is `django-reversion <https://github.com/etianen/django-reversion>`_.Mininews is a very basic publication control tool, but works well on several productionwebsites. Its author has found it be a decent compromise between a tool that's toobasic to be useful, and too complex to be understood by its intended end users.Installation and usage----------------------.. image:: https://readthedocs.org/projects/django-mininews/badge/?version=latest:target: https://readthedocs.org/projects/django-mininews/?badge=latest:alt: Documentation StatusPlease take a look at`the documentation <http://django-mininews.readthedocs.org/en/latest/index.html>`_ on ReadTheDocs.
Package: django-minio
Django app to use [Minio Server](https://github.com/minio/minio) as file storage.IntallationAt first, you need to have working minio server. How to do that you can found at [Minio Quickstart Guide](http://docs.minio.io/docs/minio-quickstart-guide).Install Django Minio Storage from pip:` pip installdjango-minio`Add following keys to your projects settings file:` MINIO_SERVER = 'your_minio_server_address' MINIO_ACCESSKEY = 'your_minio_server_access_key' MINIO_SECRET = 'your_minio_server_secret_key' MINIO_BUCKET = 'my_bucket' MINIO_SECURE = True DEFAULT_FILE_STORAGE = 'django_minio.storage.MinioStorage' `Demo minio server and it’s credentials can be found at [Python Client Quickstart Guide](https://docs.minio.io/docs/python-client-api-reference).If you want to use this module only at production server, include above settings only in production settings.
So at local developer machine you will use django’s default file storage.More information about file storages can be found at [Django Docs](https://docs.djangoproject.com/en/1.8/ref/files/storage/).Currently tested only at Django 2.0.
Package: django-minio-storage
django-minio-storageUseminiofor django static and media file storage.Minio is accessed through the Amazon S3 API, so existing django file storage
adapters for S3 should work, but in practice they are hard to configure. This
project uses the minio python client instead. Inspiration has been drawn fromdjango-s3-storageanddjango-storages.DocumentationSeehttp://django-minio-storage.readthedocs.io/en/latest/for
documentation and usage guides.
Package: django-minio-storage7plus
django-minio-storageUseminiofor django static and media file storage.Minio is accessed through the Amazon S3 API, so existing django file storage
adapters for S3 should work, but in practice they are hard to configure. This
project uses the minio python client instead. Inspiration has been drawn fromdjango-s3-storageanddjango-storages.DocumentationSeehttp://django-minio-storage.readthedocs.io/en/latest/for
documentation and usage guides.
The only addition is the Setting MINIO_STORAGE_OVERWRITE.
Package: django-minipages
miniPages is a Django application for managing simple web pages.Home:https://www.pascalpepe.com/en/projects/django-minipages/Documentation:https://pascalpepe.gitlab.io/django-minipagesSource code:https://gitlab.com/pascalpepe/django-minipagesIssue tracker:https://gitlab.com/pascalpepe/django-minipages/issuesStatusThis project is still in its initial development stage. Anything may change at
any time.Supported versions of Python and DjangoDjangoPython2.2 LTS3.5, 3.6, 3.7, 3.8 (added in 2.2.8)3.13.6, 3.7, 3.8DocumentationThe documentation of this project is available athttps://pascalpepe.gitlab.io/django-minipages.Getting startedModule referencesRelease notesLicensesSource codeThis project is licensed under theApache License 2.0.DocumentationThe documentation of this project is licensed under aCreative Commons Attribution-ShareAlike 4.0 International License.Code samples and snippets found in the documentation are licensed under
the Apache License 2.0, same as the project source code.
Package: django-minipg
Django PostgreSQL database backend with minipgEnvironmentDjango 2.2, 3.0, 3.1, 3.2minipg (https://github.com/nakagami/minipg)RestrictionNo support postgresql specific featureNo support PostGISVersionsDjango(a.b)django-minipg2.20.3.53.00.4.03.10.4.13.20.4.2Installation$ pip install django==a.b
$ pip install django-minipg==x.y.z
$ pip install minipgSettingsDATABASES = {
    'default': {
        'ENGINE': 'postgresql_minipg',
        'NAME': 'some_what_database',
        'HOST': ...,
        'USER': ...,
        'PASSWORD': ...,
    }
}
Package: django-minipub
Django-minipub is amini-malistpub-lication control system for Django.Let’s explain it with an example: you have a ‘news’ application, with an
Article model. In the admin interface, Minipub will add this fieldset:All articles will then have the following 3 fields:status: usuallydraftorpublished.start: start date.end: end date; optional.Articles will only be visible in the public websiteifthey arepublishedandtoday’s date is between the start and end dates.In addition, we have a fieldset for showing various read-only status fields:These can be of use for tracking changes to an Article.And that’s it… Minipub is simply a few fields on a Model Mixin, together with plenty of code - in the models,
views, admin and sitemap - to make the best use of it, that you will hopefully reuse
again and again throughout a project.What can I use it for?Here are some examples of Minipub at work:Controlling the publication of the Events for a F1 racetrack.Controlling when job offers are displayed.Minutes of the meetings of a residents association website.AlternativesThere are several similar projects that take slightly different approaches
to publication control; usually they introduce more sophisticated control. A well-known
example isdjango-reversion.Minipub is a very basic publication control tool, but works well on several production
websites. Its author has found it be a decent compromise between a tool that’s too
basic to be useful, and too complex to be understood by its intended end users.Installation and usagePlease take a look atthe documentationon ReadTheDocs.
Package: django-minirest
Micro rest frameworkDocumentationThe full documentation is athttps://django-minirest.readthedocs.org.QuickstartInstall django-minirest:pip install django-minirestThen use it in a project:import minirestFeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.pyCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2016-06-01)First commit.