Saravanan666/pypi-org huggingface dataset:
Package: django-advanced-reports
Demo websiteAdvanced Reports is a Django library which simplifies creating dynamic reports focusing on business processes. Custom actions can be defined on individual items and/or sets of items.DocumentationThe full documentation is athttps://django-advanced-reports.readthedocs.org.QuickstartInstall django-advanced-reports:pip install django-advanced-reportsGo to theexamples pageand login withadminas the username andadminas the password.FeaturesDisplay of information in a table layout with columnsSortingSearchingFilteringEditing individual items by using standard Django (Model-)Forms.Bulk actionsIn addition to these features, Advanced Reports also contains a Backoffice component, which allows you to combine multiple reports and custom pages with AngularJS, which can in turn be combined to form complete administration interfaces. Features include:Integrate regular Django Models with the Backoffice interface by overriding a simple Python class and by providing Django/AngularJS templates.Easily define how models can be searched by a full-text-search implementation which supports MySQL Full Text Search and Postgres Full Text Search. There is also a fallback using __icontains for simplifying testing with SQLite.A very simple and flexible way to add widgets that communicate with the server-side backend.
Package: django_advanced_staticfinder
django_advanced_staticfinder============Custom filesystem finder for Django static files allowing ignore rules to be configured in settingsTo use in in your django project, it needs to be installed:::$ pip install django_advanced_staticfinderAnd ``"advanced_staticfinder"`` needs to be in your ``settings.INSTALLED_APPS``.Then you can configure ignore rules like so:::STATICFILES_FINDERS_IGNORE = ['*.scss','*.js',]Changes-------1.0.0 - Initial release for PyPI
Package: django-advance-dumpdata
Django Advance DumpdataDjango Manage Command likedumpdatabut with have more feature to  Output the contents of the database from given fields of a model
and filter that data using standard Django lookups for filtering.
data  can be export with divers format like json,xml,yaml.exported structure is compatible with Djangodumpdatastructure which
allows you to use standardloaddatacommand for import.InstallationTo get the latest stable release from PyPi.. code-block:: bashpip install django-dumpdata-advanceAdddumpdata_advanceto yourINSTALLED_APPS.. code-block:: pythonINSTALLED_APPS = (
    ...,
    "django_dumpdata_advance",
)UsageExport data:.. code-block:: bash./manage.py  dumpdata_advance app_name.model_name --fields=field1,field2 > dump_file.jsonImport data:.. code-block:: bash./manage.py loaddata dump_file.jsonHow to use filters? If you not familiar take a look at Django Field
lookups -https://docs.djangoproject.com/en/3.0/topics/db/queries/#field-lookups.. code-block:: bash./manage.py  dumpdata_advance app_name.model_name --fields=field1 --filter=name__icontains=django

./manage.py  dumpdata_advance app_name.model_name --fields=field1 --filter=name__icontains=django,pk__gt=300Set order by:.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --fields=field1,field2 --order=field2,field2Export all fields:.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --fields=*Exclude custom fields:.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --exclude_fields=nameLimit number of exported records:.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --fields=* --limit=10Export full file URL:.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --fields=image --full_url=imageExport from another database than 'default':.. code-block:: bash./manage.py dumpdata_advance app_name.model_name --database=other_database
Package: django-advanced-wallet
THIS PACKAGE IS UNDER DEVELOPMENT, DO NOT USE IN PRODUCTIONdjango-advanced-walletSummaryAn extensible wallet package for quick integration into your Django project.Django Packagespackages/django-initials-avatarInstallingFirst add the application to your Python path. The easiest way is to use pip:pipinstalldjango-advanced-walletCheck theRelease Historytab on the PyPI package page for
pre-release versions. These can be downloaded by specifying the version.You can also install by downloading the source and running:pythonsetup.pyinstallConfiguringMake sure you have add the django_advanced_wallet application to your INSTALLED_APPS list:INSTALLED_APPS=(...'django_advanced_wallet',)
Package: django-advance-thumbnail
Django Advance ThumbnailDjango Advance Thumbnail is a Django app that automates thumbnail creation for image fields. It generates, updates, and
deletes thumbnails based on the source image, and allows custom thumbnail sizes.InstallationInstall the package using pip:pipinstalldjango_advance_thumbnailAdddjango_advance_thumbnailto yourINSTALLED_APPSinsettings.py:INSTALLED_APPS=[# ...'django_advance_thumbnail',# ...]UsageHere's a basic example of how to use theAdvanceDJThumbnailFieldin a model:fromdjango.dbimportmodelsfromdjango_advance_thumbnailimportAdvanceThumbnailFieldclassMyModel(models.Model):image=models.ImageField(upload_to='images/',null=True,blank=True)thumbnail=AdvanceThumbnailField(source_field='image',upload_to='thumbnails/',null=True,blank=True,size=(300,300))In this example,AdvanceDJThumbnailFieldis used to create athumbnailfrom theimagefield. Whenever an image is
uploaded or updated, a corresponding thumbnail is automatically generated and stored in thethumbnailfield. The
thumbnail's dimensions are determined by the optionalsizeparameter, which defaults to(300, 300)if not specified.This setup ensures that the lifecycle of the thumbnail is tied to its source image. If the source image is deleted, the
associated thumbnail is also removed. This seamless synchronization simplifies image management in your Django models.ContactFor any questions or feedback, feel free to reach out:Email:mh@mahadihassan.com,me.mahadi10@gmail.comGithub:@itsmahadi007Linkedin:Mahadi HassanWeb:mahadihassan.comCreditsThis package was created by Mahadi Hassan. Special thanks to the Django and Python communities for their invaluable
resources and support.
Package: django-advertising
Django application for show advertising configurable.InstallingWith pip:pip install django-advertisingQuick startAdd ‘advertising’ to INSTALLED_APPS:INSTALLED_APPS = (
   ...
   'advertising',
)Apply migrations:python manage.py makemigrations advertising
python manage.py migrate advertisingAdd this script in your file .html to use:<script src="{% static 'advertising/js/events.js' %}"></script>Add this line in your file .html to use:{% load image %}
{% get_images_advertising height=300 campaign='CMP1' %}ParametersHeight: Min height element size.Campaign: Id unique Advertising Model. (String)ResponsiveIf you wish to play with media queries, use theimg-advertisingclass.ContributeFork this repo and install itFollow PEP8, Style Guide for Python CodeWrite codeWrite unit testSend pull request
Package: django-adworks
A simple Django application to manage ad banner design and approval processes.RequirementsPython 2.7+Django 1.4+InstallationInstall using pip:$ pip install django-adworksOr install from source code:$ python setup.py installUsageAddadworksto yourINSTALLED_APPSINSTALLED_APPS = (
    ...
    'adworks',
)Includeadworksin yoururls.pyurl('adworks', include('adworks.urls')),Create necessary database tables$ python manage.py syncdbor$ python manage.py migrate adworks
Package: django-aesfield
Provides an AES field for Django that does AES encryption and decryption
usingm2secret-py3, a Python wrapper for OpenSSL.UsageLike any other field:from aesfield.field import AESField

class SomeModel(...):
    key = AESField()ConfigurationAESField takes the following parameters beyond a normal CharField:aes_prefix: the prefix to use on fields, defaults toaes:aes_key: the key to use in the lookup method to find a suitable key for
this field, defaults todefaultSettings:AES_METHOD: the module to look in for a key lookup method, if you want
something different from the default,aesfield.defaultAES_KEYS: used by theaesfield.defaultmethod. It’s a dictionary of keys
to filenames. Those files must be able to be read by the Django process. It
must have adefaultkey, unless you specify a specifc one inaes_keyCommandsIf you addaesfieldtoINSTALLED_APPSyou’ll get one more command,generate_aes_keys. This will generate a new file for each file mentioned in
theAES_KEYSdictionary.But only if that file does not already exist.
Package: django-aetos
A Django app to expose metrics to be scraped by prometheus.io.UsageFirst, install django-aetos:pipinstalldjango-aetosthen, add the app tosettings.py:INSTALLED_APPS=[# ... other apps ..."django_aetos",# ... other apps ...]and send requests to/metricsto Aetos in yoururls.py:fromdjango.urlsimportincludeurlpatterns=[path("",include("django_aetos.urls")),# ... your other patterns ...]Then, add your own metrics by listening for thecollect_metricssignal.
Refer to [the django docs](https://docs.djangoproject.com/en/dev/topics/signals/)
on details how to do this.Your signal handler can return multiple metrics, each represented as a dict
within a list of generator.Yoursrc/app/signals.py:fromdjango.dispatchimportreceiverfromdjango_aetos.signalsimportcollect_metrics@receiver(collect_metrics,dispatch_uid='metric_universes_count')defmetric_universes_count(sender,**kwargs):yield{"name":"universes_count","help":"Total number of universes","type":"counter","value":1,}You can do anything you like here, like make database queries or look at files
in the filesystem.To make sure your receiver actually connects, add an import to yoursrc/app/apps.py:fromdjango.appsimportAppConfigclassYourAppConfig(AppConfig):name="yourapp"defready(self):from.importsignals# NOQADev Setuppython3 -m venv venv
source venv/bin/activate
make setup
make install-devTestingmake testPackaginggit pull
make bump-version part=minor
git push origin main v$(bump-my-version show current_version)make build
make upload-testonce the package looks good, runmake upload.
Package: django-affiliations
=====Affiliations=====Affiliations is a simple Django application that provides user affiliation management. One common problem of websites is to assure users of who they are. The way users handle this is that they ask them to confirm their emails by submitting a token sent to their emails. However, some websites may need a user to confirm his/her affiliation with many organizations, institutes, schools or companies. Therefore, this package provides an affiliation management interface with help of database and email technologyQuick start-----------1. Add "affiliations" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'affiliations',)2. Include the affiliations URLconf in your project urls.py like this::url(r'^affiliations/', include('affiliations.urls')),3. Set the variables below in your settings.py file of your project:AFFILIATIONS_FROM_EMAIL="email address that you will be sending emails from";AFFILIATIONS_CODE_SUBJECT = 'subject for your email address'AFFILIATIONS_URL = 'address to the affiliations webpage';4. Run `python manage.py migrate` to create the polls models.5. Depending on your project setup you may need to call the following command to collect all static files in one directory including the JS filepython manage.py collectstatic6. Start the development server and visit http://127.0.0.1:8000/affiliations/to create a affiliations (The user needs to be signed in to do this).
Package: django-afip
What’s this?AFIP is Argentina’s tax collection agency. For emitting invoices, taxpayers are
required to inform AFIP of each invoice by using a dedicated SOAP-like web
service for that.django-afipis a Django application implementing the necessary bits for
Django-based applications to both store and comunícate invoicing information.FeaturesValidate invoices and other receipt types with AFIP’s WSFE service.Generate valid PDF files for those receipts to send to clients.DocumentationThe full documentation is available athttps://django-afip.readthedocs.io/It is also possible to build the documentation from source using:tox-edocsChangelogThe changelog is included with the rest of the documentation:https://django-afip.readthedocs.io/en/stable/changelog.htmlDonateWhile some of the work done here is done for clients, much of it is done in my
free time. If you appreciate the work done here, please considerdonating.LicenceThis software is distributed under the ISC licence. See LICENCE for details.Copyright (c) 2015-2023 Hugo Osvaldo Barrera <hugo@whynothugo.nl>
Package: django-after-deploy
After deploy helps you to create and manage automated deploy tasks in your Django application. Inspired byRails after_partyQuick startInstall the package using pip by running:pip install django-after-deployAdd “after_deploy” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'after_deploy',
]Now after_deploy commands are available, use install flag:python manage.py after_deploy --installRunpython manage.py after_deploy-gmy_first_taskto create your first task, they’ll stay at root project, on tasks folder:my-project
|-- my-app
|   |-- __init__.py
|   |-- apps.py
|   |-- models.py
|   |-- settings.py
|-- tasks
|   |-- __init__.py
|   |-- _000001_my_first_task.py
|-- manage.pyFor execute all unapplied tasks you can runpython manage.py after_deploy--run. If you need execute again a specfic task, you can runpython manage.py after_deploy-rmy_first_task.AuthorsDiogo FernandesContributeIf you find an issue with AfterDeploy please log an issue. I will accept pull requests.
Package: django-aftermath
django-aftermathExecute commands after tests are completed.It requires django-discover-runner package to work.UsageInstall using pip:pip install django-aftermathIn your settings file, add the following required options:TEST_RUNNER = ‘aftermath.AftermathTestRunner’To specifiy a backend, set a dotted path to the backend class:AFTERMATH_BACKEND = ‘aftermath.backends.NotifySendBackend’Currently, there are two backends,NullBackendwhich does nothing (this is the default), andNotifySendBackendwhich uses notify-send to generate notifications. You will have to install notify-send yourself.On Gnome3,NotifySendBackendcreates notifications like these:![notification](notification.png)To specifiy if backend is executed when all test succeed, useAFTERMATH_RUN_ON_SUCCESSsetting. Default values isTrue.To specifiy if backend is executed when some tests fail, useAFTERMATH_RUN_ON_FAILsetting. Default values isTrue.Usually, you will only need to specify the first two options.If you wish to implement your own backend, take a look at one of the existing backends. All you need is a simple class with__init__andaftermathfunctions. If you make one, I’ll be happy to include it in the package.TODOImprove docs/readme.
Package: django-agenda
Django agenda is a django app that allow you to create and book
times in a schedule. Our goal is to handle all the nasty details for
you; like timezones, schedule changes, and whether or not a
specific segment is actually available to be booked.FeaturesCreate recurring availabilities. We should support everything that
RFC 2445 does.Subclass AbstractBooking to create bookings. Bookings will reserve
time slots, and flag them as busy.Uses dynamic foreign keys, so you can relate your availabilities &
bookings to anything (a user, an office space, a classroom)InstallationFirst, install via pip (on Windows, replacepip3withpip)pip3 install django-agendaThen, edit yoursettings.py, adding this line toINSTALLED_APPS'django_agenda',For further instructions, seethe documentation.Changes0.7.2Properly fix inability to rename TimeSlot class (#2)Add support for Django 3.10.7.1Remove support for Django 1.10Fix error in documentation (#2), and make the booking_csl in
TimeSlotMeta dynamic0.7.0Deprecated_get_paddingand related methods in favor of methods without
leading underscoresAdded some basic documentation0.6.5Don‘t validate already allocated slots0.6.4Fix long description rendering problems on pypi0.6.3Adddjango_agenda.version, drop pbr0.6.2add a related name for the bookings relation0.6.1Bug fix for case where foreign key wasn’t called schedule0.6.0A major rewrite & simplification. This version worksverydifferently
from 0.5, don’t expect to migrate easily.Time slots are now primarily for marking busy state, and
availability occurrences are for free times.You have to create your own models, subclassing the abstract
models in django_agenda.models. The good thing about this is
that this allows us to use real foreign keys instead of
generic ones.To that end, you’ll have to migrate the data into your models.
Django Agenda won’t delete any of it’s own models, but you’ll
have to migrate the data into the new models that you make.Booking validation is now done in AbstractBooking.clean
instead of AbstractBooking.save. Make sure you call full_clean!You can use django_agenda.models.get_free_times to find all the
free time spans in a particular space of time.0.5.4Add the ability to overlap busy slots0.5.3Add ability to overlap bookings0.5.2Add support for django 20.5.1Fix bug if the start/end time weren’t in the same zone as the availability0.5.0Fix handling of daylight savings0.4.0–0.4.9Small improvements to the regen methodFix problem where_padding_changedwould crash with big changesImprove error messagingFix issue where slots were being skipped during regenerationUpdate config so it works more naturallyFix issue where_padding_changedwould alter same slot multiple timesAdd a method to handle non-static padding valuesFix problem with app config, and gitlab ciFix bug making overlapping slots when a booking spanned existing slotsAdd support for disallowing duplicate bookingsFix instruction formatting in readmeRewrite scheduling logicAdd a reasonable number of tests
Package: django-agent
Django AgentThis is a Django app that provides an API for executing shell commands and retrieving their output.Quick startAdddjango_agentto yourINSTALLED_APPSsetting like thisINSTALLED_APPS = [
    ...,
    "django_agent",
]Include thedjango_agentURLconf in your projecturls.pylike thispath("agent/", include("django_agent.urls")),AddAGENT_TOKENto your projectsettings.pylike this...
AGENT_TOKEN="my-agent-token"
Package: django-agent-trust
This project has tools for managing trusted user agents. For example, you might
allow the user to indicate whether they are using a public or private computer
and implement different policies for each. Or you might be using a two-factor
authentication scheme, allowing the users to bypass the second factor on
machines that they designate as trusted. This uses Django’s signed cookie
facility and operates independently of sessions.Short list of features:request.agent.is_trustedtells you whether the request came from a
trusted agent.APIs to trust or revoke the agent that made a given request.Global, per-user, and per-agent settings can set the duration of agent
trust as well as an inactivity timeout.Supports session-scoped agent trust for consistency of authorization
policies.Revoke all of a user’s previously trusted agents at any time.The mechanisms by which a user is allowed to designate trusted agents is left
entirely to clients of this library. For an application of this API using
one-time passwords, seedjango-otp-agents, part of thedjango-otpsuite.DevelopmentThis project is built and managed withhatch. If you don’t have hatch, I
recommend installing it withpipx:pipx install hatch.pyproject.tomldefines several useful scripts for development and testing.
The default environment includes all dev and test dependencies for quickly
running tests. Thetestenvironment defines the test matrix for running the
full validation suite. Everything is executed in the context of the Django
project in test/test_project.As a quick primer, hatch scripts can be run withhatch run[<env>:]<script>.
To run linters and tests in the default environment, just runhatch run check. This should run tests with your default Python version and
the latest Django. Other scripts include:manage: Run a management command via the test project. This can be used to
generate migrations.lint: Run all linters.fix: Run tools that can automatically fix many linting errors.test: Run all tests.check: Run linters and tests.warn: Run tests with all warnings enabled. This is especially useful for
seeing deprecation warnings in new versions of Django.cov: Run tests and print a code coverage report.To run the full test matrix, runhatch run test:run. You will need multiple
specific Python versions installed for this.You can clean up the hatch environments withhatch env prune, for example to
force dependency updates.
Package: django-aggregates
django-aggregates=================Aggregate, String and Conditional SQL functions to use into Annotate and Aggregate methods. Any kind of contribitions and ideas are welcome.Installation=================pip install django-aggregatesUsage=================>> from aggregates import StringAgg>> People.objects.aggregate(names=StringAgg('name', delimiter(', ')))>> {'names': 'Walter, The Dude, Donny, Jesus'}>> from aggregates import As>> People.objects.values('address__title').annotate(prettyname=As('address__title')).values('prettyname')>> [{'prettyname': 'someadress1'}, {'prettyname': 'someaddress2'}]>> from aggregates.strings import CharLength>> People.objects.annotate(char_len=CharLength('name')).filter(char_len__gt=6)>> [<People: Walter>, <People: The Dude>]>> from aggregates.conditionals import Coalesce, NullIf>> person=People.objects.annotate(null_if=NullIf('name', othercol='surname'))[0]>> person.null_if>> 'Walter'>> person=People.objects.annotate(coalesce=Coalesce('age', default=18))[0]>> person.coalesce>> 18>> person.age>>Available Functions=================Aggregates:from aggregates import ...- As- BitAnd- BitOr- BoolAnd  **# Only PostgreSQL**- BoolOr  **# Only PostgreSQL**- Every  **# Only PostgreSQL**- StringAgg  **# Only PostgreSQL**- XMLAgg  **# Only PostgreSQL**- Corr  **# Only PostgreSQL**- CovarPop  **# Only PostgreSQL**- CovarSamp  **# Only PostgreSQL**- RegrAvgX  **# Only PostgreSQL**- RegrAvgY  **# Only PostgreSQL**- RegrCount  **# Only PostgreSQL**- RegrIntercept  **# Only PostgreSQL**- RegrR2  **# Only PostgreSQL**- RegrSlope  **# Only PostgreSQL**- RegrSXX  **# Only PostgreSQL**- RegrSXY  **# Only PostgreSQL**- RegrSYY  **# Only PostgreSQL**- Mode  **# Only PostgreSQL 9.4+**- PercentileCont  **# Only PostgreSQL 9.4+**- PercentileDisc  **# Only PostgreSQL 9.4+**Strings:from aggregates.string import ...- BitLength- CharLength- CharacterLength- OctetLength- Lower- Upper- Ascii- Length- MD5  **# Only PostgreSQL**Conditionals:from aggregates.conditionals import ...- NullIf- Coalesce  **# Only PostgreSQL**Requirements==================================- Django 1.2+TODO=================- UnitTests.- More detailed informations about functions.- JSON functions and operations