Saravanan666/pypi-org huggingface dataset:
Package: pado
PADO: PAthological Data ObsessionWelcome topado:wave:, a dataset library for accessing histopathological
datasets in a standardized way fromPython.pado's goal is to provide a unified way to access data from diverse
datasets. Its scope is very small and the design tries to keep everything
simple.As always: Ifpadois not pythonic,
unintuitive, slow or if its documentation is confusing, it's a bug inpado. Feel free to report any issues or feature requests in the issue
tracker!Developmenthappens on github:octocat:QuickstartTo quickly get a pado dataset, for testing and familiarizing with the interface
you can create a fake dataset, that's also used in the internal tests.>>>frompado.mockimportmock_dataset>>>ds=mock_dataset(None)>>>dsPadoDataset('memory://pado-f5869e41-5246-4378-9057-96fda1c40edf', mode='r+')This creates a test dataset in memory with 3 images and some fake metadata>>>len(ds)3>>>ds.index(ImageId('mock_image_0.svs', site='mock'),ImageId('mock_image_1.svs', site='mock'),ImageId('mock_image_2.svs', site='mock'))>>>ds[0].imageImage(...)>>>ds[0].metadataA  B  C  DImageId('mock_image_0.svs', site='mock')  a  2  c  4DocumentationThe documentation is currently provided in this repository and has to be
build via sphinx. It'll be available online soon.To build it, in the repository root, runpython-mpipinstall-e".[docs]"cddocs
makehtmlAccess the documentation then atdocs/build/html/index.htmlDevelopment Installationpado can be installed directly viapip:pipinstall"git+https://github.com/Bayer-Group/pado@main#egg=pado[cli,create]"or for development you can clone and install via:gitclonehttps://github.com/Bayer-Group/pado.gitcdpathdrive-pado
pipinstall-e".[cli,create,dev]"if you prefer conda environments:gitclonehttps://github.com/Bayer-Group/pado.gitcdpathdrive-pado
condainstallconda-devenv
condadevenv
condaactivatepadoNote that in this environmentpadois already installed in development mode,
so go ahead and hack.Contributing GuidelinesPlease usenumpy docstrings.When contributing code, please try to use Pull Requests.tests go hand in hand with modules ontestspackages at the same level. We usepytest.Please installpre-commitand install the hooks by runningpre-commit installin the project root folder.You can setup your IDE to help you adhering to these guidelines.(Santiis happy to help you setting up pycharm in 5 minutes)AcknowledgementsBuild with love by Santi Villalba and Andreas Poehlmann from theMachine Learning Researchgroup at Bayer.pado: copyright 2020-2022 Bayer AG
Package: padova
PadovaPadova is a small python package for working with the so-calledPadova evolutionary tracksproduced by Girardi and collaborators.
Padova is compatible with theAstropyproject.Take a look at thisJupyter notebookto see what Padova can do.Of course, please use this projectresponsibly.
Don’t abuse the CMD servers.FeaturesSimple interfaces to obtain either single isochrones or grids of isochrones.Validation of settings before requesting data from the CMD servers.Caching of requests so you don’t hit the CMD servers when you ask for an isochrone set you already have.Isochrones are provided asAstropytables with metadata.Isochrones can be exported for use withStarFISH.Installationpip install padovaDependenciesnumpyAstropyRequestspytomlsetuptoolsTestsPadova uses py.test and tox to run tests. Setup with:pip install toxThen to run the test suite:toxCreditsPadova provides data from theCMD web site, which is a product of Leo Girardi and collaborators.Padova takes inspiration and incorporates code fromezpadovaby Morgan Fouesneau.InfoCopyright 2013-2015 Jonathan Sick (@jonathansick).Some parts are adapted fromezpadova, Copyright 2015 Morgan Fouesneau.Padova is MIT licensed.Changelog0.1.2 (2015-04-15)Testing with py.test and toxFixed installation of TOML settings schema with setuptoolsStarted testing on travis-ci0.1.1 (2015-04-15)Cleanup README-based documentation0.1 (2015-04-15)First official release
Package: padpo
padpoLinter for gettext files (*.po)Created to help the translation of official Python docs in French:https://github.com/python/python-docs-frIl faut demander aux traducteurs s'ils n'ont pas de pot quand ils traduisent, maintenant ils ontpadpo…
:smile: :laughing: :stuck_out_tongue_winking_eye: :joy: (note : il était tard le soir quand j'ai trouvé le nom).LicenseBSD 3-clausePull request are welcome.Padpo is part of poutils!Poutils(.poutils) is a metapackage to easily install useful Python tools to use with po files
andpadpois a part of it! Go check outPoutilsto discover the other tools!UsageUsing theactivated virtual environmentcreated during the installation:For a local input file:padpo--input-patha_file.poor for a local input directory:padpo--input-patha_directory_containing_po_filesor for a pull request in python-docs-fr repository (here pull request #978)padpo--python-docs-fr978or for a pull request in a GitHub repository (here python/python-docs-fr/pull/978)padpo--githubpython/python-docs-fr/pull/978ColorBy default, the output is colorless, and formatted like GCC messages. You can use-cor--coloroption to get a colored output.InstallationAutomatic installationpipinstallpadpoManual installationInstall dependenciespoetryinstallNote: this usespoetrythat you can get here:https://poetry.eustace.io/docs/Use virtual environment$poetryshellUpdate on PyPI./deliver.shChangelogv0.11.0 (2021-02-02)update glossary (fix #58)v0.10.0 (2020-12-04)usepygrammalectev1.3.0use GitHub Actionsv0.9.0 (2020-09-07)usepygrammalectedefault message for spelling errorsv0.8.0 (2020-08-25)usepygrammalecteadd continuous integrationfix #12, #13, #14, #15, #17, #18, #20add--colorCLI option to get a colored output (default is colorless)v0.7.0 (2019-12-11)add--versionCLI option to display the current version ofpadpo--input-pathCLI option now accepts several paths as inpadpo --input-path file1.po file2.po directory1 directory2orpadpo -i file1.po file2.po directory1 directory2v0.6.0 (2019-12-9)check errors against defined glossariesv0.5.0 (2019-12-3)check spelling errors with grammalectetag releases!v0.4.0 (2019-12-2)use poetry:https://poetry.eustace.io/docs/add some tests with tox and pytestsfix some false positive issues with grammalecte
Package: padpoes
padpoesLinter for gettext files (*.po)Forked fromhttps://github.com/AFPy/padpoCreated to help the translation of official Python docs in Spanish:https://github.com/python/python-docs-esThanks and creadits to all the python-docs-fr team (L)LicenseBSD 3-clausePull request are welcome.UsageUsing theactivated virtual environmentcreated during the installation:For a local input file:padpoes--input-patha_file.poor for a local input directory:padpoes--input-patha_directory_containing_po_filesor for a pull request in python-docs-fr repository (here pull request #978)padpoes--python-docs-fr978or for a pull request in a GitHub repository (here python/python-docs-es/pull/978)padpoes--githubpython/python-docs-fr/pull/978ColorBy default, the output is colorless, and formatted like GCC messages. You can use-cor--coloroption to get a colored output.InstallationAutomatic installationpipinstallpadpoesManual installationInstall dependenciespoetryinstallNote: this usespoetrythat you can get here:https://poetry.eustace.io/docs/Use virtual environment$poetryshellUpdate on PyPI./deliver.shChangelogv0.12.0 (2021-03-22)RemovespygrammalectRemoves NBSP checkerMigrates CLI commands to python-docs-es repositoryChange glossary from French to Spanishv0.11.0 (2021-02-02)update glossary (fix #58)v0.10.0 (2020-12-04)usepygrammalectev1.3.0use GitHub Actionsv0.9.0 (2020-09-07)usepygrammalectedefault message for spelling errorsv0.8.0 (2020-08-25)usepygrammalecteadd continuous integrationfix #12, #13, #14, #15, #17, #18, #20add--colorCLI option to get a colored output (default is colorless)v0.7.0 (2019-12-11)add--versionCLI option to display the current version ofpadpo--input-pathCLI option now accepts several paths as inpadpo --input-path file1.po file2.po directory1 directory2orpadpo -i file1.po file2.po directory1 directory2v0.6.0 (2019-12-9)check errors against defined glossariesv0.5.0 (2019-12-3)check spelling errors with grammalectetag releases!v0.4.0 (2019-12-2)use poetry:https://poetry.eustace.io/docs/add some tests with tox and pytestsfix some false positive issues with grammalecte
Package: pad-sequences
pad-sequencesPad variable length sequences with multiples features.Installation via pipThepad-sequencesgit
repois available asPyPi
packagepipinstall"pad-sequences>=0.6.0"Usagefrompad_sequencesimportpad_sequences_multiimporttensorflowastf# import torchseq=[]seq.append([[1,1,1],[2,2,2]])seq.append([[1,1,1],[2,2,2],[3,3,3],[4,4,4]])n_samples=len(seq)n_features=len(seq[0][0])n_timesteps=3# for input sequencespadded=pad_sequences_multi(seq,padding='pre',value=0,truncating='pre',maxlen=n_timesteps)# for output sequences# padded = pad_sequences_multi(seq, padding='post', value=0,#                              truncating='post', maxlen=n_timesteps)X=tf.reshape(padded,[n_samples,n_timesteps,n_features])# X = torch.reshape(torch.tensor(padded), [n_samples, n_timesteps, n_features])Check theexamplesfolder for notebooks.AppendixInstall a virtual environmentpython3-mvenv.venvsource.venv/bin/activatepip3install--upgradepippip3install-rrequirements-dev.txtpip3install-rrequirements-demo.txt(If your git repo is stored in a folder with whitespaces, then don’t use
the subfolder.venv. Use an absolute path without whitespaces.)Other python commandsJupyter for the examples:jupyter labCheck syntax:flake8--ignore=F401--exclude=$(grep-v'^#'.gitignore | xargs | sed-e's//,/g')Run Unit Tests:pytestPublishpandocREADME.md--frommarkdown--torst-s-oREADME.rstpythonsetup.pysdisttwineupload-rpypidist/*Clean upfind.-typef-name"*.pyc"|xargsrmfind.-typed-name"__pycache__"|xargsrm-rrm-r.pytest_cacherm-r.venvDebuggingNotebooks to profile python code are in theprofilefolder
Package: pads-gpt-assistant
The coding assistance tool is a cutting-edge software application that leverages the power of ChatGPT, an advanced natural language processing technology developed by OpenAI.
This tool is designed to help PADS and UKY Statistics students, staff, and faculty write better code by providing them with real-time suggestions and feedback based on their coding patterns and syntax.
With its intuitive interface and powerful algorithms, this tool can analyze code in real-time and provide suggestions for improvements, making it an invaluable resource for anyone looking to improve their coding skills.
Whether you're a seasoned developer or just starting out, this coding assistance tool can help you write better code faster and more efficiently than ever before.
So why wait? Try it out today and see the difference it can make in your coding workflow!
<generated by ChatGPT>
Package: padsniff
Quickstart$pipinstallpadsniffPadsniff can be used as either a cli:$padsniffrun--port8080--scriptexamples/log_plus_eggs.pyruns:1|hp:1|atk:1|rcv:2[...]… or as a library!importpadsniffimportjson@padsniff.on(action='get_player_data')defhello(request,response):username=json.loads(response.content.decode())['name']print('Hello,%s!'%username)if__name__=='__main__':proxy=padsniff.Proxy()proxy.run()See thedevice setup guideto learn how to
set up your phone to proxy through padsniff, and theusage
guidefor more advanced usage.InstallationPadsniff requires Python 3.5+. Install it with your package manager or
usingpyenv.$pyenvupdate&&pyenvinstall3.5.2$pyenvshell3.5.2See thesuggested build
environmentpage if you’re having trouble getting pyenv to work.OSXApple removed the OpenSSL headers inEl Capitan, so you’ll have to set
some environment variables before installingpadsniff’s
dependencies.$brewinstallopenssl$exportARCHFLAGS="-arch x86_64"LDFLAGS="-L/usr/local/opt/openssl/lib"CFLAGS="-I/usr/local/opt/openssl/include"$pipinstallpadsniffPadsniff depends on mitmproxy’s transparent proxying capabilities.
Follow theirinstructionsto set up your computer for proxying.Debian / UbuntuPadsniff includes a pretty heavy list of dependencies, includinglxmlandcryptography. You’ll need to install some
of their dependencies via your package manager.$sudoapt-getinstall-ybuild-essentiallibffi-devlibssl-devlibxml2-devlibxslt-devpython3-dev$exportLC_ALL=C.UTF-8LANG=C.UTF-8$pipinstallpadsniffThis will also set up your environment to supportclick, the library that powers padsniff’s
command line interface.Padsniff depends on mitmproxy’s transparent proxying capabilites. Follow
theirinstructionsto set up your computer for proxying.Development$gitclonegit@gitlab.com:wmedlar/padsniff.git$cdpadsniff$pipinstall-rdev-requirements.txt-e.This will install the testing dependencies – padsniff usespytestfor unit testing – and install
padsniff ineditable
mode.
Package: padtexturetool
Puzzle & Dragons Texture ToolThe Puzzle & Dragons Texture Tool is a python script which extracts texture images from the binary data of the popular iOS & Android game "Puzzle & Dragons" (also known as "Puzzle and Dragons" or simply "PAD".)Example UsageYou can use the Puzzle & Dragons Texture Tool to extract texture data from Puzzle & Dragons' .apk file. For example:python -m padtexturetool padEN.apkYou can also use it to extract monster textures from .bc files you download from your phone:python -m padtexturetool mons_1262.bcBy default, the Puzzle & Dragons Texture Tool writes any extracted textures into the same directory as the input file. You can use the--outdirargument to specify an output folder of your choosing:python -m padtexturetool mons_1262.bc --outdir "Extracted Textures"AcknowledgementsSpecial thanks to Johann C. Rocholl who wrote the open-sourcePyPNGlibrary which the Puzzle & Dragons Texture Tool uses to output PNG files and to Cody Watts who wrote the original version of this library.
Package: padthai
Pad ThaiMake Pad Thai from few-shot learning 😉.PadThai is a language model tool with an application for few-shot learning for Thai Language.Original code from:https://link.medium.com/4FfbALWz8gbDocumentation:https://pythainlp.github.io/padthai/Tutorials:https://github.com/PyThaiNLP/padthai/tree/main/notebooksInstallpipinstallpadthaiSupport ModelGPT-Neo- GPT-Neo is a transformer model designed using EleutherAI's replication of the GPT-3 architecture.ThaiGPT-Next- It is fine-tune the GPT-Neo model for Thai language.Flax GPT-2 model- It's GPT-2 model. It was trained on the OSCAR datasetmGPT- Multilingual GPT modelRequirementstransformers<5.0LicenseApache-2.0 License
Package: padtools
DescriptionA Python package for the popular iOS & Android game “Puzzle & Dragons” (PAD).Installationpip install padtoolsExample Usage>>>importpadtools>>>na_server=padtools.regions.north_america.server>>>jp_server=padtools.regions.japan.server>>>na_server.version'8.62'>>>jp_server.version'8.70'>>>len(na_server.assets)2124>>>len(jp_server.assets)2727>>>jp_server.assets[0].url'http://dl.padsv.gungho.jp/ext/mon16021916321966505024756c6c50308dff/mons_001.bc'
Package: paegan-transport
The parallelized Lagrangian transport model for NetCDF/OPeNDAP data, written on top of [Paegan](https://github.com/asascience-open/paegan)SetupYou are usingvirtualenv, right?Install [virtualenv-burrito](https://github.com/brainsik/virtualenv-burrito)Create virtualenv named “paegan-transport-dev”:mkvirtualenv -p your_python_binary paegan-transport-devStart using your new virtualenv:workon paegan-transport-devInstallationPaegan-Transport requires python 2.7.x and is available on PyPI.The best way to install Paegan-Transport is through pip:`bash pip installpaegan-transport`Paegan-Transport requires the following python libraries which will be downloaded and installed throughpip:Fiona>=0.8requests>=1.2.3paeganredisgeojsonSee the [Paegan](https://github.com/asascience-open/paegan) documentation for installing other dependencies related to Paegan.RoadmapMore behaviorsTroubleshootingIf you are having trouble getting any of the paegan functionality to work, try running the tests:`bash git clonegit@github.com:asascience-open/paegan-transport.git`cdpaegan-transportpip install pytest python-mpytest-s`If you want to run the any model controller or shoreline tests, you will need to edit the test files with paths appropriate for your system. Default is/data/lmwith/data/lm/bathyand/data/lm/shorefilled in with the files below.Some tests require large files that are not in source control.  You can get them here:
* ETOPO1 Global Bathymetry ([ETOPO1_Bed_g_gmt4.grd](http://s3.amazonaws.com/paegan/resources/ETOPO1_Bed_g_gmt4.grd))
* Shoreline files (unzip) ([shore.zip](https://s3.amazonaws.com/paegan/resources/shore.zip))ContributorsKyle Wilcox <kyle@axiomdatascience.com> - [@kwilcox](http://github.com/kwilcox)Alex Crosby <crosbyar@gmail.com> - [@acrosby](http://github.com/acrosby)Dave Foster <dave@axiomdatascience.com>
Package: paella-auth
paellaSimple Asynchronous Auth library*WARNING*THIS REPOSITORY CONTAINS SECRETS FOR USE IN TESTINGDO NOT REUSE THESE SECRETS FOR PRODUCTIONrequirementspython >= 3.11 (uses modern union typehints)dependenciespyjwt[crypto] >= 2.8.0"testingI deliberately included a test keypair, please see the warning above.test dataIn./tests/db/test_users.dbthere is minimal prepopulated data:sqlite>.schemaUsersCREATETABLEUsers(idintprimarykeynotnull,emailchar(128)notnull,passwordchar(128)notnull);sqlite>select*fromUsers;1|testuser@test.com|a_very_basic_password2|testuser2@test.com|65332c4349d159ab3d41b8e1a01db7d77928f1b8215fd345e19e5cfe016f468atestuser2@test.comhas a sha256 hash of the following string:salt+basic_passwordUsageCreating auth objectBy default uses RSA public/private keys. PyJWT does not have a concept of
unencrypted JWTs. This project is designed specifically to rely on
asynchronous RSA keypairs, which means that you do not have to use it
for authentication, but can use it for authorization so long as the pubkey
and the authorization function are properly configured.Initially you can create an empty auth object (if you so desire) that doesn't
really do anything:frompaellaimportPaellaauth:Paella=Paella()Authentication (authn) FunctionThe authentication function takes in an id and a secret and returns a boolean or a dict. If a dict is returned,
that is then used to populate a JWT with custom claims or override the defaults, otherwise the defaults are used
if the value returned isTrue.The authentication function itself must have a function signature that matches the below:asyncdefauthn(connection:Any,id:str,secret:str)->dict|bool:Authorization (authz) FunctionThe authorization function takes in a dict and returns a boolean.The authorization function itself must have a function signature that matches the below:asyncdefauthz(connection:Any,*args,**kwargs)->bool:Caveatsuses a passed function to evaluate authentication and authorization, this function can be asynchronous (and probably should be)This assumes two things - first, that you are setting up a connection object of some sort (if necessary) and secondly that your authentication and authorization functions accurately perform their duties.For example: it is 100% acceptable to have a authorization function that lools like this:asyncdefauthenticate(cxobj:Any,id:str,secret:str)->bool:returnTrueorasyncdefauthenticate(cxobj:Any,id:str,secret:str)->bool:returnFalseThe first will always pass, the second will always fail, being their return values areTrueandFalserespectively.
Package: pafpy
pafpyA lightweight library for working withPAF(Pairwise mApping Format) files.Documentation:https://pafpy.xyzTable of ContentsInstallPyPiCondaLocallyUsageContributingInstallPyPipipinstallpafpyCondacondainstall-cbiocondapafpyLocallyIf you would like to install locally, the recommended way is usingpoetry.gitclonehttps://github.com/mbhall88/pafpy.gitcdpafpy
makeinstall# to check the library is installed runpoetryrunpython-c"from pafpy import PafRecord;print(str(PafRecord()))"# you should see a (unmapped) PAF record printed to the terminal# you can also run the tests if you likemaketest-codeUsageFor full usage, please refer to thedocumentation. If there is any functionality
you feel is missing or would makepafpymore user-friendly, please raise an issue
with a feature request.In the below basic usage pattern, we collect theBLAST identityof all primary
alignments in our PAF file into a list.fromtypingimportListfrompafpyimportPafFilepath="path/to/sample.paf"identities:List[float]=[]withPafFile(path)aspaf:forrecordinpaf:ifrecord.is_primary():identity=record.blast_identity()identities.append(identity)Another use case might be that we want to get the identifiers of all records aligned to
a specific contig, but only keep the alignments where more than 50% of the query (read)
is aligned.fromtypingimportListfrompafpyimportPafFilepath="path/to/sample.paf"contig="chr1"min_covg=0.5identifiers:List[str]=[]withPafFile(path)aspaf:forrecordinpaf:ifrecord.tname==contigandrecord.query_coverage>min_covg:identifiers.append(record.qname)ContributingIf you would like to contribute topafpy, checkoutCONTRIBUTING.md.
Package: paga-business-client
Paga Business CLientFree software: MIT licenseInstallationpip install paga_business_clientYou can also install the in-development version with:pip install git+ssh://git@github.com/pagadevcomm/pagadevcomm/paga_business_library.git@masterDocumentationTo use the project:importpaga_business_clientpaga_business_client.longest()DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.1 (2020-04-08)First release on PyPI.
Package: pagame
Have fun.Install usingpip install pagame.Run from terminal:pagameRun from python:frompagameimportplayplay()See and runexamples/example_game.pyfor manually starting the game.NotesSpotify should be open for the proper experience, but does not have to.

In order for the game to access Spotify, you need to have a Spotify client id and secret. These
can be obtained by creating a Spotify app (through 'developer.spotify.com'); and the client id
and secret can be pasted directly in the script entered in terminal when runni

When this is in order, run the `play.py`-script from the root directory.ParametersDELAY           : Minutes between each game.
                  `int` or `tuple`
                    If a tuple, the game will start at a random time between the two values.

LANGUAGE        : Language to play the game in.
                  `str`
                    Example: "en" for English, "no" for Norwegian.

PLAYLIST        : Spotify-URI for the playlist.
                  `str`

SPOTIFY_ID      : Spotify client id.
                  `str`
SPOTIFY_SECRET  : Spotify client secret.
                  `str`