Saravanan666/pypi-org huggingface dataset:
Package: pypanl
Access the Panl.com API – Python versionGetting StartedIf you have setuptools installed, to install the Panl API, type:easy_install pypanlOtherwise, unpack the distribution zipped tar-file, change directory to the
newly created folder and type:python setup.py installFor Windows, type:setup.py installCreate a Panl MonitorVisithttp://panl.com/to create an account. On the Monitors page,
click +New Monitor.Configure the new monitor as follows:Mode: on [the default]Type -> CustomName:something mnemonic here, e.g. a server hostnameError Action: AlertExpected Time: Every 15 minutesOverdue Action: Alerton the Contacts tab tick Alerts for the appropriate device
(email, SMS, etc.) and optionally add an SMS device if you need
an immediate push alert, otherwise email will be okaySaveclick on the new monitor’s name (i.e.something mnemonic),
scroll down and note the second line under the API Calls. It will
look like this:https://api.panl.com/aWfBto?up=Yes&value=23&k=6776cd9166e2c9a545e258a7e725f64eYou need to grab the Hash Code and the Access Key from this.
The “Hash Code” is the six-character string (also provided on the
Edit Monitor page), and the “Access Key” is the longer hex string.Example UsageMonitor a local RADIUS server by authenticating a test user:monitor_hash = 'aWfBto'
monitor_key = '6776cd9166e2c9a545e258a7e725f64e'

import panl.custom, panl.utility

ok = panl.utility.radius_auth('localhost', 'xyz123', 'fakeuser', 'abcd17')
panl.custom.update(monitor_hash, monitor_key, 1, ok)
Package: pypans
PypanA command-line utility that creates a freshpythonproject interactively right within your shell.The main goal of the tool is to build the project with strict static analysis templates.ToolsProductionpython 3.6, 3.7, 3.8Developmenttravispytestblackmypypylintflake8pydocstyleinterrogatecheck-manifestUsageQuick startpipinstallpypans
✨🍰✨After please runpypantool from your shell:pypanPlease modifyREADME.mdfile for your needs afterwards.Source codegitclonegit@github.com:vyahello/pypans.git
pipinstall-e.
pypanOr using direct release:pipinstallgit+https://github.com/vyahello/pypans@0.0.1
pypanLocal debuggitclonegit@github.com:vyahello/pypans.git
python-mpypans⬆ back to topDevelopment notesTestingGenerally,pytesttool is used to organize testing procedure.Please follow next command to run unittests:pytestCIProject has Travis CI integration using.travis.ymlfile thus code analysis (black,pylint,flake8,mypy,pydocstyleandinterrogate) and unittests (pytest) will be run automatically after every made change to the repository.To be able to run code analysis, please execute command below:./analyse-source-code.shRelease notesPlease checkchangelogfile to get more details about actual versions and it's release notes.MetaAuthor –Volodymyr Yahello. Please checkauthorsfile for more details.Distributed under theMITlicense. Seelicensefor more information.You can reach out me at:vyahello@gmail.comhttps://twitter.com/vyahellohttps://www.linkedin.com/in/volodymyr-yahello-821746127ContributingI would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:Clone the repositoryConfiguregitfor the first time after cloning with yournameandemailpip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependenciesCreate your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestWhat's nextAll recent activities and ideas are described at projectissuespage.
If you have ideas you want to change/implement please do not hesitate and create an issue.⬆ back to top
Package: pypanuclei
pypanuclei (Python Passive Nuclei) scannerpypanuclei is created like an alternative to the passive scanning mode inprojectdiscovery/nucleiI created it because of 3 main reasons:nuclei processraw:request in passive mode, resulting in many false positivesnuclei process dsl matchers likeHost!=ipin passive mode, resulting in most of takeover templates not work at allsometimes on large amount of files nuclei fires non-existent matcheswarnings:extractors not implemented yetonly regex, word and status matchers are implementedall other matchers like dsl are skipped (set to true)heavy regex patterns can lead to endless hang (use -et and -debug to filter)Installation:pip3 install -U pypanucleiBasic usage (cli):subfinder hackerone.com | httpx -sr -srd ./responses
git clone https://github.com/projectdiscovery/nuclei-templates.git

pypanuclei -target ./responses -t ./nuclei-templates -et ./nuclei-templates/technologies/ -et ./nuclei-templates/exposures/tokens/generic/cli options:optional arguments:
  -h, --help                show this help message and exit
  -u, -target               path to directory with saved responses
  -t, -templates            templates directory to run (list)
  -et, -exclude-templates   template or directory to exclude (list)
  -json                     json output
  -debug                    debugBasic usage (python):frompypanuclei.pypanucleiimportload_templates,check_responsestemplates=load_templates(['./nuclei-templates'],['./nuclei-templates/technologies'])forresincheck_responses('./responses',templates):print(f"[{res['template-id']}] [{res['type']}] [{res['info']['severity']}]{res['path']}")
Package: pypapago
pypapagoUnofficial python wrapper forpapago translate service.Installpipinstall-UpypapagoUsageBasic usage (English to Korean)frompypapagoimportTranslatortranslator=Translator()result=translator.translate('I am GROOT')print(result)# 나는 그루트다Set Source/Target LanguagefrompypapagoimportTranslatortranslator=Translator()result=translator.translate('카카오는 파파고를 좋아해',source='ko',target='en',)print(result)# Kakao likes papago.Supported Language CodesCodeDesckoKoreanenEnglishjaJapanesezh-CNChinesezh-TWChinese traditionalesSpanishfrFrenchviVietnamesethThaiidIndonesiaBulk TranslationParallel bulk translation with Multiprocessing.frompypapagoimportTranslatortranslator=Translator()result=translator.bulk_translate(['apple','banana'])print(result)# ['사과', '바나나']You can also set how many workers to run manually.(The more workers make your code faster but requires more system resources.)Default to CPU Cores (HyperThreading = x2)ex) Run with 2coresfrompypapagoimportTranslatortranslator=Translator()result=translator.bulk_translate(['apple','banana'],workers=2)print(result)# ['사과', '바나나']Verbose outputIf you need raw result from papago API, you can setverbosetoTrue.frompypapagoimportTranslatortranslator=Translator()result=translator.translate('I am GROOT',verbose=True)print(result)# RAW JSON Result#{'delay': 400,# 'delaySmt': 400,# 'dict': {'items': [{'entry': '<b>I</b>',# ...# 'translatedText': '나는 그루트다'}#}Detail results may change.
Package: pypapagotranslate
pypapagotranslate파이썬을 위한 파파고 라이브러리만든 사람 :SeolHa314현재 버전 : 0.1.1.2이건 무엇을 하느냐.파파고 번역의 api 이용을 편하게 하기 위해서 만든 것이다.설치pip3 install pypapagotranslate쓰는 방법이 곳을 참조해 주세요주의점언어 감지 기능은 아직 없음아직 구현된 것은 N2MT 번역 뿐이고, SMT 번역은 구현 예정.SMT 번역을 구현했습니다.여담아직 구현 초기니, 기능도 거의 없고 겉면만 만들어져 있음.TODOSMT 번역 구현하기setup.py 만들기버그 찾아보기코드 가독성 올리기테스트도 추가하기
Package: pypaperless
PyPaperlessLittle asynchronous client for Paperless-ngx, written in Python. You should at least use Python>=3.11.Find out more about Paperless-ngx here:Project:https://docs.paperless-ngx.comAPI Docs:https://docs.paperless-ngx.com/api/Source Code:https://github.com/paperless-ngx/paperless-ngxFeaturesDepends on aiohttp, works in async environments.Token authentication only.No credentials anymore.Request single resource items.Iterate over all resource items or request them page by page.Create, update and delete resource items.Almost feature complete.PyPaperlessis designed to transport data only. Your code must organize it.InstallationpipinstallpypaperlessDocumentationPlease check out thedocsfor detailed instructions and examples.Authors & contributorsPyPaperlessis written byTobias Schulz. Its his first Python project. Feedback appreciated.Check out allcontributors here.Thanks toThe Paperless-ngx TeamThe Home Assistant Community
Package: pypapers
PyPapersPyPapers is a simple commmand line tool for searching a folder of PDF documents.You can pass search terms and all arguments are joined together so to form anANDquery. By default it matches file names only, but you can use -f to search in full text.Why?I've tried many of them and finally got fed up withreference managements systems. Either too bloated with features, or lacking simplicity.Let's try to do this the simple way:All PDFs in one folder (or so)A command line tool to search themRely on OSx excellentmdfindlibrary for searchingRely on excellent Preview app for reading/editingSee also thisblog postInstallpip install pypapersUsagepypapers --helpStatusalphaComments, bug reportsPyPapers lives onGithub. You can fileissuesor pull requests there. Suggestions, pull requests and improvements welcome!
Package: pypaperwallet
pypaperwalletPython Paper Wallet based on github/pointbiz/bitaddress.orgTo installchocosee theChocolatey install pageFrom Windows shell run:chocoinstallpython--version=3.7.1
chocoinstall-yMSYS2
refreshenv.cmd
pipinstallpypaperwalletWeasyPrintmnemoicqrcode[pil]pycoinFrom MSYS2 shell run:pacman-Smingw-w64-x86_64-gtk3From Python 3.7 run:frompypaperwallet.pdf_walletimportmk_wallet,write_pdffrompypaperwallet.templateimportdisclosuremk_wallet('wallet.pdf')# For political contributions, generate disclosure formwrite_pdf(political_disclosure(),'disclosure.pdf')PGP Key:Reddit,Website,SKS Keyserver6285 FA08 FB67 B72B E4DA  4184 835F 0433 A6D5 1860Verifying package and executeFind latest release athttps://github.com/brianddk/pypaperwallet/releasesExpand "Assets" and download the "Source code (tar.gz)" aspypaperwallet.tar.gz.Download the*.tar.gz.sigfile naming itpypaperwallet.tar.gz.sigUse the GPG commandgpg --verify *.tar.gz.sigto verify the downloadExtract the contents of the.zipor.tar.gzfile to any directoryModifytest.pyto your liking and run from python 3.7 to produce the PDFs.To change wording, modify the contents oftemplate.py
Package: pypara
Python Library for Currencies and Monetary ValuesTODO: Provide a complete README.Development NotesEnter the Nix shell:nix-shellRun the test suite:python-mnoxNote:Since we are under Nix shell,noxcommand will attempt to use its
own Python interpreter pinned duringnoxinstallation. We want our own
interpreter to be used duringnoxchecks.Alternatively:nix-shell--argstrpythonpython39--run"python -m nox"nix-shell--argstrpythonpython310--run"python -m nox"nix-shell--argstrpythonpython311--run"python -m nox"Note:Python 3.9 test are not added to GitHub Actions test workflow. It
takes very long to setup the Nix shell as Python 3.9 packages are no longer
fetched from the cache.PublishingBuilding a package and uploading it to PyPI is handled by the GitHub Action upon
successful GitHub Release (using Release Please Action).However, in the event of emergency, you can still manually build a package and
upload it to PyPI:rm-Rfdist/
python-mbuild
twinecheckdist/*
twineupload-sdist/*
Package: pyparadigm
PyParadigmPyParadigm is a small library to build paradigms for psychological experiments.
It utilizes pygame, and is installable via pippip install pyparadigmYou can find the documentation including an introduction
and a tutorial over at:https://pyparadigm.readthedocs.io/en/latest/index.htmlChangelog1.2.0Adds the FreeFloatLayoutAdds the Title argument to misc.init()1.1.0adds the sleeptime argument to eventlistener.listen_until_return() and
eventlistener.wait_for_keypresses()Mousproxys can now take handler functions of arity 4. The last argument
will then be the rect of the MouseProxy. Arity 3 is still allowedfixes a bug, that made a MouseProxy not match the drawArea of a child
surfaceAdds an event handler for resize eventsAdds an event handler for Quit events1.0.9added the keep_aspect_ratio parameter to Surfaceadded normalize parameter to mat_to_surface()added dialog modulefixed a bug that would cause a crash, if misc.empty_surface() was used
with size but without initializing the windowsfixes a bug that would miss-align grid layout items, if not all rows had
the same number of elements1.0.8added misc.rgba for conversion of color codes to pygame.Color with alpha
channel, useful for text-colorsFixed a bug, that would cause a Gridlayout to crash if
a None is addedFixed a bug that would cause crashes when adding iterable objects with a
draw method to a render object with a single childAdded functions:is_left_click()is_key_press()1.0.7fixed a bug in EventListener.wait_for_n_key_presses()fixed a code sample in the tutorial1.0.6added special treatment for Surfaces in MouseProxy, so that the actual visible rect is obtained. For that I added a new method, Surface.compute_render_rect1.0.5Fixed surface_composition.Border.call()added EventListener.wait_for_unicode_char() and misc.process_char() for textinputadded EventListener.listen_until_return()added Handler class which contains factories for handler functions that can be used with EventListener.Listen()added MouseProxy, EventListener.mouse_area and EventListener.group() for basic mouse support.1.0.4Added EventListener.wait_for_keys_modifiedAdded the extras module containing functions to use numpy arrays and Matplotlib colormaps1.0.3EventListener.wait_for_keys supports varargs now1.0.2:added imports on package leveladded interactive parameter for misc1.0.1:Added PyPi readme1.0 - release
Package: pyparadiseo
For the documentation of PyParadiseo seethis.This README only gives avery short introduction.Table of ContentsInstallationUsageComponentsInstallationThe easiest way to get pyparadiseo is to install it viapip. Currently the following Python versions are supported: 3.6, 3.7, 3.8, 3.9, 3.101)Recommended: install withpipYou can install pyParadiseo withpippipinstallpyparadiseo2) Build from sourceTo build pyParadiseo, you'll need to have a few prerequisites installed on your system and set the corresponding paths insetup.pyandCMakeLists.txtTo compile the binary extension you need:cmake >= 3.14python3 >= 3.6boost-pythonboost-numpyIf you want to build pyparadiseo from source, the easiest should be to use thismanylinux2014_x86_64Docker imagewith installed prerequisites.Getting StartedThe documentation of PyParadiseo is availablehereExample of running EO's simple GA (SGA) for the One-Max test problemfrompyparadiseoimportconfig# problem dependentfrompyparadiseoimportpopulationfrompyparadiseoimportinitializerfrompyparadiseoimportevaluatorfrompyparadiseoimportoperatorfrompyparadiseo.eoimportalgo,select_one,continuatorDIM=20POP_SIZE=25MAX_GEN=100if__name__=="__main__":#set global solution type 'bin'config.set_solution_type('bin')#make pyparadiseo evaluator from python functioneval=evaluator.fitness(lambdasol:sum(sol))#generate and evaluate populationpop=population.from_init(POP_SIZE,initializer.random(DIM))evaluator.pop_eval_from_fitness(eval)(pop,pop)#assemble simple GAsga=algo.simpleGA(select_one.det_tournament(4),operator.OnePtBitCrossover(),.1,operator.DetBitFlip(),.7,eval,continuator.max_generations(MAX_GEN))# #run algo on pop and print best individualsga(pop)print(pop.best())
Package: pyparagraph
PyParagraphKnuth Plass line-breaking for Python, with PIL renderingThis package is an attempt to make it easy to render paragraphs to a PIL Image in Python, with excellent line-breaking via theKnuth-Plass algorithm. This algorithm is used by TeX and LaTeX, and is commonly called the TeX line-breaking algorithm or the LaTeX line-breaking algorithm). A simple greedy wrapping algorithm is available as a fallback. Console/text output is supported as well as PIL output.Installationpip install pyparagraphNote that a relatively recent (as of December 2022) version of setuptools is required:pip install --upgrade setuptoolsif you get errors during the install, then try again.Usage & ReferencesSeethe gitlab home pagefor documentation.LicenseThis software is licensed under the MIT License.  Copyright (c) 2022, G. Sumner Hayes.See the LICENSE.txt for full details.
Package: pyparallel
OverviewThis module encapsulates the access for the parallel port. It provides
backends for Python running on Windows and Linux. Other platforms are
possible too but not yet integrated.This module is still under development. But it may be useful for
developers.
The Windows version needs a compiled extension and the giveio.sys driver
for Windows NT/2k/XP. It uses ctypes to access functions in a prebuilt DLL.It is released under a free software license, see LICENSE.txt for more
details.Copyright (C) 2001-2016 Chris Liechticliechti@gmx.netHomepage:https://github.com/pyserial/pyparallelFeaturessame class based interface on all supported platformsport numbering starts at zero, no need to know the port name in the
user programport string (device name) can be specified if access through numbering
is inappropriateRequirementsPython 2.2 or newer“Java Communications” (JavaComm) extension for Java/JythonInstallationExtract files from the archive, open a shell/console in that directory and
let Distutils do the rest:$pythonsetup.pyinstallShort introduction>>>importparallel>>>p=parallel.Parallel()# open LPT1 or /dev/parport0>>>p.setData(0x55)ExamplesPlease look in the GIT Repository. There is an example directory where you
can find a simple terminal and more.https://github.com/pyserial/pyparallel/tree/master/examplesReferencesPython:http://www.python.orgJython:http://www.jython.orgJava@IBMhttp://www-106.ibm.com/developerworks/java/jdk/(JavaComm
links are on the download page for the respecive platform jdk)Java@SUNhttp://java.sun.com/products/
Package: pyparallelcurl
This module provides an easy-to-use interface to allow you to run multiple CURL url fetches in
parallel in Python, without threads.To test it, go to the command line, cd to this folder and run./test.pyThis should run 100 searches through Google’s API, printing the results. To see what sort of
performance difference running parallel requests gets you, try altering the default of 10 requests
running in parallel using the optional script argument, and timing how long each takes:time ./test.py 1
time ./test.py 20The first only allows one request to run at once, serializing the calls. I see this taking around
100 seconds. The second run has 20 in flight at a time, and takes 11 seconds! Be warned though,
it’s possible to overwhelm your target if you fire too many requests at once. You may end up
with your IP banned from accessing that server, or hit other API limits.The class is designed to make it easy to run multiple curl requests in parallel, rather than
waiting for each one to finish before starting the next. Under the hood it uses curl_multi_exec
but since I find that interface painfully confusing, I wanted one that corresponded to the tasks
that I wanted to run.To use it, easy_install pycurl, import pyparallelcurl, then create the ParallelCurl object:parallelcurl = ParallelCurl(10)The first argument to the constructor is the maximum number of outstanding fetches to allow
before blocking to wait for one to finish. You can change this later using setmaxrequests()
The second optional argument is an array of curl options in the format used by curl_setopt_array()Next, start a URL fetch:parallelcurl.startRequest(’http://example.com’, on_request_done, {‘somekey’:’somevalue’})The first argument is the address that should be fetched
The second is the callback function that will be run once the request is done
The third is a ‘cookie’, that can contain arbitrary data to be passed to the callbackThis startRequest call will return immediately, as long as less than the maximum number of
requests are outstanding. Once the request is done, the callback function will be called, eg:on_request_done(content, ‘http://example.com’, ch, {‘somekey’:’somevalue’})The callback should take four arguments. The first is a string containing the content found at
the URL. The second is the original URL requested, the third is the curl handle of the request that
can be queried to get the results, and the fourth is the arbitrary ‘cookie’ value that you
associated with this object. This cookie contains user-defined data.Since you may have requests outstanding at the end of your script, youMUSTcallparallelcurl.finishallrequests()before you exit. If you don’t, the final requests may be left unprocessed! This is actually also
called in the destructor of the class, but it’s definitely best practice to call this explictly.By Pete Warden <pete@petewarden.com>, freely reusable, seehttp://petewarden.typepad.comfor more
Package: pyparallelize
parallelizeparallelizeis a Python package to simplify the process of parallelising your taks in Python. It takes advantage of themultiprocessingmodule to spawn new processes for your job.RequirementsPython 3.XInstallationTo installparallelize, you can either install from the source code or usingpip.To install from source code, first clone the repository. Then, runpython setup.py installin the root directory.DocumentationTo build the documentation, runmake htmlinside thedocs/folder. The documention will be found in thedocs/build/htmldirectory. Alternatively, view documentationhere.UsageTo parallelise a task in Python, you should wrap the entire code inside a function and have the first argument of your function receive the iterable your function will be operating over.>>>fromparallelizeimportparallelize>>>deffoo(iterable:list)->int:...output=0...foriiniterable:...output=i**4...returnoutput>>>numbers=list(range(50000000))>>>%timefoo(numbers)Walltime:21.5s>>>parallelize.parallel(foo,numbers,6)Completed'parallel'in6.2743secs
Package: py-parallel-processing
OverviewProcessPool은 여러 개의 프로세스를 생성하여 각각의 프로세스에서 함수를 병렬로 처리할 수 있도록 도와줍니다. tqdm은 진행상황 바(progress bar)를 표시하는 라이브러리로, total인자에 전체 반복횟수를 넣어주면 반복문 진행상황을 보여줍니다.py_parallel_pools 함수는 some_func 함수를 params 리스트에 있는 값들을 인자로 넣어 호출하며, 병렬처리된 결과값들을 리스트 형태로 반환합니다. return_variables 리스트에는 some_func 함수의 반환값들이 들어가며, 반환값이 None인 경우는 리스트에서 제외됩니다.이 함수를 사용하면 some_func 함수를 병렬처리하여 빠르게 처리할 수 있습니다.
Package: pyparam
pyparamPowerful parameter processingFeaturesCommand line argument parser (with subcommand support)Rich type support, includingpy,json,namespace, etc.Type overwriting for parameters from command lineArbitrary parsing arguments from command lineAutomatic help page assemblingHelp page customizationCallbacks for option valuesParameter loading from configuration filesInstallationpipinstall-UpyparamDocumentationhttps://pwwang.github.io/pyparam/Basic usageexample.pyfromrichimportprintfrompyparamimportParams# program name, otherwise sys.argv[0]params=Params(prog='pyparam',desc="An example for%(prog)s")# adding parametersparams.add_param('i, int',type=int,desc="An integer argument.")params.add_param('float',default=0.1,# type float implieddesc="A float argument.")params.add_param('str',type=str,desc="A str argument.")params.add_param('flag',type=bool,desc="A flag argument.")params.add_param('c,count',type='count',desc="A count argument.")params.add_param('a',type='auto',type_frozen=False,desc="Value will be automatically casted.")params.add_param('py',type='py',desc="Value will be evaluated by `ast.literal_eval`.")params.add_param('json',type='json',desc="Value will be converted using `json.loads`.")params.add_param('list',type='list',desc="Values will be accumulated.")params.add_param('path',type='path',required=True,desc="Value will be casted into `pathlib.Path`.",callback=(# check if path existslambdapath:ValueError('File does not exist.')ifnotpath.exists()elsepath))params.add_param('choice',type='choice',default='medium',choices=['small','medium','large'],desc="One of{choices}.")params.add_param('config.ncores',default=1,# namespace config impliedargname_shorten=False,desc='Number of cores to use.')print(vars(params.parse()))Try it out:pythonexample.py$pythonexample.py\-i2\--float0.5\--strabc\-ccc\-a:int1\--py"{1,2,3}"\--json"{\"a\": 1}"\--list123\--choicelarge\--path.\--config.ncores4{'i':2,'int':2,'float':0.5,'str':'abc','flag':False,'c':3,'count':3,'a':1,'py':{1,2,3},'json':{'a':1},'list':[1,2,3],'path':PosixPath('.'),'choice':'large','config':Namespace(ncores=4)}Try more features with:python-mpyparamShell completionsHere is how the command completion infishworks:Check thedocumentation, as well as the__main__.pyto see how the completion works.