Saravanan666/pypi-org huggingface dataset:
Package: django-getpaid-payu
django-getpaid-payuDjango-getpaid plugin for PayU service.NoteThis is Alpha-quality software. You are more than welcome tosend PRswith fixes and new features.InstallationFirst make sure thatdjango-getpaidis installed and configured.Then, simply install the plugin:pipinstalldjango-getpaid-payuThis should pull django-getpaid in case it’s not installed yet.ConfigurationAdd"getpaid_payu"to yourINSTALLED_APPSand add plugin configuration.# settings.pyINSTALLED_APPS=[# ..."getpaid","getpaid_payu",]GETPAID_BACKEND_SETTINGS={"getpaid_payu":{# take these from your merchant panel:"pos_id":12345,"second_key":"91ae651578c5b5aa93f2d38a9be8ce11","oauth_id":12345,"oauth_secret":"12f071174cb7eb79d4aac5bc2f07563f",},# ...}NoteIfDEBUGsetting is set toTrue, the plugin will use the sandbox API.That should be enough to make yourdjango-getpaidintegration use new plugin
and allow you to choose PayU for supported currencies.Other settingsYou can change additional settings for the plugin:confirmation_methodPUSH - paywall will send status updates to the callback endpoint hence updating status automaticallyPULL - each Payment has to be verified by calling itsfetch_and_update_status(), eg. from a Celery task.Default: PUSHpaywall_methodREST - payment will be created using REST api call to paywallPOST - an extra screen will be displayed with a confirmation button that will
send all Payment params to paywall using POST. This is not recommended by PayU.LicenceMITAuthorsDominik Kozaczko
Package: django-gevent-deploy
This library adds a simple hook into Django’smanage.pyto be able to start gevent’s WSGI
server to serve the Django project.InstallInstall the library into your Python installation viapip:pip install django-gevent-deployThen add the library intoINSTALLED_APPSwithin Django’s projectsettings.py:INSTALLED_APPS = (
    ...
    'django_gevent_deploy',
)ConfigurationYou may add two settings to yoursettings.py:GEVENT_ADDR_PORTSpecifies what address and what port should be used for the gevent’s WSGI server.
Must be astringand of the[[addr:]port]format:'8000'            # default
'localhost:8000'
'127.0.0.1:8000'GEVENT_POOL_SIZESpecifies the number of greenlets gevent can spawn for the server. Can beNoneor an integer value:None              # default
1
100UsageTo start the gevent’s WSGI server, simply callrungeventinmanage.py. The command
accepts optional argumets which are the same as described inConfigurationsection.
If the arguments are not provided, then the configuration from thesettings.pyis used,
or default ifsettings.pyis not configured:$ python manage.py rungevent [[addr]:port] [pool_size]CreditsMiroslav ShubernetskiyLicenseThis library is packaged with MIT license:Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Changelog1.0.1Added gevent monkey patching1.0Initial version
Package: django-gfiles
Simple file management of generic files.Further documentation available onReadTheDocsQuick startAdd “gfiles” and django application dependencies to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'gfiles',

    'django_tables2',
    'bootstrap3',
    'django_tables2_column_shifter',
    'django_sb_admin',
    'django_filter'
]Include the polls URLconf in your project urls.py like this:url('gfiles/', include('gfiles.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000Registerhttp://127.0.0.1:8000/register/and loginhttp://127.0.0.1:8000/login/Add files (need to be logged in)http://127.0.0.1:8000/upload_gfile/View and filter fileshttp://127.0.0.1:8000/gfile_summary/
Package: django-gf-polls
Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “polls” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'polls',
]Include the polls URLconf in your project urls.py like this:path('polls/', include('polls.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: django-ghost
Django GhostAutomatically sync a Django model with Ghost's member model.Ghost is a CMS for content creators.pip install django-ghostAdd to your INSTALLED_APPS settings:INSTALLED_APPS = [
    "django_ghost",
]Runpython manage.py migrateto create the NATS organizationals
modelsContributor's GuideCreate a development environment (requires docker & docker-compose):make docker-upRun tests and generate a coverage report:make pytestRunblacklinter:make lintSettingsBasic SettingsGHOST_SYNC_MODEL(default: return value ofdjango.contrib.auth.get_user_model())GHOST_NEWSLETTER_IDS(default: []) - newsletter ids to subscribe toGHOST_ADMIN_API_APP_IDGHOST_ADMIN_API_APP_SECRETGHOST_API_URL(default:"http://localhostor$GHOST_API_URLenvironment var)
Package: django-ghostdown
Cloning Ghost’s markdown editor to Django.LicenseDjango Ghostdown is released under the clause of the MIT License. You may find
a copy of the license inside theLEGALdirectory, or at the Open Source
Initiative website athttp://opensource.org/licenses/MIT.The editor frontend is base on the Ghost Markdown Editor from the Ghost
Project, extracted by Tim Badolato in hisGhost Markdown Editorrepository.
Modified and redistributed under the terms of the MIT License. You may find
a copy of the original license inside theLEGALdirectory.
Package: django-ghoster
ghosteris a admin theme which includes markdown features forDjangousers.Snapshotregular template:markdown template:Requirementspython >= 2.7django >= 1.9InstallationDownload it from PyPi withpip installdjango-ghosterAdd into theINSTALLED_APPSbeforedjango.contrib.admin:INSTALLED_APPS=[...'ghoster','django.contrib.admin',...]don’t forget topython manange.py collectstaticUsageInmodels.py, assume the model is defined as below:fromdjango.dbimportmodelsclassMyModel(models.Model):# the fields which are rendered into markdownchar_field=models.CharField(max_length=1024)text_field=models.TextField()# other stuffforeign_field=...file_field=...url_field=......Then inadmin.py, inheritGhosterAdminand overridemarkdown_fieldandtitle_fieldattributes with the field names.fromdjango.contribimportadminfromghoster.adminimportGhosterAdminfrom.modelsimportMyModelclassMyModelAdmin(GhosterAdmin):markdown_field="text_field"title_field="char_field"# other stufflist_display=...list_filter=...admin.site.register(MyModel,MyModelAdmin)Thenghosterwill render the model-form into 3 parts:title_field: this field will be placed in top-bar.markdown_field: markdown editor with side-by-side preview.meta_fieldsets: the rest of fields will be placed in right-sidebar.ContributingAuthor:Andy Linmaintainer:Ryan ChaoEvery code, documentation and UX contribution is welcome.
If you have any suggestions or bug reports please report them to the issue tracker
Package: django-gibson-sessions
Gibsonsession backend forDjango1. Set proper engineSESSION_ENGINE = 'gibson_sessions.sessions'2. Set common settingsSESSION_GIBSON_TIMEOUT = 100
SESSION_GIBSON_PREFIX = 'session'3. Set connection settingsSESSION_GIBSON_UNIX_SOCKET = '/var/run/gibson.sock'ORSESSION_GIBSON_HOST = '127.0.0.1'
SESSION_GIBSON_PORT = 101284. Enjoy
Package: django-gift-card-crawler
Django Admin Gift Card CrawlerDjango Gift Card Crawlerallows you to Crawl card and serial number from the share links & extract (download) csv file of all data.Why Django Gift Card Crawler?Get many links from file (txt, csv, xls) in django admin panelCrawl all links and extract card & serial numbers from all linksRun Crawling process in different process so don't worry about system slow down.Download the result of the content as csv fileSimple interfaceEasy integrationCurrently, this system uses limited providers likeegift activationspot&claim egifterrewards. If you know other providers, please introduce them to me so that I can add them to this package.How to use itDownload and install latest version of Django Gift Card Crawler:$pipinstalldjango-gift-card-crawler# or$easy_installdjango-gift-card-crawlerAddgift_card_crawlerapplication to theINSTALLED_APPSsetting of your Django projectsettings.pyfile:INSTALLED_APPS=(# ..."gift_card_crawler.apps.GiftCardCrawlerConfig",)Collect static if you are in production environment:$pythonmanage.pycollectstaticClear your browser cacheStart the app# Set up the database$pythonmanage.pymakemigrations
$pythonmanage.pymigrate# Create the superuser$pythonmanage.pycreatesuperuser# Start the application (development mode)$pythonmanage.pyrunserver# default port 8000Access theadminsection in the browser:http://127.0.0.1:8000/
Package: django-gift-registry
Create a list of gifts ideas that can then be reserved by guests.Guests can browse the list of gift ideas and reserve one by entering their email
address. The item is then marked as chosen for the information of other guests.
No registration is required, just an email address to send confirmation.Gifts ideas can be either items that you only want one of, or items that you
would be happy to receive multiples of (eg. a gift voucher). You can add a
picture, description and URL for each item.The registry doesn’t take payment or allow the gift to be directly purchase, it
simply allows gift ideas to be reserved.Quick startAdd the following required Django settings:INSTALLED_APPS=[...'django.contrib.sites','gift_registry',...]SITE_ID=1GIFT_REGISTRY_SETTINGS={'EVENT_NAME':"Alice and Bob's Wedding",}Include the gifts URLconf in your project urls.py like this:path('',include('gift_registry.urls')),and a line to serve uploaded media in development:fromdjango.confimportsettingsfromdjango.conf.urls.staticimportstaticurlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)Runpython manage.py migrateto create the Gift Registry models.Runpython manage.py createsuperuser--username=admin--email=test@example.com.Start the development server and visit the Django Admin athttp://127.0.0.1:8000/admin/gift_registry/gift/to add gift ideas.Visithttp://127.0.0.1:8000/to browse the public list.Before deployment, be sure to add a “Site” via the Django Admin to ensure the
outgoing emails include the correct link back to the website.CustomisingThere’s a good chance that you’ll want to customise the look and feel. You do
this by overriding the built-in templates.Add your own template directory tosettings.TEMPLATE_DIRSand override the base
template here. To do this, first create agift_registrydirectory in your
templates directory. Then from within the django-gift-registry package, copygift_registry/templates/gift_registry/base.htmlinto your newly createdgift_registrydirectory. Customise this base.html file with your own HTML and
CSS.Release History0.5.4 (2021-09-29)Switch to setup.cfg.0.5.3 (2021-09-22)Upgraded for Python 3 and Django 3.2.0.4.3 (2015-08-04)Initial version.
Package: django-giom
=====Django Giom Meteostation=====Read data from GIOM Meteo Station. This is proprietary software used by WebEye.servicesQuick start-----------1. Add "dust_sensor" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'giom_data',)2. Include the polls URLconf in your project urls.py like this::url(r'^giom/', include('giom.urls')),3. update settings- GIOM_URL: giom url to gather data4. set up loggers- for fluentd or td-agent  use handler name fluend.giom- for django human readable logger handler use django.giom5. add celery beat schedule settingsCELERYBEAT_SCHEDULE = {'refresh_giom_data': {'task': 'giom.tasks.refresh_giom_data','schedule': timedelta(minutes=1)}}6. Run `python manage.py migrate` to create the giom models.
Package: django-girder-style
django-girder-styledjango-girder-style is a Django library providing
Django template styling for Girder-4 applications.Note: Thedjango-girder-stylepackage is deprecated;
it has been superseded bydjango-auth-style.Benefitsdjango-girder-style provides an extensible block-oriented base HTML template.
This base template includes
a pre-builtTailwind CSS(with some minor customizations) stylesheet,Remix Iconsupport,
and theNunitofont.Additionally, django-girder-style provides styled versions of alldjango-allauthview templates.
This styling allows some limited branding customization as well.InstallationInstall django-girder-style:pipinstalldjango-girder-styledjango-allauth SupportTo enable support fordjango-allauth,
install with:pipinstalldjango-girder-style[allauth]Then enable the Django app:# settings.pyINSTALLED_APPS=[# Any project-local apps should come before "girder_style",# so templates can be overridden as needed'my_django_app.apps.MyDjangoAppConfig',...,'girder_style',...,# "allauth" must come after "girder_style"'allauth','allauth.account','allauth.socialaccount',]django-oauth-toolkit SupportTo enable support fordjango-oauth-toolkit,
install with:pipinstalldjango-girder-style[oauth-toolkit]Then enable the Django app:# settings.pyINSTALLED_APPS=[# Any project-local apps should come before "girder_style",# so templates can be overridden as needed'my_django_app.apps.MyDjangoAppConfig',...,'girder_style',...,# If "oauth2_provider" is installed, it must come after "girder_style"'oauth2_provider',]UsageBase TemplateAll project templatesshould extendgirder_style/base.html.
This provides the following blocks to inject content:head_title: The content of the<title>tag.head_extra: Additional HTML placed within the<head>tag.body: The entire HTML body content, including the<body>tag itself.For example, a templatemy_app/home.htmlmay contain:{%extends'girder_style/base.html'%}{%blockhead_title%}My App{%endblock%}{%blockhead_extra%}<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>{%endblock%}{%blockbody%}<body><div style="font-bold">Hello World.</div><i class="ri-hearts-fill"></i></body>{%endblock%}All basicTailwind CSSclasses are available for use in templates
extendinggirder_style/base.html, as illustrated in the example above.
No additional configuration of Tailwind CSS is required (or possible).
For a full list of the additional Tailwind CSS customizations applied by django-girder-style,
seethe Tailwind CSS confile fileandthe stylesheet.TheRemix Iconlibrary is also available in the same way.
Icons are typically used by adding an<i class="ri-...element, but seethe Remix Icon documentationfor full usage
information.django-allauth TemplatesWhen django-girder-style is properly installed with django-allauth, templates will automatically
be overridden with styled alternatives.
Package: django-girls
This is a simple package that simply requires the following packages:djangogunicorndj-database-urldj-staticHowever, in order to deploy into Heroku, we would also need a packaged called
“psycopg”.So after virtual environment activation we need to run:pip install django-girlsThen:pip freeze > requirements.txtAnd at least add “psycopg2” package manually by adding a file to the
requirements.txt file. Open file “requirements.txt” and a line at the end of it:psycopg2==2.5.3
Package: djangogirls-organization
DjangoGirls OrganizationPrints minimum requirements to organize Django Girls WorkshopFree software: MIT licenseDocumentation:https://djangogirls-organization.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-10)First release on PyPI.
Package: django-gishelper
..   -*- mode: rst -*-django-gishelper#################**Gishelper** is python django application with useful commands for django.gis module... contents::Requirements-------------- python >= 2.5- pip >= 0.8Installation------------**Gishelper** should be installed using pip: ::pip install git+git://github.com/klen/django-gishelper.gitSetup------- Add gishelper to INSTALLED_APPS ::INSTALLED_APPS += ( 'gishelper', )- Add gishelper router to DATABASE_ROUTERS ::DATABASE_ROUTERS = [ 'gishelper.router.GisRouter', ]- Add GISHELPER_GIS_APPS with your gis app labels to settings ::GISHELPER_GIS_APPS =  ( 'my_gis_app', )Usage------- Inspect shape maps and show django gis model structure and mapping ::./manage.py inspectgeo -f FILEPATH -m MODEL_NAME -s SRID -u USE_DB_ALIAS- Load data in postgis (mapping and filter) command parse from app.models::./manage.py loadgeo APP_NAME -f FILEPATH -m MODEL -s SRID -u USE_DB_ALIAS'loadgeo' can filtrate source, define in models file dict '<lower_model_name>_filter' where keys OGR_NAME of features and condition.Example: ::poi_filter = dict(AMENITY__in = ( city, town ))Note-----You need to setup geodjango_ as described in geodjango documentation.. _geodjango: http://docs.djangoproject.com/en/dev/ref/contrib/gis/
Package: django-gisserver
django-gisserverDjango speaking WFS 2.0 to expose geo data.FeaturesWFS 2.0 Basic implementation.GML 3.2 output.Standard and spatial filtering (FES 2.0)GeoJSON and CSV export formats.Extensible view/operations.Uses GeoDjango queries for filtering.Streaming responses for large datasets.DocumentationFor more details, see:https://django-gisserver.readthedocs.io/QuickstartInstall the module in your project:pipinstalldjango-gisserverAdd it to theINSTALLED_APPS:INSTALLED_APPS=[..."gisserver",]Create a model that exposes a GeoDjango field:fromdjango.contrib.gis.db.modelsimportPointFieldfromdjango.dbimportmodelsclassRestaurant(models.Model):name=models.CharField(max_length=200)location=PointField(null=True)def__str__(self):returnself.nameWrite a view that exposes this model as a WFS feature:fromgisserver.featuresimportFeatureType,ServiceDescriptionfromgisserver.geometriesimportCRS,WGS84fromgisserver.viewsimportWFSViewfrom.modelsimportRestaurantRD_NEW=CRS.from_srid(28992)classPlacesWFSView(WFSView):"""An simple view that uses the WFSView against our test model."""xml_namespace="http://example.org/gisserver"# The service metadataservice_description=ServiceDescription(title="Places",abstract="Unittesting",keywords=["django-gisserver"],provider_name="Django",provider_site="https://www.example.com/",contact_person="django-gisserver",)# Each Django model is listed here as a feature.feature_types=[FeatureType(Restaurant.objects.all(),fields="__all__",other_crs=[RD_NEW]),]Use that view in the URLConf:fromdjango.urlsimportpathfrom.importviewsurlpatterns=[path("/wfs/places/",views.PlacesWFSView.as_view()),]You can now usehttp://localhost:8000/wfs/places/in your GIS application.
It will perform requests such as:http://localhost:8000/wfs/places/?SERVICE=WFS&REQUEST=GetCapabilities&ACCEPTVERSIONS=2.0.0,1.1.0,1.0.0http://localhost:8000/wfs/places/?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=2.0.0&TYPENAMES=restauranthttp://localhost:8000/wfs/places/?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=restaurant&STARTINDEX=0&COUNT=1000&SRSNAME=urn:ogc:def:crs:EPSG::28992By adding&OUTPUTFORMAT=geojsonor&OUTPUTFORMAT=csvto theGetFeaturerequest, the GeoJSON and CSV outputs are returned.
The CSV output has an unlimited page size, as it's quite performant.Why this code is sharedThe "datapunt" team of the Municipality of Amsterdam develops software for the municipality.
Much of this software is then published as Open Source so that other municipalities,
organizations and citizens can use the software as a basis and inspiration to develop
similar software themselves. The Municipality of Amsterdam considers it important that
software developed with public money is also publicly available.This package is initially developed by the City of Amsterdam, but the tools
and concepts created in this project can be used in any city.
Package: django-gis-timezones
====================Django Gis Timezones====================Simple model to save timezones using geo-spatial data.Quick start-----------**1** Install using pip::$ pip install django-gis-timezones**2** Add "gum" to your INSTALLED_APPS settings like this::INSTALLED_APPS += ('gis_timezones',)**3** Download and create models::$ ./manage.py import_timezonesHistory-------1.0a3 (2017-12-04)+++++++++++++++++* Support for Django 2.01.0a2 (2017-3-09)+++++++++++++++++* Fixed order in Point.1.0a1 (2017-2-20)+++++++++++++++++* First release on PyPI.
Package: django-git-brokenlink-track
=====DJANGO GIT BROKENLINK TRACKING=====DJANGO GIT BROKENLINK TRACKING is a Django app which provides a middleware which can be used to generate Git Issue whenever the application encounters 404 page.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "git_brokenlink_track" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'git_brokenlink_track',]2. Include "git_brokenlink_track.middleware.GitIssueTrackMiddleware" in the MIDDLEWARE_CLASSES like this::MIDDLEWARE_CLASSES = [...'git_brokenlink_track.middleware.GitIssueTrackMiddleware',]3. Add DJANGO GIT BROKENLINK TRACKING settings in your settings file:GBT_DEBUG_MODE = True # If set to true issues will be logged in debug mode as well, default FalseGBT_REPO_OWNER = 'repo_owner'GBT_REPO_NAME = 'repo_name'GBT_ACCESS_TOKEN = 'user_access_token'GBT_ISSUE_LABEL = [] # multiple labels can be specified in an array ['broken-link', '404']4. Restart your development server
Package: django-gitcms
Git Based Content ManagementThis is a simple way to allow git to store information related to a website.USAGEI assume that you know django. If not, check the django website.Edit the files in example-website. The format of the files should be pretty
obvious. If not, check the corresponding load.py file (e.g., for
example-website/pages/ check gitcms/pages/load.py).WHAT’S NEWVersion 0.3.6- Add RSS for blog app
- Add disqus integration for blog appBACKGROUNDI came to this after having spent a semester maintaining a simple course
website by using restructured text and sphinx to build a website. It was very
easy to use a text editor and reST and after a bit of setting up, I had written
a script so that, after each edit, I could publish by callingpublish.sh. I
almost converted my website to this system, but I hesitated because of the
limitations of only having text.This is similar to the couple of gitwiki projects that are around the web, but
with the major difference that it can useany time of content. For example, I
want to maintain a list of upcoming conferences as a text file and have it
served on a webpage, as an online calendar, &c.
Package: django-git-hooks
## Простое приложение для выполнения команды git pull для Django-проекта!### Установка* ``` pip install django-git-hooks ```### Для использования просто добавьте в файл url.py```urlpatterns = ['',...url(r'^git/', include('git_hooks.urls')),...]```### Добавьте в Вашем репозитории Hook - для отправки POST запроса при изменениях в репозитории* Перейдите по адресу https://bitbucket.org/*YOUR-LOGIN*/*REPO-NAME*/admin/hooks* В поле "Select the hook" выбрать POST* В появившемся окне вставить ссылку http://your-domain.com/git/pull/#### Зависимости* progressbar2* prettytable* termcolor#### Совместимость* Python 2.7 точно, остальыне надо тестить* Django 1.9