Saravanan666/pypi-org huggingface dataset:
Package: django-bKash
=====bKash_payment=====bKash_payment is a simple Django app to conduct Web-based bKash payment.Detailed documentation is in the "docs" directory.Quick start-----------1. Installation:pip install django-bKash2. Add "bKash_payment" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'bKash_payment',)3. Include the bKash_payment URLconf in your project urls.py like this::url(r'^bKash_payment/', include('bKash_payment.urls')),4. Run `python manage.py migrate` to create the bKash payment related table.5. Start the development server and visit http://127.0.0.1:8000/admin/to get necessary access.6. Visit http://127.0.0.1:8000/bKash_payment/ to manage the bkash payment.
Package: django-bkash-integration
Bkash Django Integration app is to integrate Bkash Api to Django Backend. With Minimal setup in thesettings.py, one can easily perform bkash checkout api and store response from bkash api for further audit issuesDetailed documentation is in the “docs” directory.InstallationRun this command:pip install django-bkash-integrationQuick startAdd “bkash” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'bkash',
]Include the bkash URLconf in your project urls.py like this:path('bkash/', include('bkash.urls')),Define the following constants in the version settings.py:BKASH_APP_KEY = // bkash app key
BKASH_APP_SECRET = // bkash app secret
BKASH_APP_USERNAME = // bkash app username
BKASH_APP_PASSWORD = // bkash app password
BKASH_APP_VERSION = // bkash app version
BKASH_APP_BASE_URL = // bkash app base url
BKASH_APP_PAYMENT_TOKEN_GRANT_URL = '%s/%s/checkout/token/grant' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)
BKASH_APP_PAYMENT_CREATE_URL = '%s/%s/checkout/payment/create' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)
BKASH_APP_PAYMENT_EXECUTE_URL = '%s/%s/checkout/payment/execute' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)Make sure you have postgres database and the routes are protected by some kind of oauth2 authenticationRunpython manage.py migrateto create the bkash models.Host the application in a remote server and connect from the frontend.For any query and bug please file an issue or knock me atshetu2153@gmail.comHappy Coding !!!
Package: django-blarg
Django 404 and 500 pages the blarg way.Likehttps://github.com/404andhttps://github.com/500, but for Django.Free software: BSD licenseDocumentation:http://django-blarg.rtfd.org.WarningsNot yet tested in production anywhere.No tests yet!UsageGet the package:pipinstalldjango-blargWire into your project’s root URLConf:fromblargimporterror_500,error_404urlpatterns+=patterns("",url(r"^500$",error_500,name="error_500"),url(r"^404$",error_404,name="error_404"),)Fire up the Django test serverpythonmanage.pyrunserverTest it out!http://127.0.0.1:8000/404http://127.0.0.1:8000/500TroubleshootingYou probably already have them, but you’ll need 500.html and 404.html templates in the the root of a templates directory.FeaturesThe 500 error template is 100% isolated from Django’s template mechanisms.Works with Django 1.0 upwards. Maybe for earlier, test it and see!Works with every version of Python ever supported by Django.Works on every HTTP method.Support this Epic ProjectSubmit issues and pull requestsDonate via gittip:https://gittip.com/pydannyDonate via coinbase:https://coinbase.com/checkouts/fcb91011b44028b9cfe96207eecb3bcfDonate bitcoins:14nScLtnipMmQEutCaRiVPWEw9rVm4pUnGHistory0.1.4 (2013-12-01)Repackage using twine for upload to PyPI0.1.3 (2013-11-22)Documentation corrections so Sphinx works0.1.2 (2013-11-22)Documentation corrections so Sphinx works0.1.1 (2013-11-22)Fixing minor mistakes in the README0.1.0 (2013-11-22)First release on PyPI.
Package: django-blargg
Blargg!=======**yet another** Django-powered blog. The goal of this app is to provide aminimalistic (in both number of features and code) tool for publishing amostly-text blog. Shameless plug: [bradmontgomery.net](https://bradmontgomery.net) for an example.This app provides a fairly simple `Entry` model, and a light-weight `Tag` model.Features--------* Support for `Site`* Simple content tagging* RSS and Atom Feeds* Sitemap support* Automatic cross-posting to Blogger (see below)* Support authoring content in reStructured Text (requires[docutils](https://pypi.python.org/pypi/docutils), markdown (requires[Markdown](https://pypi.python.org/pypi/Markdown) or plain old HTML.Installation------------1. Install with `pip install django-blargg`2. Add `blargg` to your `INSTALLED_APPS`3. Configure your Root URLconf: `path('blog/', include('blargg.urls', namespace='blargg'))`4. Customize your templates. There are some sample templates under`blargg/templates/blargg`, but you'll want to override these in your project.5. Add a `BLARGG` setting dict that contains the title and description to beused in your blog's RSS feeds (see below).6. (Optinally) enable Mail2Blogger (see below)### Sample BLARGG settingsBLARGG = {'title': 'Awesome blog','description': 'Entries from an awesome blog',}Mail2Blogger Support--------------------This app supports cross-posting to Blogger via email. By default, this settingis disabled. To enable Mail2Blogger, include the following settings::BLARGG = {'title': ...,'description': ...,'mail2blogger': True,'mail2blogger_email': 'username.SECRET@blogger.com',}To set your Mail2Blogger email address, view your[Mobile and email](http://www.blogger.com) settings. Entries that arecross-posted to Blogger will automatically include a link back to the originalsite (provided that you've got the `django.contrib.sites` app installed andconfigured correctly).**Warning**: *mail2blogger* appears to remove extra whitespace from your contentwhich breaks things in a `<pre>` or `<code>` blocks. If you know how toprevent this, [please let me know](https://github.com/bradmontgomery/django-blargg/issues/3).License-------This code is distributed under the terms of the MIT license. See the `LICENSE.txt` file.Contributing------------Feel free to report any issues or (better yet) pull requests for bug fixes!There's a `requirements.txt` file in this repo to help you get all thedependencies you'll likely need (for python3).Why the name "Blargg"?----------------------From http://nintendo.wikia.com/wiki/Blargg:A Blargg is a large red dragon that lives in lava and appears in Super MarioWorld. When Mario goes across a lava pit on a pile of skulls occasionallythe eyes of a Blargg will appear and then itself will try to eat Mario. Theyare found mostly in the Vanilla Dome. Strangely, they have one lazy eye.Other than that, *Blargg* is really fun to say out loud. Especially if you usea *Pirate Voice*. Go ahead, try it!**Blargg**.
Package: django-blastplus
django-blastplusA simple Django app to conduct web-based homology search with blast+.RequirementsBlast+Python 3.6+Django 3.0BiopythonInstallpipinstall-rrequirements/base.txtDownloadQuick startAdd "blastplus" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (
        'blastplus',
)Include the polls URLconf in your project urls.py like this::url(r'^blast/', include('blastplus.urls')),You can modify some defaults in blastplus.settings- e.g. modify path to nucleotide database::BLAST_DB_NUCL_LIST = [
            {
                "name": "sample1",
                "path": 'blastplus/sampledata/sample_db1/sample_db',
                "desc": "Sample database 1",
                "annotated": False, },
            {
                "name": "sample2",
                "path": 'blastplus/sampledata/sample_db2/sample_db2',
                "desc": "Sample database 2",
                "annotated": False, },
        ]Visit search pages:Blastn,TBlastn,Blastp,BlastxExampleSee ourNewtBase portalwith django-blastplus app inside.
Codenewtbase @ github
Package: django-blawg
Simple blogging applicationdjango-blawgis a very basic blogging app that was mainly made to
practice generic views and mixins. It supports multiple blogs
for users, date-based listings and comments. An already existing
user authentication system is assumed and utilized.django-blawgis
not optimized or built for large-scale usage.InstallationDownload and install from PyPI:pip install django-blawgThis will also installdjango-mpttanddjango-autoslug, as they are dependencies.Add it to yourINSTALLED_APPS, as well as‘mptt’:INSTALLED_APPS=(...'mptt',...'blawg',...)Include the urlconf of the app in your project’s urls.py:fromdjango.conf.urlsimporturl,includeurlpatterns=[...url(r'blog/',include('blawg.urls',namespace='blawg')),...]Of course, you can put it under any url you want,
liker’’orr’^mysite/myblog/’.UsageThe starting URL is some user’s username, his home page, which lists
the user’s blogs. The root URL redirects to the currently logged in
user’s home page.SettingsAll of the app settings are optional but you may want to modify them
to customize to your needs.BLAWG_TITLE_MAX_LENGTH: Maximum allowed characters for blog and entry title.Default:100BLAWG_DESCRIPTION_MAX_LENGTH: Maximum allowed characters for blog description.Default:200BLAWG_GUEST_NAME_MAX_LENGTH: Maximum allowed characters for anonymous commenter name.Default:30BLAWG_FORBIDDEN_SLUGS: List of words not allowed to be used as slugs.Default:[‘create’, ‘update’, ‘delete’]BLAWG_SLUG_MODIFIER: String to be appended to an invalid slug.Default:‘-’LicenseBSDAuthorAristotelis Mikropoulos<amikrop@gmail.com>
Package: django-bldtool
=======
bldtoolbldtool is a Django app to that adds management commands to support
developers with standard quality and build support.  These buildtools
assume python django server side, and TypeScript/react client side.Quick startBuild the bldtool installer from sroucecdpython setup.py sdistCreate your django site and vmvirtualenv -p python3.8 env. env/bin/activatepip install djangodjango-admin startprojectcd sitepip install dist/django-bldtool-X.Y.tar.gzAdd "bldtool" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'bldtool',
]Run "python manage.py qc" and update the errors until it runs
clean.  In particular update the manage.py so that the setting
import exception does not need to be covered:
except ImportError as exc: # pragma: no coverWhen creating new apps be sure to:Remove the generated files you will not be using.Update the generated files with docstrings to pass lint.Project RequirementsThis tool assumes:djangodjango_rest_frameworktypescript for js-react components.The client side is not a single page react application, but is
served with typical django templates that may have react components
as the body of some pages.Management Commandslint
^^^^
This runs pylint on all python files on all the modules.
It also runs jslint on all typescript files.coverage
^^^^^^^^
This runs tests and generates a coverage report on all apps.qc
^^^This runs both lint and coverage.
Package: django-blip
Django BlipDjango Blip is a python package that mocks any external API(s) call when running Django test(s). It allows to set globalmocked response and status code for these external API(s) calls. Notably, if you've previously used @httpretty.activate
to mock a test, Django Blip will not overwrite that behavior, ensuring backward compatibility.How to configure:pip install django-blipto install in your virtual env.AddTEST_RUNNER = "blip.custom_test_runner.BlipTestRunner"in your Django'ssettings.py.Optionally3) Add,BLIP_CONFIG={"blip_status_code":500,# Default 200"blip_response":'{"key": "value"}',# Default {}"blip_verbose":False,# Default True"blip_silently_bypass":False# Default True, If set to False, it will raise an exception if any# external API call is encountered within the test}in yoursettings.py.Also if you wanna register any additional url you can do it like this,fromblip.serviceimportBlipServiceimporthttprettyimportjsonBLIP_CONFIG={"blip_additional_global_mocks":[BlipService.BlipAdditionalGlobalMocks(request_uri="https://xyz.com",request_method=httpretty.POST,response_status_code=200,response=json.dumps({"key":"value"}),)]}Blip will give first priority to urls passed viablip_additional_global_mocks.Basic Usageimporthttprettyfromdjango.testimportTestCaseimportrequestsimportjsonclassTestBlipWorks(TestCase):@httpretty.activate(verbose=True,allow_net_connect=False)deftest_blip_do_not_alter_the_behaviour_of_existing_mocked_apis_with_httpretty(self):url="https://google.com"httpretty.register_uri(httpretty.GET,url,body=json.dumps({"key":"value"}),status=500)# blip's default behaviour is it mocks any api call and return status code = 200 and response={}# this test will ensure blip don't override existing test which is already decorated with @httpretty.activateres=requests.get(url)self.assertEqual(res.json()["key"],"value")# blip returns response = {}self.assertEqual(res.status_code,500)# blip returns default 200 status codedeftest_blip_works_and_mock_any_api_call(self):url="https://google.com"# blip's default behaviour is it mocks any api call and return status = 200 and response={}res=requests.get(url)self.assertEqual(res.json(),{})# blip returns response = {}self.assertEqual(res.status_code,200)# blip returns default 200 status codeIn the provided code examples,test_blip_works_and_mock_any_api_callshows that Blip returns a mocked status_code of 200 and an empty response {}. Additionally, intest_blip_do_not_alter_the_behaviour_of_existing_mocked_apis_with_httpretty, you can see how Blip is designed to work seamlessly with @httpretty.activate decorators, ensuring that it doesn't override existing behaviors.
Package: django-blob-storage
django-blob-storageThis is a fork from django-db-storage2OverviewWarning: In many cases, storing files in the database is a BAD idea. Your database will easily become bloated and the performance can degrade rapidly. See thisStackExchange post_ for more information... _StackExchange post:http://programmers.stackexchange.com/questions/150669/is-it-a-bad-practice-to-store-large-files-10-mb-in-a-databaseThis is a custom storage backend for storing files in the database instead of the file system and is a drop-in replacement for Django's FileSystemStorage. Some benefits of this application:no changes needed to existing models, it just works (and if it doesn't, open a ticket!)django-admin is implemented and can be used to search, upload, download and manage files100% code coverage with unit testsonly db files need to be backed upRequirementsPython (3.5+)Django (3.2+)InstallationInstallation using pip::$ pip install django-blob-storageUpdatesettings.py# Add 'dbstorage' to INSTALLED_APPSINSTALLED_APPS=['dbstorage',]# Optionally set DEFAULT_FILE_STORAGEDEFAULT_FILE_STORAGE='dbstorage.storage.DBStorage'# Optionally for tracking file accesses (currently over view)# DJANGO_DBFILE_TRACK_ACCESSED=True# Optionally set another db than default# DJANGO_DBFILE_DB = "foo"# Choose a root url for uploaded filesMEDIA_URL='/media/'Updateurls.pyurlpatterns=[...# dbstoragepath("",include("dbstorage.urls")),]Run database migrations (done automatically, when included as app)envDJANGO_SETTINGS_MODULE=tests.settingsPYTHONPATH="."poetryrundjango-adminmigrateHow to UseNo modification are needed for models to work properly.defuser_directory_path(instance,filename):return'user_{0}/{1}'.format(instance.user.id,filename)classMyModel(models.Model):file_field1=models.FileField()file_field2=models.FileField(upload_to='uploads/%Y/%m/%d/')file_field3=models.FileField(upload_to=user_directory_path)Bugs?Create an issue athttps://github.com/devkral/django-blob-storage/issues
Package: djangoblockchain-info
django package to interact with blockchain.info apiDocumentationThe full documentation is athttps://djangoblockchain-info.readthedocs.io.QuickstartInstall djangoblockchain-info:pip install djangoblockchain-infoAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'djangoblockchain_info.apps.DjangoblockchainInfoConfig',...)Add djangoblockchain-info’s URL patterns:fromdjangoblockchain_infoimporturlsasdjangoblockchain_info_urlsurlpatterns=[...url(r'^',include(djangoblockchain_info_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-02-18)First release on PyPI.
Package: django-blockedemails
django-blockedemails is a reusable app that provides a form field,
validators, and models that check if an email is being blocked, or
is disposable/throwaway.InstallationYou can install django-blockedemails with pip by typing:pip install django-blockedemailsOr with easy_install by typing:easy_install django-blockedemailsOr manually by downloading a tarball and typing:python setup.py installSettingsdjango-blockedemails adds 3 settingsSpecifies an API_KEY to use withhttp://www.block-disposable-email.com/:BLOCK_DISPOSABLE_EMAIL_API_KEY = "" # Defaults to None which disables this validatorSpecifies a different url to use for the block-disposable-email.com api:BLOCK_DISPOSABLE_EMAIL_URL = "" # Will be string formated with a dictionary with api_key and domainSpecifies if we should block an email if an exception occurs trying to check block-disposable-email.com:BLOCK_EMAIL_ON_URLERROR = False # Defaults to FalseUsageTo use the formfield simply import it and use it:from django import forms
from blockedemails.fields import EmailField

class ExampleForm(forms.Form):
    email = EmailField()
Package: django-block-ip
This is a simple application to restrict access by IP address.  There’s a few other apps that do this out there, but they tend to have other features such as rate limiting.  I think it’s best to leave rate-limiting to rate-limiting specific apps, so this just blocks IPs.Usagepip install django-block-ipAddblock_ipto yourINSTALLED_APPS.Addblock_ip.middleware.BlockIPMiddlewareto yourMIDDLEWARE_CLASSES.Runsyncdb.Add one or more entries to theBlockIPlist in the admin.
You can just enter a single IP or use a network mask, like this: 213.67.43.0/24AcknowledgmentsThis is based onhttp://github.com/svetlyak40wt/django-ban, which was based on the Justquick’s django snippet (http://www.djangosnippets.org/snippets/725/).
Package: django-blocklist
Django-blocklistThis is aDjangoapp that implements IP-based blocklisting. ItsBlocklistMiddlewareperforms the blocking, and itsclean_blocklistmanagement command deletes entries which have satisfied the cooldown period. Entries also have areasonfield, used in reporting. There are utility functions to add/remove IPs, an admin, and several management commands.This app is primarily for situations where server-level blocking is not available, e.g. on platform-as-a-service hosts like PythonAnywhere or Heroku. Being an application-layer solution, it's not as performant as blocking via firewall or web server process, but is suitable for moderate traffic sites. It also offers better integration with the application stack, for easier management.Quick startThePyPI package name isdjango-blocklist; add that to yourrequirements.txtor otherwise install it into your project's Python environment.Add "django_blocklist" to settings.INSTALLED_APPSAdd "django_blocklist.middleware.BlocklistMiddleware" to settings.MIDDLEWARERunpython manage.py migrateto create thedjango_blocklist_blockediptable.Add IPs to the list (via management commands,utils.add_to_blocklist, or the admin).Set up a cron job or equivalent to runmanage.py clean_blocklistdaily.Management commandsDjango-blocklist includes several management commands:clean_blocklist— remove entries that have fulfilled their cooldown periodimport_blocklist— convenience command for importing IPs from a fileremove_from_blocklist— remove one or more IPsreport_blocklist— information on the current entriessearch_blocklist— look for an IP in the list; in addition to info on stdout, returns an exit code of 0 if successfulupdate_blocklist— add/update one or more IPs, with optional--reasonand--cooldownvaluesThe--helpfor each of these details its available options.For exporting or importing BlockedIP entries, use Django's built-indumpdataandloaddatamanagement commands.ConfigurationYou can customize the following settings via aBLOCKLIST_CONFIGdict in your project settings:cooldown— Days to expire, for new entries; default 7cache-ttl— Seconds to cache the list of blocked IPs; default 60denial-template— For the denial response; an f-string with{ip}and{cooldown}placeholdersReportingThereport_blocklistcommand gives summary information about the current collection of IPs, including how many requests from those IPs have been blocked. See thesample reportfor more.Utility methodsTheutilsmodule defines two convenience functions for updating the list from your application code:add_to_blocklist(ips: set, reason, cooldown)adds IPs to the blocklist (reasonandcooldownare optional)remove_from_blocklist(ip: str)removes an entry, returningTrueif successful
Package: django-blockmodelbackend
Custom model backend for blocking users and ip after several attempts to access wronglyInstallationInstall django-blockmodelbackend:pip install django-blockmodelbackendAddblockmodelbackendto yourINSTALLED_APPSsettings:INSTALLED_APPS = [
        ...
        'blockmodelbackend',
]Runmigratecommand:python manage.py migrateAdd the new backend class to yourAUTHENTICATION_BACKENDSsettings:AUTHENTICATION_BACKENDS = [
        ...
        'blockmodelbackend.modelbackend.BlockModelBackend',
]ConfigurationThere is some parameters to customize the backend..MAX_ACCESS_ATTEMPTS:[3] maximum numbers of wrong authentication attempts before blocking.LOCK_DURATION:[5] lock duration in minutes.DELTA_LOCK_DURATION:[1] increase in the lock duration in minutes.USER_PERMANENT_BLOCK:[False] boolean value.IP_PERMANENT_BLOCK:[False] boolean value.BLOCK_TYPE:[both] choice betweenboth,userorip
Package: django-blockreferralspam
ContentsDjango Spam Referral BlockerInformationInstallationReleasesDjango Spam Referral BlockerInformationDjango Spam Referral Blocker removes all Spam in your Google Analytics statics. You could find many tutorials to remove referral SPAM with .htaccess, apache, nginx.If you deploy your website in Google App Engine, this App could help you.Django Spam Referral BlockeruseThis blacklistInstallationIn your settings:INSTALLED_APPS = (
    ...
    'blockreferralspam',
)

MIDDLEWARE_CLASSES = (
    ...
    'blockreferralspam.middleware.KillSpam',
)Releases0.0.1 (2015-07-13)Initial version
Package: django-blockstack-auth
Blockstack ID authentication backend for DjangoDocumentationThe full documentation is athttps://django-blockstack-auth.readthedocs.io.QuickstartInstall Django Blockstack Auth:pip install django-blockstack-authAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_blockstack_auth.apps.DjangoBlockstackAuthConfig',...)Add Django Blockstack Auth’s URL patterns:fromdjango_blockstack_authimporturlsasdjango_blockstack_auth_urlsurlpatterns=[...url(r'^blockstack/',include(django_blockstack_auth_urls,namespace='blockstack')),...]FeaturesAllows users to authenticate with their Blockstack IDEncrypts Blockstack tokens with the Django secret keyRunning testsDoes the code actually work?$ pip install detox
$ source <YOURVIRTUALENV>/bin/activate
(myenv) $ detoxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-12-05)First release on PyPI.