Saravanan666/pypi-org huggingface dataset:
Package: pyarchetype
PyArchetypeThis project is used to simplify the skeleton creation of python projectsInstallationpip install pyarchetypeSyntaxTool to create the skeleton of a python projectusage:pyarchetype[-h][-v][--create][--wizard][--pathPATH][--moduleMODULE][--nameNAME][--emailEMAIL][--initial_versionINITIAL_VERSION][--license{MIT,Apache-2.0,GPL-3.0-only,Propietary}][--force_overwrite][--create_venv]Tooltocreatetheskeletonofapythonproject.Version0.1.0

optionalarguments:-h,--helpshowthishelpmessageandexit-v,--versionshowprogram'sversionnumberandexit--createCreateskeletonstructureofyourpythonproject--wizardDefineallparametersinwizardmode--pathPATHbasedir.Defaultcurrentdir--moduleMODULEModulename.Defaultvalueisapp--nameNAMEOwner.Defaultvalueisjordiredondo--emailEMAILEmailaddress.Defaultvalueisuser@email.com--initial_versionINITIAL_VERSIONInitialVersion.Defaultvalueis0.0.1--license{MIT,Apache-2.0,GPL-3.0-only,Propietary}license.DefaultvalueisMIT--force_overwriteForceoverwrite.Defaultvalueisfalse--create_venvCreateprojectvirtualenv.DefaultvalueisfalseExample of executionAt below example we are creating an app under path "myapp". This bootstrapping also creates python .venvpyarchetype--create--pathmyapp--create_venv--nameuser1--emailuser1@email.com--create_venv
INFO:pyarchetype.pyarchetype:all_flags={"create":true,"wizard":false,"path":"myapp","module":"app","name":"user1","email":"user1@email.com","initial_version":"0.0.1","license":"MIT","force_overwrite":false,"create_venv":true}INFO:pyarchetype.pyarchetype:Creatingbasedirmyapp
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/.vscode/tasks.json
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/.vscode/launch.json
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/.gitignore
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/pyproject.toml
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/LICENSE
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/README.md
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/requests.txt
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/scripts/compile_and_upload.sh
INFO:pyarchetype.pyarchetype:Forcefilename=myapp/scripts/compile_and_upload.shchmod=0755.OnlyrelevantforUnix-likeplatforms
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/scripts/compile_only.sh
INFO:pyarchetype.pyarchetype:Forcefilename=myapp/scripts/compile_only.shchmod=0755.OnlyrelevantforUnix-likeplatforms
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/scripts/upload_pypi.sh
INFO:pyarchetype.pyarchetype:Forcefilename=myapp/scripts/upload_pypi.shchmod=0755.OnlyrelevantforUnix-likeplatforms
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/.pypirc
INFO:pyarchetype.pyarchetype:Forcefilename=myapp/.pypircchmod=0600.OnlyrelevantforUnix-likeplatforms
INFO:pyarchetype.pyarchetype:Creatingfoldermyapp/tmp
INFO:pyarchetype.pyarchetype:Creatingfoldermyapp/tests
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/src/app/app.py
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/src/app/__init__.py
INFO:pyarchetype.pyarchetype:Updatingfilemyapp/tests/app/test_app.pySource Codehttps://github.com/redcorjo/pyarchetype.gitVersion: 2023010702
Package: pyarchops
pyArchOpspyarchopsFree software: MIT licenseDocumentation:https://pyarchops.readthedocs.io.FeaturespyarchopsInstalation$pipinstallpyarchopsUsageimportosimportpyarchopsfromsuitableimportApiapi=Api('127.0.0.1:22',connection='smart',remote_user='root',private_key_file=os.getenv('HOME')+'/.ssh/id_rsa',become=True,become_user='root',sudo=True,ssh_extra_args='-o StrictHostKeyChecking=no')result=pyarchops.os_updates.apply(api)print(result)See the different README pages for the different modules:https://github.com/pyarchops/dnsmasqhttps://github.com/pyarchops/helpershttps://github.com/pyarchops/os-updateshttps://github.com/pyarchops/tincDevelopmentInstall requirements:$sudopacman-Stmuxpython-virtualenvpython-piplibjpeg-turbogccmakevimgittktclGit clone this repository$gitclonehttps://github.com/pyarchops/pyarchops.gitpyarchops.pyarchops$cdpyarchops.pyarchopsSee theMakefile, to get started simply execute:$makeupCreditsTODOHistory0.0.1 (2018-12-11)First release on PyPI.
Package: pyarchops-dnsmasq
pyArchOps/dnsmasqdnsmasqFree software: MIT licenseDocumentation:https://pyarchops-dnsmasq.readthedocs.io.FeaturesdnsmasqInstalation$pipinstallpyarchops-dnsmasqUsageimporosimporttextwrapfromsuitableimportApifrompyarchopsimporthelpersfrompyarchops_dnsmasqimportdnsmasqapi=Api('127.0.0.1:22',connection='smart',remote_user='root',private_key_file=os.getenv('HOME')+'/.ssh/id_rsa',become=True,become_user='root',sudo=True,ssh_extra_args='-o StrictHostKeyChecking=no')dnsmasq_conf=textwrap.dedent('''
    no-poll
    no-resolv
    cache-size=1500
    no-negcache
    server=/core-vpn/10.16.254.1
    server=/core-vpn/10.16.254.2
    server=/core-vpn/10.16.254.3
    server=8.8.4.4
    server=8.8.8.8
''')resolve_conf='nameserver 127.0.0.1'config={'dnmasq_conf':dnsmasq_conf,'resolv_conf':resolve_conf}result=dnsmasq.apply(api,config=config)print(result)DevelopmentInstall requirements:$sudopacman-Stmuxpython-virtualenvpython-piplibjpeg-turbogccmakevimgittktclGit clone this repository$gitclonehttps://github.com/pyarchops/dnsmasq.gitpyarchops.dnsmasq$cdpyarchops.dnsmasqSee theMakefile, to get started simply execute:$makeupCreditsTODOHistory0.0.1 (2018-12-11)First release on PyPI.
Package: pyarchops-helpers
pyArchOps/helpersHelpers for pyArchOpsFree software: MIT licenseDocumentation:https://pyarchops-helpers.readthedocs.io.Featuresdocker based test helpersInstalation$pipinstallpyarchops-helpersUsagefromsuitableimportApifrompyarchops_helpersimporthelperswithhelpers.ephemeral_docker_container(image='registry.gitlab.com/pyarchops/pyarchops-base')ascontainer:connection_string="{}:{}".format(container['ip'],container['port'])print('connection strings is '+connection_string)api=Api(connection_string,connection='smart',remote_user=container['user'],private_key_file=container['pkey'],become=True,become_user='root',sudo=True,ssh_extra_args='-o StrictHostKeyChecking=no')try:result=api.setup()['contacted'][connection_string]exceptExceptionaserror:raiseerrorassertresult['ansible_facts']DevelopmentInstall requirements:$sudopacman-Stmuxpython-virtualenvpython-piplibjpeg-turbogccmakevimgittktclGit clone this repository$gitclonehttps://github.com/pyarchops/helpers.gitpyarchops.helpers$cdpyarchops.helpersSee theMakefile, to get started simply execute:$makeupCreditsTODOHistory0.0.1 (2018-12-11)First release on PyPI.
Package: pyarchops-os-updates
pyArchOps/OS updatesInstall All OS updatesFree software: MIT licenseDocumentation:https://pyarchops-os-updates.readthedocs.io.FeaturesApplies the latest packages on the OS.Usageimportosimportpyarchops_os_updatesapi=Api('127.0.0.1:22',connection='smart',remote_user='root',private_key_file=os.getenv('HOME')+'/.ssh/id_rsa',become=True,become_user='root',sudo=True,ssh_extra_args='-o StrictHostKeyChecking=no')result=pyarchops_os_updates.apply(api)print(result)DevelopmentInstall requirements:$sudopacman-Stmuxpython-virtualenvpython-piplibjpeg-turbogccmakevimgittktclGit clone this repository$gitclonehttps://github.com/pyarchops/os-updates.gitpyarchops.os-updates$cdpyarchops.os-updatesSee theMakefile, to get started simply execute:$makeupCreditsTODOHistory0.0.1 (2018-12-11)First release on PyPI.
Package: py_archy
# PyArchyImplementation of the popular node-archy tool in python.Draws good looking trees and lists on the command line.[![PyPI](https://img.shields.io/pypi/v/py_archy.svg)](https://pypi.python.org/pypi?name=py_archy&:action=display)[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()[The original Archy on NPM](https://www.npmjs.com/package/archy)### Installation```pip install py_archy```### Usage```>>> from pyarchy import archy>>>>>> tree = { 'nodes' : [{ 'nodes' : ['a','b','c'], 'label' : 'bar'}, 'bizz'], 'label' : 'foo'}>>>>>> print( archy(tree))foo├─┬ bar│ ├── a│ ├── b│ └── c└── bizz>>> print( archy(tree, unicode=False))+-- bar| +-- a| +-- b| `-- c`-- bizz```### CreditsThis package was created with Cookiecutter.
Package: pyarcknot
PyArcKnotPyArcKnot is a package for studying the arc diagrams of mathematical knots.It was developed as part of my Final Project for my Industrial Design Engineering Degree, with the help and support of Pedro González Manchón.
The Final Project paper (in Spanish) can be foundhere.The following is just a showcase of some of the most important functions.
For a more in-depth demonstration of the possibilities available, check out theJupyter Notebook demo.The package requiresNumPy,Matplotlib,SympyandNumba. They can be installed by running:pipinstallnumpymatplotlibsympynumbaTo install the PyArcKnot package run:pipinstallpyarcknotThe package consists of 4 modules:importpyarcknot.knot_matrixaskmimportpyarcknot.knot_diagramaskdimportpyarcknot.knot_calculateaskcimportpyarcknot.turaev_surfaceastsKnot MatrixKnot Matrix is used to define the knot diagrams asNumPyarrays in order to be able to work with themk8_21_arc=km.clean_k_arc('2 7 1 4 3 5 4 8 2 6 1 5 3 7 6 8')k8_21_xco=km.xco_arc(k8_21_arc)print(k8_21_xco)[[0 0 0 0 0 1 0 2]
 [0 0 1 0 0 3 2 0]
 [1 0 3 0 2 0 0 0]
 [0 1 3 0 3 2 0 0]
 [0 0 0 2 3 0 3 1]
 [0 0 2 3 1 0 0 0]
 [2 3 0 1 0 0 0 0]
 [0 2 0 0 0 0 1 0]]Knot DiagramKnot Diagram usesMatplotlibto display diagrams of the knot.kd.draw_arc(k8_21_xco)It can also return the number of loops in a smoothed diagramkd.draw_diagrams(k8_21_xco)Number of crossings = 8|s_A D| = 5|s_B D| = 1Knot CalculateKnot Calculate is used to calculate properties of the diagram such as the Kauffman Bracket Polynomial or the Jones Polynomial.
For this,Sympywas used to work with polynomials andNumbato increase the performance and reduce the calculation time.kc.kauffman_bracket(k8_21_xco)$\displaystyle A^{16} - 2 A^{12} + 2 A^{8} - 3 A^{4} + 3 - \frac{2}{A^{4}} + \frac{2}{A^{8}}$kc.jones_polynomial(k8_21_xco)$\displaystyle \frac{2}{t} - \frac{2}{t^{2}} + \frac{3}{t^{3}} - \frac{3}{t^{4}} + \frac{2}{t^{5}} - \frac{2}{t^{6}} + \frac{1}{t^{7}}$Turaev SurfaceTuraev Surface usesMatplotlibto render a 3D surface obtained from the diagram of the knot.ts.turaev_surf(k8_21_xco)
Package: pyarcticspas
pyarcticspasA high-level python client library for accessing Arctic Spas API.UsageExample:frompyarcticspasimportSpa,LightState,Blower,BlowerStatetoken="(Token received from https://myarcticspa.com/spa/SpaAPIManagement.aspx)"spa=Spa(token)status=spa.status()print(status.connected)#Trueprint(status.lights.value)#offprint(status.blower1.value)#offspa.set_lights(LightState["ON"])spa.set_blowers(Blower["VALUE_0"],BlowerState["ON"])status=spa.status()print(status.lights.value)#onprint(status.blower1.value)#onIf you are using asynchronous calls, use theasync_version of the calls.
Package: pyArduino
pyArduinoWelcome to the implementation of PyArduino on Python as handler for Arduino boards.DescriptionpyArduino it's a library on current development to allow programmers to easy handle data and actions over Arduino hardware.PurposeThis package allows you to automate several things:Autodetect COM or TTY port when Arduino is detected.Get info about the board, like his name, protocols, firmware versions...Handling data directly from your Python interpreter.AboutYou can now use the implemented classes for friendly manage your board from Python.
At 01(day)/12(month)/2020, when package it's released on his 0.1.0 version,
you can send data to a 16x2 LCD Screen, being able to send strings to it throught a buffer as main feature, or get data and OPEN and CLOSE serial ports
or autodetect whenever Arduino (or a copy of him it's connected.)DownloadÂ· First of all, install Python if you're not.Â· Type on your CMD or Terminal:pip install pyArduinoWait until download finishes... and... It's ready.NOTE: If you dont have pip package manager installated, go google it and install it.ExamplesYou have a folder inside project's folder called 'examples', with current up-to-date code based on what modules are being deployed over time.Little exampleifname== 'main':# 1st instanciate the ShowConnectionInfo Class, which autoconnect your board via Serial module
# due to inheritance properties, and will give you a full review of your board capabilities.
info = pyArduino.ShowConnectionInfo()

# This 'show_info()' method gives you back basic info about the status
info.show_info()

# Shows you current layout config of your board
info.board_config()

# if you need to get for your software how many pins you have without hardcoring the number  
total_pins = info.board_number_pins()
print(total_pins)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.LicenseMITCreditsLibraries used here for build this project are pyfirmata and pyserial, so thanks to his
creators for his hard work.
Package: py-area-code-nanp
py-area-code-nanpInformation about phone area codes in the North American Numbering Plan.This package provides a simple lookup table from area code to region, and from region to list of area codes. Area code data was most recently retrieved from Wikipedia in October 2020.Example usage:>>> import area_code_nanp
>>> area_code_nanp.get_area_codes('Texas')
[210, 214, 254, 281, 325, 346, 361, 409, 430, 432, 469, 512, 682, 713, 726, 737, 806, 817, 830, 832, 903, 915, 936, 940, 945, 956, 972, 979]
>>> area_code_nanp.get_region(817)
'Texas'
>>>
Package: pyareas
pyareasA simple Python library for finding the areas of 2D shapesShapes Included:SquareTriangleRectangleCircleParellelogramEllipseRhombusTrapezoidPolygon(regular)KiteStarInstall command:pip install pyareasExample:from pyareas import *

print(Square(10))Gives the output:100Newest Feature:Star!Takes the arguments of the internal shape's side, the internal shape's apothem, the number of points on the star, and the height of the triangles(the points)The old functions of pentagram, hexagram and heptagram are still in the source code, but i thought i would add a function for all stars.To do:Add more shapesCreate a new library for volume of 3D shapespyvolumes?pyareas3d?
Package: pyargcbr
PyArgCBRCase-Based Argumentation Infrastructure in PythonFree software: MIT licenseDocumentation:https://pyargcbr.readthedocs.io.FeaturesArgumentative agents that solve problems reasoning about the possible solutions.Domain CBR (Case-based Reasoning) system to store and update domain knowledge.Argumentation CBR system to store and update argumentation knowledge of agents.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.5 (2020-07-10)Docs updatedTravis updated0.2.4 (2020-07-10)Package only compatible with python >= 3.7Tox updated0.2.3 (2020-07-09)Tests fixed for build.0.2.2 (2020-07-07)API documentation fixed0.2.1 (2020-07-07)Modified package structureAPI documentation generated0.2.0 (2020-07-06)First release with agents and CBRs working.0.1.0 (2019-11-29)First release on PyPI.
Package: pyargon2
pyargon2Simultaneously the simplest and most powerful implementation of Argon2 in Python.Installationpipinstallpyargon2Compatibilitypyargon2 now only supports Python 3.9 and beyond.Basic UsageThe hash function supports basic password hashing using the Argon2id variant and mandates password and salt strings. The resulting hash returned is hex encoded.frompyargon2importhashpassword='a strong password'salt='a unique salt'hex_encoded_hash=hash(password,salt)The default parameters aim to generate hashes in around 0.5 seconds and are targeted at a machine housing a CPU with 4 cores and at least 4GB of RAM. If timing differs significantly on your machine, adjust the parameters using the advanced options below.Remember password hashing should be slow for security so don't optimise for speed!Advanced UsageFunction ParametersThe hash function takes in the following parameters:Positionalpassword: A string representing a password.salt: A string representing a unique salt.Keywordpepper: A secret string to fold into the hash of the password.hash_len: The length in bytes of the resulting hash.time_cost: The number of iterations to perform.memory_cost: The number of kibibytes in memory to utilise.parallelism: The number of independent computations chains (lanes) to run.flags: Flags to determine which fields are securely wiped.variant: Argon2 algorithm variant ('i', 'd', or 'id').version: Argon2 algorithm version number.encoding: Encoding for the returned hash type ('raw', 'hex' or 'b64').For assistance with parameter selection refer toRFC 9106, in particular "Chapter 4: Parameter Choice".Function ExceptionsExceptions generated by the underlying Argon2 hashing function are raised under theArgon2Errorclass which can be imported as follows:frompyargon2importArgon2Error
Package: pyargos
PyArgosPyArgos is a Python library for easier interfacing with Argos, a GNOME extension that allows you to create other GNOME Shell extensions.At the time of creating this repository, thefork by mwilckis the most up-to-date and compatible with the latest versions
of GNOME.RequirementsArgos (originalorupdated fork, whichever works best)Python >=3.9InstallationInstalling this library is extremely easy as it is available over at PyPi, so you just need topip installit:pipinstallpyargosExample usageTO-DO, sorry!LicensePyArgos is licensed under GPLv3.
Package: pyargus
pyArgusThis python package aims to implement signal processing algorithms applicable in antenna arrays. The implementation mainly focuses on the beamforming and
direction finding algorithms.
For array synthesis and radiation pattern optimization please check the "arraytool" python package.https://github.com/zinka/arraytoolandhttps://zinka.wordpress.com/by S. R. ZinkaNamed after Argus the giant from the greek mitology who had hundreds of eyes.Package organization:pyArgus: Main packageantennaArrayPattern: Implements the radiation pattern calculation of antenna arraysbeamform: Implements beamformer algorithms.directionEstimation: Implements DOA estimation algorithms and method for estimating the spatial correlation matrix.test: Sub package
contains demonstration functions for antenna pattern plot, beamforming and direction of arrival estimation.Implemented AlgorithmsBeamforiming:Fixed beamformers:Maximum Signal to Interference Ratio beamformerMaximum Signal to Interference Ratio beamformer with Godara's methodAdaptive beamformer:Optimum Wiener beamformer (with known signal of interest direction)MSINR with known covariance matricesMMSE with known signal of interestDirection of Arrival Estimation:DOA algorithms:Bartlett (Fourier) methodCapon's methodBurg's Maximum Entropy Method (MEM)Multiple Signal Classification (MUSIC)Multi Dimension MUSIC (MD-MUSIC)Util functions:Spatial correlation matrix estimation using the sample average techniqueForward-backward averagingSpatial smoothingDOA results plot with highlighting the ambiguous regions (Only for Uniform linear arrays)Antenna Array Pattern Plot FeaturesArbitrary configured planar antenna systemsTakes into account the pattern of the signal radiating elementsThe documentation of the package is written in Jupyter notebook, which can be found on the following sites:Github:github.com/petotamas/pyArgusPersonal website:tamaspeto.comTamás Pető 2016-2021, Hungary
Package: pyargwriter
PyArgWriterPyArgWriter is a Python module that simplifies the generation of ArgumentParser setups for Python classes and their methods. It provides a convenient way to define and manage command-line arguments for your Python applications.InstallationYou can install PyArgWriter usingpip:pipinstallpyargwriterAlternative from source code:In root folder with pip:pipinstall.or with poetry:poetryinstallCommand-Line InterfacePyArgWriter offers the following command-line commands:parse-code: Parse given files and create YAML structure with structural parser information.write-code: Read given parser YAML structure and create argument parser Python code.generate-argparser: Generateparser.py, which contains asetup_parserfunction to set up an appropriate parser.For more detailed information on available command-line arguments and usage examples, refer to the official documentation.RequirementsPyArgWriter depends strongly on information stated in the docstring. Your docstring should have ha minimal structure like:defadd(a:int,b:int)->int:"""_summary_Args:a (int): _description_b (int): _description_Returns:int: _description_"""returna+bUsageUsage
PyArgWriter offers a command-line interface for generating and managing ArgumentParser setups.
Below are the available commands and their usage:parse-codepython-mpyargwriterparse-code--inputfile1.pyfile2.py--outputoutput.yaml[--log-levelLOG_LEVEL]Parse given Python files and create a YAML structure with structural parser information.write-codepython-mpyargwriterwrite-code--inputinput.yaml[--outputOUTPUT_DIR][--pretty][--log-levelLOG_LEVEL]Read a given parser YAML structure and generate argument parser Python code.generate-argparserpython-mpyargwritergenerate-argparser--inputfile1.pyfile2.py[--outputOUTPUT_DIR][--pretty][--log-levelLOG_LEVEL]Generate a parser.py file that contains a setup_parser function to set up an appropriate ArgumentParser.
Common Options
--log-level LOG_LEVEL: Sets the log level for command execution (default is "WARN").
--pretty (-p): If set, the generated code will be formatted with Black.
For more detailed information on each command and additional options, run:python-mpyargwriter<command>--helpSupported Argument TypesIn the function of the process class you want to create the argument parser, following types of an argument are supported:intfloatstrbool flagslist[int]List[int]     # from typinglist[float]List[float]   # from typinglist[str]List[str]     # from typinglist[bool]List[bool]    # from typingExamplepython-mpyargwritergenerate-argparser--inputexamples/shopping.pyexamples/car.py--outputexamples--prettyDocumentationThe complete documentation for PyArgWriter, including detailed usage instructions and examples, can be found in theofficial documentationor at thedocumentation website.Further you can have a look into thetest coverage.LicenseThis project is licensed under the Apache 2.0 License - see theLICENSEfile for details.ContributingIf you would like to contribute to PyArgWriter, please read ourContributing Guidelinesfor details on how to get started.ContactFor any questions, issues, or feedback, pleaseopen an issueon our GitHub repository.
Package: pyariable
Simplify your test assertions forever.frompyariableimportVariabledeftest_dict():x=Variable()y=Variable()assert{1:"XXX",2:"XXX",3:"YYY"}=={1:x,2:x,3:y}assertx!=yIn some tests it’s common to get a random ID back from a database. Your assertions are simpler when you substitute aVariableobject for the expected value.frompyariableimportVariabledeftest_list():x=Variable()y=Variable()assert[{"db_id":590,"name":"alice"},{"db_id":590,"name":"bob"},{"db_id":999,"name":"charlie"},]==[{"db_id":x,"name":"alice"},{"db_id":x,"name":"bob"},{"db_id":y,"name":"charlie"},]assertx!=yassertx<yInstallationpipinstallpyariable
Package: pyarithops
About [PyArihtOps] PackageThis is a simple package which helps in the calculation. You can see it at GitHub alsoHow to install it on Windowspip install pyarithopsHow to install it on Linuxsudo pip3 install pyarithopsHow to use itInitializing the Packagefrom pyarithops import PyArithOps

num1 = 7
num2 = 3

calc = PyArithOps(num1, num2)Adding two numberscalc.addition()Subtracting two numberscalc.subtraction()Multiplying two numberscalc.multiplication()Dividing two numberscalc.division()