Saravanan666/pypi-org huggingface dataset:
Package: django-cas-minimal
=============================django-cas=============================.. image:: https://badge.fury.io/py/django-cas-minimal.png:target: https://badge.fury.io/py/django-cas-minimal.. image:: https://travis-ci.org/ParthKolekar/django-cas.png?branch=master:target: https://travis-ci.org/ParthKolekar/django-casA Django CAS library for version 1.7.4 which actually worksDocumentation-------------The full documentation is at https://django-cas.readthedocs.org.Quickstart----------Install django-cas::pip install django-cas-minimalThen use it in a project::import django_casRunning Tests--------------Does the code actually work?::source <YOURVIRTUALENV>/bin/activate(myenv) $ pip install -r requirements-test.txt(myenv) $ python runtests.pyCredits---------Credits to https://bitbucket.org/cpcc/django-casTools used in rendering this package:*  Cookiecutter_*  `cookiecutter-pypackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageHistory-------2.3.5 (2016-02-11)++++++++++++++++++* First Stable Complete Version2.3.0 (2015-10-02)++++++++++++++++++* Updated configurations and documentation0.1.0 (2015-10-02)++++++++++++++++++* First release on PyPI.
Package: django-cas-ng
django-cas-ngis Django CAS (Central Authentication Service) 1.0/2.0/3.0 client
library to support SSO (Single Sign On) and Single Logout (SLO).It supports Django 2.2, 3.0, 3.1, 3.2, 4.0 and Python 3.7+!NOTE:Since there is no more further CAS protocol development,
Code in this repo is stable and in maintain mode, accept PR for bugfix and minor enhancement.DocumentCheckout document athttps://djangocas.dev/docs/latest/Quick links:CAS 101: Introduction to CAS protocol.Example integration: A step by step guide on how to integrate this library.InstallationConfigurationFeaturesSupportsCASversions 1.0, 2.0 and 3.0Support Single Logout (needs CAS server support)Supports Token auth schemesCan fetch Proxy Granting TicketSupports Django 2.2, 3.0, 3.1, 3.2 and 4.0Supports using aUser custom modelSupports Python 3.7+Supports typing hints in public API.To support django 1.x and Python 2.x, please use3.6.0.ContributingNew contributors are always welcome! Check outContributionto get involved.Change LogThis project adheres to Semantic Versioning. Checkout all theChangelog.
Package: django-cas-nge
Extended fromdjango-cas-ng 4.3.0.Solved the ‘max key length’ problem of mysql.Support creating users with more attribute fields.django-cas-ngdjango-cas-ngis Django CAS (Central Authentication Service) 1.0/2.0/3.0 client
library to support SSO (Single Sign On) and Single Logout (SLO).It supports Django 2.2, 3.0, 3.1, 3.2, 4.0 and Python 3.7+!NOTE:Since there is no more further CAS protocol development,
Code in this repo is stable and in maintain mode, accept PR for bugfix and minor enhancement.DocumentCheckout document athttps://djangocas.dev/docs/latest/Quick links:CAS 101: Introduction to CAS protocol.Example integration: A step by step guide on how to integrate this library.InstallationConfigurationFeaturesSupportsCASversions 1.0, 2.0 and 3.0Support Single Logout (needs CAS server support)Supports Token auth schemesCan fetch Proxy Granting TicketSupports Django 2.2, 3.0, 3.1, 3.2 and 4.0Supports using aUser custom modelSupports Python 3.7+Supports typing hints in public API.To support django 1.x and Python 2.x, please use3.6.0.ContributingNew contributors are always welcome! Check outContributionto get involved.Change LogThis project adheres to Semantic Versioning. Checkout all theChangelog.
Package: django-cassandra-db
Django Cassandra Engine - the Cassandra backend for DjangoAll tools you need to start your journey with Apache Cassandra and Django Framework!Featuresintegration with latestpython-driverand optionallydse-driverfrom DataStaxworkingflush,migrate,sync_cassandra,inspectdbanddbshellcommandssupport for creating/destroying test databaseaccepts allCqlengineandcassandra.cluster.Clusterconnection optionsautomatic connection/disconnection handlingworks well along with relational databases (as secondary DB)storing sessions in Cassandraworking django formsusable admin panel with Cassandra modelssupport DataStax Astra cloud hosted CassandraInstallationRecommended installation:pip install django-cassandra-db==0.0.2Basic UsageAdddjango_cassandra_enginetoINSTALLED_APPSin yoursettings.pyfile:INSTALLED_APPS = ('django_cassandra_engine',) + INSTALLED_APPSChangeDATABASESsetting:DATABASES = {
     'default': {
         'ENGINE': 'django_cassandra_engine',
         'NAME': 'db',
         'TEST_NAME': 'test_db',
         'HOST': 'db1.example.com,db2.example.com',
         'OPTIONS': {
             'replication': {
                 'strategy_class': 'SimpleStrategy',
                 'replication_factor': 1
             }
         }
     }
 }Define some model:# myapp/models.py

 import uuid
 from cassandra.cqlengine import columns
 from django_cassandra_engine.models import DjangoCassandraModel

 class ExampleModel(DjangoCassandraModel):
     example_id    = columns.UUID(primary_key=True, default=uuid.uuid4)
     example_type  = columns.Integer(index=True)
     created_at    = columns.DateTime()
     description   = columns.Text(required=False)Run./manage.py sync_cassandraDone!Connect to Cassandra with a Cloud Config bundleTo connect to a hosted Cassandra cluster that provides a secure connection bundle (ex. DataStax Astra) change theDATABASESsetting of your settings.py:DATABASES = {
        'default': {
            'ENGINE': 'django_cassandra_engine',
            'NAME': 'db_name',
            'TEST_NAME': 'db_name',
            'USER': username,
            'PASSWORD': password,
            'OPTIONS': {
                'connection': {
                    'cloud': {
                        'secure_connect_bundle': '/path/to/secure/bundle.zip'
                    },
                }
            }
        }
    }
Package: django-cassandra-engine
Django Cassandra Engine - the Cassandra backend for DjangoAll tools you need to start your journey with Apache Cassandra and Django Framework!Discord:https://discord.gg/pxunMGmDNcFeaturesintegration with latestpython-driverand optionallydse-driverfrom DataStaxworkingflush,migrate,sync_cassandra,inspectdbanddbshellcommandssupport for creating/destroying test databaseaccepts allCqlengineandcassandra.cluster.Clusterconnection optionsautomatic connection/disconnection handlingworks well along with relational databases (as secondary DB)storing sessions in Cassandraworking django formsusable admin panel with Cassandra modelssupport DataStax Astra cloud hosted CassandraSponsorsHelp support ongoing development and maintenance bysponsoring Django Cassandra Engine.Our Sponsors:Astra DBUse Django with DataStax Astra DB - built on Apache Cassandra.NoiSekInstallationRecommended installation:pip install django-cassandra-engineBasic UsageAdddjango_cassandra_enginetoINSTALLED_APPSin yoursettings.pyfile:INSTALLED_APPS = ('django_cassandra_engine',) + INSTALLED_APPSChangeDATABASESsetting:DATABASES = {
     'default': {
         'ENGINE': 'django_cassandra_engine',
         'NAME': 'db',
         'TEST_NAME': 'test_db',
         'HOST': 'db1.example.com,db2.example.com',
         'OPTIONS': {
             'replication': {
                 'strategy_class': 'SimpleStrategy',
                 'replication_factor': 1
             }
         }
     }
 }Define some model:# myapp/models.py

 import uuid
 from cassandra.cqlengine import columns
 from django_cassandra_engine.models import DjangoCassandraModel

 class ExampleModel(DjangoCassandraModel):
     example_id    = columns.UUID(primary_key=True, default=uuid.uuid4)
     example_type  = columns.Integer(index=True)
     created_at    = columns.DateTime()
     description   = columns.Text(required=False)Run./manage.py sync_cassandraDone!Connect to Cassandra with a Cloud Config bundleTo connect to a hosted Cassandra cluster that provides a secure connection bundle (ex. DataStax Astra) change theDATABASESsetting of your settings.py:DATABASES = {
        'default': {
            'ENGINE': 'django_cassandra_engine',
            'NAME': 'keyspace_name',
            'TEST_NAME': 'table_name',
            'USER': 'token',
            'PASSWORD': token_value,
            'OPTIONS': {
                'connection': {
                    'cloud': {
                        'secure_connect_bundle': '/path/to/secure/bundle.zip'
                    },
                }
            }
        }
    }DocumentationThe documentation can be found onlinehere.LicenseCopyright (c) 2014-2023,Rafał Furmański.All rights reserved. Licensed under BSD 2-Clause License.
Package: django-cassandra-sessions
This is a session backend for Django that stores sessions in Cassandra,
using the pycassa library.Installing django-cassandra-sessionsEither download the tarball and runpython setup.py install, or simply
use easy install or pip like soeasy_installdjango-cassandra-sessions.Setcassandra_sessionsas your session engine, like so:SESSION_ENGINE = 'cassandra_sessions'(optional) Add settings describing where to connect to Cassandra:CASSANDRA_HOSTS = ['127.0.0.1:9160',]
CASSANDRA_SESSIONS_KEYSPACE = 'Keyspace1'
CASSANDRA_SESSIONS_COLUMN_FAMILY = 'Standard1'
Package: django-castle
===============django-castle===============A django integration for the castle.io serviceDocumentation-------------Using the http://castle.io service this package allows for simple user tracking.Quickstart----------Install django-castle::pip install django-castleThen use it in a project::1. Add the package ``django_castle`` to ``settings.INSTALLED_APPS``2. Set the following setting variables::CASTLE_API_KEY = "your key"CASTLE_API_SECRET = "your secret"3. Add the ``{% load castle %}`` template tag on the top of your templates where you want to track users4. Add the following tags to the templates in the bottom of the head::{% castle_load user=request.user secure=True track=True %}Features--------* API wrapper* Settings for API Key and Secret* Hook for the login and logout signals* template tags for user trackingCookiecutter Tools Used in Making This Package----------------------------------------------*  cookiecutter*  cookiecutter-djangopackageHistory-------0.0.1 (2015-08-28)++++++++++++++++++* First release on GitHub.0.0.2 (2015-08-29)++++++++++++++++++* First working release on GitHub
Package: django-catalog
Application allows to organize objects in tree hierarhy.This Documentation is poor for now, but it contains instructions
how to set up application with default settings.Download & Install:DownloadFrom python package index::pip install djang-catalogFrom github::pip install -e git://github.com/redsolution/django-catalog.git@2.0.0#egg=Django-catalogQuick installInclude applications intoINSTALLED_APPS:INSTALLED_APPS += [
...
'mptt',
'catalog',
'catalog.contrib.defaults',
...
]Include catalog inurls.py:urlpatterns += patterns('',
    url(r'^catalog/', include('catalog.urls.by_slug')),
)Runmanage.py syncdbFor more complicated installation options look into documentation.FeaturesNice admin interface with drag-n-grop manipulations.Generic model relationship architechture (any model can be included in catalog tree)Useful templatetags libraryHightly customizableScreenshot:Redsolution CMS classifiers:Content plugins
Package: django-categories-api
Django CategoriesThis application provides basicdjango-rest-frameworkAPI for Django Categories.Features of the projectThe output contains category tree with counts of category items in each node (cummulative as well as direct counts).Countable fieldsThe API can contain number of related objects associatet with category.
This can be achieved by settingCOUNTABLE_FIELD_RELATED_NAMESproperty inCATEGORIES_SETTINGS:CATEGORIES_SETTINGS={"COUNTABLE_FIELD_RELATED_NAMES":('field_name'),}SettingsThe cache timeout and staggering can be changed by:CATEGORIES_SETTINGS={"CACHE_TIMEOUT":60*60,"CACHE_STAGGERING":60*10,}
Package: django-categories-i18n
django-categories-i18nA simple categories model that supports translations.
Improvements are welcome!InstallationFirst install the module, preferably in a virtual environment.
It can be installed from PyPI:pipinstalldjango-categories-i18nAddcategories_i18nto yourINSTALLED_APPS:INSTALLED_APPS+=('categories_i18n',)UsageLink to thecategories_i18n.models.Categorymodel in your application.Improving this packageThis module is designed to be usable for other projects too.
In case there is anything you didn’t like about it,
or think it’s not flexible enough, please let us know.
We’d love to improve it! Pull requests are welcome too. :-)
Package: django-category
Django CategorySimple category app providing category and tag models.ContentsDjango CategoryRequirementsInstallationUsageModelsclass CategoryCategory.titleCategory.subtitleCategory.slugCategory.parentCategory.sitesclass TagTag.titleTag.slugTag.categoriesAuthorsChangelognext2.0.12.0.01.11.01.90.1.30.1.20.1.10.10.0.60.0.50.0.4 (2011-08-24)RequirementsPython 2.7, 3.5-3.7Django 1.11, 2.0, 2.1InstallationInstall or adddjango-categoryto your Python path.Addcategoryto yourINSTALLED_APPSsetting.This package uses django’s internal sites framework. Adddjango.contrib.sitesto yourINSTALLED_APPSsetting and include the requiredSITE_ID = 1(or similiar). The official docs can be found here:https://docs.djangoproject.com/en/2.1/ref/contrib/sites/.Optional:django-object-toolsprovides a category tree view. Seehttps://github.com/praekelt/django-object-toolsfor installation instructions.UsageEnable categorization and/or tagging on a model by creatingManyToManyfields to the models provided bydjango-category, for example:from django import models

class MyModel(models.Model):
    categories = models.ManyToManyField(
        'category.Category',
        help_text='Categorize this item.'
    )
    tags = models.ManyToManyField(
        'category.Tag',
        help_text='Tag this item.'
    )Modelsclass CategoryCategory model to be used for categorization of content. Categories are high level constructs to be used for grouping and organizing content, thus creating a site’s table of contents.Category.titleShort descriptive title for the category to be used for display.Category.subtitleSome titles may be the same and cause confusion in admin UI. A subtitle makes a distinction.Category.slugShort descriptive unique name to be used in urls.Category.parentOptional parent to allow nesting of categories.Category.sitesLimits category scope to selected sites.class TagTag model to be used for tagging content. Tags are to be used to describe your content in more detail, in essence providing keywords associated with your content. Tags can also be seen as micro-categorization of a site’s content.Tag.titleShort descriptive name for the tag to be used for display.Tag.slugShort descriptive unique name to be used in urls.Tag.categoriesCategories to which the tag belongs.AuthorsPraekelt FoundationShaun SephtonJonathan BydendykHedley RoosChangelognextString representation for Python 3.2.0.1Django 2.1 support. The minimum supported Django version is now 1.11.Added coveralls2.0.0Django 2 support. The minimum supported Django version is now 1.10.1.11.0Compatibility for Python 3.5 and Django 1.11.1.9Actual unit tests.Compatibility from Django 1.6 to 1.9.0.1.3__unicode__ method now returns a sensible result.0.1.2Fix tree view.0.1.1Added sites and subtitle fields.0.1Dependency cleanup.0.0.6Added get_absolute_url on Category0.0.5Use prepopulate_fields for admin interfaceParent category field addedSouth migration path createdTree view of categories and tags0.0.4 (2011-08-24)Docs, testrunner.
Package: django_categorytree
========CategoryTree========This is a simple Django apllication that provide an abstract class to create a tree style category model.Using this model we can define unlimited number of sublevel categories only by one model class.Installation============Install the application package using pip::pip install django-categorytreeadd 'categorytree' to the INSTALLED_APPS list on your settings fileHow to use==========Import the Category abstract model from categorytree and use it to create your category model::from lcategorytree.models import Categoryclass MyCategoryModel(Category):passIn your application admin.py file mport the CategoryAdmin abstract ModelAdmin class and use it to register your model to the admin site::from categorytree.admin import CategoryAdminclass MyCategoryAdmin(CategoryAdmin):class Meta:model = MyCategoryModel
Package: django-cbias-auth
Django-Cbias-AuthБиблиотека для авторизации на порталеhttps://cbuas.ru.Установка# via pippipinstalldjango_cbias_auth# via poetrypoetryadddjango_cbias_authНастройкиВ файлsettings.pyдобавить:EXTERNAL_URLS={'auth_cbias':'www.cbias.ru/sso_app/remote_auth.spf?uid=%uid&ris=%system'}%uid - идентификатор пользователя%system - идентификатор системыСхемаmutation Auth($uid: String!, $clientId: String!, $clientSecret: String!) {
  auth(payload: { uid: $uid, clientId: $clientId, clientSecret: $clientSecret }) {
    success
    errors {
      field
      messages
      __typename
    }
    __typename
  }
}Создание приложенияpythonmanage.pycreateoauthapp'Авторизация через cbias.ru'
Package: django-cbmail
Django module to easily send templated emails in a DRY way using
classes, just like Class Based Views.Table of contents:How to install;Example usage;Settings reference;License.How to installTo install the app run :pipinstalldjango-cbmailor add it to the list of requirements of your project.Example usageCreate a mails.py and use the BaseMail class to define your email like:fromcbmail.baseimportBaseMailclassExampleEmail(BaseMail):""" """template_name="myapp/mails/myemail.html"subject="Example subject of email"And send it using:ExampleEmail().send(['example@example.com'])Where['example@example.com']is a list of emails of destination or
a object withget_mailing_listmethod definedSettings referenceTo give support to this app we need to declare de following django
settings:DEFAULT_FROM_EMAIL="example@example.com"CBMAIL={'DEFAULT_REPLY_TO':"examplereplyto@example.com",'DEFAULT_SUJECT':"Example subject",'BASE_URL':"https://domain.com",'EXTRA_DATA':{},'WHITELIST':[]}DEFAULT_FROM_EMAIL: Default setting of Django that defines the
from emailDEFAULT_REPLY_TO: Default reply to be used on emailsDEFAULT_SUJECT: Default subject to be used on emailsWHITELIST: List of valid emails to send toBASE_URL: The base url of your websiteEXTRA_DATA: Any extra data intended to be used on all emails
(This is injected on context of template)LicenseMIT license, see the LICENSE file. You can use obfuscator in open source
projects and commercial products.
Package: django-cbrf
django-cbrfПриложение для удобной работы с валютами и курсами валют от ЦБ РФСайтandAPIЦентробанка.УстановкаДля запуска необходимы:Python >= 3Django >= 3.8cbrfУстановка из PyPI:pip install django-cbrfВерсия для разработчиков:git clone https://github.com/egregors/django-cbrf.git
    cd django-cbrf
    pip install -e .Запуск тестов:cd django-cbrf/tests
    python manage.py test test_appНастройкиДобавить приложение вINSTALLED_APPS:INSTALLED_APPS = (
    # ...
    'django_cbrf',
)Доступные настройки:# your settings.py

# приложение, где находятся собственные модели
# (опционально, по умолчанию "django_cbrf")
CBRF_APP_NAME = 'test_app'

# количество дней, для заполнения БД (будут получены котировки за последние CBRF_DAYS_FOR_POPULATE дней
# (опционально, по умолчанию 60 дней)
CBRF_DAYS_FOR_POPULATE = 30Пакет содержит готовые для использования моделиCurrencyиRecordв модулеdjango_cbrf.models, но вы можите
также использовать свои собственные модели, наследовав их отAbstractCurrencyиAbstractRecordизdjango_cbrf.abstract_models.Для использования собственных моделей необходимо в настройках указать приложение, в моделях которого находятся модели для
валют и курсов:Важно!Ваши собственные модели для валют и курсов должны называться точноCurrencyиRecordКоманды manage.pyЗагрузка валютДля того, что бы загрузить перечень существующих валют можно выполнить команду:python manage.py load_currencyв случае, если в БД нет ни одной записи моделиCurrency, эти записи будут загружены через API ЦБ.Для загружки валют независимо от условий, используйте флаг--forceЗагрузка курсовЧтобы загрузить историю курсов за указанное время необходимо выолнить командуload_rates.
В качестве параметров команда принимает перечень ISO кодов нужных валют, и опционально, количество
дней за которые необходимо получить курсы. Например, для загрузки в БД историии курсов Доллара США и Евро
за последние 90 дней необходимо выполнить:python manage.py load_rates usd eur --days 90КонтрибьютингСообщения об ошибках, исправления и новый функционал всегда преветствуются.
Открывайте issues, пуште пул реквесты.
Package: django-cbv
This is Django Class Based Views taken from Django trunk.Use CBVs like this:import cbv as genericThen write your class-based views as expained in theDjango documentation:class SomeView(generic.TemplateView):
    template_name = 'some_template.html'You will need the following middleware installed:cbv.middleware.DeferredRenderingMiddlewareOnce you’re ready to use Django 1.3, you’ll only need to switch the import
statement to:from django.views import generic
Package: django-cbv-inspect
django-cbv-inspectA tool to help inspect all class-based views within your Django project 🔎 ✨Inspired by django-debug-toolbar ❤️📦 InstallationInstall with pippip install django-cbv-inspectAddcbv_inspectto your list ofINSTALLED_APPSin your Django settings moduleINSTALLED_APPS=[..."cbv_inspect",...]Add the middleware to your list ofMIDDLEWAREclasses in your Django settings moduleMIDDLEWARE=[..."cbv_inspect.middleware.DjCbvInspectMiddleware",...]PrerequisitesIn yourTEMPLATESsettings within your Django settings module, make suretheBACKENDsetting is""django.template.backends.django.DjangoTemplates""theAPP_DIRSsetting isTrue🛞 UsageWhen all installation steps are done, any html response rendered by a class-based view should display thedjango-cbv-inspecttoolbar on the page.By default, all class-based views will be processed by the middleware. If you wish to exclude views, there are two options:Exclude via mixinfromcbv_inspect.mixinsimportDjCbvExcludeMixinclassMyCoolView(DjCbvExcludeMixin,View):passExclude via decoratorfromdjango.utils.decoratorsimportmethod_decoratorfromcbv_inspect.decoratorsimportdjcbv_exclude@method_decorator(djcbv_exclude,name="dispatch")classMyCoolView(View):pass🧪 Run locallyYou can run theexampleproject locally to test things out!Clone the project and from the root of the repo, run the following Make command to setup theexampleproject:make run-exampleTo run unittests with coverage, runmake coverage⚡️ FeaturesThedjango-cbv-inspecttoolbar has three main sections:View informationCBV method call chainMRO classesView informationThis section shows high level information about the class-based view, request, and url.CBV method call chainThis is the main section that shows all methods that were excuted for the current class-based view:It shows:method name and signatureClassy Class-Based Views (ccbv.co.uk)linksmethod arguments and return valueall resolvedsuper()calls defined in the methodmodule locationMRO classesThis section lists all MRO classes of the current class-based view class.This can come in handy especially with the prior section when mapping the execution of a class-based view.❓ Why did I build this?Django class-based views are hard to grasp especially when you're new to Django.Fortunately for us, tools likedjango-debug-toolbarandccbv.co.ukare super helpful in providing extra context for debugging.My goal for this app was to take what goes on under the hood in a class-based view and display it in an easy to use interface, just like what django-debug-toolbar does.Hopefully this can help debug your class-based views!Happy coding! ✨