Saravanan666/pypi-org huggingface dataset:
Package: django-extra-fields-lab
DRF-EXTRA-FIELDS================Extra Fields for Django Rest Framework![https://travis-ci.org/Hipo/drf-extra-fields.svg?branch=master](https://travis-ci.org/Hipo/drf-extra-fields.svg?branch=master)Usage================install the package```bashpip install django-extra-fields```**Note:**- Install version 0.1 for Django Rest Framework 2.*- Install version 0.3 for Django Rest Framework 3.*Fields:----------------## Base64ImageFieldAn image representation for Base64ImageFieldIntherited by `ImageField`**Signature:** `Base64ImageField()`- It takes a base64 image as a string.- a base64 image:  `data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`- Base64ImageField accepts only the part after base64, `R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`**Example:**```python# serializerfrom drf_extra_fields.fields import Base64ImageFieldclass UploadedBase64ImageSerializer(serializers.Serializer):file = Base64ImageField(required=False)created = serializers.DateTimeField()# use the serializerfile = 'R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='serializer = UploadedBase64ImageSerializer(data={'created': now, 'file': file})```## PointFieldPoint field for GeoDjango**Signature:** `PointField()`- It takes a dictionary contains latitude and longitude keys like below{"latitude": 49.8782482189424,"longitude": 24.452545489}**Example:**```python# serializerfrom drf_extra_fields.geo_fields import PointFieldclass PointFieldSerializer(serializers.Serializer):point = PointField(required=False)created = serializers.DateTimeField()# use the serializerpoint = {"latitude": 49.8782482189424,"longitude": 24.452545489}serializer = PointFieldSerializer(data={'created': now, 'point': point})```CONTRIBUTION=================*TESTS*- Make sure that you add the test for contributed field to test/test_fields.pyand run with command before sending a pull request:```bash$ pip install tox  # if not already installed$ tox```*README*- Make sure that you add the documentation for the field added to README.mdLICENSE====================Copyright DRF EXTRA FIELDS HIPOLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
Package: django-extra_keywords
© 2014-2015 Thomas KhynTested with Django 1.4 to 1.8 and all supported versions of Python.AboutThe djangomakemessagemanagement command parses the code of an application
to generate .pot and .po files, provided the strings to be translated are
called by the gettext-like functions (gettext, ugettext, ngettext,
ugettext_lazy, etc.) or the_alias.However, it is quite common to use other aliases than_, for example for
lazy translation, where_lcan be used.Before version 1.7, Django does not provide a way to specify other aliases
that may be used for translation strings. This plugin fills this gap, without
having to patch the django code itself.From version 1.7, it is possible to use thexgettext_optionsin a custommakemessagescommand. Using this app saves you the hassle of programming
a custom command.InstallationAs straightforward as it can be, usingpip:pip install django-extra_keywordsThen you will need to add'extra_keywords'to yourINSTALLED_APPS.
Note that it does not make any sense to have this application installed in
production and that it may only used in a development settings module.UsageOnce installed, you can:either defineGETTEXT_EXTRA_KEYWORDSin yoursettingsmodule as a
tuple or list containing the keywords you would like to add:GETTEXT_EXTRA_KEYWORDS = ('_l', '_n:1,2')or use it from the command line, using the--extra-keywordoption (with
no s, to add several keywords you have to repeat the option):manage.py makemessages [...] --extra-keyword=_l [...]Keyword formatWhen using aliases for one-argument functions (ugettext,ugettext_lazy…), simply use the alias as a keyword. When using aliases for several
arguments functions, you need to specify them, according to the following
table:Function typeKeyword formatgettext*Xngettext*X:1,2pgettext*X:1c,2npgettext*X:1c,2,3Example: if_nis an alias forungettext, the keyword to use inGETTEXT_EXTRA_KEYWORDSor themakemessagescommand is'_n:1,2'.
Package: django_extra_migrations
pip install django_extra_migrations# Resave*Resave all records with calling save and signals events*Create empty migration - ```./manage.py makemigrations %APP_NAME% --empty```Open migration file ./%APP_NAME%/migrations/%MIGRATION_NAME%.py###Importfrom django_extra_migrations.migrations import Resave###OperationResave("%APP_NAME%.%MODEL_NAME%"),###Example:from __future__ import unicode_literalsfrom django.db import models, migrationsfrom django_extra_migrations.migrations import Resave, GrantPermissionsclass Migration(migrations.Migration):dependencies = [('tree', '0078_auto_20151014_1500'),]operations = [Resave("tree.Resource"),]---#GrantPermissions*Grant permissions to groups*Create empty migration - ```./manage.py makemigrations %APP_NAME% --empty```Open migration file ./%APP_NAME%/migrations/%MIGRATION_NAME%.py###Importfrom django_extra_migrations.migrations import GrantPermissions###OperationGrantPermissions(["%GROUP_NAME%"], (("%APP_NAME%.%MODEL_NAME%", True), # IF true - grant ALL perms for this content type("%APP_NAME%.%MODEL_NAME%", ["add_%LOWER_MODEL_NAME%"]),("%APP_NAME%.%MODEL_NAME%", ["change_%LOWER_MODEL_NAME%"]),("%APP_NAME%.%MODEL_NAME%", ["delete_%LOWER_MODEL_NAME%"]),)),###Example:from __future__ import unicode_literalsfrom django.db import models, migrationsfrom django_extra_migrations.migrations import GrantPermissionsclass Migration(migrations.Migration):dependencies = [('tree', '0078_auto_20151014_1500'),]operations = [GrantPermissions(["Admins"], (("tree.Resource", True),("tree.ResourceFile", ["add_resourcefile"]),)),]
Package: django-extra-referrals
Django Extra ReferralsSimpel referrals app for Django with simple multilevel fee systemInstallation$ pip install django-extra-referralsor$ pip install git+https://github.com/sasriawesome/django_extra_referrals.git#egg=django-extra-referralsSettingsREFERRAL_MODEL = 'django_referrals.Referral'
REFERRAL_COOKIE_KEY = 'ref_id'
REFERRAL_PARAM_KEY = 'ref_id
REFERRAL_MAX_DAY = 7 * 24 * 60 * 60 # a week
REFERRAL_SCHEMA = 'FLAT'
REFERRAL_FLAT_CAMPAIGN_RATE = 4
REFERRAL_FLAT_UPLINES_RATE = [5, 2, 1]
Package: django-extras
Extensions for Django to solve common development situations not (or not yet)
covered by the core Django framework.NoteOfficial location of this project is nowGitHub(for Travis-CI
support), theBitBucketrepository may not contain the latest
code.DocumentationIssue trackerSource codeNew to Django?A visit to the Django getting started guide is a must. The Django project
providesvery good documentation.NoticeThis project is not supported or endorsed in any way by the Django Software
Foundation. All source code is released under the same license.
Package: django-extra-sensitive-variables
extra_sensitive_variablesis a third-party exception filter for Django. This allows you to
globally censor a set of default variable names in Django’s error reports regardless of a function’s
lack of@sensitive_*decorators. Basically, any variable matching the names provided insettings.EXTRA_SENSITIVE_VARIABLESorsettings.EXTRA_SENSITIVE_POST_PARAMETERSwill be censored.InstallationInstall the package via pippip install django-extra-sensitive-variablesTell Django to use theExtra Sensitive Variablefilter by overridingDEFAULT_EXCEPTION_REPORTER_FILTERin yoursettings.pyDEFAULT_EXCEPTION_REPORTER_FILTER = 'extra_sensitive_variables.ExtraSensitiveReporterFilter'Then add the following variables to yoursettings.pyand modify them as you see fit# Variable names to always censor from "local vars" output
EXTRA_SENSITIVE_VARIABLES = ['password', 'credentials']

# Censor anything from the POST QueryDict matching these names
EXTRA_SENSITIVE_POST_PARAMETERS = ['password', 'credentials', 'credit_card_number']
Package: django-extratest
DescriptionProvides extra base test functionality for django test suites.InstallationInstall via pip or your python egg layer of choice:pip install django-extratestNo other apps are required except for django core.Base Test Classesextratest.base contains useful base classes which can help you write tests for django.
The functionality includes getObj for getting objects of a certain type. assertGet/Post
for making requests with status checking and forum error checking. As well as client
and user management functions.DevelopmentPlease come help this project by using the code, writing tests and leting the
project authors know you appreciate their code:http://gitlab.com/doctormo/django-extratest
Package: django-ezengage
django-ezengage=============================Installation-------------------1. Download latest version from https://github.com/ezengage/django-ezengage/downloads/2. Unzip the archive3. run ::python setup.py installWe will laster upload the file into PYPI, so your can install with easy_install .Configuration-------------------add `eze_auth` to INSTALLED_APPS::INSTALLED_APPS = (#.....'eze_auth',#....}add `eze_auth.auth_backends.EzEngageBackend`  to AUTHENTICATION_BACKENDS::AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend','eze_auth.auth_backends.EzEngageBackend',)add `eze_auth_urls` to url conf::urlpatterns += patterns('',(r'^eze/', include('eze_auth.urls')),)Sync database-----------------::./manage.py syncdb eze_authif you are using South, run::./manage.py migrate eze_authembed login widget in template--------------------------------::{% load eze_tags %}{% eze_login_widget '/after/login/done/' %}update status------------------------------::from eze_auth.helper import get_api_clientfrom eze_auth.models import EzeUserProfileidentity = EzeUserProfile.objects.get(user=request.user)message = 'update status to ... 'eze_api_client = get_api_client()eze_api_client.update_status(identity.identity, message)
Package: django-eztables
Easy integration between jQuery DataTables and Django.CompatibilityDjango ezTables requires Python 2.6+, Django 1.4+ and Django.js 0.7.6+.InstallationYou can install Django ezTables with pip:$ pip install django-eztablesor with easy_install:$ easy_install django-eztablesAdddjangojsandeztablesto yoursettings.INSTALLED_APPS.FeaturesDatatables.net, plugins and localization integration with Django.Server-side processing with a simple view supporting:sorting (single and multi columns)filtering with regex support (global and by column)formatting using format patternDeferred loading support.Twitter Bootstrap integration.DemoYou can try the demo by cloning this repository and running the test server with provided data:$ python manage.py syncdb
$ python manage.py loaddata eztables/demo/fixtures/browsers.json
$ python manage.py runserverThen open your browser tohttp://localhost:8000DocumentationThe documentation is hostedon Read the DocsChangelog0.3.2 (2013-06-07)Python 2.6 support0.3.1 (2013-05-05)Prevent errors on regex lookups with SQLite (issue #5)0.3.0 (2013-04-30)Python 3 supportDocumented integration with Django Pipeline or RequireJSPackage the unminified version too (used whensettings.DEBUG=True)0.2.2 (2013-03-02)Django 1.5 compatibilityAdded custom search and sort demo0.2.1 (2013-02-08)Fix formatting with unicode0.2 (2013-02-07)Handle custom server-side search implementationHandle custom server-side sort implementation0.1.2 (2013-02-07)Fix static files packaging0.1.1 (2013-02-07)Fix requirements packaging0.1 (2013-02-07)Initial implementation
Package: django-ezybaas
ezybaasEzyBaaS - Easiest Backend as a Service.Take your idea to API in minutes.No Coding required.Works with any SQL DB (MySQL, PostGresDB, MariaDB, SQLite, OracleDB)Deploy anywhere (Cloud Ready)Flexible & CustomizableGraphQL APIs (Coming Soon)Getting StartedYou can use ezybaas as standalone microservice.You can also use ezybaas as a django plugin in your project.Prerequisitespip install ezybaasAdd ezybaas to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
        ...	
        'ezybaas',
        'rest_framework',
        'rest_framework_swagger',
        ]Include the ezybaas URLconf in your project urls.py like this:from django.urls import path,includepath('ezybaas/', include('ezybaas.urls')),Add these lines at the end of Settings.pyLOGIN_URL = 'login/'from ezybaas.db import *
	DATABASES['ezybaas']=EZYBAAS_DATABASES['ezybaas']
	DATABASE_ROUTERS = ['ezybaas.db.EzyBaasDbRouter']Runpython manage.py migrateto create the ezybaas models.Runpython manage.py loaddata --database testenv/Lib/site-packages/ezybaas/static/db.jsonRunpython manage.py migrate --run-syncdb --database ezybaasCreate superuserStart the development server and visithttp://127.0.0.1:8000/admin/(you'll need the Admin app enabled).Visithttp://127.0.0.1:8000/ezybaas/.AuthorsBhavik Shah- Founder & CTO ofSusthitsoft Technologies Private LimitedLicenseThis project is licensed under the Apache License - see theLICENSE.mdfile for details
Package: django-fa
Font Awesome for Django.InstallationInstall using pip:pip installdjango-faAlternatively, you can install download or clone this repo and callpip install-e..Add to INSTALLED_APPS in yoursettings.py:'fa',Use thefont-awesometag library in your templatesExample template{%loadfont_awesome%}{# Load CSS #}{%fa_css%}{# Display an icon #}{%fa'fa-shield'%}DocumentationSeehttps://django-fa.readthedocs.iofor complete documentation.Compatible Django and Python versionsCurrentlydjango-farequires Django >= 1.8 and a matching Python version.Python and Django support will match the Django project. When a Django or Python versions is no longer
supported by the Django Project, this package will also stop supporting those versions. You are strongly
encouraged to upgrade to the newest (LTS) combination of Python/Django.RequirementsDjango >= 1.8 and a matching Python versionBugs and requestsIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/zostera/django-fa/issuesLicenseYou can use this under the MIT License. SeeLICENSEfile for details.AuthorDeveloped and maintained byZostera.Original author & Development lead:Dylan Verheul.Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.Please seeAUTHORS.rstfor a list of contributors.1.0.0 - in developmentRenamefatoiconNo longer automatically prependfato icon parametersDrop support for Django 1.90.4.0 - 2017-05-26Default to to Font Awesome 4.7.0Fix Travis CI and unit testsFix ReadThe Docs Documentation0.3.0 - 2016-02-26Default to Font Awesome 4.4.5Removed warnings for Django 1.100.2.0 - 2015-08-11Font Awesome 4.4.0 is default now100% coverage in tests0.1.1 - 2015-07-26First publication on GitHub
Package: django-fab
Common methods to help create fabric deplopment scripts for djangoThe idea is to allow you to use a fabfile.py that has just the unique things for your specific project, while taking advantage of common functions for version control and django tasks.You can also move configuration out of the fabfile.py into ini style configuration files.Installationsudo easy_install django-fab
sudo easy_install http://git.fabfile.org/cgit.cgi/fabric/snapshot/fabric-0.9b1.tar.gzgit example fabfile.pyfrom djangofab.api import *
from django.conf import settings
from djangofab.vcs.git import update_remote, update_local, push, commit, add
env.capture_default = False

# apply the settings from fab.cfg default section
# sets DJANGO_SETTINGS which allows access to django.conf.settings values
apply_settings()

#use the default section of fab.cfg
@user_settings()
def prod():
    "Production settings"
    env.hosts = ['server1']
    env.path = '%(prod_path)s'
    env.giturl = '%(giturl)s'
    env.site_user = 'owner'
    env.site_group = 'group'

@user_settings()
def dev():
    "Development settings"
    env.hosts = ['server1']
    env.path = '%(dev_path)s'
    env.giturl = '%(giturl)s'
    env.site_user = 'owner'
    env.site_group = 'group'

#use the local section
@user_settings('fab.cfg','local')
def localhost():
    "Local settings"
    env.path = '%(dev_path)s'
    env.giturl = '%(giturl)s'

def deploy():
    "Push local changes and update checkout on the remote host"
    push()
    update_remote() # reset and pull on the remote server
    #remote_export()
    change_ownership()
    touch_wsgi()

def test():
    print "website using database %s " % (settings.DATABASE_NAME,)Requries fabric>=0.9http://git.fabfile.org/cgit.cgi/fabric/snapshot/fabric-0.9b1.tar.gzSee fabric docshttp://docs.fabfile.org/
Package: django_fab_deployer
Installationpipinstall--upgradedjango_fab_deployerUsage# Generate example deployment configuration:djdeploywrite_example_configCommand above will generateexample.jsonfile in current directory.
Example of deployment configuration:{"dev":{"celery_enabled":true,"deploy_path":"/var/www/dev_my_project","hosts":"8.8.8.8","key_filename":"~/.ssh/id_rsa.PUB","project_name":"dev_my_project","user":"dev_my_project","venv_path":"data/.venv/bin/activate","warn_on_deploy":false},"production":{"celery_enabled":true,"deploy_path":"/var/www/prod_my_project","hosts":"8.8.8.8","key_filename":"~/.ssh/id_rsa.PUB","project_name":"prod_my_project","user":"prod_my_project","venv_path":"data/.venv/bin/activate","warn_on_deploy":true}}Save this file asdeploy.jsonand run:djdeploydevdeploy# To upgrade pip requirements: djdeploy dev deploy:upgrade=True
# Ordjdeployproductiondeploy
Package: django-fabric
django-fabric is written to make writing fabfiles for django projects easier and faster.
It contains the basic stuff one would expect from a django setup with git and virtualenv. The code
expects the project to have a certain structure as seen below. It is possible to customize the
activation of the virtualenvironment.
.. code-block:project-dir/
  venv/ # virtualenv
  project-package/
  manage.py
  fabfile.pyInstallationRunpip install django-fabricUsageThere is two options to get get a basic setup, both will make you able to runfab deploy:prodandfab test.Init scriptThere is a init script that will guide you through the generation of a basic fabfile
that utilises django-fabric. Run it with the command
.. code-block:django-fabric-initBasic manual setupCreate afabfile.pyin your project directory. You can see example of a fabfile below. If you
run into problems with settings where fabric cannot locate settings addsys.path.append(os.path.dirname(__file__))to your fabfile.Here is an example of an fabfile
.. code-block:from fabric.decorators import task
from fabric.state import env
from django_fabric import App

env.user = 'web'
env.hosts = ['server1.example.com']

site = App(
    project_paths={
        'prod': '/var/www/example_site',
    },
    urls={
        'prod': 'http://example.com'
    },
    restart_command={
        'prod': 'restart prod'
    },
    project_package='example',
    test_settings='example.settings.test',
)

deploy = task(site.deploy)
test = task(site.test)
Package: django_fabv
Introduction
fabv enables A/B testing in Django and is based on Patrick McKenzies ABingo for Ruby.License
fabv is licensed under the 3-clause BSD license.Why fabvEasy to use and setupNo dependencies (except Django)Contribute and TODOAdd test for more than two alternativesSupport changing of complete templates instead of parts throught tagsBetter django-admin supportFigure out database error (Lines marked TODO in middleware.py)
Package: django-fac
=====
First Atlantic Commerce Payment Integrationdjango-fac is a Django app to conduct that is used to integrate with First Atlantic Commerce payment gatewayDetailed documentation is in the "docs" directory.Quick startAdd "django_fac" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'django_fac',
]Include the polls URLconf in your project urls.py like this::path('payment/', include('django_fac.urls')),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/payment/health/to test the integration.
Package: django-facebook
StatusDjango and Facebook are both rapidly changing at the moment. Meanwhile, I’m caught up in a startup and don’t have much spare time.
The library needs a good round of testing against the latest python, django and facebook graph API.
Contributions are strongly appreciated. Seriously, give github a try, fork and get started :)Newsdjango-facebook is now python 3 compatible!  With this change, django-facebook will be dropping support for django 1.4 and the mininum required django version will be 1.5.Demo & AboutDjango Facebook enables your users to easily register using the Facebook API.
It converts the Facebook user data and creates regular User and Profile objects.
This makes it easy to integrate with your existing Django application.I’ve built it for my startup Fashiolista.com and it’s currently used in production with thousands of signups per day.
For a demo of the signup flow have a look at Fashiolista’s landing page (fashiolista.com)After registration Django Facebook gives you access to user’s graph. Allowing for applications such as:Open graph/ Timeline functionalitySeamless personalizationInviting friendsFinding friendsPosting to a users profileUpdates and tutorials can be found on my blogmellowmorningFeaturesAccess the Facebook API, from:Your website (Using javascript OAuth)Facebook canvas pages (For building facebook applications)Mobile (Or any other flow giving you a valid access token)Django User Registration (Convert Facebook user data into a user model)Store likes, friends and user data locally.Facebook FQL accessOAuth 2.0 compliantAutomated reauthentication (For expired tokens)Includes Open Facebook (stable and tested Python client to the graph API)DocumentationBasicsInstallationCustomizingSettingsRegistration backends & RedirectsOpen Facebook APIGetting an OpenFacebook objectMaking callsAdvancedMobileCelerySignalsCanvasContributing and Running testsTests are run from within the example project. You
can run them yourself as follows:install from gitfacebook_example/manage.py test django_facebookVagrantA vagrant development setup is included in the GIT repo.
Assuming you have vagrant installed, simply type the following in your shell:# First get a fresh Django-Facebook checkout
git clone git@github.com:tschellenbach/Django-facebook.git django-facebook

# Go to the directory:
cd django-facebook

# Time to start Vagrant (grab a cup of coffee after this command, it'll take a while) :)
vagrant up; vagrant provision

# Finally done?
vagrant ssh
python manage.py runserver 0:8000To have a working Django Facebook example up and running at 192.168.50.42:8000/facebook/example/.
For the facebook login to work simply map that ip to vagrant.mellowmorning.com
(Since Facebook checks the domain)You can run the test suite by typing:python manage.py test django_facebookDjango JobsDo you also see the beauty in clean code? Are you experienced with high scalability web apps?
Currently we’re looking for additional talent over at our Amsterdam office.
Feel free to drop me a line at my personal email for more information: thierryschellenbach[at]gmail.com