Saravanan666/pypi-org huggingface dataset:
Package: pyggseqlogo
PyggseqlogoPython version ofggseqlogo. Based onplotnine(Python version of ggplot2). A derivative ofplotnineSeqSuite.Cite this workCao, T., Li, Q., Huang, Y. et al. plotnineSeqSuite: a Python package for visualizing sequence data using ggplot2 style. BMC Genomics 24, 585 (2023).https://doi.org/10.1186/s12864-023-09677-8Installationpip install pyggseqlogoGetting Startedfromplotnineimportggplotfromplotnineseqsuiteimportgeom_logofromplotnineseqsuite.dataimportseqs_dnafrompyggseqlogoimportggseqlogo,theme_logoThe code is based on plotnineSeqSuite.ggplot()+geom_logo(data=seqs_dna['MA0001.1'])+theme_logo()Pyggseqlogo provides a wrapper function for the above code.ggseqlogo(seqs_dna['MA0001.1'])facet_wrapggseqlogo(seqs_dna,ncol=4)Where to go nextIf you want to draw more complex sequence logos or other sequence-related diagrams, we recommend visiting theplotnineSeqSuite homepagefor details.
Package: pyggui
A Python gui library based around Pygame, meant for simplifying gui development for menus on simple pixel art games (or other types of games).
Designed for customization and simplicity. Although the library comes with pre-designed gui items, each can be customized and its functionality personalized to fit your needs.Start with creating the main Game object, specify your global settings (such as screen size, FPS cap, …), run the main game loop from it. Create your custom page, add items to it, custom event handlers and more. It will be auto-imported and loaded into your game.Your game needs its own loop for optimization reasons? No problem, create a dummy page and run your loop from there. Keep page, menu and item logic separated and tidy.Seehttps://python-pyggui.readthedocs.io/en/latest/usage.htmlfor basic concepts.Free software: MIT licenseInstallationpip install pygguiYou can also install the in-development version with:pip install https://github.com/15minutOdmora/python-pyggui/archive/main.zipDocumentationhttps://python-pyggui.readthedocs.io/DevelopmentTo run all the 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.0 (2021-12-24)First release on PyPI.
Package: pyggy
PyGgy is a python package for generating parsers and lexers in python.
The PyGgy distribution contains two tools:PyLly - (Pronounced “pile-ey”) A lexer generator that generatesDFA tables for lexing tokens.PyGgy - (Pronounced “piggy”) A parser generator that generatesSLR tables for a GLR parsing engine.The PyLly program is used to pregenerate tables for a finite state
machine from a lexer specification.  There is a lexer engine that uses
the tables to tokenize an input stream.The PyGgy program is used to pregenerate parser tables from a parser
specification.  There is a GLR parsing engine that uses the tables
to parse a stream of input tokens.  Because GLR parsing is used, the
parser can deal with arbitrary grammars, even if they are recursive
or ambiguous.
Package: pyghost-writer
ghost_writerA simple package that allows you to build a class to parameterize scripts via
code generation.A cmdline utility is add to convert python scripts into generators which can
later be modified.Installationpipinstallpyghost-writerUsageSay you have a simple script that you want to parameterize for code generation.importosforiinrange(10):forjinrange(20):passIn the terminal run thescriptify_pycommand on the scriptscriptify_pyscript.pyNow you will have a new file calledgenerated_script.pywhich contains a class that can generate that script which can be run:fromghost_writerimportScriptGeneratorclassNewGenerator(ScriptGenerator):def__init__(self,file_name:str)->None:super().__init__(file_name)def_build_script(self)->None:self._add_line('import os')self._end_line()self._end_line()self._add_line('for i in range(10):')self._add_line('for j in range(20):',indent_level=1)self._add_line('pass',indent_level=2)We can now modify the class to be parameterized:fromghost_writerimportScriptGeneratorclassMyGenerator(ScriptGenerator):def__init__(self,file_name:str,parameter:int)->None:self._parameter=parametersuper().__init__(file_name)def_build_script(self)->None:self._add_line('import os')self._end_line()self._end_line()self._add_line('for i in range(10):')self._add_line('for j in range(20):',indent_level=1)self._add_line(f'print({parameter})',indent_level=2)Now in python, we can import our class and run it:generator=MyGenerator("new_script.py",4)generator.write()And now we have a generated script callednew_script.pyimportosforiinrange(10):forjinrange(20):print(4)Free software: GNU General Public License v3
Package: pyghs
GHSStorage csv file in github repository.InstallationpipinstallpyghsUsagefromghsimportGHSimportpandasaspddf=pd.DataFrame({"a":[1,2,3],"b":[4,5,6]})# Create a GHS instanceghs=GHS("YOUR_GITHUB_REPOSITORY","YOUR_GITHUB_TOKEN")# Create a csv file in github repositoryghs.create("test.csv",df)# Get a csv file from github repositorydf=ghs.get("test.csv")print(df)This prints:ab014125236
Package: pygi
# pygiCommand line interface using gitignore.io API## Installation:```# pip install pygi```## Usage:```$ gi --listactionscriptadaagda...yii2zendframeworkzephir$ gi vim werckercli > .gitignore$ cat .gitignore### Vim #### swap[._]*.s[a-w][a-z][._]s[a-w][a-z]# sessionSession.vim# temporary.netrwhist*~# auto-generated tag filestags### WerckerCLI ###_steps_builds_cache_projects```**pygi** also can be used as a library too:```python>>> import pygi>>> gitignores = pygi.list()>>> len(gitignores)290>>> gitignores[4]'android'>>> print(pygi.gitignores('vim', 'werckercli'))### Vim #### swap[._]*.s[a-w][a-z][._]s[a-w][a-z]# sessionSession.vim# temporary.netrwhist*~# auto-generated tag filestags### WerckerCLI ###_steps_builds_cache_projects```
Package: pygibberish
Overview========A sample python lib to test gibberish, the model can give a score for a given string.This score will be very low if this string is gibberish.It uses a N character markov chain.[![Markov_chain]](http://en.wikipedia.org/wiki/Markov_chain)Usage=====```import pygibberish#This demo show you how to train model & save modelif __name_ == '__main__':gib = pygibberish.Gibberish(3) # 3 is the n of gram len. eg.ilovepython ->ilo,lov,loe...# You can find these train data in the root dir of packagegib.train('pygibberish/train_data/en_big.txt')gib.save('en2.pki')print gib.calc("asdfasdf")print gib.calc("apple")or#This demo show you how to use a model file to calc the scoreimport pygibberishif __name_ == '__main__':gib = pygibberish.Gibberish('en2.pki')print gib.calc("asdfasdf")```How it works============*The markov chain first 'trains' or 'studies' a few MB of English/Chinese text, recording how often characters appear next to each other. Eg, given the text "Rob likes hacking" it sees Ro, ob, o[space], [space]l, ... It just counts these pairs. After it has finished reading through the training data, it normalizes the counts. Then each character has a probability distribution of 26 followup character following the given initial.*So then given a string, it measures the probability of generating that string according to the summary by just multiplying out the probabilities of the adjacent pairs of characters in that string. EG, for that "Rob likes hacking" string, it would compute prob['r']['o'] * prob['o']['b'] * prob['b']['l'] ... This probability then measures the amount of 'surprise' assigned to this string according the data the model observed when training. If there is funny business with the input string, it will pass through some pairs with very low counts in the training phase, and hence have low probability/high surprise.*I then look at the amount of surprise per character for a few known good strings, and a few known bad strings, and pick a threshold between the most surprising good string and the least surprising bad string. Then I use that threshold whenever to classify any new piece of text.
Package: pygics
pygicsPython Gevent Interface for Corresponding ServiceGevent which is event-based processing is good for using CPU performance with efficient.
But it have to make code optimization and use specific APIs for your code.
For solving issue under legacy code, Gevent supply monkey patching however it make to odd penomenons.
So Pygics is made of wrapping Gevent for unified platform which is used corresponding service.Now, pygics is used followingConcurrency TaskingRestAPI WrapperMicro ServiceInstall1.1 From PIP
$ pip install pygics1.2 From GIT
$ python setup.py build
$ python setup.py installExampleLook samples in sample directory
Package: pygifdec
pygifdeca python wrapper forhttps://github.com/lecram/gifdecUsageimport pygifdec

gif = pygifdec.open("cube.gif")

shape = (gif.width, gif.height)
print(shape)
pring(gif.size)

frame = bytearray(gif.size)
gif.render_frame(frame)
gif.get_frame()


from PIL import Image

for i in range(10):
    ret = gif.get_frame()
    if ret < 0:
        break
    gif.render_frame(frame)
    img = Image.frombuffer("RGB", shape, bytes(frame))
    img.show()
Package: pygifsicle
Python package wrapping thegifsicle libraryfor editing and optimizing gifs.How do I install this package?As usual, just download it using pip:pipinstallpygifsicleWhile running the installation, onMacOSthe setup will automatically installgifsicleusingBrew.On Linux you will need to installgifsicleusing apt-get as follows:sudoapt-getinstallgifsicleOn Windows you will need to download and install thecorrect port of the libraryfor your OS.Usage examplesThe library is currently pretty plain: it offers a wrapper to gifsicle and a method to optimize gifs, wrapping the options for gifsicle.Optimizing a gifTo optimize a gif, use the following:frompygifsicleimportoptimizeoptimize("path_to_my_gif.gif")General wrapperTo run gifsicle from Python use the following:frompygifsicleimportgifsiclegifsicle(sources=["list.gif","of.gif","gifs.gif"],# or a single_file.gifdestination="destination.gif"# or just omit it and will use the first source provided.optimize=False,# Whetever to add the optimize flag of notcolors=256,# Number of colors t useoptions=["--verbose"]# Options to use.)Learn more about the general wrapperby reading the function documentation.TroubleshootingOne of the most common issues you can get, especially on windows, is that simply thegifsiclelibrary is not available system wide. Do try to rungifsiclein your terminal to check if the library is properly installed.Help and supportWanna add another wrapper for easier usage?Do a pull request!Did you find an error or weird behavior?Open an issue!
Package: pygiftparserrgmf
Python Moodle GIFT parserPython Moodle GIFT parser is a parser for GIFT files:https://docs.moodle.org/38/en/GIFT_formatThe program consist in two parts:parser.pywith lex/yacc andgift.pywith classes where parser results will saved. The classGiftwill contain all questions and everyQuestionwill have an answer (there are several types of answers - read the Moodle GIFT documentation).How to run (use) the parserThere is anexample.pyscript python with an example. This script expect a file and parse it. After that it prints the objectGiftwith all information catched by the parser.Use it like a package in your own projectYou can install it like a package usingpipfrom pypi.org:pip install pygiftparserrgmf.After that, you can parse a file like this:frompygiftparserrgmfimportparserwithopen('gift_file.txt','r')asmyfile:s=myfile.read()gift_object=parser.parse(s)From here you'll haveGiftobject intogift_object(seepygiftparser/gift.pyfile).Hot to test the parserInsidetestsfolder there are several tests. You can run all of them executing the commandpython -m unittest discover -v -s tests/.
Package: pygimbal
pygimbalPygimbalis an open source software developed inPython, designed for controlling gimbals using theMavlink protocol. It allows users to control the gimbal's tilt, pan, and roll angles, as well as retrieve real-time angle values.Installpip install pygimbalGetting StartedHow to control gimbal via Mavlink with Python:Note: you need to give permission to gimbal uart port first.sudochmoda+wrx/dev/ttyUSB0Sample code:importtimefrompygimbalimportcontrolfromthreadingimportThreadmaster_gimbal=control.init_mav_connector('/dev/ttyUSB0',1,154,115200)system=master_gimbal.source_systemcomponent=master_gimbal.source_componentmaintain_connection_threading=Thread(target=control.maintain_connection,args=[master_gimbal],daemon=True)maintain_connection_threading.start()orientation_theading=Thread(target=control.get_orientation,args=[master_gimbal],daemon=True)orientation_theading.start()whileTrue:try:control.control_gimbal(master_gimbal,system,component,tilt=45,roll=0,pan=45)time.sleep(2)control.control_gimbal(master_gimbal,system,component,tilt=0,roll=0,pan=0)time.sleep(2)control.control_gimbal(master_gimbal,system,component,tilt=45,roll=0,pan=-45)time.sleep(2)control.control_gimbal(master_gimbal,system,component,tilt=0,roll=0,pan=0)time.sleep(2)exceptKeyboardInterrupt:breakOutput:[ACTION]: Mavlink is connecting to /dev/ttyUSB0
[MESSAGE]: Successful Connection to /dev/ttyUSB0 1 154
[Control] Gimbal Pitch - Yaw 45 45
[ORIENTATION] Til, Pan, Roll:  0.1949998289346695 0.02197265625 0.023102451115846634
[ORIENTATION] Til, Pan, Roll:  0.19493775069713593 0.02197265625 0.02414652332663536
[ORIENTATION] Til, Pan, Roll:  0.19543787837028503 0.02197265625 0.02471373975276947
[ORIENTATION] Til, Pan, Roll:  0.19867371022701263 0.02197265625 0.0238236952573061Result:Authorgithub: winter2897
mail: haiquantran2897@gmail.com
Package: pygin
# PyginPygin is a simple game engine made using [Pygame](https://www.pygame.org/).
One of the purposes of this engine is for making to build more complex games using python.
This engine includes support for collisions, meshes, materials, game objects and scenes.
The elements used are very similar to the ones used in the engine [Unity](https://unity3d.com/“Unity Official Website”).## Getting StartedThese instructions will get you the Pygin package ready to run on your local machine if you use Linux.
Instructions for Windows and Mac would be quite similar.### PrerequisitesYou will just have to install Pygin. The instructions below will show you how to do this for Linux (Ubuntu 16.04).#### Install PythonFirst, install de most recent Python version and the most recent version of pip.
Therefore install Python3 setup tools and pip:` $ sudoapt-getinstallpython3-setuptools$ sudo easy_install3 pip `#### Install PyginNow you will just have to install the Pygin packge.
Then install Pygin using pip:` $ pip install pygin `## AboutThis project aims to create a game engine to make easier the precess of game development using python.
To understand a little bit more about how the code is structured visit the [wiki](https://github.com/CarlosMatheus/Engine/wiki).## Example Games![game](https://media.giphy.com/media/xB2Y7NHFE8C2Ip9EHD/giphy.gif)
![game](https://media.giphy.com/media/cdyniVu3x1ydtoq99k/giphy.gif)Check out the game [Balance](https://github.com/CarlosMatheus/Balance), a simple and challenging arcade game made using Pygin.## AuthorsCarlos Matheus Barros da Silva- [CarlosMatheus](https://github.com/CarlosMatheus)Aloysio Galvão Lopes- [aloysiogl](https://github.com/aloysiogl)Igor Albuquerque Silva- [igoralbuq](https://github.com/igoralbuq)Eric Pereira Queiroz Moreira- [ericpqmor](https://github.com/ericpqmor)Igor Mourão Ribeiro- [igor-ribeiiro](https://github.com/igor-ribeiiro)## Notes about documentation and contributingIf any substantial change is made, please, help out with the documentation using the [wiki](https://github.com/CarlosMatheus/Balance/wiki).### Upgrading version on PypiMake sure you have the latest versions of setuptools and wheel installed:` python-mpip install--upgradesetuptools wheel `Now run this command from the same directory where setup.py is located:` python setup.py sdist `This command will generate a file in dist directory.Now you’ll need to install Twine:` python-mpip install--upgradetwine `Once installed, run Twine to upload all of the archives under dist:` twine upload--repository-urlhttps://upload.pypi.org/legacy/dist/* `You will be asked your username and password from your Pypi account, in which you must have access to the project in order to upload.After this, the version on Pypi is already updated.Now you shoulddelete the dist folder.## LicenseThis project is licensed under the MIT License - see the [licence](LICENCE.md) file for details.## AcknowledgmentsProfessor Edgar Toshiro Yano- [Curriculum](http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4798593T1&idiomaExibicao=2)
Package: pygination
IntroductionThis module will help you paginate results from any database if you use the sqlalchemy object Query.
The PageModel pydantic model can be easily integrated with FastAPI and swagger.Getting StartedHere is a brief example of how to use this code.from pygination import paginate
from pygination.models import PageModel

query = db.query(models.City)

if country_id is not None:
    query = query.filter(models.City.country_id == country_id)
    
page = paginate(query, offset, limit)

print(page)
# Previous page does not exist. Next page is 2. Total number of pages 4

page_model = PageModel.from_orm(page)
Package: pygindex
PyGIndexPython library/framework to access and trade on IG IndexInstallingInstall and update using pip:pip install -U pygindexExamplesGet session detailsfrom pygindex.client import IGClient

c = IGClient()
s = c.get_session_details()
print(s)Will produce{'clientId': 'XXXXXXXXX', 
 'accountId': 'XXXXX', 
 'timezoneOffset': 1, 
 'locale': 'en_GB', 
 'currency': 'GBP', 
 'lightstreamerEndpoint': 'https://apd.marketdatasystems.com'}LinksDocumentationPyPISourceIssues
Package: pygini
pyginiVery simple module that computes the Gini index of a numpy array.InstallationpipinstallpyginiUsageimportnumpyasnpfrompyginiimportginiRG=np.random.default_rng(0)A=RG.random(100)GI=gini(A)# Also compute along axisA=RG.random((100,80,80))GI=gini(A,axis=0)# GI.shape = (80, 80)Seeexamplesdirectory.
Package: pyGinit
pyGinitpyGinit is a command line tools that help you to initialize your current project a local git repo and remote repoRequirementsRequirements before install pyGinit:a github account and it's personal access tokengit 1.70 or newerpython >= 3.7Installationusing pip :pipinstallpyGinitfrom this repository(may not stable) :gitclonehttps://github.com/AlphaBeta1906/pyGinit.gitcdpyGinit
pipinstall--editable.# install it globally so you can use it everywhereUsageAuthentication :You need to add token and username of your github account using :pyginitset-auth<YOUR_GITHUB_TOKEN><YOUR_GITHUB_USERNAME>use the same command to change your auth valueif you dont know how to get your github token, you can seethisall your token are save in.pyGinitconfig.iniat home path, so you will be securerepository initalization :go to your project directory where you want to create local and remote repository for it. and then type :pyginitinitall you need is to fill out inquirer bypyInquirerand letpyGinitdo the rest, from creating local repository,remote github repository, and push your directory to githubNote: make sure the directory is not a local git repositorycreate empty github repositoryopen your terminal and following command:pyginitremoteinquirer will appear and then pyGinit will crate a empty github repositoryContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMITDevelopment status :v0.2.1v0.2.0v0.1.9v0.1.7v0.1.6-betav0.1.5-betav0.1.3-alpha
Package: pygios
pygiosA crazy simple framework for creating compliant nagios pluginsWhile the nagios monotoring framework really doesn’t require mich more
than the monitoring script return a 0/non-0 status code, to fully
benefit from all of nagio’s feautrues requires careful attention to
output formatting and error codes.  If you have a bevy of custom
parameters you’d like to monitor, creating a fully featured nagios
plugin for each can be a little tedious.  This module solves that
problem.Getting startedYou’ll need to install pygios.  Usually this means running pip or easy_install like ths``bash pip install pygios ``Now
Package: pygismeteo
pygismeteoОбёртка дляGismeteo API.Асинхронная версияздесь.Разработка приостановленаДля использования библиотеки нужен API токен, который можно запросить по электронной почтеb2b@gismeteo.ru.В настоящее время у разработчика отсутствует API токен, что делает невозможными тестирование и дальнейшую разработку.Если вам нужна погодная библиотека без API токена, можете рассмотретьhttps://github.com/monosans/pywttr.Установкаpython-mpipinstall-Upygismeteopygismeteo-baseДокументацияhttps://pygismeteo.readthedocs.ioLicense / ЛицензияMIT
Package: pygist
PygistInstallationInstall with pip.pip install pygistPygist CommandsCommands:pygist login

pygist create <file1> <file2> <fileN> 'description'
#create a gist with one or more files

pygist create paste 'description'
#create a gist from clipboard data (OS X only)

pygist delete <gist_id>
#delete a gist by gist_id
Package: pygists
Just a tool to manage GitHub gistsUsageTo list all your gists with embed links usels:$ pygists ls -u your_username -t $GITHUB_TOKEN

tomasfarias's GitHub Gist: 6d83bf247790b4116f0575ee230cc4d0
'Just a second test'
Created: 2019-06-27 05:22:08
Updated: 2019-07-08 19:57:12
Embed: https://gist.github.com/tomasfarias/6d83bf247790b4116f0575ee230cc4d0.js
File | Size (chars)
test_2.py | 15


tomasfarias's GitHub Gist: 2be660066572b42a898c87f48b756b89
'Just a test'
Created: 2019-06-27 05:20:24
Updated: 2019-07-08 19:56:51
Embed: https://gist.github.com/tomasfarias/2be660066572b42a898c87f48b756b89.js
File | Size (chars)
test_1.py | 15Tocreatea new gist from a file call:$ pygists create path/to/gist/file.py -u tomasfarias -t $GITHUB_TOKEN -d 'Just another test'

tomasfarias's GitHub Gist: c4eb4855f02e77d162a78520da50a0b9
'Just another test'
Created: 2019-07-08 20:03:56
Updated: 2019-07-08 20:03:56
Embed: https://gist.github.com/tomasfarias/c4eb4855f02e77d162a78520da50a0b9.js
File | Size (chars)
test_3.py | 16Toupdatean existing gist get the ID and pass it. Useadd,delete,modifyto add new files to the gist, delete an existing file and modifiy the contents and name of an existing file:$ pygists update c4eb4855f02e77d162a78520da50a0b9 -u tomasfarias -t $GITHUB_TOKEN -d "New description" --add test_new_3.py --modify old_file_name.py=path/to/new_file.py

tomasfarias's GitHub Gist: c4eb4855f02e77d162a78520da50a0b9
'New description'
Created: 2019-07-08 20:03:56
Updated: 2019-07-08 21:26:47
Embed: https://gist.github.com/tomasfarias/c4eb4855f02e77d162a78520da50a0b9.js
File | Size (chars)
test_new_3.py | 16
new_file.py | 25