Saravanan666/pypi-org huggingface dataset:
Package: django-project-version
django-project-version is a Django reusable app to show your project versionContentsInstallationConfigurationSettingsUsageAdvanced featuresContributingLicensingContactsInstallationObtain your copy of source code from the git repository:$ git clonehttps://github.com/DCOD-OpenSource/django-project-version.git. Or download the latest release fromhttps://github.com/DCOD-OpenSource/django-project-version/tags/.Run$ python ./setup.py installfrom the repository source tree or unpacked archive. Or use pip:$ pip installdjango-project-version.ConfigurationAdd"djversion"tosettings.INSTALLED_APPS.# settings.pyINSTALLED_APPS+=["djversion",]SettingsDJVERSION_VERSIONContains project version. Defaults toNone.DJVERSION_UPDATEDContains project update date or datetime. Defaults toNone.DJVERSION_FORMAT_STRINGContains version and updated format string. Defaults to"{version}({updated})".DJVERSION_GIT_REPO_PATHContains path to git repository from where version info can get. Defaults toNone.DJVERSION_GIT_USE_TAGIndicate usage of git repository current tag as project version. Defaults toFalse.DJVERSION_GIT_USE_COMMITIndicate usage of git repository last commit hash as project version. Defaults toFalse.UsageIf you want always have"VERSION"variable in templates context, just add"djversion.context_processors.version"tosettings.TEMPLATE_CONTEXT_PROCESSORS# settings.pyTEMPLATE_CONTEXT_PROCESSORS+=["djversion.context_processors.version",]Or you can useproject_versiontemplatetag which can be loaded fromdjversion_tags.{# footer.html #}{%loaddjversion_tags%}{%project_versionasVERSION%}{{VERSION}}Also simple management commandprint-versionwhich prints project version to stdout is available. Just run:django-adminprint-versionor./manage.pyprint-versionAdvanced featuresIf you want to have REST-style view with your project version:Installdjango-project-versionwith additional dependencies:$ pip installdjango-project-version[rest].Extend yousettings.INSTALLED_APPSby adding"rest_framework".# settings.pyINSTALLED_APPS+=["rest_framework",]Add"djversion"to your URLs definitions:# urls.pyfromdjango.urlsimportre_path,includeurlpatterns+=[re_path(r"^version/",include("djversion.urls")),]Or to use information from the project git repository as project version:Installdjango-project-versionwith additional dependencies:$ pip installdjango-project-version[git].Configure git related settings.ContributingFork itInstallGNU MakeInstall and configurepyenvandpyenv-virtualenv pluginInstall and configuredirenvCreate environment config from examplecp.env.example.envInstall development dependencies:makeinstallCreate your fix/feature branch:gitcheckout-bmy-new-fix-or-featureCheck code style and moreover:makecheckRun tests:maketestPush to the branch:gitpushoriginmy-new-fix-or-featureCreate a new Pull RequestLicensingdjango-project-version uses the MIT license. Please check the MIT-LICENSE file for more details.ContactsProject Website:https://github.com/DCOD-OpenSource/django-project-version/Author: DCOD <contact@d-cod.com>For contributors list see CONTRIBUTORS file.
Package: django-promo
#django-coupons![build status](https://travis-ci.org/byteweaver/django-coupons.png)A reuseable Django application for coupon gereration and handling## Setup instructionsInstalldjango-couponsvia pip:` $ pip installdjango-coupons`Add‘coupons’toINSTALLED_APPSinsettings.py.Migrate database:` $ python manage.py migrate `## Supported use cases of couponsThis application supports different kind of coupons in the way how they can be redeemed.
The difference is defined by the number of possible redeems and if they are bound to a specific user (may even be a list of users) or not.single time (default), coupon can be used one time without being bound to an user.user limited, coupon can be used one time but only by a specific user.limit number, coupon can be used a limited number of times, by any user once.users list, coupon can be used by a defined list of users, each once.unlimited, coupon can be used unlimited times, but only once by the same user.
Package: django-promoter
Give me the damn rights.Current FeaturesPromote an existing userDemote an existing userInstallationInstall usingpip installdjango-promoterAdd'django_promoter'to your'INSTALLED_APPS'settingsYou can now access thepromoteanddemotecommands from
your./manage.pyUsagePromote a user$./manage.pypromoteusernameDemote a user$./manage.pydemoteusernameWhy would I use this ?The main purpose of this project is to be able to manage rights when you
have to use a read-only backend.
The./manage.py createsuperuserisn’t available because you can’t create
new users.
Using Django Promoter, once the user is inserted in the Django database,
you can promote him to a superuser without having to modify the auth database.LicenseThe MIT License (MIT)Copyright © 2017 Numberly
Package: django-promotion-counters
=====
Promotion CountersDjango app to handle promotion and marketing
events based on it's counting and process such counters as achievements.Quick startAdd "promotion_counters" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...,
"promotion_counters",
]Runpython manage.py migrateto create
the promotion program and promotion counter models.Define your promotion action like this::registration = Action(
alias='registration',
verbose_name='Регистрация по ссылке',
)Define your achievement handler like this::@on_achievement(action='Issue promo code')
def registration_handler(counter: Counter):
PromoCode.objects.create(
user=counter.user,
code=generate_promo_code(),
type=PromoCode.DISCOUNT,
value=10,
)Create promotion program using promotion action and achievement handler in admin panel.
Package: django-prompt-responses
A flexible prompt and user responses data schema utilizing Django’s content types framework.This app was born during a university research project. The main use case is data collection.
It lets you create numerous kinds of “prompts” (questions or tasks) and record user responses.
Prompts can be populated with any kind of database object.This supports these kind of prompts:How do you feel today on a 1-5 scale? (Simple likert question)How do you like {object} on a 1-10 scale? (Object-based likert question)Which word do you associate with {object}? (Object-based open-ended question)How related do you think is {object} to these other objects? (Tagging task)Ratings and tags are simply integer values, their meaning can be defined by your application
(e.g. 1 to 5 scales, or -1 = no, +1 = yes, and so on).DocumentationThe full documentation is athttps://django-prompt-responses.readthedocs.io.QuickstartInstall prompt_responses:pip install django-prompt-responsesAdd it to yourINSTALLED_APPS:INSTALLED_APPS=('django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',...'prompt_responses','sortedm2m',# for the ability to change the order of Prompts in the Django admin...)Create Prompts, e.g. through the integrated admin views.Deliver a prompt to the user:prompt=Prompt.objects.get(id=1)instance=prompt.get_instance()"""
Use these variables to display the UI:
prompt.type
str(instance)
instance.object
instance.response_objects
"""Save a user response:prompt=Prompt.objects.get(id=1)prompt.create_response(user=user,prompt_object=instance.object,rating=5)Analyze data:prompt=Prompt.objects.get(id=1)# Mean rating for all responsesrating=prompt.get_mean_rating()# Mean ratings for all objectsmatrix=prompt.get_mean_tag_rating_matrix()# Mean ratings for one objectratings=list(prompt.get_mean_tag_ratings(instance.object))Use the included viewsets in your Django Rest Framework API:fromrest_frameworkimportroutersfromprompt_responses.viewsetsimportPromptViewSetrouter=routers.DefaultRouter()router.register(r'prompts',PromptViewSet)urlpatterns=[url(r'^api/',include(router.urls))]This offersapi/prompts/,api/prompts/<id>/,api/prompts/<id>/instantiate/,api/prompts/<id>/create-response/(POST) endpoints.FeaturesPrompt typesLikert scale ratingsOpen-ended free textTaggingPopulate prompts with objects in order tolet users rate objects from one setlet users rate (tag) relations between two sets of objectsAnalytics convenience functions(Coming soon) Plugable object sampling algorithmsSupport for Django Rest FrameworkRunning TestsCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-11-07)First release on PyPI.
Package: django-propaganda
Hey you, political leader, founder of a new religion or spiritual guru! With
this application, your acolytes will receive the official organizational
propaganda pamphlets right into their inboxes. Keep them updated with the Truth!This simple Django application is made to be used for trivial newsletter
(pamphlets) deliveries with your information (propaganda), where you
supply the raw content (both plain text and HTML versions) to be delivered.
Subscribers (subscribers) will then receive the emails you send.DocumentationRead the latest documentation on the fineRead the docsproject for
installation, configuration and customization instructions, and also to read
examples and tutorials about how to use the package in different scenarios.
Package: django-propeller
Propeller for Django====================Write Django as usual, and let ``django-propeller`` make template output into code based on Google's Material Design Standards & Bootstrap.[![Build Status](https://travis-ci.org/tfroehlich82/django-propeller.svg?branch=stable)](https://travis-ci.org/tfroehlich82/django-propeller)[![Coverage Status](https://coveralls.io/repos/github/tfroehlich82/django-propeller/badge.svg?branch=stable)](https://coveralls.io/github/tfroehlich82/django-propeller?branch=stable)[![Code Health](https://landscape.io/github/tfroehlich82/django-propeller/stable/landscape.svg?style=flat)](https://landscape.io/github/tfroehlich82/django-propeller/stable)![PyPI version](http://img.shields.io/pypi/v/django-propeller.svg)![PyPI downloads](http://img.shields.io/pypi/dm/django-propeller.svg)[![Updates](https://pyup.io/repos/github/tfroehlich82/django-propeller/shield.svg)](https://pyup.io/repos/github/tfroehlich82/django-propeller/)[![Python 3](https://pyup.io/repos/github/tfroehlich82/django-propeller/python-3-shield.svg)](https://pyup.io/repos/github/tfroehlich82/django-propeller/)Requirements------------- Python 2.7, 3.3, 3.4, 3.5, or 3.6- Django >= 1.9Installation------------1. Install using pip:```pip install django-propeller```2. Add to INSTALLED_APPS in your ``settings.py``:```'django_propeller',```3. In your templates, load the ``django_propeller`` library and use the ``propeller_*`` tags:Example template----------------```{% load propeller %}{# Display a form #}<form action="/url/to/submit/" method="post" class="form">{% csrf_token %}{% propeller_form form %}{% buttons %}<button type="submit" class="btn btn-primary">{% propeller_icon "star" %} Submit</button>{% endbuttons %}</form>```Documentation-------------The full documentation is at http://django-propeller.readthedocs.io/en/stable/Demo application----------------The demo application provides a number of useful examples.clone the repo:$ git clone https://github.com/tfroehlich82/django-propeller.gitcd into the cloned directory:$ cd django-propellerrun the testserver:$ python manage.py runserveropen your browser and browse to:http://127.0.0.1:8000Bugs and suggestions--------------------If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/tfroehlich82/django-propeller/issuesFurther Information-------------------Propeller: http://propeller.in/Bootstrap: http://getbootstrap.com/Google Material Design: https://material.io/Donation--------[![Donation](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ARFDZCBQTWRSQ)[BTC Donation] 35bfZEE6NknfBVnEd86XZpGgqKeVjmXQxn[ETH Donation] 0xc9eb5eaed97c94cd47def84fd23a9802fa40384b[LTC Donation] LW4cbjTYCYuymdCBQRzgkRWMGfLBaG5g4CLicense-------You can use this under MIT License. See [LICENSE](LICENSE) file for details.Author------Developed and maintained by [Thorsten Fröhlich](https://github.com/tfroehlich82),based on the idea of [django-bootstrap3](https://github.com/dyve/django-bootstrap3) from [Dylan Verheul](https://github.com/dyve).
Package: django-proplan
Django application to assign a tasks, defining bugs and planning of your
project.Installationpip3installdjango-proplanQuick startAdd “proplan” to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'proplan',]Include the polls URLconf in your project urls.py like this:path('plan/',include('proplan.urls')),Runpython3 manage.py migrateto create the Proplan models.Runpython3 manage.py createsuperuserto create the user if you don’t
have one.Start the development server and visithttp://127.0.0.1:8000/admin/to login (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/plan/to create your plan of work on project.Automatic Bug SystemThe Proplan allows you to enable automatic publication of errors that have
occurred in the project through ABS - Automatic Bug System. There are 2
ways to do this:Logging errors directly to server.Sending errors through API.Logging errorsConnect “proplan.log.ABSHandler” to your LOGGING setting like this:LOGGING={'version':1,'disable_existing_loggers':False,...'handlers':{...'abs':{'class':'proplan.log.ABSHandler','level':'ERROR',}},'loggers':{...'django':{'handlers':['abs'],'level':'ERROR',},},}Sending errorsAdd “ABS_KEY” to your PROPLAN setting like this:PROPLAN={...'ABS_KEY':'cookie-supported-key',}Make POST response with data of bug to API:curl-H'Cookie: proplanabs=cookie-supported-key'\--data-urlencode'title=Bug in mobile app&message=More...'\http://127.0.0.1:8000/plan/abs/create/SettingsAll next settings must be within the dictionaryPROPLAN, when you
define them in the file settings.pyACCESS_FUNCTIONFunction that checks access to resources. You may want to use:proplan.access.authenticated- for authenticated users.proplan.access.staff- for employers and superusers.proplan.access.superuser- for superusers only.proplan.access.view_thread- for users with view permission for Thread
model.any custom function.The default is the internal functionproplan.access.view_thread.ABS_KEYThe options for Automatic Bug System. While there is no key, the system does
not work. By default no key.ABS_COOKIE_NAMEThe cookie name for checking the ABS key. By default isproplanabs.ATTACH_UPLOAD_PATHPath to uploading files. By default is:'proplan/attaches/%(date)s/%(code)s/%(filename)s'ATTACH_THUMB_SIZEThe size of the thumbnails for attached images. By default is:(300,300)ATTACH_THUMB_EXTENSIONSList of recognized image extensions to be previewed. By default is:['.png','.jpg','.jpeg','.bmp']PRIORITIESList of recognized image extensions to be previewed. By default is:[(1,_('low')),(2,_('normal')),(3,_('high')),(4,_('urgent')),(5,_('immediate')),]
Package: django-prospect
Managing your prospects easilyAbstractdjango-prospectis an application that allows you to save information about your prospects and then easily find them in your list.Withdjango-prospectyou will be able to save reports of your e-mails, phone calls and meetings.django-prospectwill help you to make appointments and will remind you of prospects you must phone.FeaturesAdd your prospects to the list, enter information about them. You can later modify this information, delete them from your list.DocumentationRead it online at :http://django-prospect.readthedocs.org/
Package: django-proton
======Proton======Proton is a Django module for building desktop apps. It provides a management commandto run the project as a desktop application rather than a server, as well as somebasic starter templates for using various stylesheets.Behind the scenes, this is done by running the server on an arbitrary high portand opening a thin web browser pointing to localhost on that port.Quick Start-----------1. Install dependencies:Ubuntu: `apt-get install python-gi gir1.2-webkit-3.0 gir1.2-gtk-3.02. Add "proton" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'proton',]3. Add the following values to your settings.py file:WINDOW_TITLE = 'Title of window'WINDOW_SIZE = (WIDTH, HEIGHT)WINDOW_MAXIMIZE = FalseWINDOW_SIZE is a tuple containing the default width and height of the window.WINDOW_MAXIMIZE represents whether the window should be maximized by default.4. Run `python manage.py window` to run the app locally using the dev server.
Package: django-protractor
=====Django Protractor=====Easily integrate your protractor tests in your django project, and get a fresh test database with every run.Additionally, there is an included test case mixin to allow any custom setup code to run.Dependencies------------You must have npm and protractor installed. `See Protractor Documentation for more details`_Quick Start Testing-------------------1. Add "protractor" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'protractor',)2. Run the following command to run your protractor tests::python manage.py protractorMore Advanced Test Case Customization-------------------------------------If you're like me, you'll find that one-time fixture loading for all of your protractor tests just isn't enough.I use the wonderful `factory_boy`_ for my test setup and wanted to find a way to incorporate it with my protractor acceptance tests.What spawned is an incredibly hack-y mixin that allows me to do just that.Create a Subclass of `StaticLiveServerTestCase`_ incorporating the :code:`ProtractorTestCaseMixin` like so, setting the class attribute:code:`specs` to a list of protractor specs. This list will be piped to the :code:`--specs` arg that protractor recieves. Then do any necessarysetup by overriding the :code:`setUp()` method... code:: pythonfrom django.contrib.staticfiles.testing import StaticLiveServerTestCasefrom protractor.test import ProtractorTestCaseMixinclass MyAcceptanceTestCase(ProtractorTestCaseMixin, StaticLiveServerTestCase):specs = ['tests/acceptance/test-spec.js',]def setUp(self):"""Do factory setup stuff."""super(MyAcceptanceTestCase, self).setUp()FooFactory()BarFactory()def get_protractor_params(self):...def test_run(self):...There are two other hooks that exist as well that can be overridden::code:`get_protractor_params()` should return a dict that will be piped to protractor with the :code:`--params` argument.By default this passes in the value of :code:`self.live_server_url`.:code:`test_run()` is the actual method that gets discovered by test runners, and calls out to protractor using subprocess.You may need to override this if you want to do any python assertions about database state after your protractor testshave run.Configuration-------------There are a variety of options available:- :code:`--protractor-conf` to specify a protractor config file. Default is :code:`protractor.conf.js`- :code:`--runserver-command` to specify a different runserver command. Default is :code:`runserver`- :code:`--specs` to specify which protractor specs to run.- :code:`--suite` to specify which protractor suite to run.- :code:`--addrport` to specify which ipaddr:port to run the server on. Default is :code:`localhost:8081`- :code:`--fixture` to specify which a fixture to load. This can be used multiple times and will load all specified fixtures... _See Protractor Documentation for more details: https://angular.github.io/protractor/#/.. _factory_boy: https://github.com/rbarrois/factory_boy.. _StaticLiveServerTestCase: https://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#django.contrib.staticfiles.testing.StaticLiveServerTestCase
Package: django-protractor-new
=====Django Protractor=====Easily integrate your protractor tests in your django project, and get a fresh test database with every run.Additionally, there is an included test case mixin to allow any custom setup code to run.Dependencies------------You must have npm and protractor installed. `See Protractor Documentation for more details`_Quick Start Testing-------------------1. Add "protractor" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'protractor',)2. Run the following command to run your protractor tests::python manage.py protractorMore Advanced Test Case Customization-------------------------------------If you're like me, you'll find that one-time fixture loading for all of your protractor tests just isn't enough.I use the wonderful `factory_boy`_ for my test setup and wanted to find a way to incorporate it with my protractor acceptance tests.What spawned is an incredibly hack-y mixin that allows me to do just that.Create a Subclass of `StaticLiveServerTestCase`_ incorporating the :code:`ProtractorTestCaseMixin` like so, setting the class attribute:code:`specs` to a list of protractor specs. This list will be piped to the :code:`--specs` arg that protractor recieves. Then do any necessarysetup by overriding the :code:`setUp()` method... code:: pythonfrom django.contrib.staticfiles.testing import StaticLiveServerTestCasefrom protractor.test import ProtractorTestCaseMixinclass MyAcceptanceTestCase(ProtractorTestCaseMixin, StaticLiveServerTestCase):specs = ['tests/acceptance/test-spec.js',]def setUp(self):"""Do factory setup stuff."""super(MyAcceptanceTestCase, self).setUp()FooFactory()BarFactory()def get_protractor_params(self):...def test_run(self):...There are two other hooks that exist as well that can be overridden::code:`get_protractor_params()` should return a dict that will be piped to protractor with the :code:`--params` argument.By default this passes in the value of :code:`self.live_server_url`.:code:`test_run()` is the actual method that gets discovered by test runners, and calls out to protractor using subprocess.You may need to override this if you want to do any python assertions about database state after your protractor testshave run.Configuration-------------There are a variety of options available:- :code:`--protractor-conf` to specify a protractor config file. Default is :code:`protractor.conf.js`- :code:`--runserver-command` to specify a different runserver command. Default is :code:`runserver`- :code:`--specs` to specify which protractor specs to run.- :code:`--suite` to specify which protractor suite to run.- :code:`--addrport` to specify which ipaddr:port to run the server on. Default is :code:`localhost:8081`- :code:`--fixture` to specify which a fixture to load. This can be used multiple times and will load all specified fixtures... _See Protractor Documentation for more details: https://angular.github.io/protractor/#/.. _factory_boy: https://github.com/rbarrois/factory_boy.. _StaticLiveServerTestCase: https://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#django.contrib.staticfiles.testing.StaticLiveServerTestCase
Package: django-providerregistry
django-providerregistry is a simple Django application that provides UI
and a RESTFul API for read-only access to public information contained
within NPPES (a.k.a. the NPI database).Detailed documentation for using the API is in the “docs” directory.
Installation instructions are below.Quick StartInstall MongoDB according tohttp://docs.mongodb.org/manual/installation/Download and import the NPPES Public Data into MongoDB.You can use the script “loadnppes.py”, part of to do this for you in one big
step.  loadnppes.py is part of the provider-data-tools package.Pip install django-providerregistry and prerequisites:pip install pymongo django-providerregistryAdd “providerregistry” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'providerregistry',
)Include the direct URLconf in your project urls.py like this:url(r'^registry/', include('providerregistry.urls')),Create the models that contain informationto help with searching:python manage.py syncdbCollect static content:python manage.py collectstaticStart the development server:python manage.py runserverPoint your browser to htpp://127.0.0.1:8000/registry