Saravanan666/pypi-org huggingface dataset:
Package: pyFFTW
pyFFTW is a pythonic wrapper aroundFFTW, the
speedy FFT library. The ultimate aim is to present a unified interface for all
the possible transforms that FFTW can perform.Both the complex DFT and the real DFT are supported, as well as arbitrary
axes of arbitrary shaped and strided arrays, which makes it almost
feature equivalent to standard and real FFT functions ofnumpy.fft(indeed, it supports theclongdoubledtype whichnumpy.fftdoes not).Operating FFTW in multithreaded mode is supported.A comprehensive unittest suite can be found with the source on the github
repository.To build for windows from source, download the fftw dlls for your system
and the header file from here (they’re in a zip file):http://www.fftw.org/install/windows.htmland place them in the pyfftw
directory. The files are libfftw3-3.dll, libfftw3l-3.dll, libfftw3f-3.dll
and libfftw3.h.Under linux, to build from source, the FFTW library must be installed already.
This should probably work for OSX, though I’ve not tried it.Numpy is a dependency for both.The documentation can be foundhere, and the source
is ongithub.
Package: pyffuf
PYffufSimple and fast web fuzzer written in python>>>>>>________________>>>/_\ \//_/_/___/_/>>>/___/\/_/_////_/>>>/_//_/_//_/\_,_/_/>>>version0.1(beta)>>>usage:main.py[-h]-u-wSimpleandFastwebfuzzer.optionalarguments:-h,--helpshowthishelpmessageandexit-u,--urlTargeturl{example:https://google.com/PUFF}-w,--wordlistWordlistpath{example:/usr/share/wordlists/dirb/common.txt}pyffuf Simple and fast web fuzzer written in pythonRequirementpython3Example commandspyffuf-uhttps://github.com/PUFF-w/usr/share/wordlists/dirb/common.txtInstallpipinstallpyffufHelppyffuf --helpScreenshot
Package: pyffx
pyffxpyffx is a pure Python implementation ofFormat-preserving, Feistel-based encryption(FFX).The FFX Mode of Operation for Format-Preserving EncryptionAddendum to “The FFX Mode of Operation for Format-Preserving Encryption”Only method 2 is implemented.See alsolibffxUsage>>>importpyffx>>>e=pyffx.Integer(b'secret-key',length=4)>>>e.encrypt(1234)6103>>>e.decrypt(6103)1234>>>e=pyffx.String(b'secret-key',alphabet='abc',length=6)>>>e.encrypt('aaabbb')'acbacc'>>>e.decrypt('acbacc')'aaabbb'
Package: pyfgaws
pyfgawspip install pyfgawsRequires python 3.8Getting SetupConda is used to install a specific version of python andpoetrywhich is then used to manage the python development environment.  If not already installed, installminiconda from the latest platform-appropriate installer. Then run:conda create -n pyfgaws -c conda-forge -c bioconda --file conda-requirements.txtThen activate the new environment and install the toolkit:conda activate pyfgaws
poetry install
Package: pyfgtconflib
pyfgtconflibAuthor :Don YaoDescription :A simple and tiny FortiGate Configuration file parser.
It takes FortiGate Configuration as input, and output as python defaultdict.
The core parsing fuctions implemented in less than 100 lines of code.Install :pip install pyfgtconflibUsage :Inpyfgtconflibsource repository.A demo script calledimport_export.pyin tests folder.
This script open a FortiGate configuration file, parses configuration file into python dictionary,
and print the dictionary out with nicely formatted text.
You can redirect the output to a file, to compare the original input FortiGate configuration file,
so you could verify the config paring (import) and config dictionary printing out (export) works.A demo script calledremove_password.pyin tests folder.
This script open a FortiGate configuration file, parses configuration file into python dictionary,
when printing the dictionary out, it removes/strips all (encrypted) passwords, private-key, and certificate in configuration,
it will be a little safer to share the configuration file without these information.For additional usages/demos/tools, please check this GitHub repo site:https://github.com/fortinetps/FortiGateConfigTools
Package: pyfhe
ZHDKOur mission atZamais to protect people’s privacy by preventing data breaches and unethical surveillance.Following a recent breakthrough in homomorphic encryption, we are now building a ZeroTrust deep learning framework that enables fast and accurate inference over encrypted data, with minimal performance overhead, no changes to the network architecture and no retraining necessary.Zamais open-source by design, as we believe privacy-enabling technologies should benefit the widest possible community of developers and researchers.WarningThis package is not a working package.Testimportpyfhepyfhe.hello_world()
Package: pyfibaro
pyfibaroThis project has no relation to the fibaro company.Simple API to access fibaro home center from Python 3. For more detailed information seeHome center 2 / Home center liteHome center 3 / Home center 3 lite / Yubii HomeThe pyfibaro library was created for integrating the fibaro home center with home assistant but can be used also in other projects.InstallTo install pyfibaro simply typepip install pyfibaroAuthenticationAll endpoints of the fibaro home center except info and login status needs an authenticated user.
Just create a user in the fibaro home center with enough rights.DevelopmentEasiest way to start developing is to use Visual Studio Code + devcontainer.PrerequisitesDockerVisual Studio codeGetting startedFork this repositoryEnter the following link in your browser:vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=<your github repository url>When Visual Studio Code asks if you want to install the Remote extension, click "Install".For additional information about Visual Studio Code + devcontainerlearn more about devcontainers.TestingRun the scriptscript/testThis will run all unit tests with code coverage enabled.Usageclient=FibaroClient("http://192.168.1.2/api/")client.set_authentication("your_fibaro_username","your_fibaro_password")client.connect()devices=client.read_devices()fordeviceindevices:print(f"Device{device.fibaro_id}:{device.name}")devices[10].execute_action("turnOn")See folderexamplesfor additional examples.
Package: py-fibonacci
Fibonacci SeriesFibonacci Series is a list of numbers in which one number on the series is the sum of the previous two numbers.def fibonacci(end=None, start=0, inclusive=True, length=None):
    ...Installation and usagepip install py-fibonaccifrom fibonacci import fibonaccie.g. fibonacci(39) -> returns a list, you may assign it to a variable or print it.This python package of fibonacci series, provides two use cases:With an 'end' number argument:: so it is possible to list the fibonacci series up to that number and start (default: 0) number argument is optional. An optional boolean inclusive (default: True) argument makes the end number inclusive or exclusive.examples:fibonacci(39) 
    -> only end number is given. there are several fibonacci numbers upto 39 starting at 0.

fibonacci(39, 3) 
    -> end and start numbers are given. there are several fibonacci numbers upto 39 starting at 3.

fibonacci(39, 3, False) 
    -> end, start numbers and inclusive=False are given. there are several fibonacci numbers upto 39 (exclusive) starting at 3.With a 'length' number argument:: so it is possible to set the length of the series and start (default: 0) number argument is optional.examples:fibonacci(length=20) 
    -> only length of the series is given. there are 20 fibonacci numbers starting at 0.

fibonacci(start=5, length=20) 
    -> start number and length of the series is given. there are 20 fibonacci numbers starting at 5.
Package: pyficache
SynopsisThepyficachemodule allows one to get any line from any file,
caching lines of the file on first access to the file. Although the
file may be any file, this package is more tailored to the case
where the file is a Python script.Here, the file is parsed to determine statement bounderies,
and a copies of the file syntax-highlighted are also saved.Also saved is file information such as when the file was last modified
and a SHA1 of the file. These are useful in determining if the file
has changed and verifying the contents of the file.By caching contents, access is sped up when small small random sets of lines
are read from a single file, in particular in a debugger to show
source lines.A file path can be remapped to another path. This is useful for
example when debugging remotely and the remote file path may be
different from the path on a local filesystem. In thetrepan2debugger,evalandexecstrings are
saved in a temporary file and then the pseudo-filename<string>is
remapped to that temporary file name.Similarly lines within a file can be remapped to other lines. This may
be useful in preprocessors or template systems where ones wants to
make a correspondence between the template file and the expanded
Python file as seen in a tool using that underlying Python file such as
a debugger or profiler.Summaryimportpyficachefilename=__file__# e.g. '/tmp/myprogram'# return all lines of filename as an arraylines=pyficache.getlines(filename)# return line 6, and reload all lines if the file has changed.line=pyficache.getline(filename,6,{'reload_on_change':True})# return line 6 syntax highlighted via pygments using style 'emacs'line=pyficache.getline(filename,6,{'style':'emacs'})pyficache.remap_file('/tmp/myprogram.py','another-name')line_from_alias=pyficache.getline('another-name',6)assert__file__,pyficache.remove_remap_file('another-name')# another-name is no longer an alias for /tmp/myprogramassertNone,pyficache.remove_remap_file('another-name')# Clear cache for __file__pyficache.clear_file_cache(__file__)# Clear all cached files.pyficache.clear_file_cache()# Check for modifications of all cached files.pyficache.update_cache()CreditsThis is a port of the my Rubylinecachemodule which in turn is based
on the Python linecache module.xdisprovides the cool stuff to figure out the lines containing
Python statements.
Package: pyfiction
Python API for all kinds of text-based games.IntroductionText-based games, more commonly known as interactive fiction (IF), come in various formats and use different interpreters that aren’t often compatible with each other.The goal of pyfiction is to wrap the functionality of different IF simulators and to provide a universal API for text games for research purposes.Pyfiction also includes sample agents that can learn to play the supplied text games.RequirementsPython 3.6 (older versions might work but they aren’t tested, Python 3.5 tested briefly)text-gamessubmodule for games ‘Saving John’ and ‘Machine of Death’keras,tensorflowand their dependencies for launching the example agentsselenium andchromedriverfor running the HTML-based gamesh5py for saving and loading modelspydot for visualising model graphsInstallationTo install the latest published version, simply run:pip install pyfictionTo install the bleeding-edge version from this repository, run:git clone --recursive https://github.com/MikulasZelinka/pyfiction
cd pyfiction
pip install -e .Interfacepyfictionprovides a simple agent-environment interface for text-game environments.Simple RL interface [4]. Inpyfiction, the agent calls the corresponding functions of the game environment:state, actions, rewards = game.read()(left branch),game.write(action)(right branch).ExamplesTo run any example (from the game list below or from this list), simply run:python file.pyon these files:Interactively play any of the supported games,An SSAQN (siamese state-action q-network) agent [3] learning to play multiple games at once,Interactive testingof state-action Q-values of the above agent trained on the supported games,or on one of the supported games below.Currently supported gamesThe following links lead to training experiments of the SSAQN agent on the supported games:Saving JohnMachine of DeathCat Simulator 2016[HTML-based]Star Court[HTML-based]The Red Hair[HTML-based]Transit[HTML-based]Additionally, the plan is to integrate the individual games to theOpenAI Gym, see
thepull requestand thetext_games branchfor details.Adding new gamesTODO.Adding new HTML-based games is straightforward; refer to the already implemented games (such as Cat Simulator 2016) and to the differences between their implementations in thegamesandsimulatorsfolders for inspiration.It is only necessary to a) parse the available state and actions and b) identify and numerically annotate the endings.TODOBetter documentation for adding new games.Update SSAQN agent to tensorflow 1.5.Tests.References[1]Language Understanding for Text-based Games Using Deep Reinforcement Learning[2]Deep Reinforcement Learning with a Natural Language Action Space[3]Using reinforcement learning to learn how to play text-based games(Master thesis; defended in 09/2017)[4]Reinforcement Learning: An IntroductionStatusVersion 0.1.3, Alpha
Package: pyfido
TODOAdd multi account supportInstallationpip install pyfidoUsagePrint your current datapyfido -u 1112224444 -p MYPASSWORDPrint helppyfido -h
usage: pyfido [-h] -u USERNAME [-n NUMBER] -p PASSWORD [-l] [-j] [-t TIMEOUT]

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Fido username
  -n NUMBER, --number NUMBER
                        Fido phone number
  -p PASSWORD, --password PASSWORD
                        Password
  -l, --list            List phone numbers
  -j, --json            Json output
  -t TIMEOUT, --timeout TIMEOUT
                        Request timeoutDev envvirtualenv -p /usr/bin/python3.5 env
pip install -r requirements.txt
Package: py-fido
This library handles the registration and verification of FIDO U2F tokens. It
is implemented such that the data storage component is implementer dependant.This project targets Python 3.5 and above and takes advantage of type hinting
introduced in 3.5.Don’t use this in production(yet)!` FLASK_APP=fido_u2f.sample.flask FLASK_ENV=development flask run--cert../server.crt--key../server.key`
Package: pyfie
Thank you for choosing pyfie!Here are the (shared) things you can use:tile(value, password = None)tile()is a shared class, that’s used to make instances that can be encrypted into files.write(path: str, value: tile)write()is a shared function, that tries to write an encrypted tile class instance into the file in path.read(path: str, password = None)read()is a shared function, which is used to (try to) return a decrypted tile class instance from the file in path.Last changes:0.6.2 - completely new system0.5.6 - new files tree0.5.2 - sorted things into specific files0.5.1 - now pyfie is even more secure0.4.8 - made thepasswordargument default (asNone)
Package: pyfield
Collection of field for your formnotonly web formDescriptionpyfieldis a collection of field with battery included.This project is under developmment, please readCONTIBUTING.rstExample>>>frompyfieldimportText>>>>>>defmain():>>>username=Text('Username')>>>username(input(username.prompt_input()))>>>print(f'Your name is{username.get}')>>>>>>main()Username:BobYournameisBobIt’s very simple but pyfield comes with a lot of featuresDefault valueTransformatorValidatorRead the docs if you want to know more about these features or create your own
Transformator and validator
Package: pyfieldlib
pyfieldlibpyfieldlib library is used to define fields in a simple way.Installpip install pyfieldlibExamplesfrompyfieldlibimport*classHuman(metaclass=FieldMeta):_age=19@fieldsdefis_mammal(self):returnTrue@fieldsdefage(self):returnHuman._age@age.setterdefage(self,value):Human._age=value# getprint(Human.age)# 19print(Human.is_mammal)# True# setHuman.age=20print(Human.age)# 20Human.is_mammal=False# ErrorCopyrightCopyright 2023. DuelitDev all rights reserved.LicenseMIT License
Package: pyfieri
DescriptionSpice up that boring Slack channel or HipChat room with PyFieri! PyFieri is an
easy to use Python library that randomly generates Guy Fieri menu items.RequirementsPython 2.6+ (2.7 or 3.4 recommended)PIP (for some installation methods)GIT (for some installation methods)InstallationIf you are on Mac OS X or Linux, chances are that one of the following two
commands will work for you:Using PIP via PyPIpipinstallpyfieriUsing PIP via Githubpipinstallgit+git://github.com/nficano/pyfieri#egg=pyfieriAdding to yourrequirements.txtfile (runpip install-rrequirements.txtafterwards)git+ssh://git@github.com/nficano/pyfieri#egg=pyfieriManually via GITgitclonegit://github.com/NFicano/pyfieripyfiericdpyfieripythonsetup.pyinstallCommand-Line Usage$pyfieri
Package: pyFIFA
Team Membersalexh212- Alex Hmittias13909- Aaron Stein :)Rafinator123- Rafael Nadal-ScalaConceptOur project is inspired by the 2023 FIFA World Cup which took place in Qatar. Our overall ambition was to create a fun and low stakes text driven soccer game aimed at those who enjoy the sport. The game is pretty straightforward, all a user has to do is answer world cup trivia questions to score goals and win games moving up in the bracket and hopefully winning it all! The main benefits of the program are like most other games, a form of relaxation and escapism from stress. The final advantage of the game is that it is easy to install, all a person needs is pip and python on their computer and they can play our game for free.InstallationTo install and run this game the user has two options. For both options a user must havePythoninstalled on their computer if they do not already. If you are unsure whether or not your computer has python attempt to run one of the following commands:python --versionorpython3 --version.To simply play the game the user must firstinstallpip (if not already installed). Next the user must type in the commandpip install pyFIFA. From there the user will have the game installed locally on their machine. To run the game simply type the commandpyFIFA-playand the game will be playable. More information about the game can be found onpyFIFA's project pageon PyPI's website.The other way to play is for those who want a more indepth view of the code. To do so users must clone this repository by typing the following command into their terminal:git clone https://github.com/Rafinator123/OOP_Fifa_In_Terminal. From there a user must navigate over to theOOP_Fifa_In_Terminaldirectory and from the root of that directory run the following commandpython3 main.pyorpython main.pydepending on which version of python your computer is running.DependenciesThe only external dependency for this project ispyFiglet.
Package: pyfiguration
PyFigurationPyFiguration is a configuration tool for Python. It allows you to define which configuration are used from right inside your code. The PyFiguration command line tool helps you inspect which configurations are available, what the allowed values are, and helps to inspect the validity of a configuration file for a specific script.Basic usageIn your code you can define which configurations should be available. This example creates a simple Flask server. The port on which the server should start depends on the configuration.""" script.py"""frompyfigurationimportconffromflaskimportFlask@conf.addIntField(field="server.port",description="The port on which the server will start",default=8000,minValue=80,maxValue=9999,)defstartServer():app=Flask(__name__)port=conf["server"]["port"]print(f"Starting on port{port}")app.run(port=port)if__name__=="__main__":startServer()You can use the PyFiguration command line tool to inspect this module/script:$pyfigurationinspectscript-sscript.pyThe following options can be used in a configuration file for the module 'script.py':server:port:allowedDataType: intdefault: 8000description: The port on which the server will startmaxValue: 9999minValue: 80required: trueThis tells you that the default value for server.port is 8000, and that it should be an integer between 80 and 9999. Running the script (python script.py) will start the server on the default port. Lets create a configuration file to overwrite the default:# config.yamlserver:port:5000Now we can start the script again, pointing to the config file to use it:$pythonscript.py--config./config.yamlStarting on port 5000* Serving Flask app "script" (lazy loading)* Environment: productionWARNING: Do not use the development server in a production environment.Use a production WSGI server instead.* Debug mode: off* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)Success! The script has used the configuration we've defined inconfig.yamlfile. It's possible to use multiple configuration files, and both inYAMLandJSONformats. Note that the keys will be overwritten if there are duplicates. This is a useful feature that you can use, for example, to set defaults indefaults.yamland then overwrite with deployment specific settings indeployment.yaml. It's also possible to reference a full folder. PyFiguration will read all the files in the folder. For a full example checkout the./examplesfolder of this repository.If you have a configuration file and a script, you can also use the PyFiguration command line to check the config file for errors. Imaging this configuration file:# config_with_warnings.yamlserver:port:500.0not_needed_key:some random valueWe've obviously made 2 mistakes here: 1: the port is a float, 2: there is a key that is not being used by our script. Lets use the command line tool to investigate.$pyfigurationinspectconfig-sscript.py-cconfig_with_warnings.yaml--------Errors--------✗ Value '500.0' is not of the correct type. The allowed data type is: int----------Warnings----------! Key 'server.not_needed_key' doesn't exist in the definition and is not used in the module.
Package: pyfigurator
A Python 3 library to make it simpler to implement basic INI configuration and CLI interfaces.DocumentationAs an alpha release, the documentation of pyfigurator is still a work in progress.ReadtheDocsDevelopment StatusPyfigurator v0.1 is being considered an “alpha” release, which was more of a proof of concept.  v0.1 is stable, but it
was more of a hacky proof-of-concept design that grew from a single app and then was converted to a standalone package.v1.0 will be more robust and have a more object oriented approach towards building out configuration
and CLI schemas.  So, bare in mind that the v1.0 release may not be backwards compatible with this release.