Saravanan666/pypi-org huggingface dataset:
Package: py-loremipsum
Python module for generating placeholder text using theloripsum.net API.Basic Usageimportloremipsum# Generate plain text paragraphs with API default settingsno_options=loremipsum.generate()# Generate 3 medium length paragraphs in plain textplaintext=loremipsum.generate(3,loremipsum.ParagraphLength.MEDIUM)# Generate 1 long paragraph with HTML tagssimple_html=loremipsum.generate(1,loremipsum.ParagraphLength.LONG,plaintext=False)# Generate 1 long paragraph with HTML headers and decorated textoptions=['headers','decorate']decorated_html=loremipsum.generate(1,loremipsum.ParagraphLength.LONG,plaintext=False,html_options=options)Command LineBasicThis package includes theloremipsumcommand to generate text from the
command line. For details on command line options:loremipsum --helpExample UsageGenerate 3 short paragraphs with trailing new lines and pipe output toplaceholder.txt:loremipsum 3 --length short --trailing-newlines > placeholder.txtGenerate 4 HTML paragraphs and pipe output toplaceholder.html:loremipsum 4 --html > placeholder.htmlCopy to ClipboardThis package includes an additionallorem-copycommand to generate text and
copy it to the clipboard usingpyperclip. For details on command line
options:lorem-copy --helpNote:pyperclipshould work out of the box on macOS and Windows, but may
need some additional packages on Linux distros. Checktheir documentationfirst if
you’re having difficulty with thelorem-copycommand.For more details, see thedocumentation.
Package: pylorentz
pylorentzThe python package pylorentz provides classes to facilitate computations with
4-vectors in high-energy physics.QuickstartInstall the package using pip$pipinstallgit+https://gitlab.sauerburger.com/frank/pylorentz.gitor$pipinstallpylorentzPropertiesThe package defines three types of 4-vectors: general purpose vectors,
4-positions and 4-momenta. The working horse of the package are 4-momenta.>>>frompylorentzimportMomentum4>>>muon=Momentum4.m_eta_phi_pt(0.1057,4.5,1.5,35)>>>muon.eta4.5>>>muon.phi1.5>>>muon.p_t35.0>>>"%.2f"%muon.p'1575.49'>>>"%.2f"%muon.e'1575.49'Vectorized PropertiesSince version 0.2.0, it is possible to pass numpy arrays to the constructors
and operate on multiple vectors at a time.>>>frompylorentzimportMomentum4>>>importnumpyasnp>>>masses=np.array([0.0005,0.1057,1.7769])>>>etas=np.array([1,2,3])>>>phis=np.array([0,0,0])>>>pts=np.array([10,10,10])>>>muon=Momentum4.m_eta_phi_pt(masses,etas,phis,pts)>>>["%.2f"%mforminmuon.e]['15.43','37.62','100.69']Arithmetics4-vectors support a variety of arithmetic operations. The most important one
is the addition of two vectors.>>>frompylorentzimportMomentum4>>>tau_1=Momentum4.m_eta_phi_pt(1.777,4.5,1.5,35)>>>tau_2=Momentum4.m_eta_phi_pt(1.777,-4.5,1.5,35)We can add the momenta of the two tau leptons and access the properties of the
parent particle.>>>parent=tau_1+tau_2>>>"%.2f"%parent.m'3150.21'>>>"%.2f"%parent.eta'0.00'>>>"%.2f"%parent.phi'1.50'Lorentz BoostsThe package also provides methods to perform Lorentz boosts. For example,
consider the decay of a Higgs boson to a pair of tau leptons in the rest frame
of the Higgs boson. The tau leptons are back-to-back in the
y-z-plane.>>>importmath>>>frompylorentzimportMomentum4>>>m=125.0>>>tau_1=Momentum4.e_m_eta_phi(m/2,1.777,1.5,math.pi/2)>>>tau_2=Momentum4.e_m_eta_phi(m/2,1.777,-1.5,-math.pi/2)Now let’s assume the Higgs boson itself is not at rest. We can define its
momentum and then boost the two tau leptons.>>>higgs=Momentum4.m_eta_phi_pt(m,2,0,250)>>>tau_1.boost_particle(higgs)Momentum4(884.599,220.498,26.5578,856.264)>>>tau_2.boost_particle(higgs)Momentum4(64.2195,29.5021,-26.5578,50.451)LinksGitLab Repositorypylorentz on PyPiDocumentation
Package: pylotfish
pylotfishShort blurb about what your product does.One to two paragraph statement about your product and what it does.InstallationOS X & Linux:pip3installpylotfishWindows:pipinstallpylotfishUsage exampleA few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.For more examples and usage, please refer to theWiki.Development setupDescribe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.pipinstall--editablepylotfishDocumentationRead the DocsMetaStephen R A King :stephen.ra.king@gmail.comDistributed under the MIT License. SeeLICENSEfor more information.https://github.com/Stephen-RA-King/pylotfish
Package: pylotus
PyLotusPyLotus is a simple Python wrapper for the Warframe API.DescriptionThis is a super simple wrapper for the Warframe API, information about which can be foundhere. Most requests to the API have been implemented; any that haven't been can be retrieved by requesting the worldstate. Also provided are some basic prebuilt classes to hold common responses like individualFissureobjects, etc.DependenciesPyLotus only uses the built-inrequestsandjsonlibraries, withpytestonly being used to implement testing. These are all installable and upgradeable viapip.InstallationUse the package managerpipto install PyLotus.pipinstallpylotusUsageAll platforms are supported for use with the API wrapper; a list containing the platform shorthand notations accepted by the API are accessible through the staticwf_api.get_platforms().frompylotusimport*print(wf_api.get_platforms())# It's always possible to retrieve all supported platforms with which to construct the API, even in a static context.>>>['pc','ps4','xb1','swi']Create awf_apiinstance that can access the WarFrame API for a specified platform. Retrieve information from the API with the responses stored in lists of easily accessed JSON-formatted dict objects or individual objects.xbox_api_wrapper=wf_api('xb1')# Create an instance with your preferred platform.current_fissures=xbox_api_wrapper.get_current_fissures()# Get back a list of JSON response dicts or a single JSON response dict.do_something_with_the(current_fissures)Use built-in classes, like theFissureclass, to easily wrap common API responses. Pass the class constructors the retrieved JSON representations of the API returns.fissure_objects=[Fissure(fissure)forfissureincurrent_fissures]print(len(fissure_objects))forfinfissure_objects:print(type(f),f.enemy,f.missionType)>>>4>>>Fissure,Grineer,Defense>>>Fissure,Corpus,Defense>>>Fissure,Grineer,Interception>>>Fissure,Grineer,MobileDefenseYou can also import only the API interface, skipping the prebuilt classes if you would rather. Do this by importing as follows:frompylotusimportwf_apiExceptions and Error HandlingThere are 3 custom exceptions (termedErrors) in PyLotus:NonPlatformError, raised when the platform passed to thewf_apiconstructor is invalid;DictTypeError, raised when incorrect objects (not dicts or not correct dicts) are passed to class constructors; andStatusCodeError, raised when the WarFrame API itself returns a non-200 response. These all have error messages associated with them accessible throughError.message.LicenseLicensed under theMITlicense.
Package: pyloudness
pyLoudness==========.. image:: https://badge.fury.io/py/pyloudness.svg:target: https://badge.fury.io/py/pyloudnessHow loud is that file? Sounds simple, right? Check outhttp://www.r128audio.com for information about loudness standards.Usage-----Give pyLoudness an audio file and it will give you a dictionary.::import pyloudnessloudness_stats = pyloudness.get_loudness("test.wav")Result:::{'True Peak': {'Peak': 0.4},'Loudness Range': {'LRA': 8.4,'Threshold': -39.8,'LRA High': -16.9,'LRA Low': -25.3},'Integrated Loudness': {'I': -19.2,'Threshold': -29.8}}Prerequisities~~~~~~~~~~~~~~pyLoudness requires ffmpeg::sudo apt-get install ffmpegInstalling~~~~~~~~~~::pip install pyloudnessMiscellania~~~~~~~~~~::ffmpeg -nostats -i file_location -filter_complex ebur128=peak=true -f null -Authors--------  **Jason Rigden**License-------This project is licensed under the MIT License
Package: pyloupe
pyloupe===========================A python package and command-line tools to *Tools for taking a closer look at rocks, namely moving objects found in space *.Installation------------The easiest way to install pyloupe is to use``pip``:``bash pip install pyloupe``Or you can clone this repo and install from a local version of the code:``bash git clone git@github.com:thespacedoctor/pyloupe.git cd pyloupe python setup.py install``Development-----------If you want to tinker with the code, then install in development mode.This means you can modify the code from your cloned repo:``bash git clone git@github.com:thespacedoctor/pyloupe.git cd pyloupe python setup.py develop```Pullrequests <https://github.com/thespacedoctor/pyloupe/pulls>`__are welcomed!Issues------Please report any issues`here <https://github.com/thespacedoctor/pyloupe/issues>`__.License-------Copyright (c) 2016 David YoungPermission is hereby granted, free of charge, to any person obtaining acopy 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, EXPRESSOR 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: pylovelace
PyLovelace is a Python protection tool that can be used to protect
Python source code from being reverse engineered.InstallationPyLovelace is available on PyPI and can be installed using pip:pip install pylovelaceUsagePyLovelace can be used as a command line tool to protect Python source
code. The following command will protect the Python source code inmy_script.pyand write the protected code todist/my_script.py:pylovelace protect my_script.pySupported Python versionsPyLovelace supports Python 3.11 with 3.10 and 3.12 support coming soon.
Windows only for now.More informationPyLovelace on PyPI:https://pypi.org/project/pylovelace/PyLovelace on GitHub:https://github.com/pylovelace/pylovelacePyLovelace documentation:https://pylovelace.com/docs/getting-started/introduction
Package: pylovepdf-flavor
pylovepdf 1.3.3ilovepdf.com python API libraryWhat it doesThis library allow to manipulate pdf using the API ofhttp://www.ilovepdf.com. See the Tools section to know what you can do.Prerequisites[developer account] (https://developer.ilovepdf.com) to get a public key to use the API.[Python 3.x.x][Requests] (http://it.python-requests.org/it/latest/)Getting startedExample files are located inside samples/.
Change file paths and the public_key parameter with the one you found in your developer account (See prerequisites).
Run the files and enjoy.ToolsCurrently the following tools are available:compress (Reduce the size of pdf files)imagepdf (Converts an image to pdf)merge (Merge multiple pdf into single file)officepdf (Office document to pdf conversion)pagenumber (Place numbers on pages)pdfa (Converts into PDF/A)pdfjpg (Converts a pdf into jpeg image)protect (Add password to a pdf)rotate (Rotates the pages of a file)split (Split a pdf)unlock (Remove the password security from the pdf, the coolest feature ever!)validatepdfa (Checks the conformity of PDF/A format)watermark (Adds watermark to the file)Example Usage (compress tool)frompylovepdf.ilovepdfimportILovePdfilovepdf=ILovePdf('public_key',verify_ssl=True)task=ilovepdf.new_task('compress')task.add_file('pdf_file')task.set_output_folder('output_directory')task.execute()task.download()task.delete_current_task()Alternative Example Usage (compress tool)A tool can be created directly:frompylovepdf.tools.compressimportCompresst=Compress('public_key',verify_ssl=True)t.add_file('pdf_file')t.set_output_folder('output_directory')t.execute()t.download()t.delete_current_task()DocumentationPlease seehttps://developer.ilovepdf.com/docsfor up-to-date documentation.Built WithpyCharm- python IDEVersioningI useSemVerfor versioning.AuthorsAndrea Bruschi-Initial work-AndyCyberSec
Package: pyloves
pylovePyloveis a python library create to show all my love and creativity to Sara Maria Bejarano the love of my liveFree software: MIT licenseDocumentation:https://pylove.readthedocs.io.Stable releaseTo install pyloves, run this command in your terminal:$pipinstallpylovesFeaturesThere are 3 main featuresEncrypt file: This feature is a function that recieves one password and the path of a file you want to encrypt the function produces a .bejaranoEncrypt file in the same folder of the input fileDecrypt file: This feature is a function that recieves one password and the path of a file generate by the encrypt function ( .bejaranoEncrypt file) the functions generates a file decryptsSay Love: This feautre is a function that returns and prints the translation of ‘Te amo con todo mi corazÃ³n’ in a random language, the list of langs is the list define in the ISO_639-1 listUsagefrompyloves.pylovesimportencrypt_file,decrypt_file,say_loveencrypt_file("16-octubre","file_input.txt")\# Generates .bejaranoEncrypt filedecrypt_file("16-octubre","file_input.txt.bejaranoEncrypt")\# In this example is going to override first input pathsay_love()\# prints 'Love you' in random languageCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-04-16)First release on PyPI.
Package: pylox
pylox is Python implementation of Lox programming language which is a
demo language from [Crafting Interpreters](http://www.craftinginterpreters.com/)
book by [Bob Nystrom](https://github.com/munificent).I’m doing this because:I want to learn about language design and implementationI don’t want to just read the book or copy and paste the code from it
and I want to do something else than C or JavaPython is my main language these days and I want to use something I’m
most comfortable withMaybe after Python version I decide to reimplement it (or make my
own toy language) in Go. Or force myself to learn Rust which seems
like a good idea.Fun.This iswork in progress.RequirementsPython 3.6 for no particular reasons except f-strings are used in few
places. Other than that, it could easily be ported to even Python 2.7
(but I don’t plan to).Run itpython3 -m pylox [script]LicenseMIT.
Package: pyloxone-api
Pyloxone-apiA Python API for communicating with aLoxoneminiserver.DevelopmentWe usePoetryfor package and environment management,Blackandisortfor code formatting, andPytestfor testing.InstallPoetryClone the project from Github, and usePoetryto install a virtual
environment and all dependencies:>gitclonehttps://github.com/jodehli/pyloxone-api
>cdpyloxone-api
>poetryinstallActivate the virtual environment and create a shell:>poetryshellTo test, make sure the virtual environment is activiated, and runpytest:>pytestThere are some tests which require a live miniserver on the network. They are
slower, and are not run by default. Be careful with these tests—they might
make your miniserver behave oddly. To run them, you must specify appropriate
credentials, eg:>pytest--host=192.168.1.100--port=80--username=admin--password=admin
Package: pylp
What is pylp?Pylp is a task runner for Python3 that lets you automate tasks.It’s inspired bygulp.js.Pylp use a syntax similar to Gulp, making this task runner easy to
learn and simple to use.Task process is completely asynchronous thanks toasynciomodule,
which provides a fast execution.DocumentationCheck out thedocumentationfor a Getting started guide, API docs
or making a plugin.Samplepylpfile.pyThis file is an example of what you can do with Pylp.importpylpfrompylpconcatimportconcat# Concat all js files from 'src' folderpylp.task('js',lambda:pylp.src('src/**/*.js').pipe(concat('all.min.js')).pipe(pylp.dest('build/js')))# The default task (called when you run 'pylp' from cli)pylp.task('default',['js'])
Package: pylpchanged
Informationpylpchangedis a plugin forPylpthat filter unchanged files.Note: this plugin cannot filter unchanged files with a name transformed by another
plugin further into the stream (pylprenamefor example).InstallationInstallpylpchangedwithpip:pip install pylpchangedIf you don’t have PythonScriptsfolder in your PATH, you can run also:python -m pip install pylpchangedUsageThe usual use ofpylpchangedis as follows:importpylpfrompylpchangedimportpylpchangedpylp.task('default',lambda:pylp.src('lib/*.py').pipe(changed())# .pipe(another_plugin()).pipe(pylp.dest('build')))Without parameters,pylpchangedwill wait for the destination stream (i.e.pylp.dest)
to compare the last result with the source files.For a faster execution, you can pass directly the destination path like this:importpylpfrompylpchangedimportpylpchangedpylp.task('default',lambda:pylp.src('lib/*.py').pipe(changed('build'))# .pipe(another_plugin()).pipe(pylp.dest('build')))
Package: pylpconcat
Informationpylpconcatis a plugin forPylpthat can concatenate file contents.InstallationInstallpylpconcatwithpip:pip install pylpconcatIf you don’t have PythonScriptsfolder in your PATH, you can run also:python -m pip install pylpconcatUsageThe usual use ofpylpconcatis as follows:importpylpfrompylpconcatimportconcatpylp.task('scripts',lambda:pylp.src('lib/*.js').pipe(concat('all.js')).pipe(pylp.dest('dist')))Moreover, you can specify the separator to add between files (\nby default):importpylpfrompylpconcatimportconcatpylp.task('scripts',lambda:pylp.src('lib/*.js').pipe(concat('all.js',sep=';')).pipe(pylp.dest('dist')))
Package: pylprename
Informationpylprenameis a plugin forPylpthat rename files in a stream.InstallationInstallpylprenamewithpip:pip install pylprenameIf you don’t have PythonScriptsfolder in your PATH, you can run also:python -m pip install pylprenameUsageimportpylpfrompylprenameimportrename# Rename with a stringpylp.src('src/main/text/hello.txt').pipe(rename('ciao/goodbye.md')).pipe(pylp.dest('dist'))# ./dist/ciao/goodbye.md# Rename with a functionpylp.src('src/main/text/hello.txt').pipe(rename(lambdan:n.replace('ell','all'))).pipe(pylp.dest('dist'))# ./dist/hallo.txt# Rename with some values (all values are optional)pylp.src('src/main/text/hello.txt').pipe(rename(dirname='md/ciao',basename='aloha',prefix='bonjour-',suffix='-hola',ext='.md')).pipe(pylp.dest('dist'))# ./dist/md/ciao/bonjour-aloha-hola.mdNotesbasenameis the filenamewithoutthe extensionextis the file extensionincluding the ‘.’
Package: pylpsd
py-lpsdPython implementation of the pylpsd algorithm for computing power spectral density with logarithmically spaced points.InstallationThis package can be installed via pip:pip install pylpsdIn case you want to edit this, clone this repository and install it in editable mode:git clone https://github.com/bleykauf/py-lpsd
cd py-lpsd
pip install -e .UsageSee the Jupyter notebook in the examples folder and the docstring.Implementation in other languagesMatlab: py-lpsd is based on this implementation.
Package: pylrc
A python library for parsing and converting .lrc filesUsageimportpylrclrc_file=open('example.lrc')lrc_string=''.join(lrc_file.readlines())lrc_file.close()subs=pylrc.parse(lrc_string)forsubinsubs:sub.shift(minutes=1,seconds=13,milliseconds=325)# offset by 01:13.325srt=subs.toSRT()# convert lrc to srt stringlrc_string=subs.toLRC()# convert to lrc stringInstallationsudo pip install pylrc
Package: pyLruCache
### 项目名字pyLruCache.py====### 介绍Lru适合做定量的数据新旧替换的算法,特别适合做缓存的应用，后期会考虑接入redis做存储。```pythonfrom pyLruCache import *In [1]: from pyLruCache import *In [2]: a = pyLruListCache(3)In [3]: for i in a.iteritems():...:     print i...:In [4]:In [4]: a[1] = 1In [5]: a[2] = 2In [6]: a[3] = 3In [7]: for i in a.iteritems():...:     print i...:(1, 1)(2, 2)(3, 3)In [8]: a[4] = 4In [9]: for i in a.iteritems():print i...:(2, 2)(3, 3)(4, 4)In [10]: print a[2]2In [11]: a[5] = 5In [12]: for i in a.iteritems():print i....:(4, 4)(2, 2)(5, 5)In [13]: a[6] = []In [14]: a[6].append(1)In [15]: a[6].append(2)In [16]: a[6].append(3)In [17]: for i in a.iteritems():print i....:(2, 2)(5, 5)(6, [1, 2, 3])In [18]: a[7]=7In [19]: for i in a.iteritems():print i....:(5, 5)(6, [1, 2, 3])(7, 7)```###for List```pythonrom pyLruCache import pyLruListCachea = pyLruListCache(5)for i in range(100):a.appendd(i)```the result in debug mode{96: 96, 92: 92, 93: 93, 94: 94, 95: 95}92{96: 96, 97: 97, 93: 93, 94: 94, 95: 95}93{96: 96, 97: 97, 98: 98, 94: 94, 95: 95}## InstallationpyLruCache can be installed using Pypi`pip install pyLruCache`## Detail详情: xiaorui.cc## To Do List1. support redis broker
Package: pylsb
PyLSBThis library provides a convenient way to retrieve the content of the Legacy
Standard Bible. It is platform agnostic, saves data into an easy to parse JSON
file, and retrieves all data from the official website
(https://read.lsbible.org/).If you're looking for the command line LSB viewing utility, that has been split
off intoits own project.This software is not officially endorsed by, or affiliated with, The Lockman
Foundation or Three Sixteen Publishing Inc. (the copyright holders of the LSB)
in any way. I hold no responsibility for your usage of this software. It was
created as a hobby/mild-learning project for myself as this is the translation I
personally read. To support the translators and printers, considerpurchasingyour own copy of the
LSB.How to Useto be updated
Package: pyls-black
pyls-blackBlackplugin for thePython Language Server.In the samevirtualenvaspython-language-server:pip3installpyls-blackTo avoid unexpected results you should make sureyapfandautopep8are not installed.pyls-blackcan either format an entire file or just the selected text.The code will only be formatted if it is syntactically valid Python.Text selections are treated as if they were a separate Python file.
Unfortunately this means you can't format an indented block of code.pyls-blackwill use your project'spyproject.tomlif it has one.See thewikifor instructions on how to usepyls-blackwith popular text editors.
Package: pyls-black-macchiato
Black-macchiato plugin for the Python Language Server (pyls)To use theblackcode formatter withpyls, in most cases you can just use thepyls-blackplugin. This plugin serves as an alternative if you need the ability to do range formatting.Such functionality is provided byblack-macchiato, whileblackonly formats complete documents
(see theblack-macchiatoreadme for more background).This plugin works similarly topyls-black, but it uses the wrapping functionality fromblack-macchiatoto enable formatting of (mostly) arbitrary ranges.ConfigurationInstall this plugin into the same virtualenv aspyls. For example, on my system I am usingvim-lspandvim-lsp-settings, so I do the following:$ ~/.local/share/vim-lsp-settings/servers/pyls/venv/bin/pip install pyls-black-macchiatoWhen formatting, the plugin will use logic similar to what's inblackandpyls-blackto search
for apyproject.tomland load its settings from there.