Saravanan666/pypi-org huggingface dataset:
Package: django-easy-api
![Easy peasy!](http://i.imgur.com/LQujlwt.png)django-easy-api===============**django_easy_api** lets you create an API for your Django project by changing only a single line of code!The easiest way to use **django_easy_api** is to simply replace render_to_response:```python# from django.shortcuts import render_to_responsefrom easy_api.shortcuts import render_to_response```So if this returns a rendered HTML view:http://yoursite.com/item/23then this returns a JSON serialized view of the same page:http://yoursite.com/item/23?api=jsonand this returns an XML serialized view of the same page:http://yoursite.com/item/23?api=xmlHooray! You literally don't have to do anything else.#### Installation0. Install django-easy-split```pythonpip install django-easy-api```1. Add 'easy_api' to your INSTALLED_APPS setting like this:```pythonINSTALLED_APPS = (...'easy_api',)```## UsageThe easiest way to use **django_easy_api** is to simply replace render_to_response:```python# from django.shortcuts import render_to_responsefrom easy_api.shortcuts import render_to_response```Now, all of your views will have API versions as well!If you only want to use **django_easy_api** for certain views, you can use it explicitly:```pythonfrom easy_api.shortcuts import render_to_easy_api_response```and then use it in your view instead of render_to_response.## NotesOkay, okay, so it's not a FULL API. It's just for GETs. If you want a full-featured API, look at [Django-Rest-Framework](http://www.django-rest-framework.org/). However, if you just need a machine-readable version of your site, this is far and away the easiest way to do it!### TODO:* I don't know what it does for ForeignKeys. To be tested!* I haven't tested this in production, but it should work.
Package: django-easy-app
This is a django app that trys to simplify using django.  Currently
it has features that do the following:Aneasy_appscript that allows for creating new django projects
that are set up with the djang0-easy-app functionality.A django-easy-app django app has the following functionality
that simplify using django.The ability to specify the url routing using a new “route”
attribute on django class based view classes.  This akes it
possible to write and use class based views without needing
to understand regular expressions and seperately update the
urls.py.Adds astarteasyappcommand to manage.py to allow for easily
creating additional django-easy-app enabled django apps.QuickstartHere are some steps for getting things goingInstall django-easy-appOnce django-easy-app has been packaged it will be installable
using pip as follows:pip install django-easy-appSet up a new django projectCreate a new python project using the django_easy command like this:django_easy startproject project_name app_nameExample:$ django_easy startproject foo_project foo_app
Creating easyapp named: foo_app
$ tree foo_project
foo_project
├── foo_app
│   ├── admin.py
│   ├── __init__.py
│   ├── migrations
│   │   └── __init__.py
│   ├── models.py
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── foo_project
│   ├── __init__.py
│   ├── __init__.pyc
│   ├── settings.py
│   ├── settings.pyc
│   ├── urls.py
│   └── wsgi.py
└── manage.py

3 directories, 14 filesCreate viewsIn the views.py file define a variable named “easydjango” and set the value
to true.Make sure each view that should be accessible from the web has a*route*attribute that contains the part of the url that should be associated with the
view.  This should not include any other part of the url.So for example foo_app.view.ExampleView below has a route value of ‘’ which
will cause it to be accessible athttp://hostname:port/foo_app/fromdjango.httpimportHttpResponsefromdjango.views.genericimportVieweasydjango=TrueclassNameView(View):route=''defget(self,request):name=request.GET.get('name','World!')returnHttpResponse('Hello%s'%name)
Package: django-easy-audit
Yet another Django audit log app, hopefully the simplest one.Quick startAdd “easyaudit” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'easyaudit',
]Add django-easy-audit’s middleware to your MIDDLEWARE (or MIDDLEWARE_CLASSES) setting like this:MIDDLEWARE = (
    ...
    'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
)Run ‘python manage.py migrate easyaudit’ to create the audit models.That’s it! Now every CRUD event on your whole project will be registered in the audit models, which you will be able to query from the Django admin app. Additionally, this app will also log all authentication events and all URLs requested.
Package: django-easy-audit-mongo
Yet another Django audit log app, hopefully the simplest one.Quick startAdd “easyaudit” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'easyaudit',
]Add django-easy-audit’s middleware to your MIDDLEWARE (or MIDDLEWARE_CLASSES) setting like this:MIDDLEWARE = (
    ...
    'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
)Run ‘python manage.py migrate easyaudit’ to create the audit models.That’s it! Now every CRUD event on your whole project will be registered in the audit models, which you will be able to query from the Django admin app. Additionally, this app will also log all authentication events and all URLs requested.
Package: django-easyaudit-utils
This is a simple Django app to provide hand views, analytics and tools for better handling data fromeasyaudit.Detailed documentation is in the “docs” directory.Quick startInstall the package using:pip install django-easyaudit-utilsAdd “easyaudit_utils” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'easyaudit',
    'easyaudit_utils',
    ...
]Include the polls URLconf in your project urls.py like this:path("easyaudit/", include("easyaudit_utils.urls", namespace="easyaudit_utils")),
Package: django-easy-autoslug
This package is used to automatically create unique slugs.Installpipinstalldjango-easy-autoslugUsageBasic example# models.pyfromdjango_autoslugfieldimportAutoSlugFieldclassItem(models.Model):title=models.CharField(max_length=255)slug=AutoSlugField(max_length=255,unique=True)Slug is created from__str__method. If another object with same slug
already exists slug will be suffixed with number-2,-3…Advanced usageAutoSlugField arguments are:reserve_chars- number of characters reserved for suffix (including sparator-)title_field- use specific field instread of__str__methodin_respect_to- generate unique slug for specific subset of fieldsFollowing code can create same slug for another month / year.fromdjango_autoslugfieldimportAutoSlugFieldclassBlog(models.Model):title=models.CharField(max_length=255)slug=AutoSlugField(filter_fields=('year','month'),max_length=255)year=models.IntegerField()month=models.IntegerField()classMeta:unique_together=('slug','year','month')
Package: django-easy-avatar
A super easy AJAX loading avatar for profile management.  django-easy-avatar is currently being used in production by Noob Media LLC forhttp://www.noobmovies.comExample…http://www.noobmovies.com/user/profile/1/django-easy-avatar needs jQuery for ajax file uploading and validation.  this plugin also uses Pillow for image manipulation and management.Video Tutorials are available!http://www.youtube.com/watch?v=y1ndWIdK9WI&feature=youtu.beThis plugin is free to be adapted at GitHub;https://github.com/chawk/django-easy-avatarWritten documentation is available at readthedocs.orghttp://django-easy-avatar.readthedocs.org/en/latest/
Package: django-easy-blog
Django easy blogpost is a package that allows you to create blog posts
with a text editor to customize the content of your publication.Quick StartAddpostin your INSTALLED_APPS and update settingsINSTALLED_APPS=[...'ckeditor','ckeditor_uploader','post',...]CKEDITOR_UPLOAD_PATH="uploads/"...STATIC_URL='/static/'STATIC_ROOT=BASE_DIR/'static'MEDIA_URL='media/'MEDIA_ROOT=BASE_DIR/'media'...update your project urlfromdjango.conf.urls.staticimportstaticfrom.importsettingsfromdjango.urlsimportpath,includeurlpatterns=[...path('ckeditor',include('ckeditor_uploader.urls')),]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)Migrate your project and collect staticpythonmanage.pymakemigrationspostpythonmanage.pymigratepythonmanage.pycollectstaticCreate super user, run your app and go to admin to create your blog postUsepost_listtag to get all posts list on your template{% load post_tags %}<!DOCTYPE html>...<body>...<p>My blogs</p><div>{% for post in ''|post_list %}<h2>{{post.title}}</h2><h2>{{post.content|safe}}</h2>{% endfor %}</div>...</body>
Package: django-easycart
Easycart is a flexible session-based shopping cart application for Django.
It provides plenty of hooks for overriding and extending the way it works.By installing this app you get:Highly-customizableBaseCartandBaseItemclasses to represent the user
cart and items in it.A handy set of reusable components (views, urls and a context processor) for
the most common tasks. These components are completely optional.Requirements: Python 2.7+/3.4+ Django 1.8+ResourcesDocs:http://django-easycart.readthedocs.io/Source Code:https://github.com/nevimov/django-easycartIssue Tracker:https://github.com/nevimov/django-easycart/issues
Package: django-easy-channels
Easy ChannelsLightweight framework for quickly making socket consumers using Django and DjangoChannels.Installingpipinstalldjango-easy-channelsSocket ExampleBackendfromeasy_channelsimportJSONConsumerclassChatConsumer(JSONConsumer):# Socket connectsdefon_connect(self):# gets name from urlself.name=self.scope['url_route']['kwargs']['name']# Adds socket and consumer to group chatroomself.group_add('chatroom')# Accepts socket connectionself.accept()# Called when consumer receives a message with the event broadcast_messagedefon_broadcast_message(self,event):payload={'message':event['message'],'from':self.name}# Sends this message to all connected sockets in the 'chatroom' group (not consumers)awaitself.group_send('chatroom',# group'message',# event namepayload# data)Frontendconstmessages=[];constsocket=newWebSocket("wss://YOUR_URL/chat/joselito");// Called when socket receives a messagesocket.onmessage=function(message){switch(message.event){case"message":messages.push({message:message.message,from:message.from,});}};socket.send(JSON.stringify({event:"broadcast_message",// Calls "on_broadcast()" function in consumermessage:"Hello World!",// Can be acessed in bachend using event['message']}));Adding to RouteThis JSONConsumer can be added to Django Channels route in the same way of the original consumers.fromdjango.urlsimportre_pathfrom.consumersimportChatConsumerwebsocket_urlpatterns=[re_path(r'^ws/chat/(?P<name>\w+)/',consumers.ChatConsumer),]Communicating Between ConsumersSometimes you want your consumers to talk with each other without sending data to the front end.For example, we can make a consumer A notify a consumer B that it needs to update its frontend information without this confidental data passing through consumer A.classConsumerA(JSONConsumer):defon_connect(self):self.group_add('groupA')defon_notify(self):sensitive_data=get_some_data()self.group_send('groupA','notify',sensitive_data)classConsumerB(JSONConsumer):defon_connect(self):self.group_add('groupB')defon_some_event(self):# Calls 'on_notify()' in all consumers added to groupAself.group_call_event('groupA','notify')Middleware ExampleYou can create custom middlewares that will be run before the on_connect function or whenever a message is received.The code below will automatically gather the chat user name from url.fromeasy_channels.middlewareimportConsumerMiddlewareclassUserGatherMiddleware(ConsumerMiddleware):# Called before the consumer's 'on_connect()'defon_connect(self):# This middleware has complete access to the consumer in the self.consumer attributeself.consumer.name=self.scope['url_route']['kwargs']['name']To the middleware to work with the consumer we must pass it.classChatConsumer(JSONConsumer):middlewares=[UserGatherMiddleware]defon_connect(self):print(self.name)# Will print the user name...
Package: django-easy-contact
DescriptionA simple contact form application.LicenseNew BSD licenseNotesIt’s tested with Django 1.2 / 1.3FeaturesYou can use ervery outsite email host (the application will auto configure itself).You can clearly see from witch sender and domain the email was sent.optionally it works together with django-easy-contact-setup.It lacksAny spam protectionMail sending to more then one reciver.InstallationDependencesThis appDjango itselfInstallationManual InstallationDownload the file and unzip it.Copy the folder in your project root.Installation with pipType in your terminal::~$ pip install django-easy-contactWith pip you can also uninstall it::~$ pip uninstall django-easy-contacttest your installationGo to console and type:python… then type:>>> import easy_contact
>>> easy_contact.VERSIONSetupAdd “easy_contact” to you installed apps in the settings file.Either install and configure django-contact-form-setup …or make sure that your mail server settings in settigs.py are correct:DEFAULT_FROM_EMAILEMAIL_HOSTEMAIL_HOST_PASSWORDEMAIL_HOST_USERAdd the following to your urls.py:(r’^feedback/’, include(‘easy_contact.urls’)),Finally run::~$ python manage.py syncdb
:~$ python manage.py runserverUsageOpen a Browser and go to “http://127.0.0.1:8000/feedback/contact/”. That’s all.HintsThe mailform needs at minimum 5 words as input.
Package: django-easy-contact-setup
DescriptionThis app is for usage with django-easy-contact. It allows setting up an
mail form in the admin section.LicenseNew BSD licenseNotesTested with Django 1.2 / 1.3FeaturesMail form setup in via administration interface.All important data will be saved encrypted.InstallationDependenceseasy_install or pip will resolve all dependences automaticly.django-easy-contactdjango-fieldsDjangoInstallationManual InstallationDownload the file and unzip it.Copy the folder in your project root.Installation with pipType in your terminal::~$ pip install django-easy-contact-setupWith pip you can also uninstall it::~$ pip uninstall django-easy-contact-setupSetupAdd “easy_contact-setup” to you installed apps in the settings file.Run::~$ python manage.py syncdb
:~$ python manage.py runserverUsageNow you can setup your django-easy-contact app via the admin interface.
Package: django-easy-custom-auth
=====
DJANGO EASY CUSTOM AUTHdjango easy custom auth is a simple Django app to provide all user related funtionalities. User signup, login, logout, change password, forgot password all is set with all templates. You can customize templates easily by putting their path in your settings file.Detailed documentation is in the "docs" directory.Quick startAdd "django_easy_custom_auth" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'customauth',
]Define the login, logout and login_redirect url in your project settings.py like this::LOGIN_URL = '/ca/login/'
LOGIN_REDIRECT_URL = '/ca/'
LOGOUT_REDIRECT_URL = LOGIN_URLInclude the custom_auth URLconf in your project urls.py like this::path('ca/', include('customauth.urls')),Runpython manage.py migrateto create the user model if already not done.Start the development server and visithttp://127.0.0.1:8000/ca/to signup.Override templatesDefine the templates path as below. change the customauth with your app name, if you have put templates in your app or define path accordingly.# custom auth settings
SIGNUP_HTML = 'customauth/signup.html'
LOGIN_HTML = 'customauth/login.html'
CHANGE_PASSWORD_FORM_HTML = 'customauth/change_password_form.html'
PASSWORD_RESET_COMPLETE_HTML = 'customauth/password_reset_complete.html'
PASSWORD_RESET_CONFIRM_HTML = 'customauth/password_reset_confirm.html'
PASSWORD_RESET_DONE_HTML = 'customauth/password_reset_done.html'
PASSWORD_RESET_EMAIL_HTML = 'customauth/password_reset_email.html'
PASSWORD_RESET_FORM_HTML = 'customauth/password_reset_form.html'
PASSWORD_RESET_SUBJECT_TXT = 'customauth/password_reset_subject.txt'
Package: django-easydata
EasyData is an app to publish your model’s data using the available ontologies,
with a graphical interface to configure.Quick startAdd “easydata” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'easydata',
)Include the easydata urls in your project urls.py like this:url(r'^easydata/', include('easydata.urls')),Run ‘python manage.py syncdb’ to create the easydata models.Run the script ‘python manage.py loadmodels’ to resolve the models and fields
of your project.Run your test server and visithttp://127.0.0.1:8000/easydata/to access to
the application.
Package: django-easy-eddie
=================django-easy-eddie=================This Django package sends your text messages (SMS) through Amazon SNS and provides reporting helpers.Sending SMS using the famous boto3 package is easy. Creating usage and billing reports can become tricky especiallyif you are using multiple projects on the same AWS account or if you need to split cost in any another way.Using this package's `send_sms()` function stores an SMS event with the message id in your database and allows you tofetch meta data (incl. price) through CloudWatch after the submission with a management command. An admin actionallows you to export all events as CSV file.Quickstart----------Install django-easy-eddie::pip install django-easy-eddieAdd it to your `INSTALLED_APPS`:.. code-block:: pythonINSTALLED_APPS = (...'easy_eddie',...)Configure settings:.. code-block:: pythonAWS_DEFAULT_REGION = 'eu-west-1'AWS_ACCESS_KEY_ID = 'foo'AWS_SECRET_ACCESS_KEY = 'bar'EASYEDDIE_CLOUD_WATCH_LOG_GROUP_NAMES = ['sns/eu-west-1/000000000000/DirectPublishToPhoneNumber','sns/eu-west-1/000000000000/DirectPublishToPhoneNumber/Failure']Migrate your database::$ python manage.py migrate easy_eddieSending text messages (SMS):.. code-block:: pythonfrom easy_eddie.sms import send_smssend_sms(sender='your_SNS_sender_id', phone_number='your_phone_number', message='foo')Fetching CloudWatch logs of unprocessed SMS events:.. code-block:: pythonfrom easy_eddie.report_fetchers import fetch_logs_of_unprocessed_sms_eventsfetch_logs_of_unprocessed_sms_events()Management Command------------------This management command can be used to fetch log data from CloudWatch for SMS events. It is probably a good idea touse it in any scheduled way (e.g. crontab, celery beat, etc.)::$ python manage.py fetch_cloud_watch_log_eventsAWS CloudWatch--------------For more information about setting up CloudWatch logging in AWS, see `Viewing Amazon CloudWatch Metrics and Logs for SMS Deliveries <https://docs.aws.amazon.com/sns/latest/dg/sms_stats_cloudwatch.html>`_Credits-------Tools used in rendering this package:*  Cookiecutter_*  `cookiecutter-djangopackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageTrivia------In line with many dreipol projects named after real or fictional characters of the italian mob in america, the name of this package is inspired by Edward `Easy Eddie` J.`O'Hare. ::It is believed O'Hare directed investigator Wilson to the Capone bookkeeper who became a key witness at the 1931 trial, and also helped break the code used in the ledgers by Capone's bookkeepers.**`Wikipedia <https://en.wikipedia.org/wiki/Edward_J._O%27Hare/>`_History-------0.1.0 (2018-02-15)++++++++++++++++++* First release on PyPI.
Package: django-easyfilters
OverviewThis library provides filters similar in some ways tolist_filteranddate_hierarchyin Django’s admin, but for use outside the
admin. Importantly, it also includes result counts for the choices. It is
designed to be very easy to get started with.Download/installJust install as a Python library.PyPI page:http://pypi.python.org/pypi/django-easyfiltersDocsSee the docs/ directory, especially docs/overview.rstAlso hosted here:http://packages.python.org/django-easyfiltersAnd here:https://django-easyfilters.readthedocs.org/en/latest/DemoA small demo app is included, see the instructions in docs/develop.rstA (currently) live example can be seen at:http://www.christchurchbradford.org.uk/sermons/StatusThe library is in a useful state and is used in production. Test coverage is
extensive. Feedback regarding API or features is very welcome!SupportFile bugs/feature request in the ‘issues’ in BitBucket:https://bitbucket.org/spookylukey/django-easyfilters/issues?status=new&status=openOr dropmean email, I always like to hear when
people are using my stuff.TODOPossible: ability to specify ‘defaults’ attribute for FilterSetAllow the automatic ‘page’ resetting to be customizedVersion 0.5Python 3.3 compatibility :-) Tests are run against Python 2.6, 2.7 and 3.3,
and Django 1.3 to 1.5Version 0.4Cleaned up internalFilterimplementation/APIAdded and documentedFilter.render_choice_objectwhich can
be overridden for easy customization of filters.Fixed various bugs with DateTimeFilter. Thanks to psyton for a bug fix.Version 0.3.2Correction to newFilterSet.titleattribute.Version 0.3.1Fixed crasher in 0.3Version 0.3Added theFilterSet.titleattribute, and thetitle_fieldsattribute
that can be used to control it.Version 0.2Added NumericRangeFilterMore docs, and API firmed up.Fixed bug with test_settings.py which caused static media not to be served
with most recent Django.Version 0.1.1Cleaned up the release tarball to remove old files.Version 0.1Initial release
Package: django-easyfilters-ap
OverviewThis library provides filters similar in some ways tolist_filteranddate_hierarchyin Django’s admin, but for use outside the
admin. Importantly, it also includes result counts for the choices. It is
designed to be very easy to get started with.Installpip install django-easyfilters-exDocshttps://django-easyfilters.readthedocs.org/en/latest/TODOPossible: ability to specify ‘defaults’ attribute for FilterSetAllow the automatic ‘page’ resetting to be customizedChangelogVersion 0.7.0Fix bug with DateTimeFilter on Django 1.6 and add support for filtering NULLs in ForeignKey filters (contributed by
Eugene A Brin in PR#9)Version 0.6.2Add ashow_countsoption on filters.Add adefaultsoption on filterset so you don’t have to specify the same options for every filter.Version 0.6.1Fix broken import / error handling in utils.Version 0.6Fixed compat with django 1.6 and 1.7Fixed handling around NULL valuesFixed inconsistencies with “display” linksAdd support for filters on forward relations (eg: fk1__fk2__finalfield)Version 0.5Python 3.3 compatibility :-) Tests are run against Python 2.6, 2.7 and 3.3,
and Django 1.3 to 1.5Version 0.4Cleaned up internalFilterimplementation/APIAdded and documentedFilter.render_choice_objectwhich can
be overridden for easy customization of filters.Fixed various bugs with DateTimeFilter. Thanks to psyton for a bug fix.Version 0.3.2Correction to newFilterSet.titleattribute.Version 0.3.1Fixed crasher in 0.3Version 0.3Added theFilterSet.titleattribute, and thetitle_fieldsattribute
that can be used to control it.Version 0.2Added NumericRangeFilterMore docs, and API firmed up.Fixed bug with test_settings.py which caused static media not to be served
with most recent Django.Version 0.1.1Cleaned up the release tarball to remove old files.Version 0.1Initial release