Saravanan666/pypi-org huggingface dataset:
Package: django-nepali-datetime-field
Highly motivated package from Django’s DateField & DateTimeField. The library is intended to provide
Bikram Sambat Date Time fields for Django’s Model and Form.Note: Currently only supports DateField. DateTimeField will be supported soon in future releases.The package is dependent onnepali-datetimepackage and the UI for the date picker is implemented fromhttps://github.com/leapfrogtechnology/nepali-date-picker.Supports: Django 2.0+Installation$ pip install django-nepali-datetime-fieldQuick startAddnepali_datetime_fieldto yourINSTALLED_APPSlist:INSTALLED_APPS = [
    ...
    'nepali_datetime_field',
]ImportingNepaliDateFieldmodel field tomodels.pyfile:from nepali_datetime_field.models import NepaliDateField

class YourModel(models.Model):
    ...
    nepali_date = NepaliDateField()ImportingNepaliDateFieldform field toforms.pyfile:from nepali_datetime_field.forms import NepaliDateField

class YourForm(forms.Form):
    ...
    nepali_date = NepaliDateField()Whenever usingNepaliDateFieldform field, don’t forget to add Widget’s media on the<head>section of the html as below:<html>
<head>
...
{{ form.media }}
...
</head>
<body>
...
{{ form }}
...
</body>
</html>Querying the model field:import nepali_datetime

nepali_date = nepali_datetime.date(1995,10,1)

# get query
YourModel.objects.get(nepali_date=nepali_date)

# filter query
YourModel.objects.filter(nepali_date=nepali_date)

# date range query
from_date = nepali_datetime.date(1990,1,1)
to_date = nepali_datetime.date(1999,12,30)
YourModel.objects.filter(nepali_date__range=(from_date, to_date))More UsageCheck some of the usage details inexample_app/tests.py.DemoPlay around with the live demohere.
Package: django-ner-trainer
Django NER TrainerTools for training spaCy Named Entity Recognition models in DjangoDocumentationDocumentation is available in thedocs directoryand athttps://johnfraney.github.io/django-ner-trainer.CreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageCode of ConductEveryone interacting in the project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow thePyPA Code of Conduct.History0.1.0 (2018-06-02)First release on PyPI.
Package: django-nest
🚀 Project 🚀DjangoNest: A Python CMS with the Elegance of Django
DjangoNest is a Content Management System (CMS) built with a powerful combination of Python and Django, providing an agile and flexible development experience. The project was born from the need to create an intuitive solution for efficient content management in web environments.🔧 Functionalities 🔧📘 User Guide 📘InstallationTo install Django Nest, use the following command:🛠️pip3installdjango-nestCreate a New ProjectTo start a new Django Nest project, you can choose from the following options:Using the startproject command:🌟python3-mdjango_neststartproject"myproject"Cloning an existing project from the repository:🌟gitclone"https://github.com/Pythonautas/DNest.git""my_project"After creating the project, navigate to the project directory:📁cd"my_project"Setting up the DatabaseTo start the database, use the following command with Docker Compose:🗃️docker-composeupdb-dStarting the ApplicationTo start the application, use the following command with Docker Compose:📱docker-composeupappNote:DockerandDocker Composeare required to run the application. Make sure to install them before starting the application.Now you're ready to begin working on your Django Nest project! If you have any questions or need more information, refer to the official documentation atDjangoNest.👥 Contributors 👥Github UserFace 🤭@pratadaniel94Contributions are welcome! Feel free to open issues and submit pull requests.
Package: django-nested-admin
django-nested-adminis a project that makes it possible to nest
admin inlines (that is, to define inlines on InlineModelAdmin classes).
It is compatible with Django 3.2+ and Python 3.7+ and works with or
without Grappelli. When Grappelli is not installed it allows
Grappelli-like drag-and-drop functionality.InstallationThe recommended way to install django-nested-admin is fromPyPI:pip install django-nested-adminAlternatively, one can install a development copy of django-nested-admin
from source:pip install -e git+git://github.com/theatlantic/django-nested-admin.git#egg=django-nested-adminIf the source is already checked out, use setuptools to install:python setup.py developConfigurationTo use django-nested-admin in your project,"nested_admin"must be added
to theINSTALLED_APPSin your settings:INSTALLED_APPS=(# ...'nested_admin',)If you’re usingdjango-grappelli,
you will also need to add to includenested_admin.urlsin your urlpatterns:urlpatterns=[# ...path('_nested_admin/',include('nested_admin.urls')),]Example UsageIn order to usedjango-nested-admin, use the following classes in
place of their django admin equivalents:django.contrib.adminnested_adminModelAdminNestedModelAdminInlineModelAdminNestedInlineModelAdminStackedInlineNestedStackedInlineTabularInlineNestedTabularInlineThere is alsonested_admin.NestedGenericStackedInlineandnested_admin.NestedGenericTabularInlinewhich are the nesting-capable
versions ofGenericStackedInlineandGenericTabularInlineindjango.contrib.contenttypes.admin.# An example admin.py for a Table of Contents appfromdjango.contribimportadminimportnested_adminfrom.modelsimportTableOfContents,TocArticle,TocSectionclassTocArticleInline(nested_admin.NestedStackedInline):model=TocArticlesortable_field_name="position"classTocSectionInline(nested_admin.NestedStackedInline):model=TocSectionsortable_field_name="position"inlines=[TocArticleInline]classTableOfContentsAdmin(nested_admin.NestedModelAdmin):inlines=[TocSectionInline]admin.site.register(TableOfContents,TableOfContentsAdmin)Testingdjango-nested-admin has fairly extensive test coverage.
The best way to run the tests is withtox,
which runs the tests against all supported Django installs. To run the tests
within a virtualenv runpytestfrom the repository directory. The tests
require a selenium webdriver to be installed. By default the tests run with
phantomjs, but it is also possible to run the tests with the chrome webdriver
by passing--selenosis-driver=chrometopytestor, if running with
tox, runningtox----selenosis-driver=chrome. Seepytest--helpfor
a complete list of the options available.ContributingThis project useswebpackfor building its
javascript and css. To install the dependencies for the build process, runnpm installfrom the root of the repository. You can then runnpm run buildto rebuild the static files.LicenseThe django code is licensed under theSimplified BSD
License. View theLICENSEfile under the root directory for complete license and
copyright information.
Package: django-nested-form-field
django-nested-form-fieldnest django forms as fields in other formsInstallationUse the package managerpipto install django-nested-form-field.pipinstalldjango-nested-form-fieldUsagefromdjangoimportformsfromnested_form_fieldimportNestedFormFieldclassMyNestedForm(forms.Form):title=forms.CharField()description=forms.CharField()classMyForm(forms.Form):nested_form=NestedFormField(MyNestedForm)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: django-nested-formset
Formsetsare a Django abstraction that make it easier to manage
multiple instances of a singleFormon a page. In 2009 I wrote ablog postabout using nesting formsets using Django 1.1. This is a
generic implementation of the technique described there, targeting
Django 1.6 and later. Afollow-up blog postprovides additional
context.Note that Ido notadvocate the use of nested Formsets: in every case
I’ve considered them, they’ve led to usability issues and overly
complex view code. This repository was created as an exercise in test
driven development and abstraction.Your mileage may vary.InstallingYou can install Django Nested Formsets using your favorite package
management tool. For example:$ pip install django-nested-formsetYou can also install the latest development version:$ pip install git+https://github.com/nyergler/nested-formset#egg=django-nested-formsetAfter installing the package, you can use thenestedformset_factoryfunction to create your formset class.DevelopingIf you’d like to work on the source, I suggest cloning the repository
and creating a virtualenv.$ cd nested-formset
$ virtualenv .
$ source bin/activate
$ python setup.py developThe last line will install the installation and test dependencies.To run the unit test suite, run the following:$ python setup.py testSee AlsoDjango Formset documentationjquery.django-formsetDynamic creation of formsets from the empty
formset.LicenseThis package is released under a BSD style license. See LICENSE for details.News0.1.4Release date: 7 March 2015Dropped Django 1.5.x support; it’s no longer receiving security
updates or maintenance.Updated accepted factorykwargsfor Django 1.7 and laterFixed builds against Django tip.0.1.3Release date: 28 September 2014Test against Django 1.7-finalhas_changednow takes into account all nested forms.0.1.2Release date: 20 May 2014Support for passing files to bound nested formsetsThe media property now rolls up all nested mediaCompatibility with Django 1.7.0.1.1Release date: 6 March 2014Bump minor version number to get PyPI to index the development
version link.0.1Release date: 6 March 2014Initial release on PyPI
Package: django-nested-inline
django-nested-inlineNested inline support for Django adminMost of the code from this package is fromhttps://code.djangoproject.com/ticket/9025Githubhttps://github.com/s-block/django-nested-inlineInstallationpip install django-nested-inlineUsageAddnested_inlinetoINSTALLED_APPS# models.pyfromdjango.dbimportmodelsclassTopLevel(models.Model):name=models.CharField(max_length=200)classLevelOne(models.Model):name=models.CharField(max_length=200)level=models.ForeignKey('TopLevel')classLevelTwo(models.Model):name=models.CharField(max_length=200)level=models.ForeignKey('LevelOne')classLevelThree(models.Model):name=models.CharField(max_length=200)level=models.ForeignKey('LevelTwo')# admin.pyfromdjango.contribimportadminfromnested_inline.adminimportNestedStackedInline,NestedModelAdminfromexample.modelsimport*classLevelThreeInline(NestedStackedInline):model=LevelThreeextra=1fk_name='level'classLevelTwoInline(NestedStackedInline):model=LevelTwoextra=1fk_name='level'inlines=[LevelThreeInline]classLevelOneInline(NestedStackedInline):model=LevelOneextra=1fk_name='level'inlines=[LevelTwoInline]classTopLevelAdmin(NestedModelAdmin):model=TopLevelinlines=[LevelOneInline]admin.site.register(TopLevel,TopLevelAdmin)Minifying JavascriptReleased versions of this library should have a minified version of the js.Minification is done with uglifyjs. If npm is installed on your system,
you can install uglifyjs with the command:npminstall-guglify-jsThen change to the directory where the file 'inlines-nested.js' and
run the following command:uglifyjs--compress--mangle--output./inlines-nested.min.js--inlines-nested.jsReleasing to PyPiCreate a file at $HOME/.pypirc and put the following text inside:[pypi]
username = __token__
password = <Token from pypi>Make sure the dependencies for this project are installed:pipinstalldjangoThen install the build tool:pipinstallbuildNext run the distribution build of the project:python-mbuildLastly, push the release to pypitwineuploaddist/*Changelist0.4.6:Support django 4.1Fix inline media error (#130)Fix error when using 'save as new' (#149)Add .fieldBox styling for django 2.1+ (#114)Fix select2 import for Django >=2.2 (#150)Fixed FieldDoesNotExist import to support Django>=3.2 (#147)0.4.5 - Support django 4.0 and django-csp0.4.4 - Add formset:added and formset:removed events (#97)0.4.3 - Update media so it expects to find jquery in the right place. (#75)0.4.2 - Fix assets0.4.1 - Fix permission checks0.4.0 - Added support for Django 3.00.3.7 - added support for django 1.10, fix unique fieldset id0.3.6 - added support for django 1.90.3.5 - Removed deprecated methods and updated for Django 1.8/1.90.3.4 - added licence and updated for python 30.3.3 - fixed bug where inlines without inlines would cause an error
Package: django-nested-inline-bug-fixed
Nested inline support for Django adminMost of the code from this package is from [https://code.djangoproject.com/ticket/9025](https://code.djangoproject.com/ticket/9025)Github[https://github.com/soex0101/django-nested-inline-bug-fixed](https://github.com/soex0101/django-nested-inline-bug-fixed)
Forked from
[https://github.com/s-block/django-nested-inline](https://github.com/s-block/django-nested-inline)Installationpip install django-nested-inline-bug-fixedUsageAddnested_inlinetoINSTALLED_APPSmodels.pyfrom django.db import modelsclass TopLevel(models.Model):name = models.CharField(max_length=200)class LevelOne(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘TopLevel’)class LevelTwo(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelOne’)class LevelThree(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelTwo’)admin.pyfrom django.contrib import admin
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
from example.models import *class LevelThreeInline(NestedStackedInline):model = LevelThree
extra = 1
fk_name = ‘level’class LevelTwoInline(NestedStackedInline):model = LevelTwo
extra = 1
fk_name = ‘level’
inlines = [LevelThreeInline]class LevelOneInline(NestedStackedInline):model = LevelOne
extra = 1
fk_name = ‘level’
inlines = [LevelTwoInline]class TopLevelAdmin(NestedModelAdmin):model = TopLevel
inlines = [LevelOneInline]admin.site.register(TopLevel, TopLevelAdmin)Changelist0.4.4 - Add formset:added and formset:removed events (#97)0.4.3 - Update media so it expects to find jquery in the right place. (#75)0.4.2 - Fix assets0.4.1 - Fix permission checks0.4.0 - Added support for Django 3.00.3.7 - added support for django 1.10, fix unique fieldset id0.3.6 - added support for django 1.90.3.5 - Removed deprecated methods and updated for Django 1.8/1.90.3.4 - added licence and updated for python 30.3.3 - fixed bug where inlines without inlines would cause an error
Package: django-nested-inline-py3
Nested inline support for Django adminMost of the code from this package is from [https://code.djangoproject.com/ticket/9025](https://code.djangoproject.com/ticket/9025)Github[https://github.com/s-block/django-nested-inline](https://github.com/s-block/django-nested-inline)Installationpip install django-nested-inlineUsageAddnested_inlinetoINSTALLED_APPSmodels.pyfrom django.db import modelsclass TopLevel(models.Model):name = models.CharField(max_length=200)class LevelOne(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘TopLevel’)class LevelTwo(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelOne’)class LevelThree(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelTwo’)admin.pyfrom django.contrib import admin
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
from example.models import *class LevelThreeInline(NestedStackedInline):model = LevelThree
extra = 1
fk_name = ‘level’class LevelTwoInline(NestedStackedInline):model = LevelTwo
extra = 1
fk_name = ‘level’
inlines = [LevelThreeInline]class LevelOneInline(NestedStackedInline):model = LevelOne
extra = 1
fk_name = ‘level’
inlines = [LevelTwoInline]class TopLevelAdmin(NestedModelAdmin):model = TopLevel
inlines = [LevelOneInline]admin.site.register(TopLevel, TopLevelAdmin)Changelist0.3.7 - added support for django 1.10, fix unique fieldset id0.3.6 - added support for django 1.90.3.5 - Removed deprecated methods and updated for Django 1.8/1.90.3.4 - added licence and updated for python 30.3.3 - fixed bug where inlines without inlines would cause an error
Package: django-nested-inlines
# django-nested-inlines##I am not the author, I am simply publishing Alain Trinh’s work, with SilverFix’es bugfixes and improvements.##SilverFix’es bugfix & changes- [inlines.js]Fixed severe bug with number of TOTAL_FORMS when adding a new nested- [tabular.html] Fixed look ‘n feel of the nested table (dynamic colspan handling)
- [admin.py] Fixed exception using it with a no-deletable inline
- [project structure] Deleted inlines.min.js
- [admin.py] NestedModelAdmin was pointing to wrong js filename
- [admin.py] Fixed a bug that would be skip any custom validation in clean() method## Overview[Django issue #9025](http://code.djangoproject.com/ticket/9025)Patches have been submitted, and repositories forked, but no one likes to use
either one. Now, nested inlines are available in an easy-to-install package.### IssuesThe Javascript portion of this app is currently buggy. The Python portion
should be solid. Please test and file issues and pull requests to improve
it!## Installationpip install django-nested-inlines## Usagenested_inlines.admincontains threeModelAdminsubclasses to enable
nested inline support:NestedModelAdmin,NestedStackedInline, andNestedTabularInline. To use them:1. Addnested_inlinesto yourINSTALLED_APPSbeforedjango.contrib.admin. This is because this app overrides certain admin
templates and media.
2. ImportNestedModelAdmin,NestedStackedInline, andNestedTabularInlinewherever you want to use nested inlines.
3. On admin classes that will contain nested inlines, useNestedModelAdminrather than the standardModelAdmin.
4. On inline classes, useNestedversions instead of the standard ones.
5. Add aninlines = [MyInline,]attribute to your inlines and watch the
magic happen.## Examplefrom django.contrib import admin
from nested_inlines.admin import NestedModelAdmin, NestedStackedInline, NestedTabularInline
from models import A, B, Cclass MyNestedInline(NestedTabularInline):model = Cclass MyInline(NestedStackedInline):model = B
inlines = [MyNestedInline,]class MyAdmin(NestedModelAdmin):inlines = [MyInline,]admin.site.register(A, MyAdmin)## CreditsThis package is mainly the work of other developers. I’ve only taken their
patches and packaged them nicely for ease of use. Credit goes to:Gargamel for providing the base patch on the Django ticket.Stefan Klug for providing a fork with the patch applied, and for bugfixes.See [Stefan Klug’s repository](https://github.com/stefanklug/django/tree/nested-inline-support-1.5.x).
Package: django-nested-inline-springboard
Nested inline support for Django adminMost of the code from this package is from [https://code.djangoproject.com/ticket/9025](https://code.djangoproject.com/ticket/9025)Github[https://github.com/s-block/django-nested-inline](https://github.com/s-block/django-nested-inline)Installationpip install django-nested-inlineUsageAddnested_inlinetoINSTALLED_APPSmodels.pyfrom django.db import modelsclass TopLevel(models.Model):name = models.CharField(max_length=200)class LevelOne(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘TopLevel’)class LevelTwo(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelOne’)class LevelThree(models.Model):name = models.CharField(max_length=200)
level = models.ForeignKey(‘LevelTwo’)admin.pyfrom django.contrib import admin
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
from example.models import *class LevelThreeInline(NestedStackedInline):model = LevelThree
extra = 1
fk_name = ‘level’class LevelTwoInline(NestedStackedInline):model = LevelTwo
extra = 1
fk_name = ‘level’
inlines = [LevelThreeInline]class LevelOneInline(NestedStackedInline):model = LevelOne
extra = 1
fk_name = ‘level’
inlines = [LevelTwoInline]class TopLevelAdmin(NestedModelAdmin):model = TopLevel
inlines = [LevelOneInline]admin.site.register(TopLevel, TopLevelAdmin)
Package: django-nestedquery
django-nestedqueryGiven a django model such asclassSensorReading(models.Model):sensor=models.PositiveIntegerField()timestamp=models.DatetimeField()reading=models.IntegerField()This allows the construction of queries such asfromnestedqueryimportNestedQueryqs=NestedQuery(SensorReading.objects.filter(sensor=1)).filter(reading__gte=10)resulting in  SQL looking something likeSELECT*FROM(SELECT*FROMSensorReadingWHEREsensor=1)asVirtualTableWHEREVirtualTable.reading>=10;While this example is obviously simplistic, This Pattern becomes more useful when dealing with more complex queries, for example when dealing with aggregatesreadings=(NestedQuery(SensorReading.objects.filter(**filters).annotate(previous_read=Window(expression=window.Lead("timestamp"),partition_by=[F("sensor"),],order_by=["timestamp",],frame=RowRange(start=-1,end=0),)).annotate(delta=Abs(Extract(F("timestamp")-F("previous_read"),"epoch")))).values("sensor").annotate(min=Min("delta"),max=Max("delta")))
Package: django-netaxept
A generic payment app for Django using NetaxeptInstallationFor the current stable version:pip install django-netaxeptFor the development version:pip install -e git+git://github.com/fivethreeo/django-netaxept.git#egg=django-netaxeptConfigurationAdddjnetaxepttosettings.INSTALLED_APPSand run:manage.py syncdbTestinggit clone https://github.com/fivethreeo/django-netaxept.git
cd django-netaxept
virtualenv test_env
source ./test_env/bin/activate
pip install -r requirements.txt
python runshell.py --merchantid [merchantid] --token [token]
python runtests.py --merchantid [merchantid] --token [token]
Package: django-netbox-confluence
Django-NetBox-Confluence is a Django app to connect NetBox and Confluence wiki. Define .Detailed documentation is in the “docs” directory.Quick startAdd “Django-NetBox-Confluence” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    'django_netbox_confluence',
]Include the netbox-wiki URLconf in your project urls.py like this:path('netbox-wiki-api/', include('django_netbox_confluence.urls'))Add confluence credentials settings and space key where the data will be stored variables in your Django settings file.DNC_CONFLUENCE_CREDENTIALS = {‘url’: ‘http://localhost:8090’,‘username’: ‘admin’,‘password’: ‘admin’}DNC_SPACE_KEY = ‘NETBOX’DNC_WEBHOOK_TOKEN = “<SECRET_KEY>”Runpython manage.py migrateto create the Django-NetBox-Confluence models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a configuration (you’ll need the Admin app enabled). Set authorization header: {“Authorization”: “Token <SECRET_KEY>”}.Usehttp://127.0.0.1:8000/netbox-wiki/model_change_triggeras NetBox webhook endpoint URL field input.
Package: djangonetsol-polls
=====Netsol Polls=====Polls is a simple Django app to conduct Web-based polls. For eachquestion, visitors can choose between a fixed number of answers.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'polls',)2. Include the polls URLconf in your project urls.py like this::url(r'^polls/', include('polls.urls')),3. Run `python manage.py migrate` to create the polls models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create a poll (you'll need the Admin app enabled).5. Visit http://127.0.0.1:8000/polls/ to participate in the poll.
Package: django-network-conditions
==============
django-network-conditionsA Django package to simulate different network conditions during local development.Set UpSetting up django-network-conditions is easy. After it is installed in your environemnt and on your path, simply add the middleware class to your MIDDLEWARE_CLASSES list::MIDDLEWARE_CLASSES = (
    ...
    'django_network_conditions.middleware.LatencyMiddleware',
    ...
)django_network_conditions optionally accepts a settings variable called NETWORK_CONDITIONS. Currently,
NETWORK_CONDITIONS is a dictionary whose keys are 'DEBUG_ONLY', 'LATENCY', 'KB_PER_SECOND', 'JITTER', 'TIMEOUT_PCT', 'PRINT_LOGS'.For example::NETWORK_CONDITIONS = {
    'DEBUG_ONLY': True, # default True. means only runs in DEBUG mode.
    'LATENCY': 20, # millis delay before start sending response
    'KB_PER_SECOND': 1024, # speed to send the response,
    'JITTER': 10, # millis standard deviation in latency. 0 = no jitter otherwise gaussian,
    'TIMEOUT_PCT': 5, #the percentage of requests that time out
    'PRINT_LOGS': False # if True, it shows the status.
}