Saravanan666/pypi-org huggingface dataset:
Package: pamqp
pamqp is a low level AMQP 0-9-1 frame encoding and decoding library for Python 3.pamqp is not a end-user client library for talking to RabbitMQ but rather is
used by client libraries for marshaling and unmarshaling AMQP frames.Documentationhttps://pamqp.readthedocs.ioPython Versions Supported3.7+LicenseCopyright (c) 2011-2024 Gavin M. Roy
All rights reserved.Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: pams
pamsPAMS: Platform for Artificial Market SimulationsDocumentations & User GuidesDocumentations are available onreadthedocInstallThis package is available on pypi aspams$pipinstallpams
$python
>>importpamsCitationIf you consider cite our work, please use the followingarxiv entry:@misc{Hirano2023-pamstitle={{PAMS:PlatformforArtificialMarketSimulations}},autors={Masanori HIRANO, Ryosuke TAKATA, Kiyoshi IZUMI},year={2023},doi = {10.48550/arXiv.2309.10729}}https://arxiv.org/abs/2309.10729If you prefer to cite this package directly, please use the following bibtex entry:@misc{Hirano2022-pamstitle={{PAMS:PlatformforArtificialMarketSimulations}},autors={Masanori HIRANO, Ryosuke TAKATA, Kiyoshi IZUMI},year={2022},url = {https://github.com/masanorihirano/pams}}Issues and ContributionAbout issues (bugs):You can report issueshere.There are no guarantee to support or fix those issues.Contributions:You can send pull requests (PRs) to this repository.But, there are no guarantee to merge your PRs.
Package: pam-tester
pam-testerpam-tester is a tool to verify PAM auth configurations. It is intended to run in CI settings where you want to make sure you are generating a working PAM configuration. But it can also be used in many other settings.Features:support username and password auth with one factorcheck different pam stackscheck for failed auth conditionsInstallationYou can either clone this repository and runpam-tester.pywith your local Python. Or you can use a prebuild executable that should be usable on most current Linux distributions.Downloadwgethttps://github.com/schurzi/pam-tester/releases/download/latest/pam-tester
chmod+xpam-tester
./pam-testerBuildgitclonehttps://github.com/schurzi/pam-testercdpam-tester
pipinstall-rrequirements.txt
pythonpam-tester.pyUsageUsage: pam-tester [OPTIONS]

  A basic testing programm for PAM tests.

Options:
  --user TEXT      username for authentication.
  --password TEXT  Password of the user.
  --stack TEXT     PAM stack to test.
  --expectfail     invert return code (True if PAM stack failed, False if success).

  --help           Show this message and exit.If you call this tool without any options, it will try to authenticate asroot. The password will be queried, if you do not specify one via option. The default PAM stackloginis used, if you want to check any other stack (indicated by the filename in/etc/pam.d) you have to specify this stack by name.Examplesuseradd-mtestuserecho"Sup3rPassw0rd"|passwdtestuser--stdin# --------------------------------------------------./pam-tester--usertestuser--passwordSup3rPassw0rd# authenticating user testuser in PAM stack login, status: PAM code 0, PAM reason Successecho$?# 0# --------------------------------------------------./pam-tester--usertestuser--passwordtest# authenticating user testuser in PAM stack login, status: PAM code 7, PAM reason Authentication failureecho$?# 1# --------------------------------------------------./pam-tester--usertestuser--passwordSup3rPassw0rd--expectfail# authenticating user testuser in PAM stack login, status: PAM code 0, PAM reason Successecho$?# 1# --------------------------------------------------./pam-tester--usertestuser--passwordtest--expectfail# authenticating user testuser in PAM stack login, status: PAM code 7, PAM reason Authentication failureecho$?# 0
Package: pan
A python command line tool with sane defaults for building academic articles
from markdown using pandoc and (optionally) Stata.InstallationYou will need to install pandoc first:http://johnmacfarlane.net/pandoc/installing.htmlThe install with pip:sudo pip install panSudo is only needed to install for the system python to make the command line
tool available everywhere; you can install in a virtualenv without sudo.Output formatsrtfhtmlplainpdf (default)Markdown header block optionsXXXInstructor-only contentSometimes presentations or worksheets will have content for instructors only
(e.g. suggested answers). You can hide this content by wrapping it in a div tag with the.instructorclass:<div class="instructor">Content for you only</div>Then pass in the –instructor flag (or set it in the header block) when building to get the hidden stuff too.Note:.instructorcontent is hidden by default.Weaving documents with StataPan includes a Stata filter for pandoc to ‘weave’ documents with markdown,
Stata code and LaTeX into pdfs. This means you can include a block like this in
your markdown:~~~{.stata .run}
di 2*2
~~~And see the following output in your pdf:. di 2*2
4If you want to hide some setup commands, add>>>after the comands you want hidden:~~~{.stata .run}
use somedatafile
>>>
di "this text will not be shown because it does not follow the last >>>"
>>>
* but this will be shown
describe
~~~Here, the loading command will not appear in the output. Only the block of code after the last>>>will be displayed.You can also add a.hideclass to the code block and the filter will run but not display results for the code. This is useful when generating graphs etc.Note exporting png or pdf will not work when running Stata in headless mode, so use .eps instead. Data will not persist between code blocks, so will need to be loaded each time, and intermediate steps stored in temporary files.ReferencingInclude a file calledreferences.bibsomewhere in the folder hierarchy of your project
and pan will find it and pass to pandoc use it to generate a reference list. For example,
if you have a structure like this:references.bib
studies
        clever_study
                article.markdownThe pan will pass the file references.bib from the top level when you build article.markdown.
See thecslheader attribute below to change citation formats.
Package: pan3d
Pan3DPan3D aims to be an utility package for viewing and processing a wide variety of multidimensional datasets. Any dataset that can be interpreted withxarraycan be explored and rendered with Pan3D.For an introduction to this project, check out ourblog post.Installationpip install pan3d[viewer]Quick Startpan3d-vieweris the main entrypoint for launching Pan3D locally. Below are some example usages.To launch Pan3D without a target dataset to browse XArray examples:pan3d-viewerTo launch Pan3D without a target dataset to browse Pangeo Forge examples:pan3d-viewer --pangeoTo launch Pan3D with a local path to a target dataset:pan3d-viewer --dataset=/path/to/dataset.zarrTo launch Pan3D with a link to a target dataset:pan3d-viewer --dataset=https://host.org/link/to/dataset.zarrTo launch Pan3D with a compatible configuration file (seeexamples):pan3d-viewer --config_path=/path/to/pan3d_state.jsonThepan3d-viewerentrypoint will automatically launch your default browser to openlocalhost:8080.To launch without opening your browser, add the--serverargument to your command.TutorialsHow to use the Pan3D viewerPan3D command lineHow to use Pan3D in a Jupyter notebookExamplesPan3D comes with a set of example configuration files and example Jupyter notebooks in theexamplesfolder. You can checkout the repository to run these locally, or you can use thePan3D Binder instanceto run these examples.
Package: pana
Pana - Pick a Name AlreadyCheck if a package or username is available from some of the most popular package managers.InstallPana is available frompip:pipinstallpanaPackage ManagersPackage ManagerStatusPyPI:white_check_mark:npm:white_check_mark:NuGet:white_check_mark:crates:white_check_mark:ExampleaModulefrompanaimportPana# Print both lists to stdoutprint(Pana.check_pkg("pana"))print(Pana.check_user("azazelm3dj3d"))# Example output"""[['pypi', False],['npm', False],['nuget', True],['crates/docs', False]]"""CLISearch for a specific packagepana-ppanaSearch for a usernamepana-uazazelm3dj3d
Package: pan-aadhar-ocr
Pan Aadhar OCRExtract Text from Pan and Aadhar CardsPan Aadhar OCR is a python package which takes an Image of a valid Pan/Aadhar
Document and extracts the text from it and returns the information in JSON format.Easy to useReturns information in JSONWorks even faster with the GPUIf you don't have a GPU, you can still run it on CPU, but slowerTechPan Aadhar OCR uses a number of open source projects to work properly:EasyOCR- Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.Python- Python is a programming language that lets you work quickly and integrate systems more effectively.OpenCV- OpenCV is open source and released under the BSD 3-Clause License. It is free for commercial use.InstallationThis library requiresPython3.6+ to run.
As well as you also need to install tesseract on your system.
If you have Linux based system just run:sudoaptinstalltesseract-ocrOn windows system you will need to download Tessaract fromhere. and Add it to the Path.Install the package.pipinstallpan-aadhar-ocrThen Import the package.frompan_aadhar_ocrimportPan_Info_ExtractorCreate an instance of the extractor.extractor=Pan_Info_Extractor()Pass the image to the extractor to get the results.extractor.info_extractor('/content/pan test.jpeg')This will return a result as following:{"Pan_number":"EKAPS0276J","Name":"John Kevin Doe","Father_Name":"Kevin Doe","DOB":"31/10/1992"}
Package: panacotta
Python control for Panasonic Blu-Ray playersThis is a simple Python API for controlling Panasonic Blu-Ray players. It has only been tested with the DMP-BDT220, which dates from 2012. All players supported by thePanasonic Blu-ray Remote 2012 Android appshould be supported; i.e. DMP-BDT120, DMP-BDT220, DMP-BDT221, DMP-BDT320, DMP-BDT500 and DMP-BBT01 devices.Newer players with "UB" prefixes (e.g. the UB-9000) support a (very) limited set of functions.Example useConnect to a player on 192.168.0.4 and find out the current playing status:import panacotta

bluray = panacotta.PansonicBD('192.168.0.4')
print("Device is currently %s" % bluray.get_play_status()[0])Note that the device must be on the same subnet as the host running this API; requests from a different subnet will return a failure.Press the power button:import panacotta

bluray = panacotta.PansonicBD('192.168.0.4')
bluray.send_key('POWER')
Package: panaetius
PanaetiusThis package provides:Functionality to read user variables from aconfig.ymlor environment variables.A convenient default logging formatter printingjsonthat can save to disk and rotate.Utility functions.Configoptionsskip_header_initIfskip_header_init=Truethen theconfig_pathwill not use theheader_variableas the
sub-directory in theconfig_path.E.gCONFIG = panaetius.Config("tembo", "~/tembo/.config", skip_header_init=True)Will look in~/tembo/config/config.yml.Ifskip_header_init=Falsethen would look in~/tembo/config/tembo/config.yml.ModuleConvenient to place in a package/sub-package__init__.py.See Tembo for an example:https://github.com/tembo-pages/tembo-core/blob/main/tembo/cli/__init__.pyExample snippet to use in a module:"""Subpackage that contains the CLI application."""importosfromtypingimportAnyimportpanaetiusfrompanaetius.exceptionsimportLoggingDirectoryDoesNotExistExceptionif(config_path:=os.environ.get("TEMBO_CONFIG"))isnotNone:CONFIG:Any=panaetius.Config("tembo",config_path,skip_header_init=True)else:CONFIG=panaetius.Config("tembo","~/tembo/.config",skip_header_init=True)panaetius.set_config(CONFIG,"base_path","~/tembo")panaetius.set_config(CONFIG,"template_path","~/tembo/.templates")panaetius.set_config(CONFIG,"scopes",{})panaetius.set_config(CONFIG,"logging.level","DEBUG")panaetius.set_config(CONFIG,"logging.path")try:logger=panaetius.set_logger(CONFIG,panaetius.SimpleLogger(logging_level=CONFIG.logging_level))exceptLoggingDirectoryDoesNotExistException:_LOGGING_PATH=CONFIG.logging_pathCONFIG.logging_path=""logger=panaetius.set_logger(CONFIG,panaetius.SimpleLogger(logging_level=CONFIG.logging_level))logger.warning("Logging directory%sdoes not exist",_LOGGING_PATH)This means in./tembo/cli/cli.pyyou canimporttembo.cli# access the CONFIG instance + variables from the config.ymltembo.cli.CONFIGScriptCreate./config/config.ymlin the same directory as the script.In the script initialise aCONFIGobject:importpathlibimportpanaetiusCONFIG=panaetius.Config("teenagers_scraper",str(pathlib.Path(__file__).parents[0]/".config"),skip_header_init=True)Set variables in the same way as the module above.quickstart loggingimportpanaetiusdefget_logger():logging_dir=pathlib.Path(__file__).parents[0]/"logs"logging_dir.mkdir(parents=True,exist_ok=True)CONFIG=panaetius.Config("training_data_into_gcp",skip_header_init=True)panaetius.set_config(CONFIG,"logging.level","DEBUG")panaetius.set_config(CONFIG,"logging.path",logging_dir)returnpanaetius.set_logger(CONFIG,panaetius.SimpleLogger(logging_level=CONFIG.logging_level))Utility FunctionsSquasherSquashes a json object or Python dictionary into a single level dictionary.
Package: panamap-proto
panamap-protoPanamap-proto adds protobuf support topanamap object mapper.InstallationUse the package managerpipto install panamap-proto.pipinstallpanamapUsageInitialize mapperTo enabe protobuf support you must passProtoMappingDescriptorin list tocustom_descriptorsparameter toMapperconstructor:frompanamapimportMapperfrompanamap_protoimportProtoMappingDescriptormapper=Mapper(custom_descriptors=[ProtoMappingDescriptor])After that you can set up mapping for protobuf generated classes.Map classesTo map messageSimple:// messages.protosyntax="proto3";messageSimple{stringvalue=1;}You should use folowing configuration:frompanamapimportMapperfrompanamap_protoimportProtoMappingDescriptorfrommessages_pb2importSimplemapper=Mapper(custom_descriptors=[ProtoMappingDescriptor])mapper.mapping(Simple,SimpleData).map_matching().register()s=mapper.map(SimpleData("abc"),Simple)print(s.value)# 'abc'Map enumsThere is many ways to map python enums to protobuf generated enums, but the easiest way is to usevalues_maputility method:// messages.protoenumLang{PYTHON=0;CPP=1;JAVA=2;}fromenumimportEnumfrompanamapimportMapper,values_mapfrompanamap_protoimportProtoMappingDescriptorfrommessages_pb2importLangclassPyLang(Enum):PYTHON=1CPP=2JAVA=3mapper=Mapper(custom_descriptors=[ProtoMappingDescriptor])pairs=[(PyLang.PYTHON,Lang.Value("PYTHON")),(PyLang.JAVA,Lang.Value("JAVA")),(PyLang.CPP,Lang.Value("CPP")),]mapper.mapping(PyLang,Lang)\.l_to_r_converter(values_map({py:protoforpy,protoinpairs}))\.r_to_l_converter(values_map({proto:pyforpy,protoinpairs}))\.register()ContributingContributing described inseparate document.
Package: panama-ruc-dv-calculator
Panama RUC DV CalculatorDocumentación en españolaquí.For questions and issues, please open an issue on the GitHub repository
athttps://github.com/juancorradine/panama-ruc-dv-calculator.DescriptionChecksum (DV) calculator for RUCs (Unique Taxpayer Registry) in Panama.You need to know the type of RUC in order to initialize the correct class since it's not always possible to determine
the type just by having the RUC number. The algorithm to calculate the DV varies depending on the RUC type.If the RUC does not have the correct format, aValueErrorexception is raised.Supported RUC Types:Persona NaturalPersona Natural Extranjera (E)Persona Natural Naturalizada (N)Persona Natural Panameño Extranjero (PE)Persona Natural Antes de Vigencia (AV)Persona Natural Panameño Indigena (PI)Persona Natural NTPersona JuridicaPersona Juridica AntiguaPersona Juridica NTPython classes:RucNatural (Supports E, N, PE, AV y PI)RUCNaturalNTRUCJuridica (Supports RUC Juridica Antiguo)RUCJuridicaNTInstallation:pip install panama-ruc-dv-calculatorUsage examples:More xamples in theexamplesdirectory.#1 - Persona Naturalfrom panama_ruc_dv_calculator.ruc_natural import RucNatural

try:
    ruc = RucNatural("1-184-921")

    print(f"RUC:           {ruc.ruc}")
    print(f"DV:            {ruc.dv}")
    print(f"Provincia:     {ruc.provincia.nombre}")
    print(f"Letra:         {ruc.letra.letra}")
    print(f"Letra Desc:    {ruc.letra.nombre}")
    print(f"Folio/Imagen:  {ruc.folio_imagen}")
    print(f"Asiento/Ficha: {ruc.asiento_ficha}")
    
except ValueError as e:
    print(str(e))Results:RUC:           1-184-921
DV:            49
Provincia:     Bocas Del Toro
Letra:         
Letra Desc:    Sin Letra
Folio/Imagen:  184
Asiento/Ficha: 921#2 - Persona Juridicafrom panama_ruc_dv_calculator.ruc_juridica import RucJuridica

try:
    ruc = RucJuridica("2588017-1-831938")

    print(f"RUC:             {ruc.ruc}")
    print(f"DV:              {ruc.dv}")
    print(f"Rollo/Tomo:      {ruc.rollo_tomo}")
    print(f"Folio/Imagen:    {ruc.folio_imagen}")
    print(f"Asiento/Ficha:   {ruc.asiento_ficha}")
    print(f"Es RUC Antiguo?: {str(ruc.is_ruc_antiguo)}")
    
except ValueError as e:
    print(str(e))Results:RUC:             2588017-1-831938
DV:              20
Rollo/Tomo:      2588017
Folio/Imagen:    1
Asiento/Ficha:   831938
Es RUC Antiguo?: FalseDV Calculation Testing and Validation:DV calculation tests in the tests directory.To validate other generated DVs, you can use the DGI page >ETax 2.0> Digit
Verifier.Documentación DGIThe fileCalculo Digito Verificador RUCissued by the DGI, located in
the dgi folder, explains the algorithm for generating the DV.Pending tasksDV generation for fincas.On thepageof the DGI for DV validation, there are the letters SB and EE.
There is no documentation on what these letters mean or the algorithm to calculate their DV.DisclaimerI do not work for the DGI. This code may contain errors. It is your responsibility to perform the relevant tests.
Package: panasoniceolia
python-panasonic-eoliaA python module for reading and changing status of panasonic climate devices through Panasonic Eolia app apiCommand line usageusage: panasoniceolia.py [-h] [-t TOKEN] username password {list,get,set} ...

Read or change status of Panasonic Climate devices

positional arguments:
  username              Username for Panasonic Eolia
  password              Password for Panasonic Eolia
  {list,get,set,dump}   commands
    list                Get a list of all devices
    get                 Get status of a device
    set                 Set status of a device
    dump                Dump raw data of a device

optional arguments:
  -h, --help            show this help message and exit
  -t TOKEN, --token TOKEN
                        File to store token in
  -s [BOOL], --skipVerify [BOOL]
                        Skip Ssl verification
  -r [BOOL], --raw [BOOL]
                        Raw dump of responseusage: panasoniceolia.py username password get [-h] device

positional arguments:
  device      device number

optional arguments:
  -h, --help  show this help message and exitusage: panasoniceolia.py username password set [-h]
                                             [-p, --power {On,Off}]
                                             [-t, --temperature TEMPERATURE]
                                             [-s, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}]
                                             [-m, --mode {Auto,Cool,Dry,Heat,Fan}]
                                             [-e, --eco {Auto,Quiet,Powerful}]
                                             [-y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}]
                                             [-x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}]
                                             device

positional arguments:
  device                Device number

optional arguments:
  -h, --help
                        show this help message and exit
  -p, --power {On,Off}
                        Power mode
  -t, --temperature TEMPERATURE
                        Temperature in decimal format
  -s, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}
                        Fan speed
  -m, --mode {Auto,Cool,Dry,Heat,Fan}
                        Operation mode
  -e, --eco {Auto,Quiet,Powerful}
                        Eco mode
  -y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}
                        Vertical position of the air swing
  -x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}
                        Horizontal position of the air swingModule usageimportpanasoniceoliasession=panasoniceolia.Session('user@example.com','mypassword')session.login()devices=session.get_devices()print(devices)print(session.get_device(devices[0]['id']))session.set_device(devices[0]['id'],power=panasoniceolia.constants.Power.On,temperature=22.0)PyPi packagecan be found athttps://pypi.org/project/panasoniceolia/How to publish package;python .\setup.py sdist bdist_wheelpython -m twine upload dist/*
Package: pancake
PanCake – An annotation-independent non-database approach for pangenome analysisPanCake is a non-databse approach for identification of singletons and core regions
in arbitrary sequence sets and independent of annotation data.
On the basis of pairwise sequence similarities (as provided by common sequence
alignment tools) PanCake serializes pangenomes into persistent data structures
providing further analysis and graphical representation.
Due to sequence storage of similar subregions as edit operations, storage requirement
of PanCake’s data structure is noticeably reduced in comparison to pure sequence data
(e.g. FASTA format).Copyright (c) 2013 Corinna Ernst <corinna.ernst@uni-due.de> (see LICENSE)
Package: pancakekit
Pancake KitPancake Kit aims to provide a handy user interface to your Python codes. It provides GUI as a lightweight web app powered by Flask.Quick tastingAssume that there is a function that calculates the nthFibonacci number. In three steps, you can prepare a GUI that wraps this function.frompancakekitimportPancakedeffibonacci(n=10):return(fibonacci(n-1)+fibonacci(n-2))ifn>=2elsencake=Pancake()# Step 1: Make a Pancake instance.cake.add(fibonacci)# Step 2: Add your function to the pancake.cake.serve()# Step 3: Serve the cake.When you openhttp://127.0.0.1:8000/in a web browser, you will find an input box for enteringnand a button that invokesfibonacci().Adding an interface to your exisiting python script in an instantpip-mpancakekit__YOUR_SCRIPT_FILE_NAME__For more details:https://github.com/chocolate-icecream/pancakekit
Package: pancakes
PancakesPancake making utility that’s really easy to use :) and FREE!Free software: MIT licenseDocumentation:https://pancakes.readthedocs.io.FeaturesPrint the ingredients for a specified number of pancakesCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-06-12)First release on PyPI.0.2.0 (2018-09-106)Add toxTest Travis delpoyments to PyPIformat code using black