Saravanan666/pypi-org huggingface dataset:
Package: pypassvault
PYPASSVAULTA simple command line password vault written in python.DescriptionThis tool was developed as a personal experiment to try out cryptography in python and also to develop a handy tool that can act as a secure command line password vault.Installationpip install pypassvaultUsageOnce you install the package, you will can usepassvaultutility from command line to use this tool.Help> passvault -h
Usage: passvault [--core-opts] <subcommand> [--subcommand-opts] ...

Core options:

  --complete                     Print tab-completion candidates for given parse remainder.
  --hide=STRING                  Set default value of run()'s 'hide' kwarg.
  --write-pyc                    Enable creation of .pyc files.
  -d, --debug                    Enable debug output.
  -e, --echo                     Echo executed commands before running.
  -f STRING, --config=STRING     Runtime configuration file to use.
  -h [STRING], --help[=STRING]   Show core or per-task help and exit.
  -l, --list                     List available tasks.
  -p, --pty                      Use a pty when executing shell commands.
  -V, --version                  Show version and exit.
  -w, --warn-only                Warn, instead of failing, when shell commands fail.

Subcommands:

  configure   Set the configuration
  get         Get password for a username and application (optional)
  list        List all applications and users for which password is set
  setpasswd   Set password for a username and application (optional)If you need help on any sub command you can typepassvalut -h <subcommand>to see the specific help for it.e.g.> passvault -h configure
Usage: passvault [--core-opts] configure [--options] [other tasks here ...]

Docstring:
  Set the configuration

Options:
  -c STRING, --confdir=STRINGSet a passwordpassvault setpasswd -a appname -u username
Enter vault password:
Set an app password for username:When you run passvault for the first time you will be asked to set up a vault password. Please note that Vault password is the single password that you will need for all future operations.Please do not forget yourvault passwordas if you forget it then the vault will not be recoverable.Get the password details> passvault get -a appname -u username
Enter vault password:
<Password>List Applications and Usernames present under passvault> passvault list -a appname
Enter valult password:
Users for application appname are:
['username']To list all applications & Usernames> passvault listTo check pypassvault versionpassvault -V or passvault --versionTodoRefactoring of existing APIsFunctionality of deleting records by appname or user - CompletedGenerate password featureImport and Export of DataBetter DocumentationProviding an API interface for passvaultImprovement in Encryption & Portability of Password VaultSupport for ClipboardTestingBetter to have features:Password expiration notification/reminderUI for pypassvaultCloud Backup & Sync of Vault FileLICENSEMIT
Package: pypasswd
LibraryThis Python package provides a secure and simple password generating library.
In order to generate passwords, a classPasswdGeneratorwas implemented.All passwords are generated using the standardsecretsmodule which is safe
for random number generation.ThisPasswdGenerator’s__init__takes a single argument which is a list
of strings from which to choose when generating passwords. The strings will
internally be stored as a listfrozensets. If unspecified, the default
character sets to choose from will be:lowercase lettersuppercase lettersdigitspunctuation (!"#$%&\'()*+,-./:;<=>?@[\\]^_\`{|}~')PasswdGeneratorobjects are callable and will return a password when
called. Two parameters can be given, to the object when calling it, the length
of the password to generate and a boolean value telling the object wethernotto enforce strict password generation (at least one element from each
set). By default, the length of the generated password will be64and itwillbe generated strictly.These two snippets of code are equivalent:importpypasswdpasswdgen=pypasswd.PasswdGenerator()print(passwdgen())andimportstringimportpypasswdpasswdgen=pypasswd.PasswdGenerator(string.ascii_lowercase,string.ascii_uppercase,string.digits,string.punctuation)print(passwdgen(64,False))Further documentation can be foundhere.ScriptAs most users will just want to run a script and get a password, a script namedpypasswdis shipped with this package. It’s usage is as follows:usage: pypasswd [-h] [-n N] [-l L] [-c str [str ...]] [-S]

Securely generate a random password.

optional arguments:
  -h, --help            show this help message and exit
  -n N, --number N      number of passwords to generate (default: 1)
  -l L, --length L      size of each password (default: 64)
  -c str [str ...], --charsets str [str ...]
                        strings of characters to choose from (default: lowercase, uppercase, digits and punctuation)
  -S, --no-strict       do not force having at least one character from each character set (default: False)
Package: pypassword
random-passwordThis is a simple password generator written in python.If you want to buy me some coffee :DUsageBasic usage:usage: pypassword.py [-h] [-s SIZE] [-x]

optional arguments:
  -h, --help            show this help message and exit
  -s SIZE, --size SIZE  Random string size
  -x                    When set, use special charactersGet random password with default size(14):docker run --rm pipoline/random-passwordoutput:a8xlHjNEQ1sLFjWhen you want to change password length just add -s/--size parameter e.g.:docker run --rm pipoline/random-password -s 20output:bjMhaBqnw5Y8TvsmNLZVUsage with special characters:docker run --rm pipoline/random-password -s 20 -xoutput:O`v5|!XnV#N@[UXtg%Ei
Package: pypasswordgen
pypasswordgenA pyton based random password generatorSystem RequirementsPython3Installation InstructionspipinstallpypasswordgenOptions-h, --help                     show this help message and exit

  -l LENGTH, --length LENGTH    Length of password

  -n NUMBER, --number NUMBER    Number of passwords to generate

  -o PATH, --output PATH        Path to output file

  -p, --punctuation             Include pupnctuation. If another -p is givenit will ONLY include punctuation.

  -d, --digit                   Include digits. If another -d is given, it will ONLY include digits. -dd takes precedence over -pp.

  -u, --upper                   Include uppercase letters. If another -u is given, it will ONLY include uppercase letters. -uu takes precedence over -pp and -dd.
Package: pyPasswordGenerator
PasswordGeneratorPassword Generatorbased onPerfect Paper PasswordsHigh security multifactor authentication password generator.standard passcode setThis is the standard and conservative PPP set of 64 characters. It was chosen to remove characters that might be confused with one another. Using 4-characters per passcode, 16,777,216 passcodes are possible for very good one time password securitypasscode_set = '!#%+23456789=?@ABCDEFGHJKLMNPRSTUVWXYZabcdefghijkmnopqrstuvwxyz'example:use standard set to create password length = 10, with 3 uppercases, 3 digits and 1 symbolfrom pyPasswordGenerator import password as ps
# standard set
set = 's' 
ps.generator(length = 10, upper = 3, digits =3, symbol = 0, set =set  )
>>>'5v5njx9BAN'visually aggressive passcode setThis is a much more "visually aggressive" (somewhat more interesting
and certainly much stronger) 88-character alphabet which supports
the generation of 59,969,536 possible 4-character passcodes:passcode_set = '''!"#$%&'()*+,-./23456789:;<=>?@ABCDEFGHJKLMNOPRSTUVWXYZ[]^_abcdefghijkmnopqrstuvwxyz{|}~'''exampleuse standard set to create password length = 8, with 2 uppercases, 2 digits and 2 symbolfrom pyPasswordGenerator import password as ps
# visually aggressive set
set = 'v' 
ps.generator(length = 8, upper = 2, digits =2, symbol = 2, set =set  )
>>>'sX65%A^g'use won set to limit symbol with only !#@use your set create password length = 12, with 4 uppercases, 2 digits and 2 symbolsfrom pyPasswordGenerator import password as ps

# my own password set
set = '!#23456789@ABCDEFGHJKLMNPRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
ps.generator(length = 11, upper = 4, digits =2, symbol = 2, set =set  )
>>>'@F8Wa#jRn6S'DefinitionParameterDefaultDescriptionlength8Length of Password, if length = 10 then xdat3a9$dgupper2How many upper case charactors, if upper =4 GdAT3a9$Dgdigits2How many digits, if digits = 1 GdAT3ad$Dgsymbol0How many symbol if symbol=4 G#A!3a9$D!passcode_setsvinstallationpip install pyPasswordGenerator
Package: pypasswork
Passwork python libraryLibrary to interract with PassworkAPI with Python.DescriptionThe library helps you to make requests to Passwork within your code using.
In current 0.0.1 version it can just find a password by name.DependenciesPython 3.10+requests 2.30.0+ExamplesfrompypassworkimportPassworkAPIpapi=PassworkAPI(url='https://passwork.domain.name',key='foobar')passwords=papi.passwords.search('Some_password')print(passwords)[Password(name='Some_password')]password=passwords[0]dir(password)['__annotations__','__class__','__dataclass_fields__','__dataclass_params__','__delattr__','__dict__','__dir__','__doc__','__eq__','__format__','__ge__','__getattribute__','__getstate__','__gt__','__hash__','__init__','__init_subclass__','__le__','__lt__','__match_args__','__module__','__ne__','__new__','__reduce__','__reduce_ex__','__repr__','__setattr__','__sizeof__','__str__','__subclasshook__','__weakref__','access','access_code','as_dict','attachments','color','description','encrypted_password','id','is_favorite','login','name','password','path','tags','url','vault_id']print(password.name)Some_passwordprint(password.encrypted_password)abcxyzfoobar=print(password.password)P@ssw0rd
Package: pypat
pypatpypat is a Python library that makes playing audio simple. pypat uses FFmpeg to provide
robust support for virtually any audio format and SDL2 to play back audio.PrerequisitesInstallPrerequisitesbefore installing.Installpip3installpypatExample>>>importpypat# Play a file>>>pypat.play('amerika.mpga')# Skip the current file>>>pypat.skip()# Pause audio playback>>>pypat.pause()# Resume audio playback>>>pypat.resume()
Package: pypatchin
Do you want a fast and clean solution to patch your files and
repositories? Use me, a Pythonpypatchinpackage!I can patch your text, your files and your entire repositories. To do
so, I rely on the high performance patching librarydiff-match-patch,
making it accessible via Python code.How to useThis project requires the diff-match-patch package:pip install diff-match-patchThere are 2 main methods provided:from pypatchin import patch

patch.compute_and_save_patches_for_list_of_files(all_files_to_patch, original_dir_name, latest_dir_name, patch_dir_name)
patch.apply_all_patches_to_files(all_files_to_patch, patch_dir_name, original_dir_name, patched_file_dir_name)To compute patches for a list of files and to apply these patches to the
same list of files.Also, a method for checking the working is provided:from pypatchin import compare

result = compare.compare_latest_vs_generated_list_of_files(all_files_to_patch, latest_dir_name, generated_dir_name)ExamplesSeetry_me.pyandcheck_me.pyscripts inside the example
directory. They work on the sample repository inside original and latest
directories.ExtrasPatch a text:tmp_diff = compute_diff_from_strings("Test old text.", "Test new text.")
apply_diff_to_string("Text ole text", tmp_diff)Patch a single file:compute_and_save_patch_from_file(original_dir_name, original_file_name, latest_dir_name, latest_file_name, patch_dir_name, patch_file_name)
apply_patch_to_file(original_dir_name, original_file_name, patch_dir_name, patch_file_name, patched_file_dir_name, patched_file_name)TestsNo tests present for now.ContributePull Requests are welcome.Ensure the PR description clearly describes the problem and solution. It
should include:Name of the module modifiedReasons for modification
Package: pyPatchouli
PatchouliLINEトーク履歴解析ライブラリ・Patchouli(パチュリー)AboutLINEで書き出したトーク履歴をパースします。トーク履歴は、OSによって保存方式が違います。Patchouliでは、AndroidとWindowsをサポートしています。Install$pipinstallgit+https://github.com/nakasyou/Patchouli.gitHow to use it?importpypatchouliaspatchouliwithopen("talk.txt")asf:result=patchouli.Parse(f.read(),#トーク履歴のテキストデータpatchouli.modes.ja.android# modeを指定。ここではAndroid.)print(result)resultは、Parseクラスのインスタンスとなります。1番目のトークを取り出したいならfirst=result[0]と記述できます。
firstの内容は、pypatchouli.Seqクラスのインスタンスになっています。このインスタンスから、情報を取り出すことができます。first.user# ユーザー名first.time# 日時(datetime.datetime)first.seq# 本文Detailpypatchouli.modespypatchouli.modes.Modeモード作成用クラスpypatchouli.modes.Mode(**options)pypatchouli.modes.japypatchouli.modes.ja.windowswindows用モードpypatchouli.modes.ja.androidandroid用モードpypatchouli.Parseパースのクラスpypatchouli.Parse(text,mode=patchouli.modes.windows)
Package: pypathfinder
PathfindingThis package provides a pure Python implementation for Dijkstra and A-Star as well as a faster Cython implementation.Using the pure Python Djikstrafrompypathfinder.DijkstraimportNode,bestpathdefexample_nodesystem():# https://de.wikipedia.org/wiki/Dijkstra-Algorithmus#Beispiel_mit_bekanntem_Zielknotenfrankfurt=Node("Frankfurt")mannheim=Node("Mannheim")kassel=Node("Kassel")wuerzburg=Node("Würzburg")frankfurt.connect({mannheim:85,wuerzburg:217,kassel:173},True)# True value results in connecting all the given Nodes to frankfurt and back with the same costkarlsruhe=Node("Karlsruhe")mannheim.connect({karlsruhe:80},True)erfurt=Node("Erfurt")nuernberg=Node("Nürnberg")wuerzburg.connect({erfurt:186,nuernberg:103},True)stuttgart=Node("Stuttgart")nuernberg.connect({stuttgart:183},True)augsburg=Node("Augsburg")karlsruhe.connect({augsburg:250},True)muenchen=Node("München")muenchen.connect({augsburg:84,nuernberg:167,kassel:502},True)returnfrankfurt,muenchenfrankfurt,muenchen=example_nodesystem()path=bestpath(frankfurt,muenchen)# path includes start and endpoint# all Nodes have a cost value nowUsing the Cython Djikstrafrompypathfinder.fastimportCNode,djikstra_bestpathdefexample_nodesystem():# https://de.wikipedia.org/wiki/Dijkstra-Algorithmus#Beispiel_mit_bekanntem_Zielknotenfrankfurt=CNode("Frankfurt")mannheim=CNode("Mannheim")kassel=CNode("Kassel")wuerzburg=CNode("Würzburg")frankfurt.connect({mannheim:85,wuerzburg:217,kassel:173},True)karlsruhe=CNode("Karlsruhe")mannheim.connect({karlsruhe:80},True)erfurt=CNode("Erfurt")nuernberg=CNode("Nürnberg")wuerzburg.connect({erfurt:186,nuernberg:103},True)stuttgart=CNode("Stuttgart")nuernberg.connect({stuttgart:183},True)augsburg=CNode("Augsburg")karlsruhe.connect({augsburg:250},True)muenchen=CNode("München")muenchen.connect({augsburg:84,nuernberg:167,kassel:502},True)returnfrankfurt,muenchenfrankfurt,muenchen=example_nodesystem()path=bestpath(frankfurt,muenchen)# path includes start and endpoint# all Nodes have a cost value nowUsing INode (example for the pure Python version)...frompypathfinder.DijkstraimportINode,ibestpath,copy_graphfrompypathfinder.utilsimportPathErrorpoint1=INode(1)point2=INode(2,lambdax:x%2==1)point3=INode(3,lambdax:x%2==0)point4=INode(4)point1.connect({point2:15,point3:5},True)point4.connect({point2:15,point3:10},True)try:path=bestpath(point1,point4)# time 0 at startingpositionexceptPathError:print("Error, no path")else:print(path)point1,point4,graph=copy_graph(point1,point4)graph.get(point2).connect({graph.get(point3):2},True)try:path=bestpath(point1,point4)exceptPathError:print("Error, no path")else:print(path)
Package: pypath-fpa
pypath : A* pathfinding algorithm wrote in C++ for pythonThe goal of this project is to provide a fast and efficient python library that can find a path given a list of obstacle.This module was originally developed for EIRBOT the robotic club of the engineer school Enseirb-Matmeca(French school).REQUIREMENTSYou will need g++ in order to install pypath-fpa!Avaliables constructorsCoordinates(x,y)Size(width,height)Rectangle(Coordinates,Size)Castar()Field()Field(int robot_diameter)Field(int width, int height, int robot_diameter)DocumentationClickHERE!How to useHere is a simple example :field=Field(20)castar=Castar()field.add_obstacle(Rectangle(Coordinates(60,20),Size(2,40)))field.add_obstacle(Rectangle(Coordinates(150,40),Size(10,40)))field.add_obstacle(Rectangle(Coordinates(80,80),Size(200,2)))err,path=castar.find_path_simplified(Coordinates(10,10),Coordinates(10,100),field)iferr==0:foo(path)field.delete_obstacle(Coordinates(10,40))AuthorCLUZEL Baptiste
Package: pyPathLinux
PyPath - LinuxInstallpip install pyPathLinuxHow To Use:importpyPathmy_path=pyPath()make_redirecting_bashfile()For making a  Bash file which will call a target python file.args:filename,
target_pyfile="",
content_edited=None,
allow_args=False,
max_num_args=0Use:print(my_path.addfile_to_path("/home/programming/test_123_2.sh","test_123_2.sh",exe=True))addfile_to_path()For adding file to path.args:path,
file_name,
exe=False,
permissions=Noneseek_to_path()returns the items in the path.path_var_exists()return if a path exists.args:pathadd_dir_to_path_TEMP()Adds a dir to path Temp.agrs:pathadd_dir_to_path_PERMANENT()Adds a dir to path.args:path,
path_to_bashrc
Package: pypaths
PyPaths is a small library useful for computing paths across simple in-memory graphs. Try it out by installing with pip:> pip install pypathsOr, alternatively, install from source:> git clone https://github.com/jonathanhood/pypaths.git
> cd pypaths
> python setup.py installFor the simplest default case, usage is very simple:frompypathsimportastarfinder=astar.pathfinder()printfinder((0,0),(2,2))We can also provide some parameters to help the algoriths understand your specific graph:frompypathsimportastarfinder=astar.pathfinder(distance=my_distance_function,# Calculate the absolute distance between two nodescost=my_cost_function,# Calculate the heuristic cost between nodesneighbors=my_neighbors_function)# Calculate the list of neighbors for a given nodeprintfinder("MY NODE 1","MY NODE 3")
Package: py-patterns-util
py-patternsA util library for common patterns in python.Supported patternsAdaptersInstallpipinstallpy-patterns-utilExamplefrompy_patterns.adaptersimportField,AdapterclassPersonAdapter(Adapter):last_name=Field(source="person.last_name",dtype=str)first_name=Field(source="person.first_name",dtype=str)age=Field(source="person.age",dtype=int)source_data={"person":{"last_name":"Smith","first_name":"John","age":30}}# {"last_name": "Smith", "first_name": "John", "age": 30}converted_data=PersonAdapter(source_data=source_data).convert()
Package: pypavlok
Unofficial Python Bluetooth Pavlok APIOfficialPavlok APImakes requests to cloud service to send message to your tablet which will send Bluetooth command to your device. Maybe it works for tablet apps, but it is a quite clumsy way to zap people.This package controls Pavlok directly with Bluetooth commands.RequirementsBluetooth 4 compatible adapter (Pavlok uses Bluetooth Low Energy)Bluezgattlib to interface gatttoolPython 2.7Linux (I haven’t tested the code with anything else)InstallationUse pip:pip install pypavlokBe sure to install gattlib dependencies: boost-python, boost-thread and glib2Usage>>> from pypavlok import PyPavlok
>>> pavlok = PyPavlok() #If MAC address is not specified, it will be found using service discovery (requires root privileges)
>>> pavlok = PyPavlok('00:07:80:B5:9A:31', 'hci0') #Or pass MAC address (doesn't require special permissions)
>>> pavlok.battery_level
95
>>> pavlok.shock()
>>> pavlok.shock(level=50) #50% discharge
>>> pavlok.beep()
>>> pavlok.beep(count=3, duration_on=200, duration_off=100) #3 beeps by 0.2 sec with interval 0.1 sec
>>> pavlok.led()
>>> pavlok.led(led1=False, led2=True, count=5, duration_off=300) #Blink with red LEDs 5 times by 1 sec with interval 0.3 sec
>>> pavlok.vibrate()
>>> pavlok.firmware_revision
'2.4.28'All action methods (shock, vibrate, led, beep) share common set of parameters:level: discharge percents for shock(), tone for beep(), vibration speed for vibrate(), not used in led(). Default: 50count: number of repetitions. Default: 1duration_on: duration of action in milliseconds (<= 5 sec). Default: 1 secduration_off: if count > 0, set the interval between repetitions in milliseconds (<= 5 sec). Default: 1 secChecking your setupCheck if your bluetooth adapter is up:$sudohciconfig<device name> hci0:   Type: BR/EDR  Bus: USB

<device status> DOWNIf the status is down, run:$sudohciconfig<devicename>upSearch for BLE devices:$sudohcitoollescanLE Scan ...

<MAC address like xx:xx:xx:xx:xx:xx> Pavlok-xxxx

Ctrl-CTry to connect to Pavlok with gatttool:$gatttool-b<MACaddress>-I[<MAC address>][LE]> connect

Attempting to connect to <MAC address>

Connection successful

[<MAC address>][LE]> primary

attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb

attr handle: 0x0008, end grp handle: 0x001a uuid: 0000180a-0000-1000-8000-00805f9b34fbIf you got to this point, everything should workIf you encounter problems with Pavlok, try pushing The Zap Button for about 15 seconds – it will blink, vibrate and reset
Package: pypawapi
pawapipawapiis a Python package providing access to the PythonAnywhere API.InstallUsepipto install the latest version:$pipinstall--upgradepypawapi--userUsageGet your tokenfrompawapiimportPawapi,Python3TOKEN="<your_token>"USER="<your_username>"api=Pawapi(USER,TOKEN)cpu_usage=api.cpu.get_info()print(cpu_usage)domain=f"{USER}.pythonanywhere.com"api.webapp.create(domain,Python3.PYTHON39)app=api.webapp.list()[-1]print(app["id"])Docs$python-c"import pawapi; help(pawapi.Pawapi)"LICENSEThe MIT License (MIT)Copyright (c) 2019 MaraudeurPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice shall be includedin all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANYCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: pypawcli
pawcliCLI tool for PythonAnywhereInstallInstall viapipx$pipxinstallpypawcliorpip$pipinstall--upgradepypawcli--userUsageGet your api token$pawcliconfigapi.username--set<your_username>
$pawcliconfigapi.token--set<your_token>
$pawcli[COMMAND[SUBCOMMAND]]--helpLicenseMIT
Package: pypaxtor
pypaxtor: Package Storage provisioningSimple module that provides a path to a storage location
under the user home directory in a cross-platform manner.Under MacOS this will be in~/Library/Application Support;
under Windows it will be in$HOME/AppData/Local;
and under Linux it will be in~/.local/share.Packages using this module supply a package name when requesting a storage location.
A directory with that name is created under the directory namedPyPaxtorin the os-appropriate location.Usage:>>> import pypaxtor
>>> savedir = pypaxtor.get_storage_location('my_package')
>>> savedir  # if on Mac as user `rlyacht`
PosixPath('/Users/rlyacht/Library/Application Support/pypaxtor/my_package')
>>> with open(savedir / 'SaveFile.txt') as savefile:
...     # do stuffIf the above code is executed on a linux system,
the saved file will be located at/home/rlyacht/.local/share/pypaxtor/my_package/SaveFile.txt.