Saravanan666/pypi-org huggingface dataset:
Package: django-calaccess-campaign-browser
# django-calaccess-campaign-browserA Django app to refine, review and investigate campaign finance data drawn from the California Secretary of State’s CAL-ACCESS database.This is a work in progress. Its analysis should be considered as provisional until it is further tested and debugged.[![Docs status](https://readthedocs.org/projects/django-calaccess-campaign-browser/badge/)](http://django-calaccess-campaign-browser.californiacivicdata.org/)
[![Build Status](https://travis-ci.org/california-civic-data-coalition/django-calaccess-campaign-browser.png?branch=master)](https://travis-ci.org/california-civic-data-coalition/django-calaccess-campaign-browser)
[![PyPI version](https://badge.fury.io/py/django-calaccess-campaign-browser.png)](http://badge.fury.io/py/django-calaccess-campaign-browser)
[![Coverage Status](https://coveralls.io/repos/california-civic-data-coalition/django-calaccess-campaign-browser/badge.png?branch=master)](https://coveralls.io/r/california-civic-data-coalition/django-calaccess-campaign-browser?branch=master)Documentation: [django-calaccess-campaign-browser.californiacivicdata.org](http://django-calaccess-campaign-browser.californiacivicdata.org//)Issues: [github.com/california-civic-data-coalition/django-calaccess-campaign-browser/issues](https://github.com/california-civic-data-coalition/django-calaccess-campaign-browser/issues)Packaging: [pypi.python.org/pypi/django-calaccess-campaign-browser](https://pypi.python.org/pypi/django-calaccess-campaign-browser)Testing: [travis-ci.org/california-civic-data-coalition/django-calaccess-campaign-browser](https://travis-ci.org/california-civic-data-coalition/django-calaccess-campaign-browser)Coverage: [coveralls.io/r/california-civic-data-coalition/django-calaccess-campaign-browser](https://coveralls.io/r/california-civic-data-coalition/django-calaccess-campaign-browser)
Package: django-calaccess-processed-data
A Django app to transform and refine campaign-finance data from the California Secretary of State’sCAL-ACCESSdatabaseDocumentation:django-calaccess-processed-data.californiacivicdata.orgIssues:github.com/california-civic-data-coalition/django-calaccess-processed-data/issuesPackaging:pypi.python.org/pypi/django-calaccess-processed-dataTesting:github.com/california-civic-data-coalition/django-calaccess-processed-data/actions
Package: django-calaccess-raw-data
A Django app to download, extract and load campaign finance and lobbying activity data from the California Secretary of State'sCAL-ACCESSdatabaseDocumentation:django-calaccess.californiacivicdata.orgIssues:github.com/california-civic-data-coalition/django-calaccess-raw-data/issuesPackaging:pypi.python.org/pypi/django-calaccess-raw-dataTesting:github.com/california-civic-data-coalition/django-calaccess-raw-data/actions/
Package: django-calaccess-scraped-data
A Django app to scrape campaign-finance data from the California Secretary of State’sCAL-ACCESSwebsiteDocumentation:django-calaccess.californiacivicdata.orgIssues:github.com/california-civic-data-coalition/django-calaccess-scraped-data/issuesPackaging:pypi.python.org/pypi/django-calaccess-scraped-dataTesting:github.com/california-civic-data-coalition/django-calaccess-scraped-data/actions
Package: django-calculation
django-calculationMake simple calculations in your django forms usingdjango-calculation. This app provide aDjango Widgetthat derives its value from a expression defined in the widget instance.The field is updated when any of the source fields change.Installationpipinstalldjango-calculationAddcalculationto your INSTALLED_APPSINSTALLED_APPS=[...'calculation',]UsageImportcalculationand complete the definition.ExampleUsingFormulaInputwidgetfromdjangoimportformsimportcalculationclassTestForm(forms.Form):quantity=forms.DecimalField()price=forms.DecimalField()amount=forms.DecimalField(widget=calculation.FormulaInput('quantity*price')# <- using single math expression)apply_taxes=forms.BooleanField(initial=True)tax=forms.DecimalField(# using math expression and javascript functions.widget=calculation.FormulaInput('apply_taxes ? parseFloat(amount/11).toFixed(2) : 0.0'))django-calculationworks with static files and therefore it is necessary to include the media of the form in the template file.<formmethod="post">{% csrf_token %}
    {{ form }}<inputtype="submit"value="Submit"></form>{{ form.media }}ModesCurrently the app support two modes of calculationFORMULAandSUMMARY.FORMULAThe field value derive from a formula expression. In the expression you can refer to the form field using its name.amount=forms.DecimalField(widget=calculation.FormulaInput('quantity*price'))SUMMARYThe field value derive from a summary definition, it is useful when you need to get the sum of a django formset field.total=forms.DecimalField(widget=calculation.SummaryInput(function=calculation.SUM,field='amount')Summary exampleSummary definition inOrderFormclassOrderForm(forms.ModelForm):total=forms.DecimalField(# using SumInput a SummaryInput abstractionwidget=calculation.SumInput('subtotal'))classMeta:model=Orderfields=['date','customer']OrderDetFormalso contain a calculated fieldsubtotal.classOrderDetForm(forms.ModelForm):subtotal=forms.DecimalField(widget=calculation.FormulaInput('quantity*price'))classMeta:model=OrderDetfields=['product','price','quantity','subtotal']# formset definitionOrderDetFormSet=forms.inlineformset_factory(Order,OrderDet,OrderDetForm)RoadmapCreate demo project.Create documentation.Add changelog.
Package: django-calendarium
A Django application for managing and displaying a calendar and its events.InstallationFor further information, like requirements, please check out the
[django-calendarium documentation](https://django-calendarium.readthedocs.org/)
on readthedocs.We added some basic bootstrap styles to start with. If you’re not using
Bootstrap we recommend to build your own styles, otherwise try:{% load staticfiles %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="{% static "calendarium/css/calendar.css" %}">SettingsIf you want your calendar to start on a different date, you can set theCALENDARIUM_SHIFT_WEEKSTARTsetting to be the offset in days, that the
calendar should add or subtract from the start day of the week. Most common
case is probably, that you want your calendar week to start on sunday in which
case you would add the following to your settings:CALENDARIUM_SHIFT_WEEKSTART = -1Extending the appIt is almost inevitable that you will want to add more fields or more
functionality to the Event model of this app. However, this app is already
quite complex and we would like to keep it as simple and focused as possible.
This app should do one thing and do it well, and that thing is: to output
(recurring) events for a given day, week, month or timeframe.A very common usecase is to display public events that are open for
registration. For this case we have created another app [django-event-rsvp](https://github.com/bitmazk/django-event-rsvp) which plays nicely with this app.You might do it in a similar way. Since events created in the calendarium app
can easily be tied to any object via generic foreign keys, you can therefore
tie them to the objects of any of your own apps. The only thing left for you is
to create nice CRUD views that create your own objects and our Event objects
simultaneously behind the scenes.RoadmapCheck the issue tracker on github for milestones and features to come. If you
have ideas or questions, please don’t hesitate to open an issue on the issue
tracker.Compatibilitypydj1.51.61.71.81.92.6XXXXX2.7XPASSPASSPASSPASS3.2XPASSPASSPASSPASS3.5PASSPASSPASSPASSPASS
Package: django-calendar-sms
SMS Notification for Free on Django===================================.. image:: https://api.travis-ci.org/gotlium/django-calendar-sms.png?branch=master:alt: Build Status:target: https://travis-ci.org/gotlium/django-calendar-sms.. image:: https://coveralls.io/repos/gotlium/django-calendar-sms/badge.png?branch=master:target: https://coveralls.io/r/gotlium/django-calendar-sms?branch=master.. image:: https://pypip.in/v/django-calendar-sms/badge.png:alt: Current version on PyPi:target: https://crate.io/packages/django-calendar-sms/.. image:: https://pypip.in/d/django-calendar-sms/badge.png:alt: Downloads from PyPi:target: https://crate.io/packages/django-calendar-sms/What's that-----------This reusable Django app can help you to send sms viaGoogle Calendar (for free) on your Django Project.Installation:-------------.. code-block:: bash$ pip install django-calendar-sms2. Add the ``calendar_sms`` application to ``INSTALLED_APPS`` in your settings file (usually ``settings.py``)3. Sync database (``./manage.py syncdb``)Demo:----.. code-block:: bash$ sudo apt-get install virtualenvwrapper$ mkvirtualenv django-calendar-sms$ git clone https://github.com/gotlium/django-calendar-sms.git$ cd django-calendar-sms$ python setup.py develop$ cd demo$ pip install -r requirements.txt$ python manage.py syncdb$ python manage.py migrate$ python manage.py shellUsage:------1. Setup Google Account data for current website on admin panel2. Try to send sms from shell (``./manage.py shell``):.. code-block:: python>>> from calendar_sms.sms import sendSMS>>> print sendSMS('Hello, World!')Send SMS in background:-----------------------1. Install ``django-celery``:.. code-block:: bash$  pip install django-celery2. Add the ``djcelery`` application to ``INSTALLED_APPS`` in settings.py3. Add django-calendar-sms configuration into project settings:.. code-block:: pythonCELERY_IMPORTS = ('calendar_sms',)4. Sync database (``./manage.py syncdb``)5. Run Rabbit-MQ:.. code-block:: bash$  sudo rabbitmq-server -detached6. Run celery daemon in project directory:.. code-block:: bash$  nohup python manage.py celery worker >& /dev/null &7. Try to send sms:.. code-block:: python>>> from calendar_sms.tasks import SMSSend>>> SMSSend.delay('Hello, World (background task)!')| **You can use multi accounts on one or several sites**Compatibility:-------------* Python: 2.6, 2.7* Django: 1.3.x, 1.4.x, 1.5.x, 1.6.. image:: https://d2weczhvl823v0.cloudfront.net/gotlium/django-calendar-sms/trend.png:alt: Bitdeli badge:target: https://bitdeli.com/free
Package: django-calfile
=====Calendar File=====CalFile is a simple Django app to create a calendar file.Detailed documentation is in the "docs" directory.Quick start----------------------1. Installpip install django-calfile2. Add "calfile" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'calfile',]3. define::CALFILE_DATE_FORMAT = '%d-%m-%Y %H:%M'4. Include the URLconf in your project urls.py like this::path('calfile/', include('calfile.urls')),5. Post /calfile/ with parameters (start_date, end_date).
Package: django-calingen
django-calingendjango-calingenis a pluggable Django application to generate analogous,
legacy, paper-based calendar inlays - thuscalenderinlaygenerator.Source:https://github.com/Mischback/django-calingenDocumentation:https://django-calingen.readthedocs.io/Installation and SetupInstallation and Setup ofdjango-calingenis provided in the official documentation:Quickstart/Step by StepContributingContributions are always welcome, be it bugs, feature requests or actual code.See Contribution Guidelinesto get you started.
Package: django_callable_perms
Aboutdjango_callable_perms implements a modular registry of permission handlers.
Handlers can be registered as simple permission callbacks, following
the Django has_perm parameters.All permission callbacks may implement the permission checks they need. As
we talk about callbacks, meaning executable code, you can put everything
you need in there.ExampleDjango itself misses support for row level permissions. You may add this using
authentication backends and there are existing apps to implement this. Anyways
most of these solutions will add some overhead and cannot provide really
flexible permissions.django_callable_perms do not care about which permissions you want to implement
but fit row level permissions really well. So lets start with the real example.
Given a model like this:class Article(models.Model):
    title = models.CharField(max_length=100)
    author = models.ForeignKey(User)You may want to add permissions checks, so only the author is allowed to
edit his/her articles. Now django_callable_perms may be used to add simple
checks like the following:# may be put into permissions.py inside the app
from django_callable_perms import register
from .models import Article


def author_may_always_edit(user, perm, obj):
    # no additional database query needed!
    if obj.author_id == user.pk:
        return True


register(
    'app.change_article', # permission name
    author_may_always_edit, # callback function
    Article, # model, for which the permission check is implemented
             # may be "None", if no instance is required
)Permission checks afterwards just follow default Django behavior. Use
{% get_obj_perms %} inside templates.{% get_obj_perms for user accessing obj as obj_perms %}
{% if obj_perms.app.change_article %}
    {# show edit link #}
    <a href="...">Edit</a>
{% endif %}Note: If you need your own permissions you do not need to add them to the
database (see Django docs), most of the time it’s enough to just register
the new permissions.InstallationAdddjango_callable_permstoINSTALLED_APPS(for autoloading) and adddjango_callable_perms.backends.CallablePermissionBackendto yourAUTHENTICATION_BACKENDS.Make sure to put django_callable_perms into your Python PATH first, of
course.Additional FeaturesAutoloadingWill load all permissions.py’s inside the INSTALLED_APPS.sync_permissionsManagement command to create all app permission inside the database. May be
used to initialize the database. Will not (meaning never) add more than the
default Django permissions.
Package: django-calvo-comments
A reusable Django & Javascript app (jQuery) for simply implementing a comments feed on any url. Go here to get started:https://github.com/NYARAS/calvine-comments-applicationComing soonQuick startInstall Dep:pip install djangorestframework django-cors-headersAdd “comments” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'corsheaders', # https://github.com/ottoyiu/django-cors-headers
    'rest_framework', # http://www.django-rest-framework.org/
    'comments',
]
Package: djangocamera
djangocameraA library that makes it simple to use one function to integrate a camera with the Django framework on a website.InstallationUse the package managerpipto install foobar.pipinstalldjangocameraUsageTheviews.pyfile, in theappdirectory:fromdjango.shortcutsimportrenderfromdjangocamera.streamingimportvideo_feed# returns 'camera video'defcamera(request):returnvideo_feed()defindex(request):returnrender(request,"index.html",{})Theurls.pyfile, in theappdirectory:fromdjango.urlsimportpathfrom.importviewsurlpatterns=[path("camera/",views.camera,name="camera"),path("",views.index,name="index"),]Theindex.htmlfile, in the templates directory:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Document</title></head><body><imgsrc="{% url 'camera' %}"alt="#"></body></html>ContributingPull requests are welcome. For major changes, please open an issue firstto discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: django-camomilla-cms
camomilla cmsInstall$ pip install -r requirements.txtSettingsCamomilla brings a lot of default settings you can include in your project's onesfrom camomilla.defaults import *Remember to add all the required applications in your projectINSTALLED_APPS = [
    ...
    'rest_framework',
    'rest_framework.authtoken',
    'camomilla',
    'hvad',
    ...
]Run the server$ python manage.py runserverRun testspip install -r requirements-dev.txt
make testDon't fear the hvaderFeel free to make your models untranslatable,we have a nice solution for them
Package: django-campaign
Django-campaign is a newsletter campaign management app for the Django
webframework. It can manage multiple newsletters with different subscriberlists.FeaturesMultiple newslettersMultiple subscriberlistsPersonalization of content for every SubscriberSubscriber model lives in your code and can have whatever fields you wantSubscriberlists are defined as orm query parametersSend mails from your own Server (through Django’s email mechanism)Send mails through Mandrill (a transactional email service from Mailchimp)Send mails through Mailgun (a transactional email service)Pluggable backends for integration with other email servicesMake newsletters available onlineInternal blacklistUpgradingIf you are upgrading from a 0.2.x release the following changes are noteworthy:The south migrations where removed in favor of Django 1.7 native migrationsThe ‘debug’ and ‘django_mailer’ backends are no longer used, because setting
Django’s EMAIL_BACKEND settings to the correct value has the same effect.DocumentationThe documentation is available in the docs folder and online at:http://django-campaign.readthedocs.org
Package: django-camunda
1Camunda client for DjangoVersion:0.14.0Source:https://github.com/maykinmedia/django-camundaKeywords:camunda, process engine, bpmnInteract with Camunda BPMN processes from Django projects.Contents1Camunda client for Django2Features3Installation3.1Requirements3.2Install4Usage4.1Configuration4.2Using the API clientTested against Camunda 7.162FeaturesConfigure Camunda connection parameters from the adminShared Celery tasksDomain models as Python objectsComplex/custom process variable supportDMN evaluation and introspection3Installation3.1RequirementsPython 3.8 or abovesetuptools 30.3.0 or aboveDjango 3.2 or aboveCelery [optional]3.2Installpipinstalldjango-camundaor with Celery support:pipinstalldjango-camunda[celery]Next, ensure the following apps are installed:INSTALLED_APPS=[...,"solo","django_camunda",...]and run migrations:pythonmanage.pymigrate4Usage4.1ConfigurationIn the admin, navigate todjango-camunda>Camunda configurationFill out the API connection parameters for your Camunda instance4.2Using the API clientBuilt-in API functionsThe moduledjango_camunda.apicontains a number of pre-defined API endpoint
bindings. If what you’re looking for does not exist (yet), you can use the low-level
API client (see below).Core usageThe Camunda client class is a wrapper around therequestslibrary and as such aims to provide
the same Python interface.fromdjango_camunda.clientimportget_clientwithget_client()asclient:task=client.get("task/5c793356-24f5-4f82-a5ce-a3cce43b762b")...# do something with the task details
Package: django-canary-endpoint
[![Build Status](https://travis-ci.org/TabbedOut/django_canary_endpoint.svg?branch=master)](https://travis-ci.org/TabbedOut/django_canary_endpoint)Django Canary Endpoint======================Provides [canary endpoints](http://byterot.blogspot.com/2014/11/health-endpoint-in-api-design-slippery-rest-api-design-canary-endpoint-hysterix-asp-net-web-api.html)for common Django dependencies.### Installationpip install django-canary-endpointIf you use RQ you also need to install the `rq` extra:pip install django-canary-endpoint[rq]### Quickstart```# Canary########from canary_endpoint import GitCanaryfrom canary_endpoint.resources.databases import DjangoDatabasefrom canary_endpoint.resources.rq import DjangoRQfrom canary_endpoint.resources.services import Service, ServiceWithCanarycanary = GitCanary('example', root=ROOT, version=VERSION, resources=[DjangoDatabase(statements=['SELECT 1 FROM foo LIMIT 1']),DjangoRQ(),Service('foo', url=HTTP_ENDPOINT),ServiceWithCanary('bar', url=HTTP_ENDPOINT_WITH_CANARY),])# URLs######from canary_endpoint.views import statusfrom django.conf.urls import patterns, urlurlpatterns = patterns('', url(r'^_status/$', status, {'canary': canary}))```See the [example project](./tests/projects/example.py) for full configuration.Also see the [example response data](./tests/fixtures/ok.json).### TestingThere are several ways to run the projects tests.  The recommended approachis to run `tox`, becuase your testing environment will be properly set-up.For a thorough multi-Django version testing use:$ toxTo list the configured environments:$ tox -lpy27-django15py27-django16py27-django17py27-django18py27-djangorqpy35-django18You can execute a single test environment:$ tox -e py35-django18If you manage your own environment, you can run the `make test` commandyourself.  It is recommened that you do this in a _virtualenv_.$ pip install -r requirements.txt     # Normally tox would install these$ pip install "django<1.9" django-rq  # Normally tox would install these$ make test$ open coverage/index.htmlYou can run a subset of tests by setting the `PACKAGES` variable:$ make PACKAGES="tests.test_endpoint tests.test_service_resources"To run a single test:$ make PACKAGES=tests.test_endpoint:EndpointTestCase.test_status_endpoint_returns_200_on_success### LicenseThe MIT License (MIT)Copyright 2016 ATX Innovations
Package: django-candlestick
django-candlestickdjango-candlestick is a django library for storing price data for stocks, assets,
currencies, and other tradeable instruments.SetupInstall:$pipinstalldjango-candlestickAdd to installed apps:INSTALLED_APPS=[..."candlestick"...]Migrate:$pythonmanage.pymigrateYou now have a database of tradeable instruments and their prices.UseManualfromcandlestick.modelsimportInstrument,Barapple=Instrument.objects.create(symbol="AAPL",name="Apple, Inc.",currency="USD",timezone="US/Eastern")bar=Bar.objects.create(open="320.13",low="319.88",high="321.4",close="320.17",volume=3115337,timestamp=1579887000,resolution="H",instrument=apple)print(bar.datetime)# 2020-01-24 12:30:00-05:00From YAHOOapple.fetch(resolution="M")# Gets all bars for the month resolutionapple.update(resolution="H")# Gets new bars for the H resolutionAt command lineTo fetch bars for an instrument:$pythonmanage.pyfetchAAPLDTo update bars for an instrument:$pythonmanage.pyupdateAAPLDTo update bars for multiple instruments:$pythonmanage.pyupdateAAPL,AMZNDTo update bars for all instruments:$pythonmanage.pyupdateallD
Package: django-candy
A modern, single-page-app admin for Django.Installation/!\ Note:This is a pre-alpha project. Most of the things don't work.
However, if you're curious, you can still try it out.1. Install using pip$pipinstalldjango-candy2. Modify your settings# settings.pyINSTALLED_APPS=[# ...'django_candy',]3. Modify your project's urls.py# urls.pyurlpatterns=[# ...path('candy/',include('django_candy.urls')),]UsageAfter installation, you can visithttp://127.0.0.1:8000/candy/to see the
admin interface in action.1. Register your modelsThe API is pretty similar to that of Django's default admin:# admin.pyfromdjango_candyimportadminfrommyapp.modelsimportMyModeladmin.site.register(MyModel)Reload the admin page and you should see your registered model there.Currently, the add/edit pages don't work. You can add some objects to your
model from django shell and you'll see them listed on list page.2.ModelAdminclassThere's also aModelAdminclass for better control over the admin ui:# admin.pyfromdjango_candyimportadminfrommyapp.modelsimportMyModelclassMyModelAdmin(admin.ModelAdmin):list_display=['field_1','field_2','etc']admin.site.register(MyModel,MyModelAdmin)Full docs coming in due time.FrontendFrontend is written in React. You can find the source athttps://github.com/bhch/candy-frontend.LicenseBSD-3-Clause