Saravanan666/pypi-org huggingface dataset:
Package: django_swift
django_swift============django_swift is a storage backend for djangodjango setings.py demo============* DEFAULT_FILE_STORAGE = 'django_swift.storage.SwiftStorage'* SWIFT_AUTHURL = 'http://10.1.50.1:8080/auth/v1.0'* SWIFT_USER = 'root'* SWIFT_KEY = 'system:pass'* SWIFT_CONTAINER_NAME = 'container name'* SWIFT_RETRIES = 5* SWIFT_PREAUTHURL = None* SWIFT_PREAUTHTOKEN = None* SWIFT_SNET = False* SWIFT_STARTING_BACKOFF = 1* SWIFT_TENANT_NAME = None* SWIFT_OS_OPTIONS = None* SWIFT_AUTH_VERSION = "1"* SWIFT_CACERT = None* SWIFT_INSECURE = Falsedjango url settings====================* set in url.py: url('^media/([\w|.|/]+)', "django_swift.views.download")* set in settings.py: MEDIA_URL = '/media/'
Package: django-swift-auth
Django rest framework custom user authentication packageQuick startAdd “app” in yourINSTALLED_APPSsettings like this:INSTALLED_APPS = [
    ...
    'dj_swift_auth',
    'rest_framework',
    'rest_framework.authtoken',
]Include the app URLconf in your project urls.py like this::path(‘user/’, include(‘dj_swift_auth.urls’)),settings.pyfile add your use model::AUTH_USER_MODEL = ‘dj_swift_auth.User’Drop current database and delete all migrations file from your application then again run migration in the app::python manage.py makemigrations dj_swift_authpython manage.py migrate dj_swift_authpython manage.py migrateAPI endpoint:Registration:user/api/register/Login:user/api/login/Profile:user/api/profile/Profile Update:user/api/profile/1/Change Password:user/api/change-password/1/# Pass the user IDLogout:user/api/logout/
Package: django-swiftbrowser
[![Build Status](https://travis-ci.org/cschwede/django-swiftbrowser.png?branch=master)](https://travis-ci.org/cschwede/django-swiftbrowser)Simple web app build with Django and Twitter Bootstrap to access Openstack Swift.No database neededWorks with keystone, tempauth & swauthSupport for public containers. ACL support in the worksMinimal interface, usable on your desktop as well as on your smartphoneScreenshots anyone? See below!Quick InstallInstall swiftbrowser:pip install django-swiftbrowserPlease make sure that “tempurl” and “formpost” middlewares are activated in your proxy server. Extract from /etc/swift/proxy-server.conf:[pipeline:main]
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache tempurl formpost tempauth proxy-logging proxy-server[filter:tempurl]
use = egg:swift#tempurl[filter:formpost]
use = egg:swift#formpostRun development server:django-admin runserver –settings=swiftbrowser.settingsOpen “http://127.0.0.1:8000/” in your browser and use ‘account:username’ to login (or tenant/project:username if using Keystone).Screenshots![Login screen](screenshots/00.png)
![Container view](screenshots/01.png)
![Object view](screenshots/02.png)
Package: django-swiftstorage
django-swiftstorageProvides a custom storage system for Django to store and retrieve files
in OpenStack Swift.ConfigurationDEFAULT_FILE_STORAGE = "swiftstorage.storage.SwiftStorage"

OS_USERNAME = "<openstack username>"
OS_PASSWORD = "<openstack password>"
OS_AUTH_URL = "<openstack keystone authenticator URL>"
OS_REGION_NAME = "<openstack region name>"
OS_TENANT_NAME = "<openstack tenant name>"

SWIFT_CONTAINER_NAME = # Created if does not exist.TestingTests can be run withpython setup.py test. To make things easier,
usetox.toxcan be installed withpipor via thepython-toxpackage
for Debian/Ubuntu.Then simply calltoxto run the tests in a virtual environment.
Package: django-swingers
django-swingersis a library of common utilities and django customizations
used within theDepartment of Parks and Wildlife.All documentation is in the “docs” directory and online athttp://pythonhosted.org/django-swingers/.Toinstalldjango-swingers:pip install django-swingersoreasy_install django-swingersTo get morehelp:Join thedpawmailing list, or read the archives, athttp://groups.google.com/group/dpaw.To create aticket:Use our bitbucketissue tracker, athttps://bitbucket.org/dpaw/django-swingers/issues/Tocontributetodjango-swingers:hg clone https://bitbucket.org/dpaw/django-swingers/
python setup.py developWe prefer patches submitted via pull requests, athttps://bitbucket.org/dpaw/django-swingers/pull-requests/To rundjango-swingers’testsuite:python setup.py test
Package: django-swingtime
Version:1.3.0Demo:https://nerdfog.com/swingtime/Download:https://pypi.org/project/django-swingtime/Source:https://github.com/dakrauth/django-swingtimeDocumentation:http://dakrauth.github.io/django-swingtime/WelcomeSwingtime is aDjangoapplication similar to
a stripped-down version of iCal for Mac OS X or Google Calendar.Swingtime provides amodels.Eventmodel that acts as metadata container
for one or moremodels.Occurrenceobjects, which describe specific
start and end times.Swingtime relies heavily upon both thedatetimestandard library package and
thedateutilpackage, featuring direct support for thedateutil.rruleinterface to create occurrences.A fairly simple example:>>>fromdatetimeimport*>>>fromswingtimeimportmodelsasswingtime>>>et=swingtime.EventType.objects.create(abbr='work',label='Work Related Events')>>>evt=swingtime.Event.objects.create(...title='New TPS Cover Sheet',...description='Kiss off, Lumbergh!',...event_type=et...)>>>evt.add_occurrences(datetime(2018,3,18,16),datetime(2018,3,18,16,15),count=5)>>>foroinevt.occurrence_set.all():...print(o)...NewTPSCoverSheet:2018-03-18T16:00:00NewTPSCoverSheet:2018-03-19T16:00:00NewTPSCoverSheet:2018-03-20T16:00:00NewTPSCoverSheet:2018-03-21T16:00:00NewTPSCoverSheet:2018-03-22T16:00:00A bit more elaborate example, using the the convenience functionmodels.create_event:>>># pay day is the last Friday of the month at 5pm>>>evt=swingtime.create_event(...'Pay day',...('pay','Payroll'),# alternate means to add EventType on the fly...freq=rrule.MONTHLY,...byweekday=rrule.FR(-1),...until=datetime(2013,8,1),...start_time=datetime(2013,4,1,17)...)>>>foroinevt.occurrence_set.all():...print(o)...Payday:2013-04-26T17:00:00Payday:2013-05-31T17:00:00Payday:2013-06-28T17:00:00Payday:2013-07-26T17:00:00DemoTo view a demo,click here.To run a local demo using Docker, do the following:$dockerbuild-tswingtime.$dockerrun-p8000:80-dswingtime:latestAnd browse tolocalhost:8000.FeaturesSupport for adding complex event occurrences viadateutilReady-madeforms.MultipleOccurrenceFormfor handling complex inputDaily, monthly, and annual view functionsGrid-based daily view generator, complete with alternating or sequentialEventTypeCSS-class handlingSlightly better than average documentation, a few test cases, and commented codeBuilt-in demo project / applicationRequirementsPython 3.7+Django 2.2, 3.2+python-dateutil.
Package: django-switch-config-backup
This is a django application to backup switch configsIt can download the config from the switch using SFTP or SCP, or it can login to the switch CLI and execute a command to upload the config.The configs are saved in a git repositorySupported backup methods:Telnet and SSH CLI upload:CiscoSCP fetch:CiscoSFTP fetch:HPE ArubaExtreme NetworksSome switches need config changes to enable SFTP or SCP:HPE Aruba (SFTP):ip ssh filetransferCisco (SCP):ip scp server enableGitlist is required to show configs on web:https://gitlist.org/Quick startAdd “config_backup” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'config_backup',
]Runpython manage.py migrateto create the config_backup models.Install GitlistCreate a root folder for the repository folder and add it to Gitlists configCreate the repository folderAdd the repository folder to settings.py with the keyBACKUP_PATHSet BACKUP_URL to the path for CLI backup for Cisco (Optional)In django admin console add common and/or switch specific username, password and backup typeRunpython manage.py config_backup [switch name]to backup the config from a switch
Package: django-switchtemplatedir
django-switchtemplatedirDjango middleware - symply switch template dirSetuppipinstalldjango-switchtemplatedirIn settings.pyAdd 'django-switchtemplatedir.TemplateDirManager.TemplateDirMiddleware'Add TEMPLATE_DIR_METHOD 'switch' or 'subdomain'Add TEMPLATE_DIR_SETTINGS dictionary as defoult key named 'default' and list type value. Set first index of the list direction to the folder.Optional - if need change the files format, set second index of the list '.format'ExampleTEMPLATE_DIR_METHOD='switch'TEMPLATE_DIR_SETTINGS={'default':[''],'d':['desktop/'],'m':['mobile/','.html']}ExplanationIn this example we use switch methodKey 'defoult' reach to template root folder, 'd' reach to ROOT/desktop folder, 'm' reach to ROOT/mobile and change predetermined in template_name file format to htmlswitchRecomended to use SwitchTemplateDir method. Import this method from django-switchtemplatedir.switcherIn urls.py add'SOME_DIR/<str:key>'path and switch with key name of TEMPLATE_DIR_SETTINGSExampleurls.pyfromdjango-switchtemplatedir.switcherimportSwitchTemplateDirurlpatterns+=[path('somedir/<str:key>',SwitchTemplateDir.as_view()),]If set up by example below, then link /somedir/d will switch to 'desktop/' folderOr use switchTemplateDir function from TemplateDirManager and give argument one of TEMPLATE_DIR_SETTINGS keysTested on Django 2.0MIT License
Package: django-switch-templatetag
A simple “switch” statement for Django templates.InstallationInstall to PYTHONPATH, etc.Then either:Addswitch_templatetagtosettings.INSTALLED_APPSand then use:{% load switch_templatetag %}… in your templates.Or:Addswitch_templatetag.templatetags.switchto yourBUILTINSentry insettings.TEMPLATES(Django 1.9)Or:Add to builtins (< Django 1.9) with in somemodels.py:from django.template.base import add_to_builtins
add_to_builtins('switch_templatetag.templatetags.switch'
Package: django-switch-user
# django-switch-userDjango Switch User is a reuasable application that allows users to assume the
identify of another user. It can be helpful when debugging user issues.
Django Switch User assumes you are using a Django model backend for your user.Beginning with the django-switch-user 2.0 version and above are only supported
on Python 3. If you need a Python 2 compatible version [use version 1.3.0](https://pypi.org/manage/project/django-switch-user/release/1.3.0/)## Installationpip install django-switch-user## QuickstartAfter installing Django Switch User you just need to addsutoINSTALLED_APPSand wire it into your urls.re_path(r”^admin/su/”, include(“su.urls”)),
Package: django-swstags
=====SwS-tags=====SwS-tags es una aplicación DjangoComienzo rápido---------------1. Agregar la aplicación ``swstags`` a su archivo de configuración``settings.py``, en la variable ``INSTALLED_APPS`` asi::INSTALLED_APPS = (..."swstags",)2. Incluir la aplicación de encuestas en la URLconf de su proyectourls.py de este modo::(r'^swstags/', include('swstags.urls')),3. Ejecutar el comando  ``python manage.py syncdb`` para crear losmodelos de las encuestas.4. Inicia el servidor y visitar la pagina  http://127.0.0.1:8000/admin/para crear una encuesta (Necesitas habilitar la interfaz administrativapara poder crear encuestas).
Package: django-symmetric-fields
Django Symmetric FieldsThis package provides encrypted model fields in Django using symmetric fernet encryption.Getting startedPackage installation$pipinstalldjango-symmetric-fieldsKeysdjango-symmetric-fieldsuses fernet keys fromsettings.pyfor encryption. Provide a list of keys in theDSF_ENCRYPTION_KEYSsetting. E.g:DSF_ENCRYPTION_KEYS=[b"key1",b"key2",]Package supports key rotation. A newest key in the front of the list is used to encrypt new data, while the later ones assure that the old encrypted data can still be read.UsageAfter you've completed the initial installation and provided keys insettings.pyyou can import your new fernet fields like any other:fromsymmetricfields.fieldsimportFernetEncryptedTextFieldclassModelWithEncryptedField(models.Model):encrypted_field=FernetEncryptedTextField()Retrieving valuesEach field is provided with two properties used to retrieve the values of the fieldsvalueanddecrypted. The values are not decrypted until explicitly requested.ModelWithEncryptedField.objects.create(encrypted_field='test')my_new_encrypted_object=ModuleWithEncryptedField.objects.first()my_new_encrypted_object.encrypted_field.value# returns encrypted value of the fieldmy_new_encrypted_object.encrypted_field.decrypted# returns 'test'Supportspython >= 3.7, django>=3.1requires cryptography >= 0.9
Package: django-sympa
Add a route to exposed immediately your app users to sympa in right format. This
will synchronize users to a configured mai list.InstallWith pip$> pip install django-sympaIn your django project, be sure that theauthapplication is installed :# settings.py
INSTALLED_APPS = (
    ...,
    'django.contrib.auth',
    ...
)Add thesympaapplication to your project.INSTALLED_APPSlooks like :# settings.py
INSTALLED_APPS = (
    ...,
    'django.contrib.auth',
    ...,
    'sympa'
)Add a route to your base urls configuration :# urls.py

urlpatterns = (
    ...
    url('^users.sympa$', 'sympa.views.users', name='sympa_users'),
    ...
)That’s it !
Package: django-sympycharfield
# django-sympycharfield
Django Char Field using Sympy## Description
SympyCharField is a simple Django app to use Sympy through a CharField.## Install
Run the command in the terminal:pip install django-sympycharfield## Quick start
1. Import in your models.py:from sympycharfield.models import SympyCharFieldUse it as CharField.## Test
1. If you would like to check if SympyCharField is working fine, add
SympyCharField demo application to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'sympycharfield.demo',
]Include the SympyCharField URLconf in your project urls.py like this:from django.urls import include
...
path('sympycharfield/', include('sympycharfield.demo.urls')),Runpython manage.py makemigrations demoto create the sympycharfield models.Runpython manage.py migrateto create the sympycharfield models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a sympycharfield (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/sympycharfield/to check.
Package: django-sync-env
Django sync envdjango-sync-env is a Django app to manage backing up and restoring django databases and media assets easily.Detailed documentation is in the "docs" directory (it's a work in progress).Requirements:configurable backups and restore which can be run on demand, celery cron or in dev.support s3 bucket and file storage options first, add azure blob storage laterinteractive prompts for local devcommand line options with --no-input for CICD and automationsrestore latest option for media and backups for X envbackup before restore optionSetupAdd "django_sync_env" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
   ...,
   "django_sync_env",
   ]Configure the app via a settings file .typically./settings/partial/sync_env.pyfor base configuration,
don't forget to import this file via your base.py settings file
And override any required settings per environment via./settings/partials/[env].pyseeexample_partialsThere is as3 terraform examplefor provisioning
an aws s3 bucket, iam user, roles and policy to allow for remote backup/restore to/from a secure s3 bucket.Seemanagement commandsfor more details for each of the commands available../manage.py sync_env_backup_dbusage./manage.py sync_env_backup_media./manage.py sync_env_restore_db./manage.py sync_env_restore_media./manage.py sync_env_list_backupsSeeTasksfor more details for each of the tasks available.Development and PublishingSeedocumentation.TODO:remove command options which we wont usemake sure all management commands work with good error logging and handlingUpdate the sync-env-backup command to enable the option to specify particular databasesUpdate the sync-env-backup command to exclude particular tables in particular databases
Package: django-sync-github-teams
django-sync-github-teamsdjango-sync-github-teams adds the ability to sync between Github teams and
groups in a Django application. It assumes and requires having users logging in
to the Django application using their GitHub accounts viadjango-allauth.
Check the django-allauth documentation for details on how to set it up.Installing and configuringInstall the packagepip install django-sync-github-teamsThe in Django settings:INSTALLED_APPS=[..."django_sync_github_teams","allauth","allauth.account","allauth.socialaccount",...]AUTH_SOCIALACCOUNT={..."github":{"SCOPE":["user"]},...}SYNC_GITHUB_TEAMS=["myorg/myteam"]SYNC_GITHUB_TEAMS_TOKEN="*********************"SYNC_GITHUB_TEAMS_ON_LOGIN=FalseThe follwing settings can be used:SYNC_GITHUB_TEAMS: list of strings containing the GitHub teams in the
formatORGANIZATION/TEAMto be synced from GitHub. Each team listed will be
synced to a local Django group with same name. Only users who have logged in
locally using their GitHub accounts get added to the group.SYNC_GITHUB_TEAMScan also be a string with teams in the formatORGANIZATION/TEAMseparated by commas with optional surounding
whitespace, e.g.SYNC_GITHUB_TEAMS = "myorg/team1, myorg/team2", or just
by whitespace, e.g.SYNC_GITHUB_TEAMS = "myorg/team1 myorg/team2".SYNC_GITHUB_TEAMS_TOKEN: string containing a GitHub API Personal access
token to be used to read the team members. This token must have permissions
to read the members of all of the teams listed inSYNC_GITHUB_TEAMS. See
theGitHub API documentationfor more details about this.SYNC_GITHUB_TEAMS_ON_LOGIN: boolean; if set to True, a user's group will be
populated when they login.UsageThere's a management command to trigger the sync, which can be used in cronjobs
and the like:./manage.py sync-github-teamsYou can also trigger this in some other way from your application somehow:fromdjango_sync_github_teams.syncimportsync_github_teamssync_github_teams()This needs to run as often as your application requires. Note that even if you
enable syncing teams on login, you still need to sync them offline like this
from time to time, because users might leave the teams there where members of
when they first logged in.ContributingSend merge requests athttps://gitlab.com/Linaro/django-sync-github-teams.
Follow the existing coding conventions in the code (PEP-8, black), and make
sure the all the tests pass and that any new code is covered by tests. Just
runningmakewill run all relevant tests.
Package: django-synctool
Synctool is a library for Django to make syncing querysets between
databases easy. No more manually dumping or entering data. No more
out-of-date fixtures. Just get the data you want, on demand.Basic usageHere’s an example for syncing thedjango.contrib.sitesapp.1. Create an api view# myapp.viewsfromsynctools.routingimportRouteroute=Route()@route.app("sites","sites")2. Add the urls to your project# myproject.urlsfromdjango.conf.urlsimportinclude,urlfrommyapp.viewsimportrouteurlpatterns+=[url("^sync/",include(route.urlpatterns)),]3. Sync data from the remote endpoint# myclient.pyfromsynctools.clientimportClientclient=Client(api_url="https://myserver.com/sync/",api_token="<token>",)if__name__=="__main__":client.sync("sites")The sites app can now be synced locally from a remote data source by
calling:python myclient.pyHow it worksUnder the hood Synctool uses the Django JSON serializer to pass data
between servers. Synctool isn’t limited to syncing whole applications.
It can also sync custom querysets and even download associated images.InstallationSynctool can be installed from PyPI:pip install django-synctoolRequirementsThis library requires Django >= 1.7 and either Python 2.7 or Python >= 3.3.DocumentationYou canread the documentation here.
Package: django-sysace
# Django-SysAce - Sistema de Administração de Cabeamento Estruturado e Infraestrutura de TI[![Documentation Status](https://readthedocs.org/projects/django-sysace/badge/?version=latest)](http://django-sysace.readthedocs.io/en/latest/?badge=latest)Sistema desenvolvido em Django para controle de pontos de rede (voz, dados, voip), ramais, telefones, switches, racks, patchpanels, equipamentos, redes, serviços e endereços IP.O ACE permite um controle centralizado de várias informações da infraestrutura de TI de uma organização  tais como:Listagem de todos os servidores, sejam físicos ou virtuais em uso ou não;Localização dos equipamentos (computadores, impressoras, switches, accesspoints, equipamentos de segurança e outros);Controle de bens;Conexões de rede de equipamentos em tomadas, patchpanels e portas de switches;Controle de VLANs e suas associações a redes e portas de switch;Controle de switches e pilhas (stacks);Controle de redes e endereçamentos IP;Controle de linhas telefônicas sejam elas analógicas, digitais ou VoIP.### Requisitos (Requirements)Python 2.7Django 1.11### DocumentaçãoCompatível comDjango 1.11A documentação está disponível no [Readthedocs](http://django-sysace.readthedocs.io).### InstalaçãoCaso esteja utilizando um sistema GNU-Linux será necessário instalar previamente pacotes de desenvolvimento como gcc, make e outros (o pacote build-essential no Debian e Ubuntu) além do python-dev.1 - Instale o ACE com o comando a seguir:pip install django-sysace2 - Adicionedjango.contrib.admin,acee os outros apps necessários à seçãoINSTALLED_APPSdo arquivossettings.py.INSTALLED_APPS = [
    ...
    'django.contrib.admin',
    ...
    'ace',
    'simple_history',
    'django_modalview',
    'dal',
    'dal_select2',
    'solo',
    'tinymce',
    'widget_tweaks',
    'django_modalview',
    'django_cron',
    'mail_templated',
    'django_extensions',
    'django_tables2',
    'import_export',
    'massadmin',3 - Inclua no arquivo urls.py do projeto URLconf do ace no arquivo urls.py do projeto como mostrado a seguir:url(r'^ace/', include('ace.urls')),4 - Rode o comando abaixo para criar os modelos do ace:python manage.py migrate5 -  Inicie o servidor e acesse pelo endereçohttp://127.0.0.1:8000/admin/(vocẽ precisará do app Admin habilitado).6 -  Acessehttp://127.0.0.1:8000/ace/para iniciar a inclusão dos componentes da infraestrutura de TI.#### Resources[Git graciously hosted](https://github.com/rogeriocdluiz/Django-SysAce) by [GitHub](http://github.com)[Documentation graciously hosted](http://django-sysace.readthedocs.io) by [RTFD](http://rtfd.org)[Package graciously hosted](https://pypi.org/project/django-sysace/) by [PyPi](https://pypi.org)
Package: django-sysadmin
Installationwith pip as easy as:$ pip install django-sysadminor checkout the latest version from github:$ git clone https://github.com/bmaeser/django-sysadmin.git
$ cd django-sysadmin
$ python setup.py installModulesPostfixDependenciesfor virtual_mailbox_domains, virtual_mailbox_maps and virtual_alias_maps you need your postfix to be configured to use your prefered database. on ubuntu the necessary packages are:WARNING: all passwords for sasl2 authentication are stored in PLAINTEXT.for mysql support$ apt-get install postfix-mysqlor for postgresql support$ apt-get install postfix-pgsqlsasl2 authentication against a database needs$ apt-get install libsasl2-2 libsasl2-modules libsasl2-modules-sqlin sample-config you find some templates for your postfix configuration against postgresqlUsageadd django_sysadmin.postfix to installed apps in your django settings.psINSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django_sysadmin.postfix',   <---
)fire up your admin and you are done.
Package: django-sys-indicator
django-sys-indicatorA visual indicator of what environment/system you're using in django.To install:Add'django_sys_indicator.apps.DjangoSysIndicatorConfig'to yourINSTALLED_APPSAdd'django_sys_indicator.middleware.SystemIndicatorMiddleware'to youMIDDLEWAREConfiguration settings and their defaultsSYSTEM_INDICATOR_ENABLED=FalseSYSTEM_INDICATOR_LABEL='localhost'SYSTEM_INDICATOR_COLORS={# Format here is colour, border colour'red':('#c50000','#daa'),'blue':('#006fc4','#aad'),'green':('#009e00','#ada'),'purple':('#800080','#dad'),'orange':('#ff7700','#ffb57d'),}SYSTEM_INDICATOR_COLOR='red'SYSTEM_INDICATOR_EXCLUSIONS=[]To exclude paths, include regex inSYSTEM_INDICATOR_EXCLUSIONS::importreSYSTEM_INDICATOR_EXCLUSIONS=[re.compile('^/[^/]+/admin/.*$'),]Example of a localhost indicator in admin;