Saravanan666/pypi-org huggingface dataset:
Package: django-qlued
django-qluedA django package the couples together quantum hardware and endusers. It allows cold atom hardware and simulators to be accessed through theqiskit-cold-atomand thesqoolerSDK:qluedhandles the user management and stores the receivedjsonfile in an appropiate queue.qiskit-cold-atomallows the enduser to write the circuit definitions on its laptop and send them to the server in form of a nicejsonfile.sqooleracts as the SDK that pulls the the calculations from the queue and sends back the result into the storage.end devices like thesqooler-exampleor thelabscript-qc-examplecan perform the calculation and display it to the user.Getting startedYou can currently install the package via pip through:pip install django-qluedWe provide a template for a simple startup:The fully deployable example is accessible viaqlued.Examples for configurations can be found in thetestsfolder.ContributingSeethe contributing guidefor detailed instructions on how to get started with a contribution to our project. We accept differenttypes of contributions, most of them don't require you to write a single line of code.On theqluedsite, you can click the make a contribution button at the top of the page to open a pull request for quick fixes like typos, updates, or link fixes.For more complex contributions, you canopen an issueto describe the changes you'd like to see.If you're looking for a way to contribute, you can scan through ourexisting issuesfor something to work on.Join us in discussionsWe use GitHub Discussions to talk about all sorts of topics related to documentation and this site. For example: if you'd like help troubleshooting a PR, have a great new idea, or want to share something amazing you've learned in our docs, join us in thediscussions.LicenseAny code within this repo is licenced under theApache 2licence.The qlued documentation in the docs folders are licensed under aCreative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).Thanks :purple_heart:Thanks for all your contributions and efforts towards improving qlued. We thank you for being part of our :sparkles: community :sparkles:!
Package: django-qmixin
django-qmixin is a reusable Django application for extending managers and the querysets they produce.A mixin is a subclass of djqmixin.QMixin which defines some related methods that operate on a QuerySet or Manager instance. Mixins can be ‘mixed in’ to a manager class, and their methods will be made available on all instances of that class (whether on the model itself or via a relation), as well as the QuerySet instances it produces.What this achieves is the ability to add queryset-level functionality to your model with the minimum amount of work possible.
Package: django-qns
Django QiNiu Cloud Storageadd qiniu cloud support for Djangoinstallpip install django-qnsusagechange the default storage to django-qns:STATICFILES_STORAGE = 'storage.backends.qiniu_storage.QiNiuStorage'orDEFAULT_FILE_STORAGE = 'storage.backends.qiniu_storage.QiNiuStorage'add configure to the django-qns insettings.py:QINIU_STORAGE = {
    'access_key': 'ak',
    'secret_key': 'sk',
    'bucket_name': 'your bucket name',
    'domain': 'http://example.com',
    'prefix': 'some-prefix'
}
Package: django-qrcode
ContentsDjango QRInformationInstallationUsageQR-code for contact informationQR-code of Django object URLChange service for QR generatingDjango QRInformationDjango QR is a simple Django application that provides some templatetags
that allows to include automatically QR codes on the Django site.InstallationOnce is installed from PyPI, you just need to add it to your settings as
‘qrcode’:INSTALLED_APPS = (..., 'qrcode', ...)UsageIts usage is very simple. You just need to use the templatetag as follows:{% load qr_tags %}

...

{% qr_from_text "text" "size" %}
or
{% qr_from_mail "mail_address" "size" %}Where:Size is not mandatory, and defines the dimensions of the QR code as following: ‘s’ (120x120 pixels), ‘m’ (230x230 pixels), ‘l’ (350x350) or an integer with the size that you want to give to the QR-code (like 40, 80 or 500). Any other option will be ignored and will use ‘m’ as default.qr_from_mail tag just add a simple “mailto:” at the beggining, because some qr scanners can detect that as an email address in order to send it an email.QR-code for contact informationThere’s also a templatetag to render a QR-code that allows to store
some contact information, such as name, phone number, email address or
our company name.Its usage is similiar to the basics:{% qr_from contact contact "size" %}Where:Size is the same as previoslycontact should be a Python dictionary (or any other hash structure) that could contain the following elements:name- Complete namephone_numberemailurl- some url address, your blog or personal webpagecompanyFor instance, you could create a contact dictionary like the following:contact = {
    'name': 'Pablo Recio',
    'phone_number': '00000000',
    'email': 'foo@example.com',
    'url': 'http://www.zocolab.es',
    'company': 'Zocolab',
}QR-code of Django object URLAnother templatetag can be used to render a QR-code that links to a Django object URL. As
the previous templatetags, the usage is very simple:::{% qr_from_object object “size” %}Where:Size is the same as previoslyObject it’s an instance of a Django model, that must implements the ‘get_absolute_url’ method in order to get the object’s address.Change service for QR generatingBy default, django-qr uses Google Chart for generating the QR-code. But this can be changed with a new template. The default
templateqrcode/qr_tag.htmlcontains the following:<img src="http://chart.apis.google.com/chart?cht=qr&chs={{ size }}x{{ size }}&chl={{ text }}" />But if you want to use some other service, likeqrserver, you just need to add a new template in your templates dirs with
the following code:<img src="http://api.qrserver.com/v1/create-qr-code/?size={{ size }}x{{ size }}&data={{ text }}" />The idea is that yourqrcode/qr_tag.htmlcontains an img tag and the call to the service that you want, mantaining the
variablessizeanddata.
Package: django-qrcode2
提供qrcode相关的filter和viewQuick startInstall:pip install django_qrcode2Add “qrcode2” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'qrcode2',
][Optional] Include the qrcode2 URLconf in your project urls.py like this:url(r'^qrcode/', include('qrcode2.urls')),No migration neededAdd filter to template like this:{% load qrcode2 %}

<!-- if an view with name 'qrcode' is provided, 'src' will be an url, otherwise it's an base64 data blob -->
<img src="{{ 'some text' | qrcode_src }}">

<!-- insert an <img> with template inclusion -->
{% include 'qrcode2/img.html' with text='hello' %}
Package: django-qr-creator
=====Django QR Code=====Is a packageQuick start-----------1. Add "django_qr_code" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'django_qr_creator',]2. Include the django_qr_code URLconf in your project urls.py like this::path('image/', include('django_qr_creator.urls')),3. Run `python manage.py migrate` to create the polls models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create a poll (you'll need the Admin app enabled).5. Visit http://127.0.0.1:8000/image/data/qr.png to participate in the django_qr_code.Tested in python 3.6 with Django 2.0Example of use in a template----------------------------```html{% load django_qr_creator %}```Load this tags in you html template```html{% qr url='google.com' %}```For QR URL```html{% qr tel='+56948161822' %}```For QR Tel```html{% qr email='test@test.test' %}```For QR Mail```html{% qr location='40.7127753,-74.0059728' altitude='15' %}```For QR Location```html{% qr sms='+56948161822' message='this is a test' %}```For QR SMSExample in view---------------```bashfrom django.shortcuts import renderfrom django_qr_creator import Imagedef demo_image(request, param_data=1, extension='png'):return Image.get_image(str_data='http://my-site.com/{param_data}'.format(param_data=param_data),box_size=40,content_type=extension)```
Package: django-q-registry
django-q-registryA Django app to register periodic Django Q tasks.RequirementsPython 3.8, 3.9, 3.10, 3.11, 3.12Django 3.2, 4.2, 5.0Django Q2 1.4.3+This package has only been tested with the Django ORM broker.Getting StartedInstall the package from PyPI:python-mpipinstalldjango-q-registryAdd the app to your Django project'sINSTALLED_APPS:INSTALLED_APPS=[...,"django_q_registry",...,]UsageRegistering Periodic TasksThere are three supported ways to register periodic tasks:In atasks.pyfile in a Django app, using the@register_taskdecorator:# tasks.pyfromdjango.core.mailimportsend_mailfromdjango_q.modelsimportSchedulefromdjango_q_registryimportregister_task@register_task(name="Send periodic test email",schedule_type=Schedule.CRON,# https://crontab.guru/#*/5_*_*_*_*cron="*/5 * * * *",)defsend_test_email():send_mail(subject="Test email",message="This is a test email.",from_email="noreply@example.com",recipient_list=["johndoe@example.com"],)In atasks.pyfile in a Django app, using theregistry.registerfunction directly:# tasks.pyfromdjango.core.mailimportsend_mailfromdjango_q.modelsimportSchedulefromdjango_q_registry.registryimportregistryregistry.register(send_mail,name="Send periodic test email",kwargs={"subject":"Test email","message":"This is a test email.","from_email":"noreply@example.com","recipient_list":["janedoe@example.com"],},schedule_type=Schedule.CRON,# https://crontab.guru/#*/5_*_*_*_*cron="*/5 * * * *",)In a Django project'ssettings.pyfile, using theQ_REGISTRY["TASKS"]setting:# settings.pyfromdjango_q.modelsimportScheduleQ_REGISTRY={"TASKS":[{"name":"Send periodic test email","func":"django.core.mail.send_mail","kwargs":{"subject":"Test email","message":"This is a test email.","from_email":"noreply@example.com","recipient_list":["janedoe@example.com"],},"schedule_type":Schedule.CRON,# https://crontab.guru/#*/5_*_*_*_*"cron":"*/5 * * * *",},],}Setting up Periodic Tasks in ProductionAt some point in your project's deployment process, run thesetup_periodic_tasksmanagement command:pythonmanage.pymigrate
pythonmanage.pysetup_periodic_tasksThis command automatically registers periodic tasks fromtasks.pyfiles in Django apps, and from theQ_REGISTRY["TASKS"]setting. It also cleans up any periodic tasks that are no longer registered.DocumentationPlease refer to thedocumentationfor more information.Licensedjango-q-registryis licensed under the MIT license. See theLICENSEfile for more information.
Package: django-q-rollbar
django-q-rollbarADjango QError Reporter plugin addingRollbarsupport.InstallationThis plugin is intended to be included with Django Q assetuptools extra.$ pip install django-q[rollbar]Or adddjango-q[rollbar]torequirements.txt.This plugin requires Django Q version 0.8.1 or greater. Earlier versions of Django Q can incorporate rollbar support via therollbarkey in theQ_CLUSTERsettings dictionary.UsageConfigure Rollbar via the Django QQ_CLUSTERdictionary in your Django project'ssettings.py. It is important that therollbarkey be set in theerror_reporterdictionary, as this name aligns with the project's entry point for this plugin.Q_CLUSTER={'error_reporter':{'rollbar':{'access_token':'32we33a92a5224jiww8982','environment':'Django-Q'}}}Please check thePyrollbar configuration referencefor more options. Additional options defined inQ_CLUSTERare passed directly as kwargs to Pyrollbar'srollbar.init.Of course, you will need a Rollbar account and access token to use this plugin.
Package: django-qr-toolkit-core
QR-Toolkit Core packageDocumentationFull documentationExample repositoryInstallationpython3-mpipinstalldjango-qr-toolkit-coreusageAdd the package to INSTALLED_APPSINSTALLED_APPS=[# ... your other apps'qrtoolkit_core']Add the following settingsAPI_URL='/api/'# Url to the api endpoint (change this if you are setting up api and public redirect service seperatly)REDIRECT_SERVICE_URL=''# Url to the redirect service endpoint (change this if you are setting up api and public redirect service seperatly)ENVIRONMENT='DV'# Env the service is deployed in. (DV,QA,PR, etc)urls.py setupfromdjango.contribimportadminfromdjango.urlsimportpath,includefromqrtoolkit_coreimporturlsasqr_urlsurlpatterns=[path('admin/',admin.site.urls),path('api/',include(qr_urls.api_routes)),path('',include(qr_urls.code_routes))]The code routes and api routes are split up, so that you can deploy the api and public service seperatly, and optionally
deploy the api behind an api gateway. The api does not do authentication by default, but can also be configured
withdjango-rest-framework settings.If you include the admin urls, the qrtoolkit models will automatically appear in the admin dashboardThe following paths will be installed:code_routespathparametersdescription<slug:short_uuid>/slug (uuid or short_uuid of a QrCode)This is the route that will take care of routing a user (on scan)<slug:short_uuid>.[json/html]/same as route aboveThis is the same route as the above route, but suffixed with .html or .json. .html will return the same as above, while .json will redirect to the API_URL settingcall/<int:pk>/LinkUrl idThis is the route which is called when the user selects a url in Kiosk modeapi_routespathparametersdescriptionqrcodes/int:idThis is a standard REST endpoint for QrCodes, all rest routes are includedapihits/int:idThis is a ReadOnlyViewset, meaning you can only do read operations on the ApiHit model (GET + GET with id)departments/int:idThis is a standard REST endpoint for Departments, all rest routes are includedurls/int:idThis is a standard REST endpoint for LinkUrls, all rest routes are includedopenapi/-This route contains the generated openapi schema, with more documentation on the api
Package: django-q-sentry
django-q-sentryADjango QError Reporter plugin adding Sentry support.Before version 0.1.3 sentry raven was a dependency. After 0.1.3 sentry-sdk used as raven is being deprecated.InstallationThis plugin is intended to be included with Django Q assetuptools extra.$ pip install django-q[sentry]Or adddjango-q[sentry]torequirements.txt.This plugin requires Django Q version 0.8.1 or greater.UsageConfigure Sentry via the Django QQ_CLUSTERdictionary in your Django project'ssettings.py. It is important that thesentrykey be set in theerror_reporterdictionary, as this name aligns with the project's entry point for this plugin. The only required configuration entry is your Sentry DSN.Q_CLUSTER={'error_reporter':{'sentry':{'dsn':'https://******@sentry.io/<project>'}}}Please check thepython sentry client configuration docsfor more options. Additional key-value pairs defined inQ_CLUSTER['error_reporter']['sentry']are passed directly as kwargs to instantiation ofraven.Client.
Package: django-qserializer
django-qserializerDjango QSerializer started as an internalBuserproject to improve our serialization process.Database queries and serialization are two separated steps, but really ORM
coupled. Relationships must be fetched from database before serialization,
but Django don't have an easy way to setup that.Start with a custom managerSerializableManager.fromdjango.dbimportmodelsfromdjango_qserializerimportSerializableManagerclassCompany(models.Model):name=models.CharField(max_length=64)classBus(models.Model):objects=SerializableManager()company=models.ForeignKey(Company,on_delete=models.SET_NULL)A basic serializer implementation would be:classBusSerializer(BaseSerializer):select_related=['company']defserialize_object(self,obj):return{'id':self.id,'company':{'name':self.company.name,}}Add the serializer to your queryset as:buses=Bus.objects.to_serialize(BusSerializer).all()forbusinbuses:# The serialize method is bound to BusSerializer.serialize_object.print(bus.serialize())APIBaseSerializer.select_relatedList of model fields to add to queryset with aselect_relatedcall.BaseSerializer.prefetch_relatedList of model fields to add to queryset with aprefetch_relatedcall.classBusSerializer(BaseSerializer):prefetch_related=['company']defserialize_object(self,obj):return{'id':self.id,'company':{'name':self.company.name,}}BaseSerializer.prepare_querysetCallable to change the queryset. It is possible to implementselect_relatedandprefetch_relatedattributes with it, but they work together withprepare_queryset.classBusSerializer(BaseSerializer):select_related=['company']defprepare_queryset(self,qs):returnqs.annotate(state=Value('broken'))BaseSerializer.prepare_objectsPrepare objects after they are loaded to memory. Add data in bulk to them, like
fetching information from cache and attaching to loaded objects.BaseSerializer.serialize_objectRequired implementation. It converts the Django model to a serializable
dict. Avoid slow calls here because it will cause N+1 issues.BaseSerializer.serializeExecuteserialize_objectfor each model object.
Package: django-q-slack
django-q-slackA Django Q Error Reporter plugin adding Slack support.InstallationUsageConfigure Sentry via the Django Q Q_CLUSTER dictionary in your Django project's settings.py. It is important that the sentry key be set in the error_reporter dictionary, as this name aligns with the project's entry point for this plugin. The only required configuration entry is your Sentry DSN.Q_CLUSTER={'error_reporter':{'slack':{'web_hook':'https://hooks.slack.com/services/...../..../....'}}
Package: django-quantity-field
A Django application providing model and form field
to accept and store multidimensional physical quantities.RequirementsThis application depends onPintlibrary, used for operate
and manipulate physical quantities. Full documentation is
available athttp://pint.readthedocs.org/InstallationInstall django-quantity-field using pip:pip installdjango-quantity-field.UsageIn order to use a quantity field add it to your model definition:from quantity_field import ureg
from quantity_field.fields import MultiQuantityField

class Package(models.Model):
    size = MultiQuantityField(dim=3, units=(ureg.mm, ureg.cm, ureg.m))
    weight = MultiQuantityField(units=(ureg.g, ureg.kg))django-quantity-fieldcomes with the custom form field that is
used by default for editing in admin or in your forms.AccessingMultiQuantityFieldfield will returnsMultiQuantityobject
that can be used as ordinary Pint quantities.>>> from quantity_field.base import MultiQuantity
>>> size = MultiQuantity.from_list(2, 5.5, 4, str(ureg.m))
>>> size
<Quantity(44.0, 'meter ** 3')>
>>> size.dim
3
>>> [v for v in size]
[<Quantity(2.0, 'meter')>, <Quantity(5.5, 'meter')>, <Quantity(4.0, 'meter')>]WarningDon’t forget there are no global units in Pint. To use Pint quantities
in your project side by side withdjango-quantity-fielduse
Pint registry from our application.>>> from quantity_field import ureg
>>> from quantity_field.base import MultiQuantity
>>> box = MultiQuantity.from_string('42 kg')
>>> box + 2.2 * ureg.kg
<Quantity(44.2, 'kilogram')>
Package: django-quant-tick
What?Django Quant Tick downloads and aggregate candlesticks from tick data.Why?Candlesticks aggregated bydjango-quant-tickare informationally dense. Such data can be useful for analyzing financial markets. As an example, refer to"Low-Frequency Traders in a High-Frequency World: A Survival Guide"and"The Volume Clock: Insights into the High Frequency Paradigm". Lopez de Prado recommends volume bars, however they are are computationally expensive to generate.By aggregating and filtering raw ticks, they can be computed faster, with little loss in precision.This optional aggregation is by equal symbol, timestamp, nanoseconds and tick rule. As described in the accompanying projectcryptofeed-werks, aggregating trades in this way can increase information, as they are either orders of size or stop loss cascades.As well, the number of rows can be reduced by 30-50%By filtering aggregated rows, for example only writing a row when an aggregated trade is greater thansignificant_trade_filter >= 1000, the number of rows can be reduced more.How?Whenever possible, data is downloaded from the exchange's AWS S3 repositories. Otherwise, it is downloaded using their REST APIs.A database, preferably PostgreSQL, is required. Data is saved to the database after aggregation and filtering.Candles are aggregated at 1 minute intervals, and validated with the exchange's historical candle API.Notes.Supported exchanges:white_medium_square: Binance REST API (requires API key, which requires KYC)Other exchanges validate trade data downloaded from exchanges using candle data provided by exchanges. However, I did not complete KYC, and as a resident of Japan am not currently able to do so. Support is incomplete. Pull requests are welcome.:white_check_mark: Bitfinex REST API:white_check_mark: BitMEX REST API, andS3repository:white_check_mark: BybitS3repository.The REST API is no longer paginated, so data may be delayed 24 hours or more.:white_check_mark: Coinbase Pro REST APINote: Exchanges without paginated REST APIs or an S3 repository, will never be supported.InstallationFor convenience,django-quant-tickcan be installed from PyPI:pip install django-quant-tickDeploymentFor deployment, there are Dockerfiles. As well, there are invoke tasks for deployment to Google Cloud Run. Just as easily, the demo could be deployed to a VPS or AWS.If using GCP, it is recommended to use the Cloud SQL Auth proxy, and run the management commands to collect data from your local machine. Django Quant Tick will upload the trade data to the cloud.cd demo
invoke start-proxy
python proxy.py tradesThen, configure a Cloud Workflow to collect data in the cloud. There is an example workflow in theinvoke tasks.EnvironmentTo use the scripts or deploy to GCP, rename.env.sampleto.env, and add the required settings.
Package: django-quenv
In Alpha phase, no tests exist and changes are possible to occur.Django Quality Environment ReportThis app uses setuptools to gather the names of all packages in a virtualenv.From the metadata of each package, it collects all available information about
its license(s).It uses thelgtmapi to query the quality metrics of
github based packages.All data are saved first to a json file and then loaded to the database.
Only one fixture per day can be created.Finally, it creates a report of any change occurred to a package, namely:
If it wasadded,removedor itslicensehaschanged.Installationpip install django-quenvINSTALLED_APPS = [
    ...,
    'quenv',
]./manage.py migrate
./manage.py quenvConfigurationInsettings,pythe following configuration can take place:QUENV_PATH: The path where the fixtures are saved. Default:.QUENV_UPDATE_DB: DefaultTrue, ifFalseit only creates the fixtures.