Saravanan666/pypi-org huggingface dataset:
Package: django-configurations-x
django-configurations=====================.. image:: https://secure.travis-ci.org/jezdez/django-configurations.png:alt: Build Status:target: https://travis-ci.org/jezdez/django-configurationsdjango-configurations eases Django project configuration by relyingon the composability of Python classes. It extends the notion ofDjango's module based settings loading with well establishedobject oriented programming patterns.Check out the `documentation`__ for more complete examples... __: http://django-configurations.readthedocs.org/en/latest/Quickstart----------Install django-configurations:.. code-block:: consolepip install django-configurationsThen subclass the included ``configurations.Configuration`` class in yourproject's **settings.py** or any other module you're using to store thesettings constants, e.g.:.. code-block:: python# mysite/settings.pyfrom configurations import Configurationclass Dev(Configuration):DEBUG = TrueSet the ``DJANGO_CONFIGURATION`` environment variable to the name of the classyou just created, e.g. in bash:.. code-block:: consoleexport DJANGO_CONFIGURATION=Devand the ``DJANGO_SETTINGS_MODULE`` environment variable to the moduleimport path as usual, e.g. in bash:.. code-block:: consoleexport DJANGO_SETTINGS_MODULE=mysite.settings*Alternatively* supply the ``--configuration`` option when using Djangomanagement commands along the lines of Django's default ``--settings``command line option, e.g.::python manage.py runserver --settings=mysite.settings --configuration=DevTo enable Django to use your configuration you now have to modify your**manage.py** or **wsgi.py** script to use django-configurations's versionsof the appropriate starter functions, e.g. a typical **manage.py** usingdjango-configurations would look like this:.. code-block:: python:emphasize-lines: 10#!/usr/bin/env pythonimport osimport sysif __name__ == "__main__":os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')os.environ.setdefault('DJANGO_CONFIGURATION', 'Dev')from configurations.management import execute_from_command_lineexecute_from_command_line(sys.argv)Notice in line 10 we don't use the common tool``django.core.management.execute_from_command_line`` but instead``configurations.management.execute_from_command_line``.The same applies to your **wsgi.py** file, e.g.:.. code-block:: python:emphasize-lines: 6import osos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')os.environ.setdefault('DJANGO_CONFIGURATION', 'Dev')from configurations.wsgi import get_wsgi_applicationapplication = get_wsgi_application()Here we don't use the default ``django.core.wsgi.get_wsgi_application``function but instead ``configurations.wsgi.get_wsgi_application``.That's it! You can now use your project with ``manage.py`` and your favoriteWSGI enabled server.
Package: django-confirmanager
Simple email confirmation application for django 1.4. Forked fromdjango-email-confirmationInstallAdd'confirmanager'to yourINSTALLED_APPS:# settings.py
INSTALLED_APPS = (
    ...
    'confirmanager',
    ...
)Add application urs to your urlconf. Example:# urls.py
urlpatterns += patterns('',
    (r'', include('confirmanager.urls')),
)Requiresdjango.contrib.sitesto get absolute url and and user model to save email.DescriptionTBD, meanwhile you can read source.Limitationsone email per useremails are stored in user modelemails are sent via django-templated-email (templates/confirmanager/confirmation.html)SettingsCONFIRMANAGER_EXPIRES (default 3) - how long links for email confirmation liveCONFIRMANAGER_REDIRECT_URL - where to redirect after email is confirmedCONFIRMANAGER_LOGIN_URL - where to redirect if user is not authenticatedCONFIRMANAGER_GET_DOMAIN - override default django.contrib.sites behavior to get current domainCONFIRMANAGER_UNIQUE_EMAILS (defaut True) - extra check for unique emailsSignalsemail_confirmedTODOMake evertything easily overridable (docs for manager, template)django-appconfDjango 1.5
Package: django-confirmed-email
======================Confirmed Email Sender======================This package provides a drop-in replacements for shortcut send_mail() and class"EmailMultiAlternatives" which ensures that destination addresses are confirmedbefore sending email to them.The shortcut "send_mail_confirmed()" and class "ConfirmedEmailMessage" send email onlyto confirmed addresses and automatically send confirmation messages to unconfirmed addresses.It handles the confirmation process via a url in the confirmation message.Messages for unconfirmed addresses will be queued until the address is confirmedor a timeout period defaulting to 3 days elapses.This app is configured with the same settings as Django's email backend plusEMAIL_CONFIRMATION_WAIT which is an integer specifying the number of days to keepqueued messages for an unconfirmed address before deleting them.  This settingdefaults to 3.  You also need a valid domain name for Django's Sites frameworkso the confirmation link is at the correct host.If you're unfamiliar with the Sites framework, look for 'Sites' in the Django admin,it should be self-explanatory.ConfirmedEmailMessage.send() and send_email_confirmed() differ from the originals intheir return values.  Instead of a return value of 0/1 to indicate failure/success therecan be a different status for each destination address.   These return instead a dictionary witheach destination address as a key and a state indicatingsuccess/failure/queued pending confirmation; see the documentation forsender.ConfirmedEmailMessage.sent() for details.This allows you to display a message indicating that confirmation is necessary if appropriate.settings variables:EMAIL_CONFIRMATION_WAIT: Number of days to wait between sending confirmation emails.Defaults to 3 days.EMAIL_CONFIRMATION_TEMPLATE: Template to use as the body of confirmation emails.It's important for this template to contain a link for the user to click onpassed to the template via variable {{confirmation_link}}.  See default template'confirmation_email.txt' for an example.ADDRESS_CONFIRMED_TEMPLATE: Template displayed to a user when they click on a confirmation link.Defaults to 'address_confirmed.html' and has template variable{{email_address}} passed to it.Example (view) usage:destination_address = 'noone@nowhere.com'cem = ConfirmedEmailMessage(subject='No Subject Needed',body='Hi there.',from_email='someservice@nowhere.com',to=[destination_address],)send_results = cem.send()if send_results[destination_address] == 'queued':template = 'confirmation_required.html'context = {'email_address': destination_address}return render(request, template, context)
Package: django-confy
Django-Confy~~~~~~~~~~~~Comfy config for DjangoActually this code is just `django-dotenv <https://github.com/jacobian-archive/django-dotenv>`_, `django-getenv <https://github.com/schwuk/django-getenv>`_, `dj-database-url <https://github.com/kennethreitz/dj-database-url>`_, `dj-email-url <https://github.com/migonzalvar/dj-email-url>`_, `dj-search-url <https://github.com/dstufft/dj-search-url>`_ and `django-cache-url <https://github.com/ghickman/django-cache-url>`_ combined together.Installation------------.. code-block:: shpip install django-confyExample for settings.py-----------------------.. code-block:: pyfrom confy import env, database, cacheDEBUG = env('DEV')SECRET_KEY = env('SECRET_KEY')DATABASES = {'default': database.config()}CACHES = {'default': cache.config()}Example for .env file---------------------.. code-block:: shDJANGO_SETTINGS_MODULE=project_name.settingsDEV=TrueDATABASE_URL=sqlite:////server/apps/project_name/project_name.sqlite3CACHE_URL=uwsgi://Example manage.py-----------------.. code-block:: py#!/usr/bin/env pythonimport sysimport confyconfy.read_environment_file()if __name__ == "__main__":from django.core.management import execute_from_command_lineexecute_from_command_line(sys.argv)Example for wsgi.py---------------.. code-block:: pyfrom django.core.wsgi import get_wsgi_applicationapplication = get_wsgi_application()Credits-------* Code borrowed by `Eugene MechanisM <https://git.io/MechanisM>`_* Released under `MIT License <http://www.opensource.org/licenses/mit-license.php>`_
Package: django-congo
CongoDjango Congo contains many useful tools for faster and more efficient Django application developing.RequirementsDjanog Congo requires Python 2.7 and Django 1.10 or newer.InstallationTo install congo, run the following command inside this directory::python setup.py installYou can also install the package with a symlink, so that changes to the source files will be immediately available to other users of the package on your system::python setup.py developIf you're usingpip:pip install django-congoYou can also install directly from GIT repo:pip install git+https://gitlab.com/integree/internal/congo3.gitor, if you need install from branch:pip install git+https://gitlab.com/integree/internal/congo3.git@branch-nameProject downloadRun console and cd to your working directory, eg.D:\serwer\www. Create a project dir and clone project from repo:cd \serwer\www
mkdir congo
git clone https://gitlab.com/integree/internal/congo3.git congoProject developmentBefore you start verify that packages bellow are installed:Python 2.7Microsoft Visual C++ Compiler for Python 2.7MySQL 5.6 or 5.7 x64MySQL Connector C 6.0.2Git for WindowsGetTextRuby & CompassNode & Bowervirtualenvvirtualenvwrapper-winVerify that WORKON_HOME points to virtual env home directoryset WORKON_HOMEMake virtual envvirtualenv -p "c:\Python27\python.exe" "%WORKON_HOME%\congo"
workon congoVerify Python version is 2.7.xpython -VUpgrade PIP and verify it's versionpython -m pip install --upgrade pip
pip -VSet project dircd \serwer\www\congo
setprojectdir .Install requirementspip install -r env\requirements.txtRun Django migrationsmigrate.batRun HTTP serverrunserver.batAuthorsMade with love byIntegree Bussines Solutionsfrom Warsaw, Poland
Package: django-congo3
Congo 3Biblioteka Congo 3 zostaĹ‚a stworzona przezIntegree Bussines Solutions. Paczka zawiera szereg przydatnych rozwiÄ…zaĹ„, ktĂłre usprawniajÄ… i przyspieszajÄ… tworzenie aplikacji webowych w Django 2.x pod Python 3.x.Instalacja biblioteki Congo 3 w innym projekciePobierz bibliotekÄ™ ze stronyhttps://gitlab.com/integree/internal/congo3/-/archive/master/congo3-master.zip. Po rozpakowaniu ZIP'a wykonaj polecenie:python setup.py installMoĹĽesz teĹĽ zainstalowaÄ‡ bibliotekÄ™ w trybie developerskim, tj. jako symlink:python setup.py developMoĹĽesz teĹĽ uĹĽyÄ‡ repozytoriumPYPI:pip install django-congo3Aby zainstalowaÄ‡ bibliotekÄ™ bezpoĹ›rednio z repozytoriumGIT, wykonaj polecenie:pip install git+https://gitlab.com/integree/congo3.gitlub, jeĹ›li chcesz zainstalowaÄ‡ branch, wykonaj polecenie:pip install git+https://gitlab.com/integree/congo3.git@branch_nameInstalacja i rozwĂłj projektu Congo 3Przygotowanie Ĺ›rodowiska developerskiegoAby w ogĂłle rozpoczÄ…Ä‡ pracÄ™ z projektem, musisz przygotowaÄ‡ sobie Ĺ›rodowisko programistyczne. Upewnij siÄ™, ĹĽe zainstalowaĹ‚eĹ› ipoprawnie skonfigurowaĹ‚eĹ›wszystkie poniĹĽsze programy i/lub narzÄ™dzia.Python 3.6 x86Visual C++ Build Tools 2015MySQL 5.7 x64MySQL Connector/C 6.1 x86Git for WindowsGTKGetTextRuby & CompassNode & Bowervirtualenvvirtualenvwrapper-winPobranie projektuUruchom konsolÄ™ i przejdĹş do katalogu roboczego, np.D:\serwer\www, utwĂłrz katalog dla projektu i sklonuj do niego repozytorium:cd \serwer\www
mkdir congo3
git clone https://gitlab.com/integree/congo3.git congo3Przygotowanie Ĺ›rodowiska virtualenvUpewnij siÄ™, ĹĽe zmienna Ĺ›rodowiskowaWORKON_HOMEwskazuje na katalog domowy virtualenv'a, tj. katalog, w ktĂłrym leĹĽÄ… wszystkie Ĺ›rodowiska wirtualne, np.D:\serwer\envs.set WORKON_HOMEStwĂłrz nowe Ĺ›rodowisko wirtualne:c:\Python36\python.exe -m venv "%WORKON_HOME%\congo3"
workon congo3Upewnij siÄ™, ĹĽe na pewno pracujesz na Pythonie w wersji 3.6.x:python -VWykonaj upgrade pip'a i upewnij siÄ™, ĹĽe masz wersjÄ™ >= 18:python -m pip install --upgrade pip
pip -VPrzejdĹş do katalogu projektu, np.D:\serwer\www\congo3i ustaw jako domyĹ›lny dla Ĺ›rodowiska:cd \serwer\www\congo3
setprojectdir .Zainstaluj requirements'y:pip install -r env\requirements.txtInicjacja bazy danychZainicjuj bazÄ™ danych:mysql -h localhost -u root -p -e "source env\init.sql"Gdy baza danych jest skonfigurowana, moĹĽesz uruchomiÄ‡ migracje:migrate.batTĹ‚umaczeniaWygneruj i skompiluj tĹ‚umaczenia:makemessages.bat
compilemessages.batPliki statycznePrzed pierwszym uruchomieniem naleĹĽy pobraÄ‡ Bowerem biblioteki JavaScript'owe i skompilowaÄ‡ Compassem pliki Sass:bower.bat
watch.batDeveloperski serwer HTTPWyglÄ…da na to, ĹĽe doszedĹ‚eĹ› do koĹ„ca. SprawdĹş, czy nic nie popierdaczyĹ‚eĹ›...runserver.batAutorzyMade with love byIntegree Bussines Solutions- Warsaw, Poland
Package: django-connect
django-connect - Social Graph Syncing for Django-------------------------**NOTE: This code currently does nothing. I'll be updating it in the next week or so.. watch this space...Authors:------------* [Chris Drackett] (http://chrisdrackett.com/)Issues:---------please report bugs, issues, or suggestions [here](http://chrisdrackett.lighthouseapp.com/projects/29415-django-connect)Install:------------You can get the source directly from GitHub either by downloading the project or checking out the repository.A quick shortcut is to checkout the project directly into your Python path:git clone git://github.com/chrisdrackett/django-connect.git connectAbout:------------Django-elsewhere allows users of a website to provide and display information about theirother online social networks.Dependencies:------------* Django trunk* [django-elsewhere] (http://github.com/leah/django-elsewhere)Other resources:----------------* [Portable Social Networks for Django] (http://leahculver.com/2007/09/03/portable-social-networks-for-django/) - Leah Culver* [Thoughts on the Social Graph] (http://bradfitz.com/social-graph-problem/) - Brad Fitzpatrick and David Recordon* [Microformats Social Network Portability] (http://microformats.org/wiki/social-network-portability) - from the Microformats wiki* [XHTML Friends Network] (http://www.gmpg.org/xfn/)* [Building Blocks for Portable Social Networks] (http://www.brianoberkirch.com/2007/08/08/building-blocks-for-portable-social-networks/) - Brian Oberkirch* [Following Friends Across Walled Gardens] (http://www.personalinfocloud.com/2006/11/following_frien.html) - Thomas Vander Wal* [Open Social Graph @ Plaxo] (http://www.plaxo.com/info/opensocialgraph) - identity consolidation tools
Package: django-connectwise
django-connectwiseDjango app for working with ConnectWise. Defines models (tickets,
members, companies, etc.) and callbacks.RequirementsPython 3.5Django 2.0Other versions may work; we haven't tried.InstallationFrom PyPI:pip install django-connectwiseFrom source:git clone git@github.com:KerkhoffTechnologies/django-connectwise.git
cd django-connectwise
python setup.py installUsageAdd to INSTALLED_APPSINSTALLED_APPS = [
    ...
    'djconnectwise',
    ...
]Add tourls.py:re_path(
    r'^callback/',  # This can be whatever you want.
    include('djconnectwise.urls', namespace='connectwise')
),Add to settings:CONNECTWISE_SERVER_URL = 'https://connectwise.example.com'
CONNECTWISE_CREDENTIALS = {
    'company_id': 'your company ID',
    'api_public_key': 'your API user public key',
    'api_private_key': 'your API user private key',
}
CONNECTWISE_TICKET_PATH = 'v4_6_release/services/system_io/router/openrecord.rails'
def djconnectwise_configuration():
    return {
        'timeout': 30.0,  # Network timeout in seconds
        'batch_size': 50,  # Number of records to fetch in each request
        'max_attempts': 3,  # Number of times to make a request before failing
        'callback_url': '{}?id='.format(
            reverse('connectwise:callback')
        ),
        'callback_host': '{}://{}'.format(
            'http' if DEBUG else 'https',
            'djconnectwise-host.example.com'
        ),
    }
DJCONNECTWISE_CONF_CALLABLE = djconnectwise_configurationFor ConnectWise Cloud users,CONNECTWISE_SERVER_URLcan be just i.e.https://na.myconnectwise.net- the library changes to theapi-regiondomain automatically.TheDJCONNECTWISE_CONF_CALLABLEfunction should return a dictionary with the fields shown above. It's a callable so that it can fetch settings at runtime- for example fromConstancesettings.Sync objects with this management command:cwsync. This will take a very long time if there are many objects to fetch.Register your callbacks with the management command:callbacks_registeredUse standard Django model signals to see when objects change.To control how user avatar thumbnails are stored, add settings fromeasy-thumbnails.To de-register your callbacks, use thecallbacks_deletedmanagement command.TestingPrepare your environment:pip install --upgrade -r requirements_test.txtTry one of:./runtests.py
python setup.py test
make testContributingFork this repoMake a branchMake your improvementsMaking migrations? Run:./makemigrations.pyRun the tests (see above)Make a pull requestLicenseMITCopyright© 2017 Kerkhoff Technologies Inc.
Package: django-connexion
Django ConnexionThis is a django api forconnexion lib.Get startedInstallWith poetry:poetryaddgit+https://github.com/buserbrasil/django-connexion.git#mainWith pip:pipinstallgit+https://github.com/buserbrasil/django-connexion.gitUsefromdjango_connexionimportDjangoApidoc_api=DjangoApi("openapi.json")# path to openapi file (json or yaml).# ... any codeurlpatterns=[path("",doc_api.urls),# ... rest of urlspath('admin/',admin.site.urls),]
Package: django-conn-pool
Django-conn-poolMySQL Connection Pooling with Django(>2.0.0) and SQLAlchemy(>=1.2.7).WhyIfCONN_MAX_AGEnot set in you settings, Django will establish a new MySQL connection for each request and close it after the request.So if where are too many connections to be handled, it will establish too many connections until running out of MySQLmax_connections.Then, MySQL will return the error:ERROR 1040 (08004): Too many connections.It's necessary to maintain a connection pool for a robust Django project.PrincipleReference: MySQL Connection Pooling with Django and SQLAlchemyMake MySQLdb Databaseget_new_connectionfrom connection pool with SQLAlchemy QueuePool.So all we need to custom a Database managed by connection pool and get new connection from the pool.pip install mysqlclient
pip install SQLAlchemycore code:import MySQLdb as Database
import sqlalchemy.pool as pool
from sqlalchemy.pool import QueuePool
from django.db.backends.mysql.base import DatabaseWrapper as _DatabaseWrapper


Database = pool.manage(Database, poolclass=QueuePool, **settings.SQLALCHEMY_QUEUEPOOL)

class DatabaseWrapper(_DatabaseWrapper):

    def get_new_connection(self, conn_params):
        # return a mysql connection
        databases = settings.DATABASES
        alias = None
        for _alias in databases:
            if databases[_alias]['NAME'] == conn_params['db']:
                alias = _alias
                break
        client_flag = conn_params['client_flag']

        conn_params = databases[alias]
        return Database.connect(
            host=conn_params['HOST'],
            port=conn_params['PORT'],
            user=conn_params['USER'],
            db=conn_params['NAME'],
            passwd=conn_params['PASSWORD'],
            use_unicode=True,
            charset='utf8',
            client_flag=client_flag,
            sql_mode='STRICT_TRANS_TABLES',
        )Usagepip install django-conn-poolsettings.py# http://docs.sqlalchemy.org/en/latest/core/pooling.html#sqlalchemy.pool.QueuePool
# http://docs.sqlalchemy.org/en/latest/core/pooling.html#sqlalchemy.pool.Pool.params
SQLALCHEMY_QUEUEPOOL = {
    'pool_size': 10,
    'max_overflow': 10,
    'timeout': 5,
    'recycle': 119,
}

DATABASES = {
    'default': {
        'ENGINE': 'django_conn_pool.mysql',
        'HOST': '127.0.0.1',
        'NAME': 'xxx',
        'USER': 'xxx',
        'PASSWORD': 'xxx',
        'PORT': 3306,
    },
    'other': {
        'ENGINE': 'django_conn_pool.mysql',
        'HOST': '127.0.0.1',
        'NAME': 'xxx',
        'USER': 'xxx',
        'PASSWORD': 'xxx',
        'PORT': 3306,
    },
}TestIfpython manage.py runserveris OK, now you can use load testing utilitySiegeto test.siege -r 2 -c 1000 -d 0 http://xxx  # siege --helpYou can compare the MySQL process list count to the before, and it should work.Btw, you should get asqlalchemy.exc.TimeoutError:exception if it does not get a connection during the request.
Package: django-conntrackt
Django Conntrackt is a simple application targeted at system
administrators and integrators that deploy servers at client’s
premises that need a way to keep track of required network
connectivity.Application allows tracking of required network communications between
different servers, routers, client workstations, and even whole
networks/sub-networks.In addition to keeping track of connections, the application has the ability to
generate simpleiptablesrules based on the connections specified. The
generated rules can be easily applied using theiptables-restoreutility.At time of this writing, Django Conntrackt is compatible with the
following Django and Python versions:Python 2.7.xDjango 1.5.xWhy was this application created?The application was created in order to alleviate painful and error prone
tracking of IP addresses and network communications inside of spreadsheet
files. Another reason was the need to create simple iptables rules based on this
information with as little hassle as possible.Theiptablesgeneration requirements for Django Conntrackt were farily simple,
and do not include any complex functionality. It all boils down to rejecting all
communication except for explicitly defined links.FeaturesDjango Conntrackt sports a number of useful features for system administrators
and integrators:Managing entities through multiple projects (separating the entities
per-project basis).Grouping entities inside of a project in one or more locations (which can be
either logical or physical).Specifying entities that represent servers, routers, workstations, networks,
subnets or any other networked device or abstraction within a network.Specifying multiple network interfaces for each entity.Specifying the communication link between two entities, which includes
information such as protocol and port.Generation ofiptablesrules for devices based on GNU/Linux that can be
consumed by theiptables-restoreutility.Generation ofiptablesrules on per-location/project basis (multipleiptablesrule files inside of a singleZIPfile).For more information, please have a look at full documentation at one of the
following websites:https://django-conntrackt.readthedocs.io/LicenseDjango Conntracktapplicationis licensed under the terms of GPLv3, or (at
your option) any later version. You should have received the full copy of the
GPLv3 license in the local fileLICENSE-GPLv3, or you may read the full text
of the license at:http://www.gnu.org/licenses/gpl-3.0.txtDjango Conntracktdocumentationis licensed under the terms of CC-BY-SA 3.0
Unported license. You should have received the full copy of the CC-BY-SA 3.0
Unported in the local fileLICENSE-CC-BY-SA-3.0-Unported, or you may read
the full text of the license at:http://creativecommons.org/licenses/by-sa/3.0/The following third-party libraries are included as part of Django Conntrackt,
but are distributed under their own license:Bootstrap (sub-directoryconntrackt/static/bootstrap), under
Apache License v2.0.jQuery (fileconntrackt/static/jquery-min.js), under MIT License.
Package: django-constance-cli
Command-line interface fordjango constance.Deprecationdjango-constance-cli is deprecated, the functionality is part of django-constance>=1.3.4.Seehttps://github.com/jazzband/django-constance/pull/180Installationpip install django-constance-cliChange Log0.0.7   Added deprecation warning0.0.6   Fix–help(doesn’t like ugettext_lazy)0.0.5   Travis -> PyPi0.0.4   Travis build0.0.3   Prepare for move to github0.0.2   Added basic tests0.0.1   Package created