Saravanan666/pypi-org huggingface dataset:
Package: pypwdgen
pypwdgenComplex pasword generatorPrerequisitesPython 3.6 minimum is required to use thesecretsmodule (which is recomended instead of therandommodule to manipulate sensitive data).InstallationpipinstallpypwdgenUsing the clipython3-mpypwdgenOptional arguments-l, --length:
    Length of the password (default: 9)
-n, --number:
    Number of passwords to generate (default: 1)
-c, --complexity:
    Minimum number of character classes to use (default: 3)Example# generates 20 passwords of 10 characterspython3-mpypwdgen-l10-n20Using in a scriptYou can easily usepypwdgento generate password inside your scripts.Get only the password itselffrompypwdgen.coreimportPasswordpasswd_string=str(Password(20,4))# Please note the usage of str()# Print passwordprint(f"My password is:{passwd_string}")Get a Password object and use its propertiesfrompypwdgen.coreimportPasswordpasswd_object=Password(20,4)# Print password complexity score from object attributeprint(f"My password complexity score is:{passwd_object.complexity}")# Print password string from object attributeprint(f"My password is:{passwd_object.password}")
Package: pypwgen
IntroductionThis project was made as a solution to many complaints at my workplace about password requirements being too
difficult to conform to and many, many external blogposts about the different specifications of varying websites.
In response, I created a simple command line password generator that takes password requirements and creates a more
than secure password. It even copies the password to the user's clipboard!TechnologiesAll that is used here is Python 3.9.Setuplorem ipsum
Package: pypwm
# Password Manager[![Build Status](https://travis-ci.org/patarapolw/pypwm.svg?branch=master)](https://travis-ci.org/patarapolw/pypwm)[![PyPI version shields.io](https://img.shields.io/pypi/v/pypwm.svg)](https://pypi.python.org/pypi/pypwm/)[![PyPI license](https://img.shields.io/pypi/l/pypwm.svg)](https://pypi.python.org/pypi/pypvm/)[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pypwm.svg)](https://pypi.python.org/pypi/pypwm/)[![PyPI status](https://img.shields.io/pypi/status/pypwm.svg)](https://pypi.python.org/pypi/pypwm/)[![Examples tested with pytest-readme](http://img.shields.io/badge/readme-tested-brightgreen.svg)](https://github.com/boxed/pytest-readme)A library for password manager for Python## Features- Automatic vault locking and saving after predefined time (default 60 sec)- Vault file generation- Passcode lock with RSA (based on PyCryptodome)## Installation```commandlinepip install pypwm```or```commandlinepipenv install -e git+https://github.com/patarapolw/pypwm.git#egg=pypwm```## Usage```pythonfrom pwm.vault import Vaultwith Vault('amasterpassword') as vault:vault['reddit'] = {'password': 'averycomplexpassword'}with Vault('amasterpassword') as vault:print(vault['reddit']['password'])```## Real-world usage```pythondo_exit = Falsewhile not do_exit:try:while True:try:vault = Vault(getpass('Please enter the master password : '))breakexcept ValueError:continuewhile not do_exit:print('Password available for:', ', '.join(dict(vault).keys()))name = input('Please type the name of password to view or create a new one, or press q to exit. : ')if name == 'q':do_exit = Truebreaknew_entry = dict(vault).get(name, {'password': generate_password(),})print(new_entry)if input('Do you want to save? Press [y/Y] to save: ').lower() == 'y':vault[name] = new_entryvault.close()except AttributeError:continue```## Found in- https://github.com/patarapolw/memorable-password
Package: py-pwned
What is this repository for?The API allows the list of pwned accounts (email addresses and
usernames) to be quickly searched via a RESTful service.How do I get set up?Install this script with:pip3 py_pwned –upgrade (or pip py_pwned –upgrade )orsudo -H pip3 py_pwned –upgradeready to use it!What packages does this script usescfscrapevalidate_emailhashlibYou can also install them by handpip install cfscrapepip install validate_emailpip install hashlibHow to usestart withpwned = PwNed()For Password checkdata =pwned.searchpwd('YOURPASSWORD')print(data)For email checkdata =pwned.searchemail('YOUREMAIL)print(data)Who do I talk to?Theodorus van der Sluijs (friends call me Theo)theodorus@vandersluijs.nlLicenseAttribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)You are free to:Share — copy and redistribute the material in any medium or formatAdapt — remix, transform, and build upon the material-The licensor cannot revoke these freedoms as long as you follow the
license terms.-Under the following terms:Attribution — You must give appropriate credit, provide a link to the
license, and indicate if changes were made. You may do so in any
reasonable manner, but not in any way that suggests the licensor
endorses you or your use.NonCommercial — You may not use the material for commercial purposes.ShareAlike — If you remix, transform, or build upon the material, you
must distribute your contributions under the same license as the
original.
Package: pypws
PHAST WEB SERVICESIntroductionPhast is the world's most comprehensive process hazard analysis software which models the progress of a potential incident from the initial release to far-field dispersion including modelling of pool spreading and evaporation and resulting flammable and toxic effects. In Phast Web Services we have taken the same state of the art consequence modelling calculations and made them available as web services so you can use them in your own applications.Consequence analysisWe built web services for various consequence calculations so you don't have to.We have services available for:DischargeToxic/flammable gas dispersionFire and explosion modellingReference documentationA detailed reference document for using PyPWS can be foundhere.
Package: py-pwsafe
Python Password SafePython Password Safeis a simple password manager CLI tool written in Python.Python Password Safeallows you to save an encrypted list of username-password entries organized into different groups of your making. All you have to do is create and remember one master PIN number in order to unlock your password safe.Note:This project was independently made for the purposes of learning new
cryptography tools, practicing database interactions with SQLite, and developing a
personal password manager for my local machine. Therefore, strong security is not
guaranteed. Please use at your own risk!Getting StartedInstallation# Using PyPI
pip3 install py-pwsafeRunning the programpypwsafeDemoInitial SetupBasic UsageNote:Colors, emojis, and other formatted text will not display correctly on
Windows machines.Windows Command Linedoes not (currently) support unicode
characters.LicenseCopyright (c) 2020 Ricky Thai
Package: pypwsafev3
IntroductionA pure-Python library that can read and write Password Safe v3
files. It includes full support for almost all current Password
Safe v3 database headers and record headers.HistoryThe library was initially written by Paulson McIntyre for
Symantec in 2009. It was later released by Symantec under the
GPLv2 in 2011. Changes and updates have been made since by Paulson
McIntyre (GpMidi), Evan Deaubl (evandeaubl), and Sean Perry (shaleh).
Rony Shapiro maintains the project page and acts as gate keeper
for new patches.Known IssuesLack of documentationUnit tests are out-of-dateThere MAY be an issue with the order that NonDefaultPrefsHeader serializes preferences for HMAC validation in pypwsafe. Although the library validates HMACs fine at the moment, so who knows.DependenciespycryptopluspycryptodomeInstall InstructionsRHEL/CentOSInstall libmcrypt and it's dev package along with the Python dev package:
yum install libmcrypt-devel libmcrypt python-devel
These packages are needed by the installer for python-mcryptInstall the standard Linux development tools. For RHEL/CentOS 5 and 6,yum groupinstall 'Development tools'can be used if your YUM repos have group information.Use Pip or easy install to install python-mcrypt, hashlib, and pycryptoRun the setup script
python setup.py installTest that the module loads
python -c "import pypwsafe"Development Setup InstructionsFIXME: Fill this inFAQWhere can I find details on the Password Safe file format?The format spec is kept in the Password Safe project's SVN repo. Go
to the password safe code base and check in /pwsafe/pwsafe/docs/formatV3.txt.
As of today, it can be foundhereTODOAdd support for using a pure-python TwoFish algorithm if mcrypt doesn't work.http://code.google.com/p/python-keysafe/source/browse/crypto/twofish.pyhttp://www.bjrn.se/code/twofishpy.txt
Package: pypx800
pypx800 - Python GCE IPX800 v4Control the IPX800 v4 ans its extensions: X-PWM, X-THL, X-4VR, X-4FP, X-8R, X-8D, X-24D and X-Dimmer trough:RelayVirtual outputVirtual inputDigital inputAnalog inputCounterX-Dimmer outputX-PWM channelX-THL (temp, hum, lux)X-4VR outputX-4FP zoneIPX800 parametershost: ip or hostname (mandatory)port: (default:80)api_key: (mandatory)user: name of user or admin (for X-PWM only)password: password of user or admin (for X-PWM only)specific_devices_types: add specific devices types for custom api request (supported: ["counter"])request_retries: number of request retries on error (default:3)request_timeout: timeout for request (default:5)request_checkstatus: true to raise error if IPX800 return no success result like partial result, afterrequest_retriesretries (default:True)session: aiohttp.client.ClientSessionExampleimportasynciofrompypx800import(IPX800,X4FP,X4VR,XPWM,XTHL,AInput,VAInput,DInput,Relay,VInput,VOutput,XDimmer)asyncdefmain():asyncwithIPX800(host='192.168.1.123',api_key='xxx')asipx:data=awaitipx.global_get()print("all values:",data)print("## Relay ##")r15=Relay(ipx,15)print(awaitr15.status)awaitr15.on()awaitr15.off()print("## X-Dimmer ##")g1=XDimmer(ipx,1)awaitg1.on()# default 500 millisecondsawaitg1.set_level(80)# default 500 milliseconds delayawaitg1.set_level(20,0)# 0 milliseconds delayawaitg1.off(2000)# 2 seconds delayprint(awaitg1.level)print(awaitg1.status)print("## X-PWM ##")pwm1=XPWM(ipx,1)awaitpwm1.on()# default 500 milliseconds delayawaitpwm1.on(1000)# 1 second delayawaitpwm1.set_level(50)# default 500 milliseconds delayawaitpwm1.set_level(20,0)# 0 millisecond delayprint(awaitpwm1.status)awaitpwm1.off()print("## Analog Input ##")print(awaitAInput(ipx,1).value)print("## Virtual Analog Input ##")print(awaitVAInput(ipx,1).value)print("## Digital Output ##")d1=DInput(ipx,1)print(awaitd1.value)print("## Virtual Input ##")vi=VInput(ipx,3)awaitvi.on()print(awaitvi.status)print("## Virtual Output ##")vo=VOutput(ipx,12)awaitvo.on()print(awaitvo.status)print("## X-THL ##")sensor=XTHL(ipx,1)print(awaitsensor.temp)print(awaitsensor.hum)print(awaitsensor.lum)print("## X-4VR ##")vr=X4VR(ipx,1,3)# Extension number, VR numberawaitvr.on()awaitvr.set_level(30)awaitvr.set_pulse_up(5)print(awaitvr.status)print(awaitvr.level)print("## X-4FP ##")fp=X4FP(ipx,1,3)# Extension number, Zone number# 0 confort, 1 Eco, 2 Hors Gel, 3 Stop, 4 Confort -1, 5 Confort -2print(awaitfp.status)awaitfp.set_mode(1)awaitfp.set_mode_all(1)# set for all zonesprint(awaitfp.status)print("## Counter ##")counter=Counter(ipx,1)print(awaitcounter.value)if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())CreditsThank tod3mi1andmarcaurelefor inspiration :)
Package: pypx800v5
pypx800v5 - Python GCE IPX800 V5Control the IPX800 V5, its extensions and objects:ThermostatCounterTempoX-8RX-8DX-24DX-DimmerX-PWMX-THLX-4VRX-4FPX-Display (v1 and v2)IPX800 parametershost: ip or hostname (mandatory)port: (default:80)api_key: (mandatory)request_timeout: timeout for request in seconds (default:30)request_retries_count: retry request if an error occured (default:5)request_retries_delay: delay in seconds before trying request (default:0.5)session: aiohttp.client.ClientSessionExampleimportasynciofrompypx800v5import*asyncdefmain():asyncwithIPX800(host='192.168.1.123',api_key='xxx')asipx:awaitipx.ping()awaitipx.init_config()relay=IPX800Relay(ipx,0)print(awaitrelay.status)awaitrelay.on()opencoll=IPX800OpenColl(ipx,0)print(awaitopencoll.status)awaitopencoll.on()input=IPX800DigitalInput(ipx,2)print(awaitinput.status)input=IPX800AnalogInput(ipx,0)print(awaitinput.status)input=IPX800OptoInput(ipx,0)print(awaitinput.status)light=X8R(ipx,0,7)print(awaitlight.status)awaitlight.on()pwm=XPWM(ipx,0,6)print(awaitpwm.status)print(awaitpwm.level)awaitpwm.set_level(90)light=XDimmer(ipx,0,2)print(awaitlight.status)print(awaitlight.level)awaitlight.on()input=X24D(ipx,0,14)print(awaitinput.status)capteur=XTHL(ipx,0)print(awaitcapteur.temperature)print(awaitcapteur.humidity)print(awaitcapteur.luminosity)tempo=Tempo(ipx,0)print(tempo.name)print(awaittempo.status)print(awaittempo.time)x010v_output=X010V(ipx,0,2)print(awaitx010v_output.status)print(awaitx010v_output.level)awaitx010v_output.on()xdisplay=XDisplay(ipx,0)awaitxdisplay.refresh_screens()forscreeninxdisplay.screens:print(f"{screen.id}-{screen.name}-{screen.type}")print(f"screen status ?{awaitxdisplay.screen_status}")print(f"screen locked ?{awaitxdisplay.screen_lock_status}")print(f"current screen ?{awaitxdisplay.current_screen_id}")awaitxdisplay.set_screen(0)print(f"current screen ?{awaitxdisplay.current_screen_id}")if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: pypxl
pypxlAn asynchronous wrapper forpxlapiInstall itJust usepip3 install pypxlto install itHow to use itfrompypxlimportPxlClient#Define yout details herepxl=PxlClient(token="Your pxlapi token",stop_on_error=False)Now you can use a all pxlapi features with just one line of code!glitch=awaitpxl.glitch(images=["https://cdn.discordapp.com/avatars/606162661184372736/a_62245605493deac02c291fe8fa517bee.gif?size=512"])DocsThere is no website offering documentation, however if you hover over a function in your IDE it will give you some info about what it does, you can also just read the source code. For an example in a discord bot, please clickhereI have implemented most functions this library offers in commands in my bot. You can find those commandshereFor questions and suggestions, join my discord server or dm me (Kile#0606)
Package: pypxr
PyPXROpen-source python utilities for modeling Polarized X-ray Reflectivity using an anisotropic transfer matrix formalism. The roots of this package were originally forked from the refnx.reflect layer model developed by Andrew Nelson.This package requires the use ofrefnxin order to model and fit data.Some functionalities have been forked and repurposed from other open-source utilities:D. Dietze : FSRStoolsM. Jeannin : pyGTMP. Dmitriev : PyATMMResults produced from the main-branch uniaxial calculation have been published and can be found onlineACS Appl. Mater. Interfaces 2022, 14, 2, 3455–3466 (DOI:10.1021/acsami.1c19948)Contact information:Authors: Thomas J. Ferron & Daniel F. SundayAffiliation: Materials Measurement Laboratory / Material Science and Engineering Division / Polymers Processing GroupWebsite:Detailed Documentation (ReadTheDocs)Resonant Soft X-ray Scattering GroupEmail:daniel.sunday@nist.gov
Package: pypyARXaaS
PyARXaaSPython Package for interfacing with ARXaaS in PythonRead more about PyARXaaS at:https://pyarxaas.readthedocs.io/Getting StartedInstallationpipinstallpyarxaasBasic Usage# import dependenciesfrompyarxaasimportARXaaSfrompyarxaas.privacy_modelsimportKAnonymityfrompyarxaasimportAttributeTypefrompyarxaasimportDatasetimportpandasaspdarxaas=ARXaaS(url)# url contains url to AaaS web servicedf=pd.read_csv("data.csv")# create Datasetdataset=Dataset.from_pandas(df)# set attribute typedataset.set_attributes(AttributeType.QUASIIDENTIFYING,'name','gender')dataset.set_attribute(AttributeType.IDENTIFYING,'id')# get the risk profle of the datasetrisk_profile=arxaas.risk_profile(dataset)# get risk metricsre_indentifiation_risk=risk_profile.re_identification_riskdistribution_of_risk=risk_profile.distribution_of_risk
Package: pypy-geoff
Example Python PackageFollowing this article:https://mathspp.com/blog/how-to-create-a-python-package-in-2022NotesZSHIn zsh, it looks like you need to quote poetry packages:poetry add -D scriv[toml]
$ zsh: no matches found: scriv[toml]poetry add -D "scriv[toml]"
$ ... installed ...
Package: pypygifmaker
Project DescriptionThe simple way of making GIF.You can make gif with image urls or PIL image list.InstallationThe recommended way to install is viapip$pipinstallpypygifmakerGetting Startedfrompygifmaker.pygifmakerimportGifMakergifmaker=GifMaker()output_filename: ex) "output.gif"images: List of image srcfps: 1 frame per secondloop: 0 for infinite 1 for onceIf you want to make GIF with image urlsimages=[## Image src]GifMaker.Make(output_filename,images,fps,loop)If you want to make GIF with PIL imagespil_images=[## PIL Image]GifMaker.PIL(output_filename,pil_images,fps,loop)SupportIf you find an bug, have any questions about how to use py-gifmaker or have suggestions for improvements then feel free to file an issue on theGithub project page.LicenseAll of the code contained here is licensed by the MIT.
Package: pypygo
pypygo - A Python wrapper for the DuckDuckGo instant answer API>>>importpypygo>>>q=pypygo.query('GitHub')>>>q.abstract'GitHub is a web-based hosting service'...>>>q.results[0].text'Official site'
...See the officialDuckDuckGo API.InstallationTo install pypygo, simply:$pipinstallpypygo
Package: pypyorm
pyormPython ORM Modulebasicimport modulefrom pyorm import ormconfig connectiondatabase_driver = "pymysql"
database_params = []
database_config = {
	"host": "127.0.0.1",
	"user": "root", 
	"password": "123456",
	"db": "test",
	"charset": "utf8mb4",
}
orm.config(database_driver, *database_params, **database_config)create tablecreate_table_user = '''CREATE TABLE `table_user` (
	`id` int(11) NOT NULL AUTO_INCREMENT,
	`username` varchar(45) NOT NULL,
	`password` varchar(45) NOT NULL,
	`nickname` varchar(45) NOT NULL,
	`num` int(11) NOT NULL,
	PRIMARY KEY (`id`)
	) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4'''
orm.execute(create_table_user)prefix tableorm.prefix("table_")OrmSqlBuilder quick methodfind by pkorm.user.find(5)addorm.user.add(user).lastrowideditorm.user.edit(user).rowcountremove by idorm.user.remove(11).rowcountsaveorm.user.save(user)OrmSqlBuilder methodinsertorm.user.insert(data)updateorm.user.where("username = ?", "admin1").update(data)deleteorm.user.where("id = ?", 4).delete()select whereorm.user.columns("id", "username").where("id > ", 10).where("num IN (?)", [8, 9, 10]).select().fetch_all()group havingorm.user.group("num").select()orderorm.user.order("num DESC", "id").select()limit offsetorm.user.limit(10).offset(20).select()pageorm.user.page(4, 10).select()countorm.user.where("id < ?", 10).count()plusorm.user.where("`id` = ?", 2).plus("num", 1, "num", -1)Cursor methodfetch_allorm.user.select().fetch_all()fetchorm.user.select().fetch()fetch_oneorm.user.select().fetch_one("id")fetch_columnorm.user.select().fetch_column("id")fetch_uniqueorm.user.select().fetch_unique("id")fetch_key_pairorm.user.select().fetch_key_pair("id", "username")ORM methodinsertorm.insert("INSERT INTO `table_user` (`username`, `password`, `nickname`, `num`) VALUES (?, ?, ?, ?)", "admin1", "admin1", "admin1", 1).lastrowidupdateorm.update("UPDATE `table_user` SET `password` = ?, `nickname` = ?, `num` = ? WHERE username = ?", "admin123", "admin123", 123, "admin1").rowcountdeleteorm.delete("DELETE FROM `table_user` WHERE id = ?", 1).rowcountselectorm.select("SELECT * FROM `table_user` WHERE id = ?", 1).fetch_all()
Package: pypyr
pypyr automation task runnerAll documentation is here:https://pypyr.io/pypyrpronounce how you like, but I generally saypiperas in "piping
down the valleys wild"pypyr is a free & open-source task-runner that lets you define and run
sequential steps in a pipeline.Like a turbo-charged shell script, but less finicky. Less annoying than
a makefile.pypyr runs pipelines defined in yaml. A pipeline is pretty much anything
you want to automate with a sequence of steps.Automate anything by combining commands, different scripts in different
languages & applications into one pipeline process.You can run loops, conditionally execute steps based on conditions you
specify, wait for status changes before continuing, break on failure
conditions or swallow errors. Pretty useful for orchestrating continuous
integration, continuous deployment & devops operations.pypyr gives you simple variable substitution & configuration file
management so you can read, merge and write configuration files to and
from yaml, json or just text.Installation$pipinstall--upgradepypyrTested against Python >=3.7pypyr runs on Linux, MacOS & Windows. pypyr also runs fine on CI servers &
containers - pretty much anywhere with a Python run-time will work.UsageThis is a pipelineExample pipeline that runs a sequence of steps and takes an optional
custom cli input argument:# ./show-me-what-you-got.yamlcontext_parser:pypyr.parser.keyvaluepairssteps:-name:pypyr.steps.echoin:echoMe:o hai!-name:pypyr.steps.cmdin:cmd:echo any cmd you like-name:pypyr.steps.shellin:cmd:echo ninja shell power | grep '^ninja.*r$'-name:pypyr.steps.pyin:py:print('any python you like')-name:pypyr.steps.cmdwhile:max:3in:cmd:echo gimme a {whileCounter}-name:pypyr.steps.cmdforeach:[once,twice,thrice]in:cmd:echo say {i}-name:pypyr.steps.defaultin:defaults:sayBye:False-name:pypyr.steps.echorun:'{sayBye}'in:echoMe:k bye!This is how you run a pipelineThis is what happens when you run this pipeline:$pypyrshow-me-what-you-goto hai!any cmd you likeninja shell powerany python you likegimme a 1gimme a 2gimme a 3say oncesay twicesay thrice$pypyrshow-me-what-you-gotsayBye=trueo hai!any cmd you likeninja shell powerany python you likegimme a 1gimme a 2gimme a 3say oncesay twicesay thricek bye!Help!Don't Panic! Check thepypyr technical docsto begin. For help, community & talk, checkpypyr
twitter, or join the chat at thepypyr community discussion forum!ContributeDevelopersFor information on how to help with pypyr, run tests and coverage,
please do check out thecontribution guide.BugsWell, you know. No one's perfect. Feel free tocreate an
issue.Licensepypyr is free & open-source software distributed under the Apache 2.0 License.Please seeLICENSE filein the root of the repo..Copyright 2017 the pypyr contributors.
Package: py-Pyro
Telegram MTProto API Framework for PythonDocumentation•Releases•NewsPyrogramElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyroimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()Pyrogramis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance crypto library written in pure C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyroResourcesCheck out the docs athttps://docs.pyro.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyroand stay tuned for news, updates and announcements.