Saravanan666/pypi-org huggingface dataset:
Package: django-DevOps
django-DevOpsTable of ContentsTable of ContentsWhat is django-DevOps?Getting StartedConfiguration FilesManage CommandsDirectory StructureLicenseWhat is django-DevOps?The goal of this repository is to provide a set of programmatic tools to help you build and deploy your Django projects. This is done by defining best practices for the following:Service and Config file managementAuto deploy from GITGuided feature implementationNo more returning to the same Stackoverflow pages every time you start a new project just to remind yourself what directory config files should be placed in. All files can now be managed from a project level and quickly deployed/updated.Getting StartedTo install the package, run the following command:pipinstalldjango-DevOpsThen adddjango_devoopto yourINSTALLED_APPSlist in yoursettings.pyfile.INSTALLED_APPS=[...'django_devops',...]For additional pip information visit:https://pypi.org/project/django-DevOps/Configuration FilesUnder your project folder create aconfig_filesandservice_filesfolder to place files to be deployed.A config file with the same name as the project will be treated as the NGINX config file and copied to site-available.Manage CommandsCommandDescriptiondevopsGuided project review. (Recommended)do_guide_accountWalks through the guide for user account management.prep_gunicornPrepares the gunicorn config file for use with gunicorn.prep_celeryPrepares the celery config file for use with celery.prep_nginxPrepares the nginx config file for use with nginx.update_servicesSimilar to "collectstatic", this command will deploy config and service files from the project folder.Directory Structure.
├── .github             # CI/CD using GitHub Actions and other functions.
└── django_devops       # Main package directory.LicenseThis project is licensed under the terms of theMIT license.
Package: django-devotionals
Django devotionals==================A demo application created as part of the 5Q programming challenge. The app handles the input and display of daily devotionals, including a django management command to import a csv file loaded with devotionals.Install---------If the project were uploaded to pypi, it would be a simple:```pip install django-devotionals```But it's not, so don't try.Else you could follow whatever procedure you use to install python packakges (easy_install, etc)Configuration--------------Currently there is little to configure. The important part is to wire it up in your django project:```INSTALLED_APPS = (...'devotionals',...)```In your urls:```urlpatterns += patterns('',...(r'^devotionals/', include('devotionals.urls')),...)```Templates (& URLs)--------------------All templates go in a 'devotionals' directory in your TEMPLATE_DIR:```devotional_list.html (/)devotional_year_archive.html (/<YYYY>/)devotional_month_archive.html (/<YYYY>/<MMM>/)devotional_detail.html (/<YYYY>/<MMM>/<DD>/)```
Package: django-dev-protector
django-dev-protector====================https://github.com/ElusiveSpirit/django-dev-protectorThe app for freelance developers, that blocks site if needed.It can be used in situations when a client don't want to pay your work. The app blocks all requests to the site and shows a message of this situation.Installationpip install django-dev-protectorsettings.py```INSTALLED_APPS = [...# import django_dev_protector'django_dev_protector',]MIDDLEWARE = [# set middleware class'django_dev_protector.middleware.ControlMiddleware',...]```Settings--------```# render a simple templatePROTECT_TEMPLATE_NAME = 'django_dev_protector/index.html'# if redirect url is set, then default template would be# redirects person after 10 secPROTECT_REDIRECT_URL = 'http://your_client_opponent_site.com/'```By default server is unblockedUsage-----You need to save your django SECRET_KEY from settings first```SECRET_KEY = '...```After you are able to block or unblock site with POST requests```{"key": <SECRET_KEY>,"status": true}POST to http://<your_domain>/django_dev_protector/```An example```curl \-H "Content-Type: application/json" \-X POST -d '{"key": "<SECRET_KEY>", "status": true}' \http://<your_domain>/django_dev_protector/```Localize--------The app template support Russian. You only need to switch Russian in settings.```LANGUAGE_CODE = 'ru-ru'USE_I18N = True```
Package: django-devsafe
![django-devsafe](http://i.imgur.com/MhtKl25.gif)django-devsafe==============Safely work with a production database in an insecure environment. **django-devsafe** scrambles sensitive user data so that you don't accidentally expose the private information of your users during testing.Quick start-----------0. Install django-devsafe```pythonpip install django-devsafe```1. Add "devsafe" to your INSTALLED_APPS setting like this:```pythonINSTALLED_APPS = (...'devsafe',)```2. Optionally, you can use your settings file to define additional profile fields to scramble. Your User object musthave a **get_profile()** method to access these fields.```pythonDEVSAFE_FIELDS = ['secret_payment_token', 'secret_api_key']```3. Invoke devsafe!```bashpython manage.py devsafe```Usage----------```bashUsage: manage.py devsafe [options]Scrambles your sensitive user data. By default, this just does email addresses and passwords. Omits superusers and staff.EXAMPLE:/manage.py devsafeOptions:--dry                 Dry run, does not actually scramble data. DefaultFalse.--quiet               Be quiet. Default False.```
Package: django-dev-superuser
django-dev-superuserInstallationpip install django-dev-superuserUsageAdddjango_suto yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [
     ...
     'django_su',
 ]Runpython manage.py create_dev_suto create a superuserSettingsDJANGO_SU_CONFIG = {
    "USERNAME": "admin",
    "PASSWORD": "admin",
    "EXTRA_ARGS": {},
}
Package: django-devtools
=====django-devtools=====django-devtools is a django package which contains useful utils for web development on django: functions, validators, widgets ant etc.WARNING!!!-----------This package tested only with django 1.6.5Quick start-----------1. You can install django-devtools through pip::pip install django-devtoolsor check out last version from github: https://github.com/renkse/django-devtools.git2. Add "devtools" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'devtools',)Requirements------------django==1.6.5, pytils, PIL
Package: django-dev-urls
Installation$[sudo]pipinstalldjango-dev-urlsExamplesurls.pyfromdjango_dev_urls.urlsimporturlpatternsurlpatterns+=[...]equivalent offromdjango.confimportsettingsfromdjango.conf.urls.staticimportstaticurlpatterns=[...]ifsettings.DEBUG:urlpatterns+=static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)readme42.com
Package: django-df-api
Django DF APIModule for automatic including Djangoflow apps API to your project.Installation:Install the packagepip install django-df-apiAdd the package to your INSTALLED_APPSINSTALLED_APPS = [
    ...
    'df_api',
    ...
]Add the package to your urls.pyurlpatterns = [
    ...
    path("api/v1/", include("df_api.urls")),
    ...
]
Package: django-df-api-drf
Django DF API DRFModule for automatic including Djangoflow apps API to your project.Installation:Install the packagepip install django-df-api-drfInclude default settings fromdf_api_drf.defaultsto yoursettings.pyfromdf_api_drf.defaultsimportDF_API_DRF_INSTALLED_APPS,REST_FRAMEWORK,SPECTACULAR_SETTINGSINSTALLED_APPS=[...*DF_API_DRF_INSTALLED_APPS,...]REST_FRAMEWORK={...**REST_FRAMEWORK,}SPECTACULAR_SETTINGS={...**SPECTACULAR_SETTINGS,}Alternatively, you can include the package to yourINSTALLED_APPSmanually and set upREST_FRAMEWORKandSPECTACULAR_SETTINGSby yourself:INSTALLED_APPS = [
    ...
    'df_api_drf',
    ...
]

REST_FRAMEWORK = {
    ...
}

SPECTACULAR_SETTINGS = {
    ...
}Add the package to your urls.pyurlpatterns = [
    ...
    path("api/", include("df_api_drf.urls")),
    ...
]DevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-df-auth
django-df-authThis is a simple opinionated module that implements JWT authentication via REST API.
For more complex applications please consider using an external authentication service such ashttps://goauthentik.ioThe module is a glue and uses:drf - for the APIsimplejwt - for JWTpysocial - for social logindjango-otp* for otp and 2fatwilio - for text messagesThe module also provides very limited extra functionality to the packages above:otp devices management OTPDeviceViewSetCreate, Deleteuser registration and invitation methods and templatestandard User fields = first_name, last_name, email, phoneextra User fields / serializer override in settingsphone number white/black listing rules (to be removed?) => registration identity blacklist?Blacklisting:phone / email registration blacklisting (e.g. premium numbers, disposable emails ) regexotp sending blacklistingip address blacklisting (honey trap)usernames pattern - avoid religiously offensive wordsThe OTP supports following flows:otp (email/phone/static/totp) verification - can also be used for confirming email/phone2FAmagic signin linkRegistration
Signup
2FA Management
Package: django-df-cards
Django DF CardsModel mixins to provide image/title/description and other fields to be displayed as cards.Installation:Install the packagepip install django-df-cardsUsage:fromdf_cards.modelsimportTitledCard,ThumbnailMixin,FullImageMixinclassPost(TitledCard,ThumbnailMixin,FullImageMixin):passwill give youPostmodel with the following fields:title- CharFielddescription- TextFieldthumbnail- ImageFieldfull_image- ImageFieldsequence- PositiveIntegerFieldDevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-df-chat
django-df-chatDevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytestNew DesignModel DataChatRoomname = strdescription = stravatar = ImageFieldtype = Enum: 'private_messages', 'group', 'channel'is_public = BooleanField(default=False)  # does appear in search results; can be joined by anyoneRoomUserroom = ForeignKey(ChatRoom)user = ForeignKey(settings.CHAT_USER_MODEL)muted = BooleanField(default=False)created_by = ForeignKey(ChatUser)last_seen_at = DateTimeField()  # To show how many messages are unreadSomehow we need to manage perms per room:can_add_userscan_remove_userscan_create_messagescan_delete_messagescan_delete_own_messagescan_edit_messagescan_edit_own_messagescan_edit_roomcan_delete_roomIt could be JSONField with list of permissions. Or separate RoomUserPermission model (room_user fk + permission Enum).ChatMessageroom = ForeignKey(ChatRoom)user = ForeignKey(settings.CHAT_USER_MODEL)text = TextField()ChatMessageMediamessage = ForeignKey(ChatMessage)chat_media = ForeignKey(ChatMedia)sequence = IntegerField()ChatMediamedia = FileFieldChatMessageReactionmessage = ForeignKey(ChatMessage)user = ForeignKey(settings.CHAT_USER_MODEL)reaction = CharField(max_length=255) -- Constrained in settings: onlylike/dislikeoremojior custom text.API:chat_room:listcreateretrieveroom_user:listcreateretrieveupdatedeletechat_message:listcreateretrieveupdatedeletechat_media:createretrievechat_message_reactions:list (for specific message only or for myself)createretrievedeleteUse cases:Private messages: room with 2 users. Nobody can add other users to the room. Both can delete the room.Group: room where everybody can create a message. Everybody can add other users to the room. Only is_owner can delete the room.Channel: room where onlyadmincan create a message. Everybody can add other users to the room. Only is_owner can delete the room.Flows:Send picture to a room:Create chat_media, retrieve media_idCreate chat_message with media_idCreate a chat on 3 people:Create new room type=groupCreate room_user for each userCreate chat_message with text="User X created a chat" and room_idCreate a news channel:Create new room type=channelAdd User to the room with can_add_users=True, can_write_messages=True (and other perms). So user can post news to the channel.Add create other room_users without perms. So they can read the channel.
Package: django-df-documents
Django DF DocumentsModule for serving markdown documentsInstallation:Install the packagepip install django-df-documentsInclude defaultINSTALLED_APPSfromdf_documents.defaultsto yoursettings.pyfromdf_documents.defaultsimportDF_DOCUMENTS_INSTALLED_APPSINSTALLED_APPS=[...*DF_DOCUMENTS_INSTALLED_APPS,...]DevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-df-geolocation
Django DF GEO LocationDjangoFlow utilities to work with geolocations and addressesInstallation:Install the packagepip install django-df-geolocationInclude defaultINSTALLED_APPSfromdf_geolocation.defaultsto yoursettings.pyfromdf_geolocation.defaultsimportDF_GEOLOCATION_INSTALLED_APPSINSTALLED_APPS=[...*DF_GEOLOCATION_INSTALLED_APPS,...]DevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-df-notifications
Djangoflow Omnichannel NotificationsOpinionated Django Omnichannel NotificationsPrinciplesOpinionated:Create a set of strict guidelines to be followed by the users
and developers. Well defined and consistent guidelines reduces errors and
unwanted side-effects. Framework should be easy to understand, implement and maintain.Secure:Follow the industry best practices secure software development; communications;
storage as well as long term maintenance. Always evaluate the risk and trade-offs in
appropriate contexts.Clean code:Strictly follow DRY principle; write your code for other developers
to understand; document and keep documentation updated; automate testing your code,
packaging, deployments and other processes; discuss your ideas before implementing unless
you are absolutely sure; be a good craftsmen.Open:Offer source code and related artifacts under open source licenses. Build
and manage a collaborative community where everyone is welcome.Configurable:Provide ways to change behavior, appearance and offer extension points
everywhere possible.Reuse:Do not reinvent the wheel. Use existing high-quality modules as much as possible.Endpointsdevices/action-categories/Data model...Views and templates...DevelopmentRunning test application.Here you can check admin and API endpoints.python3 -m venv venv
. venv/bin/activate
pip install -e .[test]
./manage.py runserverRunning tests# Without coverage report
make test

# With coverage report
make test-covDeploying new versionChange version insetup.cfgand push new tag to main branch.git tag 0.0.x
git push --tagsOther modules and links out there...SponsorsApexive OSS
Package: django-dform
DForm is a survey creation and management tool for Django.  Features include:admin based editorBootstrap 3 formsversion control on survey questionsInstallationAdd ‘dform’ to yoursettings.INSTALLED_APPSfield.The URLs for DForm are split into two files, the first is for the admin pieces,
the second for form submission.  By default the form submission pieces have no
security or control on them and the correct usage of URLs will result in
creating and/or editing of any survey.  To fine tune what can be accessed you
can either use the permissions hook, or not include the submission URLs and
wrap the given views in your own.  To use the default, include both URL sets
in yoururls.pyfile:urlpatterns+=(url(r'dform/',include('dform.urls')),url(r'dform_admin/',include('dform.admin_urls')),)See the documentation for more information on using the permission hook or
what views to wrap.Run:$manage.pymakemigrations$manage.pymigrateDemo InstallationA full django project is included in the repository that is used for testing
and can give you a quick idea what DForm is about.  The project is available
inextras/sample_site$cddjango-dform$pipinstall-rrequirements.txt$cdextras/sample_site$pipinstall-rrequirements.txt$./resetdb.sh$./runserver.shDocsDocs available at:http://django-dform.readthedocs.io/en/latest/
Package: django-dfp
Django DFPApp that provides tags to fetch Google DFP ads.ContentsDjango DFPOverviewInstallationUsageAuthorsChangelog0.4.10.40.3.30.3.20.3.10.30.2.20.2.10.20.1.20.1.10.1OverviewGoogle provides server side adds via its DFP service. This product is inspired
by the code athttp://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1651549. To keep
the Django implementation as simple as possible this product changes the order
of the Javascript from that page.InstallationInstall or adddjango-dfpto your Python path.Adddfpto yourINSTALLED_APPSsetting.UsageLoaddfp_tagsin your template with{% load dfp_tags %}. Call{ %dfp_footer %}once near the end of your document body. You would typically call it just
before the closing body tag.An example tag is{% dfp_tag “/1234/travel” 300 250 interests=”sports,music” position=”top” color=variable foo=bar %}String values are comma delimited. Note the lack of spaces around the comma.
Both keys and values can be variables.You may call as many tags as you want. Seehttp://support.google.com/dfp_sb/bin/answier.py?hl=en&answer=1651549for more examples.AuthorsPraekelt FoundationHedley RoosChangelog0.4.1Fix error in manifest.0.4Move javascript to a template so it can be customized.0.3.3Change Django to django in setup.py.0.3.2Republish slotRenderEnded event as DFPSlotRenderEnded.0.3.1Allow targeting keys to be variables.0.3Deprecatedfp_header.Allow arbitrary targeting keys and values to be passed to{% dfp_tag %}tag as key=value pairs.0.2.2Scan for DFP div’s with javascript. In practice this means DFP ads are now cacheable.0.2.1Do not use enableSingleRequest method anymore since it destroys the ability to do subsequent DFP loads via ajax.0.2Async script loading has been re-added.Deprecate thedfp_headertag and replace withdfp_footer. DFP will now work across all browsers.0.1.2Remove async script loading since it does not work.0.1.1Allow variables to be passed as arguments to the template tag.0.1First release.
Package: django-df-remote-config
Django DF Remote ConfigModule for managing frontend application confiuration/remote_config/?part=legal&bundle_id=com.roblevine.saferide&...{
"auth": {},
"app_config": {},
"app_launch": {}
}Installation:Install the packagepip install django-df-remote-configInclude defaultINSTALLED_APPSfromdf_remote_config.defaultsto yoursettings.pyfromdf_remote_config.defaultsimportDF_REMOTE_CONFIG_INSTALLED_APPSINSTALLED_APPS=[...*DF_REMOTE_CONFIG_INSTALLED_APPS,...]DevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-df-survey
Django DF SurveyDjango DF Survey - create and manage surveys and on-boarding forms in your DjangoFlow projectInstallation:Install the packagepip install django-df-surveyInclude defaultINSTALLED_APPSfromdf_survey.defaultsto yoursettings.pyfromdf_survey.defaultsimportDF_SURVEY_INSTALLED_APPSINSTALLED_APPS=[...*DF_SURVEY_INSTALLED_APPS,...]DevelopmentInstalling dev requirements:pip install -e .[test]Installing pre-commit hook:pre-commit installRunning tests:pytest
Package: django-di
Django DIDjango dependency injection inspired byASP.NETBuildNote: these comands assume a valid~/.pypircfile is configured.See theofficial packaging docsfor more info.python3-mpipinstall--upgradebuildtwine
python3-mbuildUpload totest.pypi.orgpython3-mtwineupload--repositorytestpypidist/*Upload toPyPIpython3-mtwineuploaddist/*
Package: django-dia
GoalsSometimes you need to generate a database diagram for your Django project.django-extensionsdoes this well,
but drops non-editable file like PNG.
Even when you use SVG format you’ll waste much time with bunch of objects that are not stitched together:
when you move a table, you’ll need to move all connected arrows and captions.There was a time when you could generate .dia file directly with django-extensions.
But dia supportwas dropped.Installationpipinstalldjango-diaUsingAdddjango_diato yourINSTALLED_APPS:INSTALLED_APPS=(#...'django_dia',)And run./manage.pymake_diagram-a-e-oscheme# all apps in project./manage.pymake_diagram-e-oschememy_app1my_app2# specific appsThis will produce filescheme.diain your project directory.CompatibilityDjango >= 3.0 supported. In long term set of supported versions will be
in parity with official django support.
Package: django-diagram
django-diagramGenerate an Entity Relationship Diagram for a Django project in Mermaid formatInstallationYou can install via pip:pipinstalldjango-diagramUsageNavigate to the directory containing your Django project (the folder containing manage.py) and run:python-mdjango_diagramThe following options are available:--settings=project.settings.local- The dotted path to the settings module
(either this option must be provided or theDJANGO_SETTINGS_MODULEenvironment
variable must be set)--title="My Title"- The title to use for the diagram--app=app_name- Restrict to only a particular Django app--output=diagram.txt- The output file to write the diagram, if this option
is not provided the output will be written to stdout
Package: django-dicom
django-dicomA django app to manageDICOMfiles.This app creates the basic models for DICOM data abstraction: Study, Patient, Series, and Image.The models are complemented with some utility methods to facilitate data access.Quick startAdd "django_dicom" to your INSTALLED_APPS setting:INSTALLED_APPS = [  
        ...  
        'django_dicom',  
    ]Include the dicom URLconf in your project urls.py:path('dicom/', include('django_dicom.urls')),Runpython manage.py migrateto create the dicom models.Start the development server and visithttp://127.0.0.1:8000/admin/.Visithttp://127.0.0.1:8000/dicom/.
Package: django-dictionaryfield
# Wrapper for [jsonfield](https://github.com/bradjasper/django-jsonfield) with predefined structurethat uses set of corresponding widgets for editRequires Django 1.8+## Installation```pip install django-dictionaryfield```## UsageAdd "dictionaryfield" to installed apps in django settings file:```pythonINSTALLED_APPS = (...'dictionaryfield',...)```### Use as model field```pythonfrom collections import OrderedDictfrom django.db import modelsfrom dictionaryfield import DictionaryFieldclass MyModel(models.Model):english_data = DictionaryField("What is the first volume and issue in which the journal published full-text English?",fields=OrderedDict([('volume', fields.CharField(label='Volume', required=False)),('issue', fields.CharField(label='Issue', required=False))]))```### Use as form field```pythonfrom collections import OrderedDictfrom django.db import modelsfrom dictionaryfield import DictionaryFormFieldclass MyForm(models.Model):sample_field = DictionaryFormField("Sample field label",fields=OrderedDict([('volume', fields.CharField(label='Volume', required=False)),('issue', fields.CharField(label='Issue', required=False))]))```### Use with bootstrap3 template tagsDictionary field works with django-bootstrap3. In a template your should access child fields like this:```html{% load bootstra3 %}{% bootstrap_field form.sample_field.volume %}{% bootstrap_field form.sample_field.issue %}```