Saravanan666/pypi-org huggingface dataset:
Package: pyguard
PyGuardA python auto test runner inspired by theguardproject.A simple example that runs all the tests when a file is modified would look something like this:fromfilewatchimportfile_updated_subject,Watcherfrompyguardimportguardian,GuardianObserver,RegexRule,RuleManagermanager=RuleManager(cmd='py.test pyguard')manager.register_rules(RegexRule(regex=r'.*/pyguard/.*'),)guardian.register_manager(manager)# Set up our file observerfile_updated_subject.register_observer(GuardianObserver())# Get our watcher goingwatcher=Watcher()watcher.run()AnyRuleManagerthat you create will execute the given command whenever a registered rule matches a supplied file path.To make things a little more granular, we can register a different set of rules. i.e....manager=RuleManager(cmd='py.test pyguard/tests/test_{test_name}.py')manager.register_rules(RegexRule(regex=r'.*/rules.py',cmd_augmentation={'test_name':'rules'}),RegexRule(regex=r'.*/core.py',cmd_augmentation={'test_name':'guardian'}),)guardian.register_manager(manager)...To enforce a particular naming convention we can take things even further using named groups within the regex itself. If we have say aviews.pyand we know that the tests for said views exist intest_views.py, then we can simple use:...manager=RuleManager(cmd='py.test pyguard/tests/test_{test_name}.py')manager.register_rules(RegexRule(regex=r'.*/(?P<test_name>views).py'),)guardian.register_manager(manager)...
Package: pyguardian
pyguardianDescriptionpyguardianis a type-checker for method parameters. Methods are type-checked at runtime via theguarddecorator:frompyguardianimportguard@guard(int,int)defadd(a,b):returna+b# Successful call>>>add(1,2)3# Unsccessful call ("2" is not an integer!)>>>add(1,"2")InvalidArgumentTypeError:'add'expectsvalueoftype'int'forparameter'b'butgot'str'InstallationpipinstallpyguardianDocumentationSeeDOCUMENTATION.mdLicensepyguardianis licensed under theMITLicense.
Package: pygubu
Leer en EspañolWelcome to Pygubu!Pygubuis aRAD toolto enablequickandeasy development of user interfacesfor the Python'stkintermodule.The user interfaces designed are saved asXMLfiles, and, by using thepygubu builder, these can be loaded by applications dynamically as needed.Pygubu is inspired byGlade.InstallationThe latest version of pygubu requires Python >= 3.6You can install pygubu using pip:pip install pygubuUsageSince version 0.10 the project was splitted in two main modules:Thepygubu core(this project), that load and build user interfaces defined in xml.Theinterface editorpygubu-designer, that helps you create the xml definition graphically.Start creating your tkinter application xml UI definition using the pygubu-designer editor.The following is a UI definition example calledhelloworld.ui:<?xml version='1.0' encoding='utf-8'?><interfaceversion="1.2"><objectclass="tk.Toplevel"id="mainwindow"><propertyname="height">200</property><propertyname="resizable">both</property><propertyname="title"translatable="yes">HelloWorldApp</property><propertyname="width">200</property><child><objectclass="ttk.Frame"id="mainframe"><propertyname="height">200</property><propertyname="padding">20</property><propertyname="width">200</property><layoutmanager="pack"><propertyname="expand">true</property><propertyname="side">top</property></layout><child><objectclass="ttk.Label"id="label1"><propertyname="anchor">center</property><propertyname="font">Helvetica26</property><propertyname="foreground">#0000b8</property><propertyname="text"translatable="yes">HelloWorld!</property><layoutmanager="pack"><propertyname="side">top</property></layout></object></child></object></child></object></interface>Then, you should create yourapplication scriptas shown below (helloworld.py):# helloworld.pyimportpathlibimporttkinterastkimporttkinter.ttkasttkimportpygubuPROJECT_PATH=pathlib.Path(__file__).parentPROJECT_UI=PROJECT_PATH/"helloworld.ui"classHelloworldApp:def__init__(self,master=None):# 1: Create a builder and setup resources path (if you have images)self.builder=builder=pygubu.Builder()builder.add_resource_path(PROJECT_PATH)# 2: Load a ui filebuilder.add_from_file(PROJECT_UI)# 3: Create the mainwindowself.mainwindow=builder.get_object('mainwindow',master)# 4: Connect callbacksbuilder.connect_callbacks(self)defrun(self):self.mainwindow.mainloop()if__name__=='__main__':app=HelloworldApp()app.run()Note: instead ofhelloworld.ui, you should insert thefilename(or full path) of your UI definition:PROJECT_UI=PROJECT_PATH/"helloworld.ui"Note: instead of 'mainwindow', you should have the name of yourmain_widget(the parent of all widgets) in the following line:self.mainwindow=builder.get_object('_your_main_widget_')DocumentationVisit thepygubu wikifor more documentation.The following are some good tkinter (and tk) references:TkDocsGraphical User Interfaces with TkTkinter 8.5 reference: a GUI for PythonAn Introduction to Tkinter(archive)Tcl/Tk 8.5 ManualYou can also see theexamplesdirectory or watchthis introductory video tutorial.HistorySee the list of changeshere.
Package: pyguess
pyguessThe Python library to Guess Swiss StreetsTable of ContentsDisclaimerInstallationUsageDisclaimerThe library is in the alpha stage, which means there's a lot of work to do still! So, don't expect too much from it!InstallationTo install from PyPi, run:pip install pyguessUsageimport pyguess
from pyguess import Config, Candidate

config = Config(
    path_to_streets="../misc/data/streets_data",
)
candidate = pyguess.guess_address("Rigistrasse 10", "Pfaffikon", config)

assert candidate == Candidate("rigistrasse 10", "pfäffikon zh")
Package: pyguetzli
PyGuetzliis a Python binding for Google’sGuetzlilibrary.Description ofGuetzlifrom official’s repo:Guetzli is a JPEG encoder that aims for excellent compression density
at high visual quality. Guetzli-generated images are typically 20-30%
smaller than images of equivalent quality generated by libjpeg.
Guetzli generates only sequential (nonprogressive) JPEGs due to
faster decompression speeds they offer.DocumentationInstallationGuetzli Python ModuleUsing with PIL / Pillow imagesContributing / Reporting a bugMore topics athttps://wanadev.github.io/pyguetzli/Usage Exampleimportpyguetzliinput_jpeg=open("./test/image.jpg","rb").read()optimized_jpeg=pyguetzli.process_jpeg_bytes(input_jpeg)output=open("./optimized.jpg","wb")output.write(optimized_jpeg)Changelog[NEXT](changes onmasterbut not released yet):Nothing yet ;)v1.0.15:Added Python 3.12 support (@flozz)Removed Python 3.7 support (@flozz)v1.0.14:Guetzli: Apply a better patch to fix the crash caused by a bad access to
a vector revealed when compiled with “-D_GLIBCXX_ASSERTIONS” (David Odin)v1.0.13:Added Python 3.11 supportv1.0.12:Guetzli: Fixed a crash caused by a bad access to a vector revealed when
compiled with “-D_GLIBCXX_ASSERTIONS” (David Odin)v1.0.11:arm64anduniversal2wheels for macOSx86andx68_64wheels for musl-based Linux distro (Alpine,…)win32wheels for Windows (x86_64were already available)v1.0.10:Python 3.10 support and wheelsv1.0.9:Provides prebuilt wheel packagesv1.0.8:Updates Guetzli and python dependenciesv1.0.7:Fixes unicode issue when installing pyguetzli (#4)v1.0.6:Fixes a typo in compilator options on unixv1.0.5:Adds optimization flags when compiling Guetzliv1.0.4:MS Windows supportv1.0.3:Updates Guetzli libraryv1.0.2: PIL Images: fixes crash with non RGB/RGBA images
(grayscale, indexed,…)v1.0.1: Adds--std=c++11flag when building Guetzliv1.0.0:New and simpler APIBuilt-in function to deal with PIL / Pillow ImagesDocumentation (Sphinx)Guetzli updatev0.9.0: Initial release
Package: pygui-cli
pygui_templatepyqt5 template. (Pyside2 may be supported in the future.)startpip install pygui_cliorgit clone https://github.com/625781186/pygui_cli
cd pygui_cli
python setup.py installusepygui_cli add .stylesquick change theme color :1.please setup node.exe  // 安装node.exe
2.npm install -g stylus  // 安装stylus模块
2.1 ...
3.cd source/styles       // 切换到项目目录
4.rename style.css to style_backend.css  //备份原样式
5.stylus style.styl     // 生成新的样式FeatureFunctionArgumentsTypeDefault翻译SingleAppBoolTrue只允许开启一个程序CustomFrameLessWindowInt3样式类型SplashScreenBool启动动画ErrorLogging---异常日志器--Settings配置文件FuncMixin常用QT函数给MainWindow继承用UI_Components常用UI组件库Document/Contribution()[]
Package: pyGuifiAPI
pyGuifiAPIpyGuifiAPI is a Python interface for the Guifi.net APIIt was part of the Guifi.net Studio project developed by Pablo Castellano
during Google Summer of Code 2012.You can find Guifi.net Studio at:https://github.com/PabloCastellano/guifinetstudio[Shagi](https://github.com/shagi) gave a talk about it at Hackaleda (Hackmeeting event in Marinaleda, Spain, 2014) which can be found at [archive.org](https://archive.org/download/Hackaleda-Hackmeeting2014/20141012_pyGuifiAPI.ogg).Installgit clonehttps://github.com/PabloCastellano/pyGuifiAPI.gitcd pyGuifiAPI
python setup.py installpyGuifiAPI is also available in [PyPI](https://pypi.python.org/pypi/pyGuifiAPI):pip install pyGuifiAPILicenseThe code license is GPLv3+
Package: pygumroad
Gumroad API ClientA Python API client for interacting with the Gumroad API (https://gumroad.com/api).  Comments, suggestions, and
improvements are always welcome. Be sure to follow@opsdiskon Twitter for the latest
updates.Note that not all of the endpoints and HTTP verbs supported by the Gumroad API have been added.Installationpipinstallpygumroadgitclonehttps://github.com/opsdisk/pygumroad.gitcdpygumroad
virtualenv-ppython3.7.venv# If using a virtual environment.source.venv/bin/activate# If using a virtual environment.pipinstall-rrequirements.txt
pythonsetup.pyinstallUpdate CredentialsIf using a secrets file, create/update thegumroad_secrets.jsonfile with the host and API key.  See the usage section
on how to pass a secrets dictionary.cpgumroad_secrets_empty.jsongumroad_secrets.json{"gumroad":{"host":"api.gumroad.com","token":"7a4d...b388",}}Usageimportpygumroad# Pass a secrets file.full_path_to_secrets_file_location="/home/user/gumroad_secrets.json"gumroad_client=pygumroad.GumroadClient(secrets_file_location=full_path_to_secrets_file_location)# Pass a secrets dictionary.secrets_dict={"gumroad":{"host":"api.gumroad.com","token":"7a4d...b388",}}gumroad_client=pygumroad.GumroadClient(secrets_dict=secrets_dict)all_products=gumroad_client.retrieve_all_products()forproductinall_products:print(f"Product Name:{product['name']}- Product ID:{product['id']}")all_sales=gumroad_client.retrieve_all_sales()forsaleinall_sales:print(f"Product:{sale['product_name']}was sold on{sale['created_at']}")
Package: pyguppyclient
pyguppyclientFull Python client library for communicating withguppy_basecall_server.$pipinstallpyguppyclientRequirementsGuppy 5.0 or later is required and theguppy_basecall_servermust already be running.$guppy_basecall_server--configdna_r9.4.1_450bps_fast.cfg-p5555-l/tmp/guppy-x'cuda:0'ExampleThe simplest usage is theGuppyBasecallerClientclass which takes aconfigname and provides abasecallmethod that takes a read and returns aCalledReadDataobject.frompyguppyclientimportGuppyBasecallerClient,yield_readsconfig="dna_r9.4.1_450bps_fast"read_file="reads.fast5"withGuppyBasecallerClient(config_name=config,trace=True)asclient:forreadinyield_reads(read_file):called=client.basecall(read)print(read.read_id,called.seq[:50],called.move)See the example client for the usage of theCallerclass that uses multiprocessing to distribute the reading offast5files.$./examples/pyguppyclient-t8dna_r9.4.1_450bps_fast/data/reads>pyguppyclient.fastqDeveloper Quick Start$gitclonehttps://github.com/nanoporetech/pyguppyclient.git
$cdpyguppy-client
$python3-mvenvvenv3
$source./venv3/bin/activate(venv3)$pipinstall-rrequirements.txt-rdevelopment.txt(venv3)$pythonsetup.pydevelop(venv3)$maketestLicence and Copyright(c) 2020 Oxford Nanopore Technologies Ltd.pyguppyclient is distributed under the terms of the Oxford Nanopore
Technologies, Ltd.  Public License, v. 1.0.  If a copy of the License
was not distributed with this file, You can obtain one athttp://nanoporetech.comResearch ReleaseResearch releases are provided as technology demonstrators to provide early access to features or stimulate Community development of tools. Support for this software will be minimal and is only provided directly by the developers. Feature requests, improvements, and discussions are welcome and can be implemented by forking and pull requests. However much as we would like to rectify every issue and piece of feedback users may have, the developers may have limited resource for support of this software. Research releases may be unstable and subject to rapid iteration by Oxford Nanopore Technologies.
Package: pyGUS
gusGreen Urban Scenarios - A digital twin representation, simulation of urban forests and their impact analysis.Getting StartedVisit the GUSwebsite documentationfor help with installing GUS, code documentation, and abasic tutorialto get you started.Install from PyPiWe publish GUS aspyGuspackage in PyPi. Dependencies can be found in the .toml file on the GUS GitHub page. Even though installation with Poetry is possible, the most stable installation can be done via pip.$ pip install pygusFor further instructions and code documentation, visitGUS Code DocumentationWho maintains GUS?The GUS is currently developed and maintained byLucidmindsandDark Matter Labsmembers as part of their joint projectTreesAI.NotesThe GUS is open for PRs.PRs will be reviewed by the current maintainers of the project.Extensive development guidelines will be provided soon.To report bugs, fixes, and questions, please use theGitHub issues.
Package: py-gutenberg
py-gutenbergOverviewThepy-gutenbergpackage is a Python library that provides methods to access theProject Gutenberglibrary. Users can search for books based on a variety of metadata, get full texts in various formats, and retrieve metadata for books by their ID number.Installation⚠️This package has only been tested on Python 3.7 and above. There are no plans for a Python 2 version.The package can be installed using the pip package manager:pipinstallpy-gutenbergUsageYou should import the module like so:fromgutenbergimportGutenbergAPITheGutenbergAPIconstructor defaults to using a public instance of the Gutendex API, hosted by me athttps://gutendex.devbranch.co. If you areself-hosting the API, you can specify the IP address or URL of your instance with theinstance_urlparameter.# Uses the public instancegb=GutenbergAPI()# Uses a self-hosted instancegb_private=GutenbergAPI(instance_url="https://gutendex.yourdomain.com")Book Lists and SearchingHere's a simple example to get a list of the most recently uploaded books:gb.get_all_books()Or, to get only public domain books:gb.get_public_domain_books()Individual BooksTo get an individual book's metadata:gb.get_book_metadata()Or, to get the full text of a book:gb.get_book_text()Full usage information is available inthe documentationThanksThis module is built on thewonderfulbut unofficial API built by@garethbjohnsonknown asGutendex. By default, this library uses a public instance I'm hosting myself, but does not have the bandwidth to maintain more than a few concurrent users. Please be kind and limit your requests where possible. Additionally, if you intend to use this library in a production environment, I highly encourage you to self-host.Read aboutself-hosting the API here!
Package: pygwan
PygwanUnofficial Python wrapper for the WhatsApp Cloud API by Tarmica Chiwara.InstallationTo install the WhatsApp Python wrapper, use the following command:pipinstallpygwanUsageImport theWhatsAppclass from the package and initialize an instance with your WhatsApp token and phone number ID:frompygwanimportWhatsAppwhatsapp=WhatsApp(token="your_token",phone_number_id="your_phone_number_id")Sending a MessageYou can send a text message to a WhatsApp user using thesend_messagemethod:whatsapp.send_message("Hello, this is a test message.","recipient_phone_number")Replying to a MessageReply to a message using thereply_to_messagemethod:whatsapp.reply_to_message("message_id","recipient_phone_number","Reply message.")Sending a TemplateSend a template message using thesend_templatemethod:components=[# List of template components# Example: {"type": "text", "text": "Hello, this is a template message."}]whatsapp.send_template("template_name","recipient_phone_number",components)Sending a LocationSend a location message using thesend_locationmethod:whatsapp.send_location("-23.564","-46.654","Location Name","Location Address","recipient_phone_number")Sending an ImageSend an image message using thesend_imagemethod:image_link="https://example.com/image.jpg"whatsapp.send_image(image_link,"recipient_phone_number")DocumentationFor more detailed usage and information, please refer to the official documentation in the code lolLicenseThis project is licensed under theMIT License.
Package: pygwan2
PygwanUnofficial Python wrapper for the WhatsApp Cloud API by Tarmica Chiwara.InstallationTo install the WhatsApp Python wrapper, use the following command:pipinstallpygwanUsageImport theWhatsAppclass from the package and initialize an instance with your WhatsApp token and phone number ID:frompygwanimportWhatsAppwhatsapp=WhatsApp(token="your_token",phone_number_id="your_phone_number_id")Sending a MessageYou can send a text message to a WhatsApp user using thesend_messagemethod:whatsapp.send_message("Hello, this is a test message.","recipient_phone_number")Replying to a MessageReply to a message using thereply_to_messagemethod:whatsapp.reply_to_message("message_id","recipient_phone_number","Reply message.")Sending a TemplateSend a template message using thesend_templatemethod:components=[# List of template components# Example: {"type": "text", "text": "Hello, this is a template message."}]whatsapp.send_template("template_name","recipient_phone_number",components)Sending a LocationSend a location message using thesend_locationmethod:whatsapp.send_location("-23.564","-46.654","Location Name","Location Address","recipient_phone_number")Sending an ImageSend an image message using thesend_imagemethod:image_link="https://example.com/image.jpg"whatsapp.send_image(image_link,"recipient_phone_number")For more detailed usage and information, please refer to the official documentation in the code lolLicenseThis project is licensed under theMIT License.
Package: pygwasvcf
GWAS-VCF Python parserThe package provides a thin wrapper aroundpysamandrsidxto parse VCF files containing GWAS summary statistics and trait metadata. See alsogwasvcfan R package for parsing GWAS-VCF files.Parses GWAS-VCF with version 1.0 of thespecificationInstallpipinstallgit+https://github.com/mrcieu/pygwasvcfDataDownload over 10,000 GWAS-VCF files fromhttps://gwas.mrcieu.ac.ukExamplesRead GWAS trait/study metadataimportpygwasvcfwithpygwasvcf.GwasVcf("/path/to/gwas.vcf.gz")asg:# print dictionary of GWAS metadataprint(g.get_metadata())Query variant-trait association(s) by chromosome and position locationimportpygwasvcfwithpygwasvcf.GwasVcf("/path/to/gwas.vcf.gz")asg:# query by chromosome and position intervalforvarianting.query(contig="1",start=1,stop=1):print(variant)Query variant-trait association(s) by dbSNP rsIDimportpygwasvcfwithpygwasvcf.GwasVcf("/path/to/gwas.vcf.gz")asg:# index on dbSNP identifier# based on [rsidx](https://github.com/bioforensics/rsidx)# only need to do this once and then provide the index path to the constructor# i.e. GwasVcf("/path/to/gwas.vcf.gz", rsidx_path="/path/to/gwas.vcf.gz.rsidx")g.index_rsid()# rapid query by rsIDforvarianting.query(variant_id="rs1245"):print(variant)Extract summary statistics from a variant objectimportpygwasvcfwithpygwasvcf.GwasVcf("/path/to/gwas.vcf.gz")asg:# query by chromosome and position intervalforvarianting.query(contig="1",start=1,stop=1):# print variant-trait P valueprint(pygwasvcf.VariantRecordGwasFuns.get_pval(variant,"trait_name"))# print variant-trait SEprint(pygwasvcf.VariantRecordGwasFuns.get_se(variant,"trait_name"))# print variant-trait betaprint(pygwasvcf.VariantRecordGwasFuns.get_beta(variant,"trait_name"))# print variant-trait allele frequencyprint(pygwasvcf.VariantRecordGwasFuns.get_af(variant,"trait_name"))# print variant-trait IDprint(pygwasvcf.VariantRecordGwasFuns.get_id(variant,"trait_name"))# create and print ID on-the-fly if missingprint(pygwasvcf.VariantRecordGwasFuns.get_id(variant,"trait_name",create_if_missing=True))# print variant-trait sample sizeprint(pygwasvcf.VariantRecordGwasFuns.get_ss(variant,"trait_name"))# print variant-trait total sample size from header if per-variant is missingprint(pygwasvcf.VariantRecordGwasFuns.get_ss(variant,"trait_name",g.get_metadata()))# print variant-trait number of casesprint(pygwasvcf.VariantRecordGwasFuns.get_nc(variant,"trait_name"))# print variant-trait total cases from header if per-variant is missingprint(pygwasvcf.VariantRecordGwasFuns.get_nc(variant,"trait_name",g.get_metadata()))DocumentationAPI documentation available fromhttps://mrcieu.github.io/pygwasvcfCitationThe variant call format provides efficient and robust storage of GWAS summary statistics. Lyon MS, Andrews SJ, Elsworth B, Gaunt TR, Hemani G, Marcora E. Genome Biol. 22, 32 (2021).
Package: pygwin
PygwinPygwin (pygame window system) provides a set of classes to program
very basic window interfaces with pygame.pygwin is hosted on gitlab:https://gitlab.com/qouify/pygwin/LicensePygwin is published under the term ofGPLv3.InstallationInstall latest pygwin release with pip:pip3 install pygwinor to get the development version:git clone https://gitlab.com/qouify/pygwin/
cd pygwin
python setup.py install --userTestingTo see the some of the features provided by the module:frompygwin.testimporttesttest.go()
Package: pygwrapper
#pygwrapper a tool that combines pygame and pymunk for efficiency
Pygwrapper is a wrapper for pygame and pymunk that simplifies the hassle of creating a game to a Class based simple
approach.Pygwrapper doesnt have a load function and simply loads your images when their path is provided.This module also contains an animation tool which breaks down gifs and mp4s into seperate images to help create pygame compatible animations.I am currently working on Pyg-auto animation as well a tool that provides animations in pygame out of the box
with little to 0 setup.I hope you enjoy using this module for whatever your heart desires.
Package: pygypsy
Master:Dev:Conda-forgeLinux:OSX:Windows:PyPIpygypsypygypsy is a python implementation of the forestGrowth and Yield Projection
SYstem[HuangEtAl2009].Its main usage mode is a command line interface; it also has a an API for
programmatic use.It’s benefits over other offerings are:configurablecontrol over the implementationfasteasy to simulate multiple plots[HuangEtAl2009]Huang, Meng, Yang (2009). A Growth and Yield Projection System for Natural and Post-Harvest Stands in Alberta. Retrieved fromhttp://www1.agric.gov.ab.ca/$department/deptdocs.nsf/all/formain15784/$file/GYPSY-Natural-PostHarvestStands-Alberta-May21-2009.pdf?OpenElementInstallationpygypsy is available in the following package repositoriesPyPIpip install pygypsyconda-forgeconda config --add channels conda-forge
conda install pygypsyConda is the recommended environment for using gypsy on windows. Installation
from PyPI currently requires compilation of cython extensions and C code; on
Linux and OSX this is rarely problematic.It is recommended to install in avirtualenvorconda envto avoid
clobbering system or other projects’ python pacakges.Usagepygypsy provides a command line interface for convenient usageThe complete documentation can be accessed withpygypsy-h:Usage: pygypsy [OPTIONS] COMMAND [ARGS]...

  Growth and Yield Projection System

  Note: 'prep' subcommand must be run before 'simulate'

  Options:
    -v, --verbose
    -o, --output-dir PATH
    -h, --help             Show this message and exit.

  Commands:
    generate_config  Generate a configuration file Generates a...
    plot             Create charts for all files in pygypsy...
    prep             Prepare stand data for use in pygpysy...
    simulate         Run pygypsy simulationDocumentation for subcommands is available viapygypsy SUBCOMMAND-h:Getting helpIf you are interesting in using or developing pygypsy and would like
assistance:Check thepygypsy docsCheck thepygypsy issue trackerOpen anew pygypsy issueContributingIf you would like to contribute to pygypsy, start by reviewing thecontributing guide. If you need help getting started, seeGetting help.