Saravanan666/pypi-org huggingface dataset:
Package: quotient-security-check
Check Whitelisted IPThis is a simple security package to check whether client IP is allowed to access the flask`s backend APIs.Before every endpoint is served, it will check for the remote IP if it exists in the list of white listed IPs, it it exists, it returns the response otherwise throws abort error:HTTPErr: 403 AbortSetupfromflaskimportFlaskfromsecurity.check_ipimportIPCheck# Initialize the Flask appapp=Flask(__name__)# import IP_list from the config file or declare it hereip_list=<>ipcheck=IPCheck(app,ip_list)Nginx RoutingBy default headers of the incoming request gets updated with localhost IP when it is passed to the backend Nginx server.
In order to get the real IP of the client/LAN, we need to do following configurations in the nginx config:server {
    real_ip_recursive on;
}

location / {
    proxy_set_header  Host $host;
    proxy_set_header  X-Real-IP $remote_addr;
    proxy_set_header  X-Forwarded-For $remote_addr;
    proxy_set_header  X-Forwarded-Host $remote_addr;
   }sample incoming request header dict after naking above changes in Nginx{'wsgi.version': (1, 0), 'wsgi.url_scheme': 'http', 
'wsgi.input': '<_io.BufferedReader name=5>', 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>,
'wsgi.multithread': True, 
'wsgi.multiprocess': False, 'wsgi.run_once': False, 
'werkzeug.server.shutdown': <function WSGIRequestHandler.make_environ.<locals>.shutdown_server at 0x7fba5d1bd598>, 
'SERVER_SOFTWARE': 'Werkzeug/0.14.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'PATH_INFO': '/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': 39534, 'SERVER_NAME': '127.0.0.1', 'SERVER_PORT': '8002', 'SERVER_PROTOCOL': 'HTTP/1.0', 
'HTTP_HOST': '172.30.1.23', 
'HTTP_X_REAL_IP': '10.21.120.11', 
'HTTP_X_FORWARDED_FOR': '10.21.120.11', 
'HTTP_X_FORWARDED_HOST': '10.21.120.11', 
'HTTP_CONNECTION': 'close', 'HTTP_PRAGMA': 'no-cache', 
'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36', 
HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-GB,en-US;q=0.9,en;q=0.8', 'werkzeug.request': <Request 'http://10.21.120.11/' [GET]>}
Package: quotly
QuotlyA quoting bot for 'Discord Hack Week'.Install & UsageUsing pip:pip install quotlyTo tell quotly to use your discord-bot token type:python -m quotly --token='<TOKEN>'To start quotly type:python -m quotly --runYour discord-bot token is stored inside an.envfile inside your working directory.
The quotes are stored inside a SQLite database which is also placed in the current working directory.CommandsAdd new quote:!quotly-add "<quote>" <author>After adding the quote to database, the command-call is deleted from channel and the user
receives a dm with a confirmation that the quote was added.Get random quote:!quotly-getGet random quote from specific author:!quotly-get <author>Planned FeaturesMention discord users in quoteCommand for getting a specific quoteWeb-interfaceLicenseMIT
Package: qupy
Copyright (c) 2018 Ken NakanishiPermission 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.Description: UNKNOWN
Platform: UNKNOWN
Package: quqcs
qucuQUantum概述qucuQuantum 是基于 NVIDIA cuQuantum 开发的量子线路模拟器，可与启科量子编程框架QuTrunk集成，实现基于本地GPU服务器的量子线路模拟计算加速。qucuQuantum 目前只支持 State Vector 的量子线路模拟qucuQuantum 基于 Python 语言，提供门级别的 API， 包括H, CH, P, CP, R, CR, Rx, Ry, Rz, Rxx, Ryy, Rzz, X, Y, Z, S, T, Sdg, Tdg, SqrtX, CSqrtX, SqrtSwap, Swap, CSwap, CNot, MCX, CY, MCZ, U1, U2, U3, U, CU, ISwap, SqrtXdg, PH等量子门qucuQuantum 目前只支持与QuTrunk本地集成，需要与QuTrunk部署在同一台 NVIDIA GPU 服务器上。下载和安装qucuQuantum 作为独立的库，与 runtime 集成，由 runtime 完成部署安装。使用方法qucuQuantum 库引入QuTrunk代码中from qucuQuantum.cuQuantum import BackendcuQuantum在QuTrunk代码中，构造QCircuit对象时，指定backend为BackendcuQuantum,circuit = QCircuit(backend=BackendcuQuantum())示例代码以下示例展示了利用 QuTrunk 运行 bell-pair 量子算法：# import packagefromqutrunk.circuitimportQCircuitfromqutrunk.circuit.gatesimportH,CNOT,Measure,AllfromqucuQuantum.cuQuantumimportBackendcuQuantum# allocate resourceqc=QCircuit(backend=BackendcuQuantum())qr=qc.allocate(2)# apply quantum gatesH*qr[0]CNOT*(qr[0],qr[1])All(Measure)*qr# print circuitqc.print()# run circuitres=qc.run(shots=1024)# print resultprint(res.get_counts())# draw circuitqc.draw()运行结果：许可证qucuQuantum 是自由和开源的，在Apache 2.0许可证版本下发布。** 依赖 **内容要求GPU 架构Volta, Turing, Ampere, Ada, HopperNVIDIA GPU Compute Capability7.0+CUDA11.xCPU 架构x86_64, ppc64Ie, ARM64操作系统LinuxGPU 驱动450.80.02+ (Linux)
Package: quran
Quran.com APIThis is a python wraper forquran.comv3 apiAPI will respond with English content by default, but you can get content in other language for most api calls using language query parameters. You can pass language id or language iso code as query string value. For list of available language seelanguagesendpoint.Using quran.comInstallingpython3-mpipinstallgit+https://github.com/dreygur/Quran.com.gitorpipinstallgit+https://github.com/dreygur/Quran.com.gitImporting Quran:fromquranimportQuranqur=Quran()MethodsfromquranimportQuranqur=Quran()# All the methods returns a dictionary object# Getting all Recitationsqur.get_recitations# Getting all available Translationsqur.get_translations()# Getting all avalailable Languagesqur.get_languages()# Getting all Tafsirs available in this apiqur.get_tafsirs()# Getting all Chapters namesqur.get_chapter(6,info=True,language='bn')# Keyworded arguments are optional# Getting all the Verses from a chapterqur.get_verses(6)
Package: quranpy
quranpyPython Package to interact with the Glorious Qur'an!This package uses theAl Quran CloudAPI to bring you verses and surahs of the Qur'an.Start by importing the package:importquranpyFeatures:Get verses of the Qur'an on demandverses=quranpy.show_verses(ayah="112:2-4",edition=quranpy.Editions.sahih_international)print(verses)# will show Surah Ikhlas verses 2, 3 and 4 with Sahih International translation['Allah, the Eternal Refuge.','He neither begets nor is born,','Nor is there to Him any equivalent."']Easy info on Surahs of the Qur'anal_lail=quranpy.Surah(chapter=quranpy.Chapters.layl,edition=quranpy.Editions.pickthall# will show the Pickthall translations)print(str(al_lail))print(al_lail.number)print(al_lail.arabic_name)print(al_lail.name)print(al_lail.translation)print(al_lail.period)print(al_lail.show_verses("1-3"))Surah Al-Lail - The Night
92
سورة الليل
Al-Lail
The Night
Meccan
[By the night enshrouding, And the day resplendent, And Him Who hath created male and female,]Search for terms which appear in the Qur'anresults=quranpy.Search(term="Moses",edition=quranpy.Editions.yusufali,surah=quranpy.Chapters.anbiya)print(results)print(results.verses)2 count(s) of "Moses" in Surah Al-Anbiyaa (in this edition)
[In the past We granted to Moses and Aaron the criterion (for judgment), and a Light and a Message for those who would do right,-, Before this We wrote in the Psalms, after the Message (given to Moses): My servants the righteous, shall inherit the earth."]For more information,read the documentation.Seetest.pyfor more in depth examples and ways to use the lib.Assalamwalaikum warahmatullahi wa barakatuhu!
Package: quran.py
quran.pyAn easy to use API wrapper for Quran.com v4 written in Python.InstallationUse the package managerpipto install. (Gitrequired as well.)pipinstallgit+https://github.com/Jadtz/quran.py.gitUsagefromquran.versesimportVersesvrs=Verses()vrs.get_chapter()# returns complete chapter from Quran.vrs.get_juz()# returns all verses from a specific juz(1-30).vrs.get_page()# returns all verses of a specific Madani Mushaf page(1 to 604).vrs.get_hizb()# returns all verses from a specific Hizb( half(1-60).vrs.get_rub()# returns all verses of a specific Rub number(1-240).vrs.get_verse()# returns a specific ayah with key.#example for verse key, "10:5" is 5th ayah of 10th surah.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: quran-rofi
Al-Quran RofiAl-Quran dengan Terjemahan / Tafsir JalalaynInstallRequirementsRofixclipInstallasipip install quran-rofiConfigurePengaturan font Quran dan Murotal ada di file~/.config/quran-rofi.ini, untuk contoh confignya adadisiniFile Murotal ada di folder~/.local/share/Quran/murotal/, untuk contoh formatnya  adadisiniFontUpdate cache font dengan :$ fc-cache -fvPreview Al-Quran RofiPerubahan0.1.8Menggunakanalquran-id0.1.10Menambahkan fitur murotal
Package: qurator-sbb-tools
This package currently provides:A set of tools to perform NER+EL on the digitalized collections of the SBB.A set of tools for Wikidata/Wikipedia knowledge-base extraction.A set of tools to perform and visualize topic-modelling on the digitalized collections of the SBB.Installation:Setup virtual environment:virtualenv --python=python3.6 venvActivate virtual environment:source venv/bin/activateUpgrade pip:pip install -U pipInstall package together with its dependencies in development mode:pip install -e ./
Package: qurator-sbb-utils
This package provides shared functionality forsbb_toolssbb_knowledge-basesbb_nersbb_nedsbb_topic-modellingsbb_web_integrationpage2tsvInstallation:Setup virtual environment:virtualenv --python=python3.6 venvActivate virtual environment:source venv/bin/activateUpgrade pip:pip install -U pipInstall package together with its dependencies in development mode:pip install -e ./
Package: qurator-tsvtools
TSV - Processing ToolsCreate .tsv files that can be viewed and edited withneat.Installation:Clone this project and theSBB-utils.Setup virtual environment:virtualenv --python=python3.6 venvActivate virtual environment:source venv/bin/activateUpgrade pip:pip install -U pipInstall package together with its dependencies in development mode:pip install -e sbb_utils
pip install -e page2tsvPAGE-XML to TSV Transformation:Create a TSV file from OCR in PAGE-XML format (with word segmentation):page2tsv PAGE1.xml PAGE.tsv --image-url=http://link-to-corresponding-image-1In order to create a TSV file for multiple PAGE XML files just perform successive calls
of the tool using the same TSV file:page2tsv PAGE1.xml PAGE.tsv --image-url=http://link-to-corresponding-image-1
page2tsv PAGE2.xml PAGE.tsv --image-url=http://link-to-corresponding-image-2
page2tsv PAGE3.xml PAGE.tsv --image-url=http://link-to-corresponding-image-3
page2tsv PAGE4.xml PAGE.tsv --image-url=http://link-to-corresponding-image-4
page2tsv PAGE5.xml PAGE.tsv --image-url=http://link-to-corresponding-image-5
...
...
...For instance, for the fileexample.xml:page2tsv example.xml example.tsv --image-url=http://content.staatsbibliothek-berlin.de/zefys/SNP27646518-18800101-0-3-0-0/left,top,width,height/full/0/default.jpgProcessing of already existing TSV files:Create a URL-annotated TSV file from an existing TSV file:annotate-tsv enp_DE.tsv enp_DE-annotated.tsvCommand-line interface:page2tsv [OPTIONS] PAGE_XML_FILE TSV_OUT_FILE

Options:
  --purpose [NERD|OCR]      Purpose of output tsv file.
                            
                            NERD: NER/NED application/ground-truth creation.
                            
                            OCR: OCR application/ground-truth creation.
                            
                            default: NERD.
  --image-url TEXT
  --ner-rest-endpoint TEXT  REST endpoint of sbb_ner service. See
                            https://github.com/qurator-spk/sbb_ner for
                            details. Only applicable in case of NERD.
  --ned-rest-endpoint TEXT  REST endpoint of sbb_ned service. See
                            https://github.com/qurator-spk/sbb_ned for
                            details. Only applicable in case of NERD.
  --noproxy                 disable proxy. default: enabled.
  --scale-factor FLOAT      default: 1.0
  --ned-threshold FLOAT
  --min-confidence FLOAT
  --max-confidence FLOAT
  --ned-priority INTEGER
  --help                    Show this message and exit.
Package: quri-parts-openqasm
QURI Parts OpenQASMQURI Parts OpenFermion is a support library for using OpenQASM 3 with QURI Parts.Note: some gates (SqrtX, SqrtXdag, SqrtY, SqrtYdag) are not implemented yet.DocumentationQURI Parts DocumentationInstallationpip install quri-parts-openqasmLicenseApache License 2.0
Package: quri-parts-riqu
QURI Parts riquriqu (RESTInterface forQuantum Computing) is an interface for using quantum computers
through cloud services and designed by Center for Quantum Information and Quantum Biology, Osaka University (referred to as QIQB).QURI Parts riqu is a support library for using riqu interface with QURI Parts, developed by QIQB.This package is experimental and may undergo breaking changes without notice.
Use it at your own risk.InstallationQURI Parts requires Python 3.9.8 or later.Usepipto install QURI Parts riqu.pip install quri-parts-riquInstallation from local source treeIf you check out the QURI Parts riqu repository and want to install from that local source tree, you can usepoetry installcommand.poetry installDocumentation and tutorialsQURI Parts DocumentationQURI Parts riqu DocumentationQURI Parts riqu TutorialsRepositoryQURI Parts RepositoryQURI Parts riqu RepositoryRelease notesSeeReleases pageon GitHub.Contribution guidelinesIf you are interested in contributing to QURI Parts, please take a look at ourcontribution guidelines.AuthorsQURI Parts riqu developed and maintained byQIQB. All contributors can be viewed onGitHub.LicenseApache License 2.0
Package: qurix-package-template
Python package templateTemplate for Python packages for qurix Technology.StructureA normal Python package will start with the namespacequrixas in this sample package. A sample structure is as follows:.
├── LICENCE
├── Makefile
├── README.md
├── qurix
│   └── <domain>
│       └── <module-organization-level>
│           ├── __init__.py
│           ├── __version__.py
│           └── <module>
├── requirements.txt
├── setup.py
└── tests
    ├── __init__.py
    └── test_client.pyVersioning and releasePackage versions will be identified according tosemantic versioning. The release process will deploy in bothTest PyPIandPyPI.gitGraph
    commit
    branch staging
    branch feature/some-feature
    checkout feature/some-feature
    commit
    commit
    checkout staging
    merge feature/some-feature id: "Test PyPI"
    checkout main
    merge staging id: "Release in PyPI" tag: "v0.1.0"
    branch fix/some-fix
    checkout fix/some-fix
    commit
    checkout staging
    merge fix/some-fix id: "Test PyPI again"
    checkout main
    merge staging id: "New fix release in PyPI" tag: "v0.1.1"DeploymentUsing Github Actions. See.github/worfklows/
Package: qurix-sample-package
Python package templateTemplate for Python packages for qurix Technology.StructureA normal Python package will start with the namespacequrixas in this sample package. A sample structure is as follows:.
├── LICENCE
├── Makefile
├── README.md
├── qurix
│   └── <domain>
│       └── <module-organization-level>
│           ├── __init__.py
│           ├── __version__.py
│           └── <module>
├── requirements.txt
├── setup.py
└── tests
    ├── __init__.py
    └── test_module.pyVersioning and releasePackage versions will be identified according tosemantic versioning. The release process will deploy in bothTest PyPIandPyPI.%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'rotateCommitLabel': true}} }%%
gitGraph
    commit
    branch staging
    branch feat/some-feature
    checkout feat/some-feature
    commit
    commit
    checkout staging
    merge feat/some-feature id: "Rel. Test PyPI 0" tag: "v0.1.0rc0"
    checkout main
    merge staging id: "Rel. PyPI 0" tag: "v0.1.0"
    branch fix/some-fix
    checkout fix/some-fix
    commit
    checkout staging
    merge fix/some-fix id: "Rel. Test PyPI 1" tag: "v0.1.1rc0"
    checkout main
    merge staging id: "Rel. PyPI 1" tag: "v0.1.1"DeploymentAutomatic deployments via Github Actions. See.github/worfklows/
Package: qurry
QurryQurry is a prototype of a quantum probabilistic programming language, done with theunitary fund.
The official project duration is one year, but the language may be usable before then (and in fact, can already be used to use all of the QUIL spec with some useful abstractions on top, like if statements, variable names, and so on).For more information on the progress of the project, see asummary(from early October), or an in-progresspaper.If you use Qurry or are influenced by it, all I ask is that you cite the software. A bibtex citation is available at the end of this file.
Once a paper is published, please cite that (I will update it here).Since Qurry is currently in major rework (untilSeptember 16th, 2019), the instructions and description previously available on this readme have been commented out.@misc{saldyt_2018, title={Qurry, a probabilistic quantum programming language}, url={https://github.com/LSaldyt/qurry}, journal={GitHub}, author={Saldyt, Lucas}, year={2018}, month={Nov}}
Package: quru
Quru in one sentenceQuru is a python workflow framework to easily swarm up a bunch of workers to streamly process tasks.What "Quru" means?Quru (Chinese 瞿如, pronounce keeru) is a bird-like beast with human face and three feet, initially described in Shan Hai Jing, a classic book that describes mythic geography and beasts.How to run demoYou will need to setup a rabbitmq and redis instances to get Quru running. A docker compose file for quick setup is provided indemofolder.
0. Git clone this repo and add the current path to yourPYTHONPATHenvironment variables.In your terminal,cdto the demo folder.Runmake run-infrato get rabbitmq and redis running.Runpython worker.py. This instance starts the worker that handles tasks.Runpython sender.py. This instance periodically dispatches tasks to worker.
Package: quspin-qite
QITE_CDQITE inspired cd drivingusageimportquspinimportquspin_qiterun the codecdexamples/QITEpythonrun_qite.py# python run_vqite.pyacknowledgeThe implementation are adapted fromhttps://github.com/mariomotta/QITE/blob/master/code_v4/qite.pyandhttps://github.com/Plmono/RL-qite/blob/main/gym_cut/envs/foo_env.py#L84-L142
Package: quspin-vqa
VQAGeneral purpose variational quantum algorithmsIntroductionVQA tries to unifies the variational quantum algorithm algother and provide a scalarable solution to develop VQA.Installinstall the latest version of the package.$pipinstallquspin_vqaor install locally$pipinstall-e.Before installing this package, make surequspinis installedcheckout the detailed installationherecondainstall-cweinbe58quspinUsageimportquspinimportvqarun the code / examples$cdexamples/QAOA
$pythonrun.py
Package: quta
qutaQuadratically optimizedThrustAllocationquta is an open source python package leveraging the optimization technique quadratic programming for allocation of thrust to thrusters fixed on a body in the plane (3DOFs).Example usage:from quta.thruster import AzimuthThruster
from quta.allocator import MinimizePowerAllocator

az1 = AzimuthThruster((-20, 5), 10000, 32)
az2 = AzimuthThruster((-20, -5), 10000, 32)

a = MinimizePowerAllocator()

a.add_thruster(az1)
a.add_thruster(az2)

u, res = a.allocate([0, 500, 8000], relax=False)ToDoUpdate readmeDocumentation/examplesContributions welcome through pull requests!
Package: quTARANG
quTARANGWelcome to quTARANG, a fast GPU enabled python solver to solve Gross-Pitaeskii equation.Capablities ofquTARANGIt is a solver developed to study turbulence in quantum systems specially in Bose-Einstein condensates. It can run on both GPU and CPU.The documentation of code is available atquTARANG.DependenciesquTARANGdepends on the following packages:numpycupy(If you want to use GPU)pathlibh5pymatplotlibInstllationYou can installquTARANGusingpippipinstallquTARANGHow to use:To run a simulation:Import the required librariesfromquTARANGimportxp,Params,GPESet the parametersCreate an instance of theParamsclass and set the parameters according to your need.
The parameters have been detailed in the documentation. Example:# Create an instance of the Params class for storing parameters.par=gpe.Params(N=[64,64,64],L=[16,16,16],g=0.1,dt=0.001,tmax=5,rms=[True,0,100])InitiateGPEclass
Create an instance of the GPE class by passing the Params instance created previously.# Create an instance of the GPE class.G=gpe.GPE(par)Set initial conditonYou can give initial condition in terms of wavefunction and potential by defining their functions and passing them to the functionset_init.# Set wavefunctionwfc=(1/xp.pi**(1/4))*xp.exp(-(x**2/2+y**2/2+z**2/2))# Set potentialpot=(x**2+y**2+z**2)/2G.set_init(wfc,pot)wfcfunction will be used to set the initial wavefunction andpotvariable will be used to set the initial potential.Start the simulation:G.evolve()The results are stored as hdf5 files in the cwd or the path set by the user in the Params instance.
Package: qutepart
Code editor component for PyQt5NOTEwheels released on PyPi doesn't contain C extension which speedups long file hihglighting.
Build Qutepart from sources if speed is critical for your project. You can help releasing binary parser by implementingthis issueComponent has been created forEnki editorAPI documentationFeaturesSyntax highlighting for 196 languagesSmart indentation for many languagesLine numbersBookmarksAdvanced edit operationsMatching braces highlightingAutocompletion based on document contentMarking too long lines with red lineRectangular selection and copy-pasteVim modeQutepart and KatepartKateand Katepart (an editor component) is really cool software. The Kate authors and community have created, probably, the biggest set of highlighters and indenters for programming languages.Qutepart uses Kate syntax highlighters (XML files)Qutepart contains a port from Javascript to Python of Kate indenters (12% of the code base in version 1.0.0)Qutepart doesn't contain Katepart code.Nothing is wrong with Katepart. Qutepart has been created to enable reusing highlighters and indenters in projects where a KDE dependency is not acceptable.AuthorAndrei Kopatsandrei.kopats@gmail.comBug reports, patchesGithub pageLicenseLGPL v2