Saravanan666/pypi-org huggingface dataset:
Package: palora
Wrapper Class around cx_Oracle for Oracle Autonomous DatabaseThis class supports multiple connections to the database using session pool. The minimum and maximum number of sessions can be defined.In cx_Oracle after connecting to the database, for every query statement the data needs to be fetched and for evey update or insert statement the data needs to be committed. But this class eliminates these requirements and make it simple to read and write to the database.Files:palora/__init__.pyInstallation:sudo pip3 install paloraUsage Examples:import paloradb = palora.db(‘user’, ‘password’, ‘tsn-entry’)  ##-connect to the databasedb.read(“sql statement”)  ##-returns the read data from database with flat=Truedb.read(“select item from table”, flat=False)  ##-returns the raw read datadb.read(“select item from table where item = %s”, (sub1,))  ##-read with string substitutiondb.read1(“sql statement”)  ##-returns the first read data similar to fetchonedb.write(“sql statement”)  ##-writes the data and commits to the databasedb.clear()  #-to reconnect if any transaction errorFor other cx_Oracle connection commands use the connection classdb.conn….
Package: palourde
PalourdePalourde convertsa v2.1 Postman collection,  into amarkdown file, shareable on Github or in Obsidian.How to export your postman collectionBe aware, palourde will explore recursively all your folders and subfolders to get to the requests, sothe end result won't display your folder structure.Palourdewon't displayyour private tokens and api  keys either.Note that palourde has only been tested on version2.1postman collections and on Python3.10.InstallationpipinstallpalourdeUsagepalourdedemo.postman_collection.jsonThis should generate ademo.mdfile in the same folder.SeeDemos.
Package: palp
Palp这是一个爬虫框架，教程请点击文档安装pip install palp创建项目创建项目和爬虫都会去判断文件是否存在palp create -p xxx创建爬虫创建爬虫时，会自动移动到 spiders 文件夹下（查找为 3 个深度）palp create -s xxx 1
Package: palpageproducer
Palette Page ProducerInput: a SASS stylesheet (.scss), a LESS stylesheet (.less), a GNU Image Manipulation Program palette (.gpl), or an Oomox colors file (often found in~/config/oomox/colors).Output: an HTML document with boxes of the colors defined in the input file (in~/.local/share/palpageproducer/outputor the equivalent).Dependencies:appdirspython-slugifyI made this because I wanted an easy way to see what the colors in a webpage/game/etc. looked like together. Because Palette Page Producer also lists the variable names and hex codes of each color, it also makes it easy to copy a given value (e.g. to throw it into WebAIM's Color Contrast Checker).Caveats:PPP doesn't check if the output already exists before overwriting.LESS files aren't as well-tested as the other formats yet and may have strange errors.The output uses some fancy CSS features (likegridandvw) that not all browsers support.RGB palette colors are converted to hex output. RGBA colors are ignored entirely.If color I.D.s are duplicated (e.g. a GNU IMP palette with multiple colors named "Untitled"), PPP automatically appends a number to the I.D. to avoid overlap problems. This means that the I.D.s seen in the output may not match to the originals 100%.The output uses a<style>element in the<head>, rather than creating two separate (.HTML and .CSS) files. Some linters don't like<style>tags under any circumstances, so you may get false "invalid" results, but the output is indeed valid HTML5.Very long color I.D.s (in excess of, say, 90 characters, although your definition of "very long" may vary) or column counts of 9 or more may break the output layout, force horizontal scrolling, and yield undesirable results.
Package: palpao-server
# PALPAO server: deformable mirror controller[![Build Status][travis]][travislink]  [![Coverage Status][coveralls]][coverallslink]  [![PyPI version][pypiversion]][pypiversionlink]This is part a component of the Plico framework to control Deformable Mirrors (Alpao, MEMS, PI piezo tip-tilt platform)See [palpao][palpao] repository for installation and usage[plico]:https://github.com/lbusoni/plico[palpao]:https://github.com/lbusoni/palpao[allied]:https://www.alliedvision.com[travis]:https://travis-ci.com/lbusoni/palpao_server.svg?branch=master“go to travis”
[travislink]:https://travis-ci.com/lbusoni/palpao_server[coveralls]:https://coveralls.io/repos/github/lbusoni/palpao_server/badge.svg?branch=master“go to coveralls”
[coverallslink]:https://coveralls.io/github/lbusoni/palpao_server[pypiversion]:https://badge.fury.io/py/palpao-server.svg[pypiversionlink]:https://badge.fury.io/py/palpao_server
Package: palpg
Wrapper Class around Psycopg2 for PostgreSQLIn psycopg2 after connecting to the database, for every read execute statement the data needs to be fetched and for evey write execute statement the data needs to be committed. But this class eliminates these requirements and make it simple to read and write to the database.Files:palpg/__init__.pyInstallation:sudo pip3 install palpgUsage Examples:import palpgdb = palpg.db(“host=HOST port=PORT dbname=DBNAME user=USER password=PASSWORD”)  ##-connect to the databasedb.read(“sql statement”)  ##-returns the read data from database with flat=Truedb.read(“select item from table”, flat=False)  ##-returns the raw read datadb.read(“select item from table where item = %s”, (sub1,))  ##-read with string substitutiondb.read1(“sql statement”)  ##-returns the first read data similar to fetchonedb.write(“sql statement”)  ##-writes the data and commits to the databasedb.clear()  #-to reconnect if any transaction errorFor other psycopg connection commands use the connection classdb.conn….
Package: palpy
PALpy is a python interface to the PAL positional astronomy library
(<https://github.com/Starlink/pal>). All source code is included with
the distribution via git submodules.To build the python interface from the git repository:git submodule init
git submodule update
python setup.py build
python setup.py install
python test_pal.pyRequires that Cython and numpy are installed.The interface uses the same names as the C interface with the pal
prefix missing:import palpy as pal

djm = pal.caldj( 1999, 12, 31 )
(r2000, d2000) = pal.fk45z( 1.2, -0.3, 1960 )All arguments modified by the C API are returned. No arguments
are modified. The one routine that is different is palObs which
returns a simple dict that can be searched using standard python.
The keys to the dict are the short names and the values are another
dict with keys name, long, lat and height.Docstrings are included with each routine describing the python
usage and the associated C documentation:help(palpy)
help(palpy.caldj)Seetest_pal.pyfor detailed examples of all functions.Documentation:The module provides documentation on how to use the python interface
to PAL. It does not contain information on how to use
PAL itself.The basic PAL documentation can be found athttp://www.starlink.ac.uk/star/docs/sun267.htx/sun267.htmlFor more information the SLA documentation provides much more
detail:http://www.starlink.ac.uk/star/docs/sun67.htx/sun67.htmlA description paper for PAL was published in the ADASS XXII
conference proceedings:http://adsabs.harvard.edu/abs/2013ASPC..475..307JPlease consider citing this if you use PAL or palpy in your
research.Further WorkNot all the SLALIB routines are available from PAL. More can be added
as need arises.AuthorCopyright (C) 2012, 2014-2016
Tim Jenness (tim.jenness@gmail.com).
All Rights Reserved.This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version.This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: palpyutil
Shay Palachy’s personal common Python 3 utility functions and classes.frompalpyutil.decoratorsimportlazy_property@lazy_propertydefsome_big_calc(param_array):sub_res=[big_func(param)forparaminparam_array]returnsum(sub_res)InstallationInstallpalpyutilwith:pipinstallpalpyutilCreditsCreated by Shay Palachy  (shay.palachy@gmail.com).
Package: pal_rcon
pal_rconPalworld 用の Rcon クライアントです。[!WARNING]
サーバー側の実装の問題によりちゃんと動かないことがあります。既知の問題マルチバイト文字に対応していないサーバーがマルチバイト文字に対応していないため、マルチバイト文字が入っているといろいろとおかしくなる。送信時: 文字化けを起こす受信時: おそらく length がうまく計算されておらず、メッセージが途中で途切れてしまうShowPlayers がうまく機能しないうまく機能しない場合がいくつか確認しています。プレイヤーがログイン中(キャラクリ中含む)の場合ワールドに入る寸前に PlayerUID が読み込まれるので、それまでは PlayerUID が 00000000 となって Steam の名前が返される。さらに Steam の名前がマルチバイト文字だと上記の不具合によりレスポンスが途中で切れてしまう。プレイヤーの名前にマルチバイト文字が含まれている場合上記参照。パケット ID がちゃんと返ってこないRcon では任意の数字を送信時に一緒に送ることで、レスポンスにその数字を含めて返してくれます。ログイン時はちゃんと返ってきますが、コマンドを送信すると 0 が返ってきます。このクライアントの実装について"\n"で終わっていない場合は再試行するPalWorld の レスポンスは必ず改行で終わるようです。改行で終わっていない場合は max_attempts の数だけ再試行します。特に起きやすい ShowPlayers ではデフォルトで 10 回にしてあります。もし、マルチバイト文字が含まれていなければリトライの間にログインが完了し、正しい情報を取得できます。最後まで"\n"で終わらなかった場合はうまくデコードできない可能性があるので IncompleteMessageError を送出します。IncompleteMessageError.message に受信した Payload が入っています。送信時のエンコードは ASCII ですUTF-8 でエンコードすると文字化けする上にレスポンスも文字化けしてしまうので ASCII でエンコードしています。マルチバイト文字を渡すと UnicodeEncodeError となるので注意してください。使い方pip install pal_rconSyncfrompal_rconimportPalRcon# with Context ManagerwithPalRcon("127.0.0.1",25575,"password")asrcon:res=rcon.send_info()print(res.message)# not Context Managerrcon=PalRcon("127.0.0.1",25575,"password")rcon.connect()res=rcon.send_info()print(res.message)rcon.disconnect()Asyncfrompal_rconimportAsyncPalRcon# with Context ManagerasyncwithAsyncPalRcon("127.0.0.1",25575,"password")asrcon:res=awaitrcon.send_info()print(res.message)# not Context Managerrcon=AsyncPalRcon("127.0.0.1",25575,"password")awaitrcon.connect()res=awaitrcon.send_info()print(res.message)awaitrcon.disconnect()Send Commandsrcon.execute_command(command:str|list,max_attempts:int|None=1)->CommandResponsercon.send_shutdown(seconds:int|None=1,message:str|None="",send_save:bool|None=False,max_attempts:int|None=1)->CommandResponse:rcon.send_do_exit(max_attempts:int|None=1)->CommandResponsercon.send_broadcast(message:str,max_attempts:int|None=1)->CommandResponsercon.send_kick_player(steam_id:str|int,max_attempts:int|None=1)->CommandResponsercon.send_ban_player(steam_id:str|int,max_attempts:int|None=1)->CommandResponsercon.send_show_players(max_attempts:int|None=10)->PlayerlistResponsercon.send_info(max_attempts:int|None=1)->CommandResponsercon.send_save(max_attempts:int|None=1)->CommandResponseLicense MIT ©Charahiro-tan
Package: palsql
Wrapper Class around Sqlite3In Sqlite3 after connecting to the database, for every read execute statement the data needs to be fetched and for evey write execute statement the data needs to be committed. But this class eliminates these requirements and make it simple to read and write to the database.Files:palsql/__init__.pyUsage Examples:import sqlite3db = palsql.db(“db-filename”)  ##-connect to the databasedb.read(“sql statement”)  ##-returns the read data from database with flat=Truedb.read(“select item from table”, flat=False)  ##-returns the raw read datadb.read(f”select item from table where item = {Variable}”)  ##-read with string substitutiondb.read1(“sql statement”)  ##-returns the first read data similar to fetchonedb.write(“sql statement”)  ##-writes the data and commits to the databaseFor other psycopg connection commands use the connection classdb.conn….
Package: paltas
paltasis a package for conducting simulation-based inference on strong gravitational lensing images. The package builds onlenstronomyto create large datasets of strong lensing images with realistic low-mass halos, Hubble Space Telescope (HST) observational effects, and galaxy light from HST’s COSMOS field.paltasalso includes the capability to easily train neural posterior estimators of the parameters of the lensing system and to run hierarchical inference on test populations.Installationpaltasis installable via pip:$pipinstallpaltasThe defaultpaltasrequirements do not includetensorflow, but if you are interested in using the modules contained in the Analysis folder, you will have to installtensorflow:$pipinstalltensorflowUsageThe main functionality ofpaltasis to generate realistic datasets of strong gravitational lenses in a way that’s modular, scalable, and user-friendly. To make a dataset with platas all you need is a configuration file which you can then pass to the generate.py script:$pythongenerate.pypath/to/config/filepath/to/output/folder--n100Running the line of code above would generate 100 lenses and output them in the specified folder.paltascomes preloaded with a number of configuration files which are described inConfigs/Examples/README.rst. For example, to create a dataset with HST observational effects, subhalos, and line-of-sight halos run:$pythongenerate.pyConfigs/Examples/config_all.pyexample--n100We provide a tutorial notebook that describes how togenerate your own config file.Demospaltascomes with a tutorial notebook for users interested in modifying the simulation classes.Implement your own source, line-of-sight, subhalo, or main deflector model.Training a neural posterior estimator of simulation parameters.Running hierarchical inference on a population of strong lenses.FiguresCode for generating the plots included in some of the publications usingpaltascan be found under the corresponding arxiv number in thenotebooks/papers/folder.AttributionIf you usepaltasor its datasets for your own research, please cite thepaltaspackage (Wagner-Carena et al. 2022) as well as thelenstronomypackage (Birrer & Amara 2018,Birrer et al. 2021).
Package: palu
PaluA small spider, useful for checking a site for 404s and 500s.
It’s a forked of [Patu][1].Palu requires httplib2 and lxml:pip install -U httplib2 lxmlIs it safe? [![Build Status](https://secure.travis-ci.org/akrito/palu.png?branch=master)](http://travis-ci.org/akrito/palu)Quick UsageTo see available options:palu.py –helpTo spider an entire site using 5 workers, only showing errors:palu.py –spiders=5 www.example.comTo spider, stopping after the first level of links:palu.py –depth=1 www.example.comTo get a list of every linked page on a site:palu.py –generate www.example.com > urls.txtInstead of spidering for URLs, use a file instead and show all responses:palu.py –input=urls.txt –verbose www.example.comFormat of URLs FileThe output produced by <code>–generate</code> is formatted like so:FIRST_URL<TAB>None
LINK1<TAB>REFERER
LINK2<TAB>REFERER<code>–input</code> can take a file of that format, or one URL per line with no referer. <code>–input=-</code> reads from stdin.TestingPalu uses Nose for testing. To install Nose and test:pip install -U nose
nosetests[1]:https://pypi.python.org/pypi/patu
Package: palworld-coord
Palworld Coordinate ConverterDeveloped byhttps://palworld.lolwith major help fromhttps://github.com/cmkb3This is a small library with two functions used to convert between two different coordinat systems in Palworld:The coordinate system used in the game itself in the Paldex interactive mapThe coordinate system used in the game save files (.sav)Installationpipinstallpalworld-coordAlso, if you want, you can just copy thecontents of this fileinto your project instead of adding a dependency.API# Convert from save game file coordinate to Paldexsav_to_map(x:float,y:float)->Point# Convert from Paldex coordinate to save game filemap_to_sav(x:int,y:int)->PointUsage Examplesfrompalworld_coordimportsav_to_map,map_to_sav# Anubis boss location pulled from game datasav_to_map(-167230,96430)# Point(x=-134, y=-94)# Get .sav coordinates of random base location in-game:map_to_sav(373,-359)# Point(x=-288669, y=329207)
Package: palx
palx: Image Palette Extractorpalx is a command-line tool and Python package that allows users to extract a color palette from an image and attach it to the image's edge. This tool is perfect for designers, artists, or anyone interested in color analysis and image manipulation.FeaturesExtract Color Palette: Analyzes an image and extracts a dominant color palette.Attach Palette to Image: Adds the extracted color palette to the specified edge (top, bottom, left, or right) of the original image.Customizable Options: Allows customization of the number of colors in the palette, the position of the palette on the image, and the border width around color squares.InstallationTo install palx, run the following command in your terminal:pipinstallpalxCLI UsageTo use palx from the command line, follow this syntax:palx<image_path>[--clusters<number_of_clusters>][--position<position>][--border_width<width>][--output<output_path>]image_path: Path to the input image.--clusters: Optional. Number of color clusters to extract (default is 5).--position: Optional. Position of the color palette on the image (left, right, top, bottom). Default is right.--border_width: Optional. Width of the border around color squares (default is 10).--output: Optional. Path to the output image. If not specified, the modified image will be displayed but not saved.Examplepalxmyimage.jpg--clusters8--positionbottom--border_width5--outputmyimage_with_palette.jpgThis command extracts an 8-color palette from myimage.jpg, attaches it to the bottom with a border width of 5 pixels, and saves the result to myimage_with_palette.jpg.Python Package Usagepalx can also be used as a Python package to integrate palette extraction and attachment into your own projects.Extracting a Palette and Edge Lengthfrompalximportextract_palette_and_edge_lengthpalette,edge_length=extract_palette_and_edge_length("path/to/image.jpg",n_clusters=5)print(palette,edge_length)Attaching the pallette to an imagefrompalximportattach_paletteattach_palette("path/to/image.jpg",palette,"right",edge_length,border_width=10,border_color='black',output_path="path/to/output.jpg")RequirementsPython 3.6 or higherPillowNumPyscikit-learnLicensepalx is open-source software licensed under the MIT license.
Package: pamalia
parallel evaluation with joblib (n_jobs)implement genetic algorithm to find pipelinescopy parameters from tpotadd rules to prevent stupid things (PolynomialFeatures with many
columns)distribute genetic algorithms with dasktest joblib distributed backend with dask (nothing to do, just test)fine-grained distribution with dask computation graph:trivial for predictionfor fit, each step returns a cross-validated estimate and a fitted
model. The fitted model is not used before the final step.it is possible to implement cross-validation with a factor 2
improvement when the cross-val and the training folds matchhandle timeouts:https://github.com/dask/distributed/issues/391,https://github.com/dask/dask/issues/1183
Package: pamela
Pamela: yet another Python wrapper for PAMThere seems to be a glut of Python wrappers for PAM that have since been abandoned.
This repo merges two separate efforts:gnosek/python-pamadds wrappers for a few more calls, e.g. opening sessionsraises PamError on failure instead of returning False, with informative error messagessimplepamadds Python 3 supportresets credentials after authentication, apparently for kerberos usersWhy?Both projects appear to be abandoned, with no response to issues or pull requests in at least a year, and I need it forJupyterHub.Use itInstall:pip install pamelaTest:python -m pamela -a `whoami`
Package: pamet
PametAn infinite canvas for organizing information with text/images/links. Written using Qt for Python.⚠Still in alpha⚠ - you'll probably encounter GUI bugs, but the data storage/saving is stable.InstallationVia pipRequires Python>3.10. If it's not available for your package manager(/app store) - you can usepyenv.pip install pamet, start withpametFrom sourceClone theFusionand Pamet repos.Runpip install .(with the respective repo as current working dir).If you want a development install runpip install -e .instead. Install Fusion first (otherwise it'll get pulled from PyPI). Also it would be best to do it in a virtual environment if you want to run the release version in parallelA Flatpak is in the works but I hit anissuethere.UsageCtrl+shift+P for the command paletteDouble click to create a new noteL to craete an arrowClick to selectLong-press and drag to move selected notes/arrowsCtrl or shift to select multiple notesCtrl+Shift to drag-select multiple notesDrag the lower right corner of a note to resize itButtons 1,2,3,4 change the note color. 5 removes the backgroundSelected notes get moved together and resized to the same sizeNo manual saving is requiredCopy/paste/cut work as you'd expectPaste special with ctrl+shift+V (imports links and multiple notes) - will be improvedTestingThere are unit tests for some of the functionality and testing for the actions(=controller) which are not precise but are quite useful for visual verification (+areeasy to generate).Development state and futureCheck some notes on thedevelopment so farCurrently the code documentation isn't updated, and typing annotations have to be completed in places.Next goals in terms of features:Server for page sharingA minimal web app for viewing pagesA minimal android app for viewing and limited input
Package: pamit
pamitpamit -> ti map: Taichi Map UtilsPRs are welcomed! Please see TODOs.Installation and DependencyTo installpamit, enterpython -m pip install pamitMake sure you haveTaichiinstalled.UsageThe APIs ofmap_inplace()andmap_to()are straight forward.map_torequires the target field to have the same shape of the source field, but the "channels" may differ. Please seeexamples/extend_dimensionfor example.Ifwith_indexisTrue, then the Taichi function is expected to haveindex(i.e., the index of an element in a field) andelement(i.e., the value of an element in a field) as first two arguments.Otherwise, the Taichi function is expected to haveelementas the first argument.frompamitimportmap_inplaceimporttaichiasti@ti.funcdefincrement(element,val):returnelement+valfield=ti.field(ti.f32,shape=(2,3))map_inplace(field,increment,False,2.0)print(field)TODOsCheck backward capabilityReduce functionSimple user documentation
Package: paml2html
paml2html is a proof-of-concept converter making HTML from [P]oker's M[a]de-up [M]arkup [L]anguage. PaML's docs can be foundhere. You can also track PaML's & paml2html's development on myVikunja list!PrerequisitesPython 3yattag(pip install yattag)InstallationDownload the filesClone the repo:git clone https://github.com/PokerFacowaty/paml2html... or simply downloadsrc/paml2html.pyUsageTo use paml2html by itself, simply start it when in the same directory:python paml2html.py(or if you have Python 2 installed)python3 paml2html.py...or you can also import it and use in a different file withimport paml2htmlby calling thepaml2html.convert_from_file()orpaml2html.convert_from_text()function and providing a filepath or textArgumentspaml2html.py [-h] [--indent INDENT] source_file destination_file-h, --help- show help--indent <number>- the optional amount of spaces used to indent the HTML file, indentation is off by defaultsource_file- source text file containing PaML contentdestination_file- file for the resulting HTML content
Package: pam_py_linotp
LinOTP is an open solution for strong two-factor authentication with One Time Passwords.LinOTP 2 is also open as far as its modular architecture is concerned.
LinOTP 2 aims to not bind you to any  decision of the authentication protocol or
it does not dictate you where your user information should be stored.
This is achieved by its new, totally modular architecture.This package contains a PAM module for LinOTP written in python.