Saravanan666/pypi-org huggingface dataset:
Package: py-penguin
PenguinWelcome to the wonderful frozen world of Penguin, a Python framework as secure as an ice rink in a figure skating competition! 🐧 Developed with the philosophy of "fun above all," Penguin is a deep dive into the realm of asynchronicity and multithreading, where security is a strange word that only appears in more serious tutorials.Picture a world where threads dance on the ice, async is the soundtrack, and the only commitment is to ensure that the fun never stops. Penguin is your VIP pass to this spectacle, where bugs are just unexpected dance steps, and the only rule is not to take yourself too seriously.This framework was created for competitions, but don't expect to find firewalls or encryption here - after all, the focus is on unleashing your imagination, not protecting confidential data. So, if you're ready for a frosty adventure and code filled with humor, welcome Penguin to your project and let the fun begin! 🎉❄️Note: Penguin is still under construction, so get ready for even more icy excitement in the updates to come!❄️🔨
Package: py-pepe
py-pepeSuper simple pipeline helper on Python. Works likeawkbut easier to remember (and also less posibilities...).PEPE can work in 2 different ways:1. As python moduleDon't rememberawkcommands? Not a problem! Just insert python script here and read result of previous
command usingpepe.read(). Additionally, you can select N column (like column 6 in example):# Show max usage RAM from processpsux|python-c"import pepe; x=pepe.read(6); print(max(x[1:]))"2. As CLIDon't want to call python scripts like that? We got you a CLI tool too!CLI interface totally mimics python functions usage:# Show total RAM usage of Visual Studio Code processpsux|grep"Visual Studio Code"|pepesum6Here you addpepe sum 6in pipe. That's identical toimport pepe; pepe.sum(6). Same args and same positions.
That's why if you want to sort lines as numbers, you need to add 0 positional arg:pepe sort 0 true,
because that's identical topepe.sort(0, True).CLI doesn't have any flags, only positional args. That's for simplicity.Installationpipinstallpy-pepeFunctions/Example of usagehelpTo show help just callpepecommand in terminal.
Also on each error in input you probably will see pepe help.pepe.readPython-code only function (no cli). Reads all stdin and returns list of lines.NOTE:This is the only function in pepe that returns a value. All other function just print their results.Optional positional params:
-<column>- select only N column# Show max usage RAM from processpsux|python-c"import pepe; x=pepe.read(6); print(max(x[1:]))"pepe.outDisplay result. Works likecatorecho, but can select column.Optional positional params:
-<column>- select only N column# Display only 1 column of ps uxpsux|head-n10|pepeout1# Same, but using python codepsux|head-n10|python-c"import pepe; pepe.out(1)"# Without pepepsux|head-n10|awk'{ print $1 }'pepe.sumCommandsumallows to sum lines as numbers.Optional positional params:
-<column>- select only N columnLet's count RAM usage of all VSCode processes (on mac). Column 6 of "ps ux" output contains info about RAM:# Select column 6 and sumpsux|grep"Visual Studio Code"|pepesum6# Select column 6 using awk and sum all linespsux|grep"Visual Studio Code"|awk'{ print $6 }'|pepesum# Same, but using python codepsux|grep"Visual Studio Code"|python-c"import pepe; pepe.sum(6)"# Without pepepsux|grep"Visual Studio Code"|awk'{sum+=$6} END {print sum}'pepe.sortpepe.minpepe.maxpepe.sizepepe.count
Package: pypepper
PyPepperIn memory of my father who passed away due to COVID-19.https://github.com/jovijovi/pypepperPyPepper is a microservice toolkit written inPython.FeaturescommonCommon packages.common.contextA powerful chained contextcommon.security.crypto.elliptic.ecdsaSign/Verify message by ECDSAcommon.security.crypto.digestGet hash bytes/hexcommon.security.crypto.saltGenerates a random salt of the specified sizecommon.utils.randomA class for generating random valuescommon.utils.retryRetry running the function by random interval, support lambdacommon.utils.timeGet UTC/local datetime/timezone/timestamp, support sleepcommon.utils.uuidUUID(v4) generatorcommon.cacheA thread safe TTL cache-setcommon.logA simple logger based onlogurucommon.optionsAn easy-to-use optionscommon.systemSystem signals handlereventAn event package with payload, support sign/verify signature.fsmAn out-of-box FSM with event trigger, support custom state.helperDatabase helper.helper.db.mongodbMongoDB helperhelper.db.mysqlMySQL helpernetworknetwork.httpRESTFul API server based onFlask.schedulerA Workflow-based job scheduler.loaderModule loader.Development Environmentpython3.10,3.11conda >=22.9.0Quick GuideBuild codeInstall all dependencies and compile code.makebuildTest with coveragemaketestBuild docker imagemakedockerCleanmakecleanRoadmapDocumentsTracing
Package: pyperaptor
PypeRaptor is a library that provides a functional pipeline structure.Each execution from the pipeline takes an input item from beginning to end and return the result.
The Pipeline may be modified by add operator and expects a Node.
To execute a Pipeline for a single item, user can executepushfunction with item. This execution will pushes the input
through the pipeline calling every function in the way.
To execute several items, user can set an Iterable inprocessfunction.A generator can be part of the pipeline, and is recommended to be the first item to when using Pipeline in parallel mode.
When in parallel mode, PypeRaptor provides a Device as in a way to reserve resources and avoid racing conditions among its threads.For examples go to:http://github.com/fsan/pyperaptor
Package: pyperclip
Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.Install on Windows:pip install pyperclipInstall on Linux/macOS:pip3 install pyperclipAl Sweigartal@inventwithpython.comBSD LicenseExample Usage>>> import pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'Currently only handles plaintext.On Windows, no additional modules are needed.On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run “sudo apt-get install xclip” or “sudo apt-get install xsel” (Note: xsel does not always seem to work.)Otherwise on Linux, you will need the gtk or PyQt4 modules installed.
Package: pyperclip3
This project Has MovedPlease seehttps://pypi.org/project/pyclip/Pyperclip3Cross-platform clipboard utilities supporting both binary and text data.Some key features include:A cross-platform API (supports MacOS, Windows, Linux)Can handle arbitrary binary dataOn Windows, some additionalclipboard formatsare supportedInstallationRequires python 3.7+pipinstallpyperclip3Usagepyperclip3 can be used in Python codeimportpyperclip3pyperclip3.copy("hello clipboard")# copy data to the clipboardcb_data=pyperclip3.paste()# retrieve clipboard contentsprint(cb_data)pyperclip3.clear()# clears the clipboard contentsassertnotpyperclip3.paste()Or a CLI# paste clipboard contents to stdoutpython-mpyclippaste# load contents to the clipboard from stdinpython-mpyperclip3copy<myfile.text# same as above, but pipe from another commandsome-program|python-mpyperclip3copyInstalling via pip also provides console scriptpyclip:pyclipcopy<my_file.txtThis library implements functionality for several platforms and clipboard utilities.MacOSWindowsLinux (withxclip)If there is a platform or utility not currently listed, please request it by creating an issue.Platform specific notes/issuesWindowsOn Windows, thepywin32package is installed as a requirement.On Windows, additional clipboard formats are supported, including copying from a file
(like if you right-click copy from File Explorer)MacOSMacOS has support for multiple backends. By default, thepasteboardpackage is used.pbcopy/pbpastecan also be used as a backend, but does not support arbitrary binary data, which may lead to
data being lost on copy/paste. This backend may be removed in a future release.LinuxLinux requiresxclipto work (which means you must also use X). Install with your package manager, e.g.sudo apt install xclip
Package: pyperclip-cli
git ppPyperclip CLI - cross-platform clipboard utilitygit ppFeaturesInstallationpipxpipUsageDevelopFeaturesCopy and paste from stdin / stdout or filesCross-platformInstallationCurrently only handles plaintext.On Windows, no additional modules are needed.On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run "sudo apt-get install xclip" or "sudo apt-get install xsel" (Note: xsel does not always seem to work.)Otherwise on Linux, you will need the gtk or PyQt4 modules installed.pipxThis is the recommended installation method.$ pipx install pyperclip-clipip$ pip install pyperclip-cliUsage$ pyperclip --help

usage: pyperclip [-h] [-f FILE] [-o OUT] [ACTION]

Pyperclip CLI

positional arguments:
  ACTION                copy or paste (default: copy)

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Copy the content of the file (default: <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>)
  -o OUT, --out OUT     Paste to file (default: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)Develop$ git clone https://github.com/tddschn/pyperclip-cli.git
$ cd pyperclip-cli
$ poetry install
Package: pyperclipfix
Pyperclipfix is is a cross-platform Python 3 module for copy and paste clipboard functions. It’s just a fork of [pyperclip](https://github.com/asweigart/pyperclip) with several merged pull requests and some minor bugfixes/leftover code removals (including the Python 2 support, which was already broken in the official version).Install on Windows:pip install pyperclipfixInstall on Linux/macOS:pip3 install pyperclipfixAl Sweigartal@inventwithpython.comBSD LicenseExample Usage>>> import pyperclipfix
>>> pyperclipfix.copy('The text to be copied to the clipboard.')
>>> pyperclipfix.paste()
'The text to be copied to the clipboard.'Currently only handles plaintext.On Windows, no additional modules are needed.On Mac, this module makes use of the pyobjc module (if installed) or on the pbcopy and pbpaste commands, which should come with the os.On Linux, on X11 this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run “sudo apt-get install xclip” or “sudo apt-get install xsel” (Note: xsel does not always seem to work.)
On Wayland it makes use of wl-copy and wl-paste (which can be installed with “sudo apt-get install wl-clipboard”), or also gpaste on GNOME (preferred, can be installed with “sudo apt-get install gpaste”).
Otherwise on Linux, you will need the qtpy or PyQT5 modules installed.SupportIf you find this project helpful and would like to support its development, [consider donating to the original creator on Patreon](https://www.patreon.com/AlSweigart).
Package: pyperclip-pyside
Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.Install on Windows:pip install pyperclip_pysideInstall on Linux/macOS:pip3 install pyperclip_pysideJiri Otoupaljiri.otoupal@uptim.aiBSD LicenseExample Usage>>> import pyperclip_pyside as pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'Currently only handles plaintext.On Windows, no additional modules are needed.On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run “sudo apt-get install xclip” or “sudo apt-get install xsel” (Note: xsel does not always seem to work.)Otherwise on Linux, you will need the gtk or PySide2 modules installed.
Package: pypercraft
PypercraftA Novel Application that Harnesses LLMs to Generate Articles and PapersAbstractIntroducing a novel Python application that harnesses the expanded capabilities of ChatGPT,
enabling users to effortlessly compose comprehensive articles and papers on topics of their
choice. Surpassing token constraints, this application empowers users to craft full
compositions comprising a Title, Introduction, Body, and Conclusion. Accessible through
a user-friendly Streamlit interface or a FastAPI-powered API, the tool seamlessly merges
user input with ChatGPT's contextual understanding, resulting in coherent written pieces.
Offering an additional advantage, users can export their creations as Word documents
(.docx), enhancing the versatility and utility of the generated content. Whether
fashioning educational articles or structured research papers, this application
revolutionizes content creation, amalgamating user ingenuity with ChatGPT's
linguistic finesse and streamlining written communication with convenience
and sophistication.Live DemoA live demo of the Streamlit application can be seenhereQuick Start GuideClone The Repo:git clone git@github.com:alkhalifas/pypercraft.git

pip install -r requirements.txt

streamlit run ui.pyInstall With Pip:Install Library:pip install pypercraftImport and Apply:from pypercraft import pypercraft

craft = pypercraft.Pypercraft(

        # Describe the paper you want to generate
        query= "A Scientific Paper about Deep Learning",

        # Select the topic of your paper
        topic= "Data Science",

        # Select number of pages
        num_pages= 3,

        # Select tone of the writer
        tone= "professional",

        # Enter API key
        api_key= os.getenv("OPENAI_API_KEY"))

# Construct the paper
paper = craft.construct()

# Export final paper
craft.export_docx('mypaper.docx')
Package: pypercrypt
pypercrypt 📄🔐pypercryptuses battle-tested cryptography to encrypt your data with the passphrase of your choice
and stores the ciphertext inside a QR code.echo"Hello World">keep-secret.txt
pypercryptencrypt--input-filekeep-secret.txt--output-fileciphertext.json# Enter passphrase: passwordcatciphertext.json# {"ciphertext": "gAAAAABlQCb4fKNgX3xI1LHowFUjjXhOf-83DeUgukyUAYAF-hMnQ9eFfNl_V4NBoUuu4ZfAAIkVxIM7Iq2Pfh5JaVW_E-rqXA==", "salt": "JAVWUmK_PSUbvEghki3nNQ=="}catciphertext.json|qrencode-ociphertext.png# In future versions pypercrypt will support writing to and reading from QR codes directlypypercryptdecrypt--input-file<(zbarimg-q--rawciphertext.png)--output-file-# Enter passphrase: password# Hello WorldYou can store the printed QR code wherever you would trust other encrypted data to stay safe.Benefits🔐 Makes encrypted long-term storage easy📵 Truly offline backups🖨️ Use what you already have🔓 No lock-in, no proprietary formats—you don't need this tool to decrypt your data!Peer-ReviewA peer review is pending, so keep that in mind when usingpypercryptfor truly sensitive data.
Get in touch if you have the required expertise to review this tool.Installationpipx (Recommended)pipxcreates a separate virtual environment for each CLI tool it installs and makes the scripts
from the package available in your PATH. Seeinstallation instructions forpipx.pipxinstallpypercryptOtherYou may installpypercryptwith any tool that can install from pypi.org.Seepypercrypton pypi.org.RoadmapNowEncrypt input data and write ciphertext to fileAdd option to output ciphertext as a printable QR codeDecrypt the data, relying on an external QR code scanner likezbarimgReach 100 % test coverage of the critical code paths before adding new featuresNextDecrypt the data straight from an image file containing a QR codeInstructions on how to decrypt the data purely with standard toolsMaintain 100 % test-coverage of the critical code pathsRelease v1.0 (until then the CLI and format may be subject to breaking changes)LaterLet relevant experts perform an audit of this softwareKeeppypercryptsmall and auditable by anyoneA small scope is a featureResist temptation to add more featuresNeverThe following features will never be added topypercrypt, either because they go against its goals or would
make the scope too large.Do not generate passphrases for the userDo not add asymmetric encryption supportDo not add a GUI or TUI (if I can't resist, then do it as a separate project usingpypercryptas a library)Alternativespapercryptfulfills a similar purpose, is written in Go and
not affiliated with this projectLicenseLicensed under the EUPL. SeeLICENSE.
Package: pyperdeck
pyperdeckPython interface for Blackmagic Design HyperDeck recorders.Installationpip install pyperdeckDocumentationA full API reference and small walkthrough is available onRead the Docs.ExamplefrompyperdeckimportHyperdeckdeck=Hyperdeck('192.168.0.100')deck.preview()deck.record('my_recording')# ... some time laterdeck.stop()deck.output()deck.play()Additional InformationThis is a work in progress and while it implements the vast majority of the HyperDeck Protocol, it does not do everything.  Questions, comments, and contributions are welcome.
Package: pyperf2
Pyperf2 is an abstraction layer to simplify programatic use of the iperf2 binary for linux. It was written to have a simple interface for network test setups. It is mostly used for unicast/multicast network convergence tests so the defaults are tcp 1000pps per instance to have packetloss == 1ms/second. Nevertheless all options are configurable.Why iperf2 and not iperf3The reason is simple, iperf3 does not support multicast streams as of now. I need multicast testing capability, so I chose iperf2.FeaturesPyperf2 has following features:create and manage iperf2 server instancescreate and manage iperf2 client instancesget results of client and server instances by parsing output to python datastructures.register callbacks for packetloss and intermediate results.linux namespace support (requires ip command of iproute2 package)InstallationInstall pyperf2 by running:pip3installpyperf2ExamplesCreate a unicast udp 1000pps setup and test for 10 secondsfrompyperf2importServer,Clientfromtimeimportsleepfrompprintimportpformatdefon_data_callback(message,**kwargs):print(f"got message{pformat(message)}\n\nkwargs are{pformat(kwargs)}")print("----------------------------------------------------------------------")receiver=Server()sender=Client()receiver.set_options(protocol="udp",server_ip="127.0.0.1",test_duration=12)receiver.register_on_data_callback(on_data_callback,some_custom_parameter="some_custom_value")receiver.start()sender.set_options(protocol="udp",server_ip="127.0.0.1",test_duration=10)sender.start()whilesender.status!="stopped":print(f"status sender:{sender.status}\nstatus receiver:{receiver.status}\n")print("do something usefull in the main thread -> sleeping for 1 second\n")sleep(1)Supported ParametersTo see all supported parameters for the set_options function, review the constructor of the IPerfInstance object.ContributeIssue Tracker:https://github.com/jinjamator/pyperf2/issuesSource Code:https://github.com/jinjamator/pyperf2RoadmapSelected Roadmap items:add class documentationFor documentation please refer tohttps://pyperf2.readthedocs.io/en/latest/LicenseThis project is licensed under the Apache License Version 2.0
Package: py-perf-event
Python interface to CPU counters on LinuxOr, a minimal wrapper around thepy-perf-event2Rust crate, using the Linuxperfsubsystem.To install:pip install py-perf-eventExamplefrompy_perf_eventimportmeasure,Hardware[instructions1]=measure([Hardware.INSTRUCTIONS],sum,range(1_000_000))print(instructions1)[instructions2]=measure([Hardware.INSTRUCTIONS],sum,range(10_000_000))print(instructions2)assertinstructions1>1_000_000assert7<(instructions2/instructions1)<15Other usageSeethe testsfor more examples.Until more docs are available, you can use the underlying Rust libraries docs to see what fields are available on theHardwareandCacheId/CacheOp/CacheResultclasses.Changelog0.2:ExposedRawevents.0.1:Initial, very minimal release.
Package: pyperformance
Thepyperformanceproject is intended to be an authoritative source of
benchmarks for all Python implementations. The focus is on real-world
benchmarks, rather than synthetic benchmarks, using whole applications when
possible.pyperformance documentationpyperformance GitHub project(source code, issues)Download pyperformance on PyPIpyperformance is not tuned for PyPy yet: use thePyPy benchmarks projectinstead to measure PyPy
performances.pyperformance is distributed under the MIT license.
Package: pypergraph
pypergraphpypergraphis a pure Python package for representing hypergraphs of both the
directed and undirected varieties.Installationpypergraph requires Python 3.7 or later.pipinstallpypergraphUsageCurrently, only basic in-memory mutation of hypergraphs is possible.>>>importpypergraphasppg>>>V=ppg.V>>>h=ppg.Hypergraph()>>>h.add_node("A")>>>h.add_edge(V(0,"A")>>V(1,2,3))DocumentationDocumentation may be found athttps://pypergraph.readthedocs.io/.Licencepypergraph is released under theMIT licence.Roadmappypergraph is still in early stages of development. The steering goal is to
reach a point where pypergraph may be used to reason about functional
dependencies and support data orchestration.These Python packages are considered to be role models:schedulaNetworkXSee alsoThere are a handful of Python packages which can be used to represent
hypergraphs.graffunchypergraphsXGIhalpHyTraAt a high level, these gaps exist:Support for directed hypergraphsA flexible data model suitable for domain applications
Package: pyperi
PyPeriPyPeri makes getting data out of Periscope easy, with a sane and understandable
API.Free software: MIT licenseDocumentation:https://pyperi.readthedocs.io.FeaturesPython 3Easy to understand APIFully tested & documentedFunctionality so far:Get information about UsersGet information about BroadcastsGet a User’s Broadcast historyAboutPeriscope is pretty neat, but it’s difficult to get information out of it in a
programatic way. Getting answers to simple questions like: “How many broadcasts
did our client do this week” is not trivial, and in-depth analysis is pretty
tough. This project is an attempt to make the lives of people who dip into
Digital Marketing a little better.PyPeri attempts to do this by providing a sane interface, and hides some of the
tedium of using Periscope’s API. For example, Periscope makes doing simple
things, like getting a list of a User’s past Broadcasts a 2-step process:Request a short-lived API session key from the Periscope Web InterfaceUse the session key on the Periscope API Interface using thegetUserBroadcastsPublicendpoint.PyPeri simplifies this considerably:>>> from pyperi import Peri
>>> pp = Peri()
>>> history = pp.get_user_broadcast_history(username='george_clinton')Quick startInstall via pip:$ pip install pyperiDo stuff:>>> from pyperi import Peri
>>> pp = Peri()
>>> history = pp.get_user_broadcast_history(username='george_clinton')
>>> print(history[0]['status'])
#George Clinton listening to music in houstonFull documentation is available here:https://pyperi.readthedocs.ioLicensePyPeri is free software, distributed under the MIT license.History0.2.0 (2016-12-23)URL parsing withparse_periscope_urlGet a User’s Broadcast history withget_user_broadcast_historyRename PyPeri class to Peri0.1.0 (2016-12-12)First release on PyPI.