Saravanan666/pypi-org huggingface dataset:
Package: django-etc
https://github.com/idlesign/django-etcDescriptionTiny stuff for Django that won’t fit into separate apps.Utilsetc.toolbox.get_site_urldoes its best to provide you with a site URL whether request object is available or not.etc.toolbox.import_app_moduleimports and returns a module from a specific app by its name.etc.toolbox.import_project_modulesimports modules from registered apps using given module name and returns them as a list.Modelsetc.toolbox.InheritedModelallows to override fields attributes in inherited models.etc.toolbox.get_model_class_from_stringallows getting model class from its string representation.etc.toolbox.get_model_class_from_settingsallows getting model class from its string representation in settings module.etc.toolbox.ChoicesEnumMixinhelps to define choices for models usingEnumfrom Python 3.etc.toolbox.choices_listhelps to define choices for models, that could be addressed later as dictionaries.etc.toolbox.get_choicesreturns model field choices from a given choices list.Adminetc.admin.CustomModelPageallows easy construction of custom admin pages processing user input.Formsetc.toolbox.set_form_widgets_attrsallows bulk apply HTML attributes to every field widget of a given form.Template tagsmodel_field:model_field_verbose_namereturns model field verbose name.model_field_help_textreturns model field help text.model_meta:model_meta_verbose_namereturns model verbose name singular.model_meta_verbose_name_pluralreturns model verbose name plural.gravatargravatar_get_urlreturns Gravatar image URL for a given string or UserModel.gravatar_get_imgreturns Gravatar image HTML tag for a given string or UserModel.etc_miscsite_urldoes its best to provide you with a site URL whether request object is available or not.include_allows a template name to include template variables. Allows fallback template if the target is not found.Documentationhttp://django-etc.readthedocs.org/
Package: django-etcsettings
# django-etcsettings #This simple thing allows you to factor out environment-dependant settings like database connection parameters and such from your hugesettings.pyinto nice and clean YAML config placed anywhere in the filesystem.## Usage ##Add the following line to yoursettings.pyfile:from etcsettings.settings import *When running pass theETCSETTINGS_FILEenvironment variable pointing to the YAML file with additional settings, e. g.:ETCSETTINGS_FILE=/etc/mycompany/myproject/settings.yaml ./manage.py runserver …This will load the mentioned file and mix up it’s contents to Django settings module.
Package: django-etesync-journal
EteSync - Secure Data SyncIMPORTANT:This repo is deprecated, please use refer tohttps://github.com/etesync/server/This is a reusable django app that implements the server side of EteSyncMore info is available on theEteSync websiteQuick startAdd "journal" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
    ...
    'journal.apps.JournalConfig',
]Include the "journal" URLconf in your project's urls.py like this:from django.conf.urls import include, url

from rest_framework import routers

from journal import views

router = routers.DefaultRouter()
router.register(r'journals', views.JournalViewSet)
router.register(r'journal/(?P<journal>[^/]+)', views.EntryViewSet)

urlpatterns = [
    url(r'^api/v1/', include(router.urls)),
]Runpython manage.py migrateto create the journal models
Package: django-ethereum
Django Ethereum UtilitiesA collection of helpers to make it easier to work with Ethereum from your Django app.Currently this only consists of a custom model field which stores Ethereum addresses
in the checksummed format.Installpip install django-ethereumFieldsEthereumAddressFieldACharFieldwhich automatically converts an Ethereum address into its checksummed
representation.fromdjango_ethereum.fieldsimportEthereumAddressFieldclassMyModel(models.Model):address=EthereumAddressField()my_model=MyModel(address="0x627306090abab3a6e1400e9345bc60c78a8bef57")my_model.save()print(my_model.address)"0x627306090abaB3A6e1400e9345bC60c78a8BEf57"# Note capitalisationIf the address is invalid aValidationErrorwill be raised.Note that the address is stored in the checksummed format. If you want to compare against
a non-checksummed address you will need to perform a case-insensitive match (or preferably convert
the address to a checksummed address before comparing):MyModel.objects.filter(address__iexact=non_checksummed_address)# OrMyModel.objects.filter(address__iexact=Web3.toChecksumAddress(non_checksummed_address))
Package: django-eth-fields
Django Eth FieldsHelpers for Python Django projects using ethereumInstallationUsing pip$ pip install django-eth-fieldsExamplefrom django_eth_fields.fields import EthereumAddressField, HexField, Uint256Field

class MyModel(models.Model):
    address = EthereumAddressField()
    hex = HexField()
    unit_255 = Uint256Field()
Package: django_eulasees
Team Bermuda django app for koding hackathonDocumentationThe full documentation is athttps://django_eulasees.readthedocs.org.QuickstartInstall django_eulasees:pip install django_eulaseesThen use it in a project:import django_eulaseesFeaturesTODOHistory0.1.0 (2014-12-7)First release on PyPI.
Package: django-europeana
=====Django-Europeana=====Source code: https://github.com/justinasjaronis/django-europeanaIt is application that provides template tags for easy Europeana content integration.Quick start-----------1. Add "europeana" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'europeana',)2. Add Europeana API key to the settings.py:EUROPEANA_API_KEY = '123456677'3. Add Europeana tags to Your template:A) Simple version:{% load europeana_tags %}{% europeana_simple query %}It will display simple list of Europeana search results provided by query.B) Advanced version:{% load europeana_tags %}{% europeana %}{% europeana_param "what" query "Label" %}{% europeana_param "who" author "Author" %}{% europeana_param "where" place "Location" %}{% endeuropeana %}Query, author, place can be string or list of objects, i.e. Model.objects.all() iterable from manager.Before query, this app will try to cast all variables in list to string.5. Voilla! Visit Your template to view results.6. Optional settings:-Add this to Your template head:<link rel="stylesheet" type="text/css" href="{% static "css/object.css" %}/><script src="{% static "js/object.js" %} type="text/javascript"></script>And JQuery, if You do not have it already present in Your template:<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>This will add some default styling and hover preview image functionality.EUROPEANA_URI = 'http://www.europeana.eu/api/v2/search.json'- URI that is queried via webservice. Not likely to change, though, not hardcoded :-)EUROPEANA_EXCLUDE_QUERY = ''- Query that allows exclusion of results, in example, if the contents of database is already imported.7. Template to override:europeana/data.html :You get these three variables for sure:- count: number of results- items: dict with normalized results from Europeana (casted to string). Possible values:'title': title of the irem,'guid': URL to the item in Europeana'link': URL to the JSON to item details'year': year of the results'provider': provider'data_provider': data provider of the item'europeanaCompleteness': completeness index of current item'preview': URL of preview image- json: pure JSON from Europeana8. TODO:- Implement way to cache/resize images for preview (because they are too big to display)- Implement conditional multiple query parameters filtering (now it's only AND)- Clean filter checkbox rendering and request parameter parsing (should be implemented togenerate a form, display a form nicely and add some unique widget variable to the form)- Implement search result caching- Implement search result prefetching (i.e. nightly for most popular objects)
Package: django-evade
Django Evadeis aDjangotemplate filterapplication to pseudo-randomly convert literal HTML characters into equivalentnamed,numeric, or hexadecimalHTML character entity references.Useful for obscuringmailtohyperlinks to prevent spammers from collecting e-mail addresses. Inspired by aDjango snippet, but rewritten to use theFormat Specification Mini-Language. The result is a more severe form ofescape, leading to the name “evade.”PackageSourceDocumentationTestsInstall$pipinstalldjango-evadeAdd tosettings.py.INSTALLED_APPS=[# ...'evade',]Usage{%loadevade_tags%}{{"me@example.com"|evade}}One possible result:&#x006D;&#x065;&commat;&#x65;&#x78;&#x61;&#x6d;&#112;&#x6C;&#x65;&period;&#x63;&#111;&#x6D;Note the use of named (&commat;), decimal (&#112;), hexadecimal lowercase (&#x6d;), and hexadecimal uppercase (&#x6C;) forms, and the varying length of zero fills (&#x006D;,&#x065;). Each character entity reference is pseudo-randomized.Can also be imported as a standalone Python module:>>>fromevadeimportevade>>>evade("©")'&copy;'>>>evade("©")'&#169;'>>>evade("©")'&#x0a9;'
Package: django-eve-auth
Eve AuthEve Auth enables users to authenticate and login to a Django website using their Eve Online account.FeaturesUsers can login via EVE SSO. New user accounts will automatically be created from the Eve character.Users keep their accounts as long as the character does not change ownershipUser's character name is updated with every new loginSupports Django's default login URLs and next parameterAlso includes a template tag for creating user icons with the related eve character portraitFully testedDocumentationFor all details on how to install and use Eve Auth please see thedocumentation.
Package: django-event
Django Event is notification system framework that allows you to push notifications to the browser.InstallingFirst you need pip.
Use your OS’s package system to install it.
On ubuntu you can install it like this:apt-get install python-pipAnd it is highly recommended you to use python virtual environment. SeeVirtualenv docs.After that you need to install ailove-django-event:pip install git+https://github.com/ailove-dev/django-eventIf you use Django Rest Framework and want to django-event provided REST api’s for events ensure you installed
Django Rest Framework 3.1.1 or newer.pip install djangorestframework>=3.1.1DocumentationFor docs we use Read The Docs and you can find our docshere.
Package: django-event-cal
=====
Django_event_calDjango_event_cal is a Django app to intergrate event calendar to your app. users can click a specific
date and see events and also can create, edit and delete events.InstallationStable version:
pip install django_event_calDocumentationUsageAdd "django_event_cal" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
        ...
        'django_event_cal',
    ]Include the django_event_cal URLconf in your project urls.py like this:path('', include("django_event_cal.urls")),Runpython manage.py migrateto create the events models.run import inside views.py like this:from django_event_cal.functions import cal_contextcallcal_contextfunction inside desired view like this and pass your context dictionary, it will return a context with additional event calendar values dictionary:def index_view(request):
        context = {}
        context = cal_context(context) #add this line
        return render(request,"base/index.html",context)add{% include 'events_cal/event.html' %}inside the template where you want the calendar and events:{% include 'events_cal/event.html' %}Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you'll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.Month navigationaccept two parameters in ur desired url:urlpatterns = [
        path("<int:year>/<str:month>/",views.index_view,name="index"),
    ]receive them in your view and pass additional arguments to the cal_context function like this:def index_view(request,year,month):
        context = {}
        context = cal_context(context,year,month,True) #add this line
        return render(request,"base/index.html",context)
Package: django-eventlog
📖Full documentation: https://django-eventlog.readthedocs.io/Compatibility Matrix:Py/Dj3.83.93.103.113.123.2 (LTS)✓✓✓✓✓4.0✓✓✓✓✓4.1✓✓✓✓✓4.2 (LTS)✓✓✓✓✓5.0——✓✓✓django-eventlogdjango-eventlog is a very simple event logger you can use to track certain
actions in your code. Events are stored in a Django model and can be viewed
in the Django Admin.Usage Example:from eventlog import EventGroup

e = EventGroup()                       # Start a new Event Group
e.info('About to send 1000 mails.',    # Trigger an Event
       initiator='Mailer Daemon')
try:
    # ... sending 1000 mails
    e.info('All emails sent!',         # Trigger an Event in the same group,
           initiator='Mailer Daemon')  # so they are combined in the admin.
except Exception:
    e.error('There was an error sending the emails.',
            initiator='Mailer Daemon')Events can be grouped in a “Event Group” and when hovering over one item
in the admin, all events of the same group are highlighted:The details view of an event will list all other events of this group so you
can track the progress:NoteWhile looking similar, it’s not intended to be a replacement for your
regular Pythonloggingfacility, rather an addition to it.django-eventlog stores it’s data in a regular database model, so each log entry
will trigger a SQL Insert. Therefore you should be careful using it in high
performance and/or high volume environments.Changelog1.3 (2023-10-04)Python 3.12 compatibilityDjango 5.0 supportType Annotations1.2 (2023-04-28)Python 3.7 to 3.11 compatibilityDjango 3.2 to 4.2 support1.1 (2018-05-11)Added ability to manually set a group id to make an EventGroup object
reusable through threads.1.0 (2018-02-13)Production ready 1.0 release.The details Admin view now displays all events of the group with an
annotated delay, so you can see the progress of the group.0.9 (2018-02-13)Initial release.Django 1.8 to 2.0 compatibility.Python 2.7 to 3.6 compatibility.
Package: django-event-procedures
django-event-procedures=======================An event driven code execution system backed by djangoGetting started:===============run:pip install django-event-proceduresin settings:In INSTALLED_APPS add 'event_procedures' as such:INSTALLED_APPS = (...'event_procedures',...)define SIGNAL_MODULES as a list of modules containing the signals you wantFor example, if you want want django.core.signals it would look something likeSIGNAL_MODULES = [...'django.core',...]Register the event registration middleware in your middleware:MIDDLEWARE_CLASSES = (...'event_procedures.middleware.EventRegistration',...)
Package: django-event-rsvp
EARLY ALPHA! DO NOT USE THIS!A reusable Django app to create event pages where users can RSVP.InstallationYou need to install the following prerequisites in order to use this app:pip install Django
pip install SouthIf you want to install the latest stable release from PyPi:$ pip install django-event-rsvpIf you feel adventurous and want to install the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/django-event-rsvp.git#egg=event_rsvpAddevent_rsvpto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'filer',
    'event_rsvp',
)Run the South migrations:./manage.py migrate event_rsvpUsageTODO: Describe usageContributeIf you want to contribute to this project, please perform the following steps:# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 event-rsvp
$ pip install -r requirements.txt
$ ./logger/tests/runtests.sh
# You should get no failing tests

$ git co -b feature_branch master
# Implement your feature and tests
# Describe your change in the CHANGELOG.txt
$ git add . && git commit
$ git push origin feature_branch
# Send us a pull request for your feature branchWhenever you run the tests a coverage output will be generated intests/coverage/index.html. When adding new features, please make sure that
you keep the coverage at 100%.RoadmapCheck the issue tracker on github for milestones and features to come.
Package: django-events-rest-framework
=====Events=====django-events is a package for the process of scheduling events using Django Rest Framework. Events can be scheduled in a daily,monthly and in few other ways which can be easily integrated with full calendar.Use this package with postgres database.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "events" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'events',]2. Include the polls URLconf in your project urls.py like this::path('events/', include('events.urls')),3. Run `python manage.py migrate` to create the events models.4. Start the development server , http://127.0.0.1:8000/events/event`is the endpoint for creating and viewing the events.5. GET request needs to be of the form `http://127.0.0.1:8000/events/event?start="start date goes here"&end="end date goes here"`.6 POST request (URL:`http://127.0.0.1:8000/events/event`) should contain :* title : Some name for the event* start_date : Starting date of the event* start_time : Starting time of the event* end_time : ending time of the event* end_recurring_date : if the event is reccurring then this date will be used as a limiting end_recurring_date* repeats : 0 -  if the event occurs only once , 1 if the event is reccurring* repeat_frequenct : 0 - if the event occurs only once, 1 if for daily ,2 for weekly ,3 for monthly* dow : days of week in which the event occurs ( only for weekly and monthly )* week_type : only for monthly ( 0:first week of the month ,1:second week of the month ...)
Package: django-events-watcher
Add new events for auth.users:In [4]: from events_watcher.bridge import backend as events
In [5]: user = User.objects.create_user('newbie', 'newbie@example.com', '$ecret')

In [6]: events.add('subscription', user)
Out[6]: <Event: subscription for newbie>

In [7]: events.add('subscription', user, date=user.date_joined)
Out[7]: <Event: subscription for newbie>List all events for auth.users:In [12]: events.list(user)
Out[12]: [<Event: subscription for newbie>, <Event: subscription for newbie>]

In [13]: events.add('last_login', user, date=user.last_login)
Out[13]: <Event: last_login for newbie>

In [14]: events.list('last_login')
Out[14]: [<Event: last_login for newbie>]Retrieve only one event for a specific event name and auth.users:In [16]: events.retrieve('last_login', user)
Out[16]: <Event: last_login for newbie>Remove all events with a specific event name:In [17]: events.remove('last_login')CompatibilityThis library is compatible with:python2.6, django1.5python2.6, django1.6python2.7, django1.5python2.7, django1.6python2.7, django1.7python2.7, django1.8python3.3, django1.5python3.3, django1.6python3.3, django1.7python3.3, django1.8python3.4, django1.5python3.4, django1.6python3.4, django1.7python3.4, django1.8Installationpython setup.py installORput theevents_watcherfolder on your python-pathAddevents_watcher.backends.databaseto yourINSTALLED_APPSif you want to
use the RDMS backend connector with the Django ORM.RoadmapCurrently only databases shipped with the default Django ORM is supported and
the API is very simple.Custom backends could be done to store results in NoSQL databases like:redisorMongoDB.Notesevents_watcheruses aload_classhelper in itsutilsmodule which can be found atdjango-shop.
Package: django-eveonline-buyback
Django EVE Online BuybackA simple Django extension providing an easy way to appraise buyback items in bulk.InstallationAdddjango_eveonline_buybackanddjango_singleton_adminto EXTENSIONSRunpython3 manage.py migrateto create the django_eveonline_buyback modelsProvided URLsURL NameDescripiondjango-eveonline-buybackSubmit a buyback inventory list for appraisal
Package: django-eveonline-timerboard
Django EVE Online TimerboardA simple Django extension that offers timerboard functionality with EVE Online flavor.InstallationAdddjango_eveonline_timerboardto your INSTALLED_APPSInclude thedjango_eveonline_timerboardURLs in your urls.pyRunpython3 manage.py migrateto create the django_eveonline_timerboard modelsProvided URLsURL NameDescriptiondjango-eveonline-timerboard-add-timerAdd a timerdjango-eveonline-timerboard-remove-timer (int: timer_pk)Remove a timer specified by timer_pkdjango-eveonline-timerboard-viewView the timerboard
Package: django-everlasting-sessions
django-everlasting-sessionsThis Django middleware prevents user sessions from expiration.ProblemWhen usingdjango.contrib.sessions.middleware.SessionMiddleware, Django only saves the session cookie when a session is modified. On a typical site that only happens when a user logs in. In two weeks this session cookie expires and the user is prompted to login again, even if he’s been actively using the site.Solutiondjango-everlasting-sessionsprovides a middleware that will update session cookies once in a while (every day by default), provided there is some activity from the user.Installationpip install django-everlasting-sessionsUsageAdd the middleware tosettings.py:MIDDLEWARE_CLASSES=[...'django.contrib.sessions.middleware.SessionMiddleware','django_everlasting_sessions.UpdateSessionMiddleware',# Must go after SessionMiddleware...]The rest will happen automatically.OptionsThe following default is used which you can override insettings.py:SESSION_COOKIE_REFRESH=86400# Interval in seconds.
Package: django-eveuniverse
Eve UniverseComplete set of Eve Online Universe models in Django with on-demand loading from ESI.Overviewdjango-eveuniverseis a foundation app meant to help speed up the development of Eve Online apps with Django and ESI. It provides all classic "static" Eve classes as Django models, including all relationships, ready to be used in your project. Furthermore, all Eve models have an on-demand loading mechanism for fetching new objects from ESI.Here is an overview of the main features:Complete set of ESI's Eve Universe objects as Django models like regions, types or planets.On-demand loading mechanism that allows retrieving Eve universe objects ad-hoc from ESIManagement commands for preloading often used sets of data like the map or ships typesEve models come with additional useful features, e.g. a route finder between solar systems or image URLs for typesSpecial model EveEntity for quickly resolving Eve Online IDs to namesOptional asynchronous loading of eve models and loading of all related children. (e.g. load all types for a specific group)Additional models for selected data from the SDE that is not covered by ESI, e.g. type materialsDocumentationFor details on how to install and usedjango-eveuniverseplease seeOperations Guide.