Saravanan666/pypi-org huggingface dataset:
Package: pietroalbini-sphinx-themes
This repository contains the source code of my own baseSphinxtheme,
released under the MIT license. Feel free to include it in your projects, even
if I ask you to customize them a little bit in order to avoid users confusion.How to use the theme in your projectsThe package itself provides an utility function to get the absolute path of
the theme’s directory. So, you can put this simple snippet in your
documentation’sconf.py:import pietroalbini_sphinx_themes
html_theme_path = [pietroalbini_sphinx_themes.themes_path()]

html_theme = "pietroalbini"You don’t need to provide a Pygments style, because the whole highlightling
thing is handled by the theme itself.Customizing the themeIt’s recommended to customize the theme when you use it, because even changing
the titles’ font and links’ color will give to your documentation an unique
feel.The easiest way to customize it is to create a theme which inherits from the
main one, and changing the options:[theme]
inherit = pietroalbini

[options]
accent_color = #004dc2
night_accent_color = #5c9dff

titles_font = DejaVuThen you can put in your stylesheet other customizations you want to apply, and
the code to import the font you want to use for the titles.Available theme optionsHere there is a list of all the available theme options:accent_color: the main color used by the theme, for links and keywords in
the code boxesnight_accent_color: the same asaccent_color, but used in the night
(dark) modetitles_font: name of the font used in titles and headings
Package: pietunes
PieTunes is a Python library that creates an abstraction of
Apple’s Scripting Bridge API for iTunes. This makes it much easier to
write Python scripts (or full python applications) that interact with
iTunes and the iTunes Store.There are some caveats:The only external dependency right now isPyObjCDue to this dependency, this pietunes Python library is only available
for MacOS[1]This is a modern Python library that requiresPython>=3.6ObjectivesCreate a modern, stable Python library with a clearly-defined APIProvide as close to 100% Test Coverage as possible[2]Provide clear documentation with full coverage of the API and example code.InstallingInstall and update usingpip:pipinstall-UpietunesA Simple ExamplefrompietunesimportAppapp=App()movie_playlist=app.get_playlist("Movies")movies=list(app.get_tracks(movie_playlist))formovieinmovies:print(movie.name())LinksWebsite:https://pypi.org/project/pietunes/Documentation:https://brianfarrell.gitlab.io/pietunes/License:https://www.gnu.org/licenses/agpl.htmlReleases:https://pypi.org/project/pietunes/Code:https://gitlab.com/brianfarrell/pietunes/Issue tracker:Test status:Test coverage:Footnotes[1]Once this is working correctly on MacOS, I will look into how
I might possibly get it working for iTunes on Windows.[2]This project started-out as a Proof of Concept (POC).At that point, no automated testing was involved.Going forward, all new development and bug fixes will be test-driven.
Package: piewordle
PieWordleA Recreation of Wordle in Python.Explore the code »Report Bug·Request FeatureTable of ContentsAbout The ProjectMade WithGetting StartedPrerequisitesInstallationUsageExamplesLicenseContactAbout The ProjectMade With(back to top)Getting StartedPrerequisitesUsing PieWordle demands a Python-Interpreter (>= 3.7).InstallationSimply install the python package (viaPyPI-piewordle):python -m pip install --upgrade piewordle(back to top)Usagepwordle [OPTION]...options:-h, --help  show this help message and exit--daily     guess the daily wordle.-g GUESSES  define the amount of guesses the player has. default is 6.-?          allow not existing words.--de        use german words.-w WORDS    define custom wordle options. Seperator is ';'.Examples📂 Images 📂pwordle --daily -?(back to top)LicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsContactSilenZcience
Package: piexif
To simplify exif manipulations with Python. Writing, reading, and more… Piexif is pure Python. To everywhere with Python.Document:http://piexif.readthedocs.org/en/latest/Online demo:http://piexif-demo.appspot.com/demoInstall‘easy_install’:$ easy_install piexifor ‘pip’:$ pip install piexifor download .zip, extract it. Put ‘piexif’ directory into your environment.Why Choose PiexifPure Python. So, it runs everywhere where Python runs.Easy exif manipulations. Read, write, remove…Documented.http://piexif.readthedocs.org/en/latest/How to UseThere are only just five functions.load(filename)- Get exif data asdict.dump(exif_dict)- Get exif asbytes.insert(exif_bytes, filename)- Insert exif into JPEG, or WebP.remove(filename)- Remove exif from JPEG, or WebP.transplant(filename, filename)- Transplant exif from JPEG to JPEG.Exampleexif_dict = piexif.load("foo1.jpg")
for ifd in ("0th", "Exif", "GPS", "1st"):
    for tag in exif_dict[ifd]:
        print(piexif.TAGS[ifd][tag]["name"], exif_dict[ifd][tag])With PIL(Pillow)from PIL import Image
import piexif

im = Image.open(filename)
exif_dict = piexif.load(im.info["exif"])
# process im and exif_dict...
w, h = im.size
exif_dict["0th"][piexif.ImageIFD.XResolution] = (w, 1)
exif_dict["0th"][piexif.ImageIFD.YResolution] = (h, 1)
exif_bytes = piexif.dump(exif_dict)
im.save(new_file, "jpeg", exif=exif_bytes)EnvironmentTested on Python 2.7, 3.5+ and PyPy3. Piexif would run even on IronPython. Piexif is OS independent and can run on Google App Engine.LicenseThis software is released under the MIT license, see LICENSE.txt.
Package: piexin
piexinThePhpIpamExportInventory for Ansible Inventory files.goalsThis code can be used to export your phpipam data to an ansible inventory file.keep all data in one fileone command, one taskquickstartphpIPAMadd an api account and get the api token for your appassign permissionsset security to ssl with app tokenadd a custom field to store your ansible groupsrun piexinEither store your api key to the environment variable namedPHPIPAM_TOKENor provide the token in the commandlineminimal command:piexin -u https://phpipam.example.com --app piexincomplete helpusage: piexin [-h] [-u url] [-t token] [-a app] [-c certificate] [-o output]
              [-V] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -u url, --url url     url of phpipam server api, defaults to
                        http://localhost
  -t token, --token token
                        api token, can also be stored in environment variable
                        PHPIPAM_TOKEN
  -a app, --app app     phpipam api appname
  -c certificate, --cert certificate
                        ssl cert from server if server is not trusted
  -o output, --output output
                        file to print inventory to
  -V, --version         print version
  -v, --verbose
Package: pif
Discovers your public IP address using pre-defined checkers (external services).PrerequisitesPython 2.7, 3.4, 3.5, PyPyInstallationInstall with latest stable version from PyPI:pipinstallpifor install the latest stable version from source:pipinstallhttps://bitbucket.org/barseghyanartur/pif/get/stable.tar.gzor install into python path:pythonsetup.pyinstallThat’s all. See theUsage and examplessection for more.Usage and examplesBasic usageGet public IP:frompifimportget_public_ipget_public_ip()Get public IP using preferred checker:get_public_ip('v4.ident.me')List available checkers:frompif.utilsimportlist_checkerslist_checkers()Registering a custom IP checkerpifships with a number of pre-defined public IP checkers. But you may extend
it by defining your own ones as follows.frompif.baseimportBaseIPChecker,registryclassMyPublicIPChecker(BaseIPChecker):uid='mypublicipchecker'# UID of the checkerdefget_public_ip(self):# TODO: Implement your logic# Register the checkerregistry.register(MyPublicIPChecker)# Get public IP using the preferred checkerget_public_ip('mypublicipchecker')Command line usageIt’s possible to get your public IP address from command line using thepif.commands.get_public_ipmodule.optional arguments:
  -h, --help            show this help message and exit
  -c PREFERRED_CHECKER, --checker PREFERRED_CHECKER
                        `preferred_checker` value
  -v VERBOSE, --verbose VERBOSE
                    `verbose` valueExample:(simple)get-public-ipExample:(with preferred checked and verbose output)get-public-ip-cv4.ident.me-v1TestingSimply type:./runtests.pyor use tox:toxor use tox to check specific env:tox-epy35LicenseGPL 2.0/LGPL 2.1SupportFor any issues contact me at the e-mail given in theAuthorsection.AuthorArtur Barseghyan <artur.barseghyan@gmail.com>
Package: pifacedigitalio
pifacedigitalio===============The PiFace Digital Input/Output module ([PyPI](https://pypi.python.org/pypi/pifacedigitalio/)).Documentation=============[http://piface.github.io/pifacedigitalio/](http://piface.github.io/pifacedigitalio/)You can also find the documentation and some examples installed at:/usr/share/doc/python3-pifacedigitalio/Install=======Make sure you are using the lastest version of Raspbian:$ sudo apt-get update$ sudo apt-get upgradeInstall `pifacedigitalio` (for Python 3 and 2) with the following command:$ sudo apt-get install python{,3}-pifacedigitalioTest by running the `blink.py` program:$ python3 /usr/share/doc/python3-pifacedigitalio/examples/blink.pyChange Log==========v3.0.5------- Added PiFace Digital Emulator installation instructions to the docs.v3.0.4------- Added deinit_board method to PiFace Digital.- Fixed bug where digital_read and digital_write would not close SPI filedescriptor.v3.0.3------- Added documentation for simplewebcontrol.py.v3.0.2------- Added bus and chip_select to deinit.v3.0.1------- Fixed deinit bug (fixes GitHub pifacecommon issue #6).v3.0.0------- Updated for compatibility with pifacecommon v4.0.0 (which uses the MCP23S17class).- All occurrences of `board_num` have been replaced with `hardware_addr` whichis more appropriate.- PiFace Digital is initialised when you instantiate the object. **You do notneed to call pifacedigitalio.init() any more unless you're using digital_reador digital_write.**- PiFaceDigital inherits registers from MCP23S17 so you can access all theregisters on the chip. For example GPPUP:>>> pfd = PiFaceDigital()>>> pfd.gppub.value = 0xff>>> pfd.gppub.bits[4].value = 1- InputEventListener now requires that you provide a chip object, nota hardware_addr (board_num). This defaults to PiFaceDigital(hardware_addr=0).- Interrupt events contain a chip object representing the calling chip insteadof the hardware_addr (board_num). You can still access thehardware_addr (board_num) like so:>>> def my_callback(event):...     print(event.chip.hardware_addr)- Removed LED, Relay and Switch classes. They added arbitrary restrictions andwere not very useful. `pifacecommon.mcp23s17.MCP23S17RegisterBit` is moreappropriate.- Updated examples to reflect new changes.- See the docs (particularly the examples) for more information.v2.1.0------- Added IODIR_FALLING_EDGE and IODIR_RISING_EDGE (pifacecommon v3.1.1).- Added `bus` and `chip_select` optional arguments to init.v2.0.3------- Interrupts now work for multiple boards.v2.0.2------- Using package structure for version number file and consistency withother PiFace modules.- Updated docs with new install instructions.v2.0.1------- Added version number to source.v2.0.0------- Using new interrupt API (check the docs).v1.2.1------- Supports Python 2.- Started using semantic versioning http://semver.org/.v1.2------- Started using a change log!- Removed install.sh, everything is now handled by setup.py.- Updated docs.- Added some examples.
Package: pifacerelayplus
pifacerelayplusThe PiFace Relay Plus module.Documentation[http://pifacerelayplus.readthedocs.org/](http://pifacerelayplus.readthedocs.org/)You can also find the documentation and some examples installed at:/usr/share/doc/python3-pifacerelayplus/InstallAptitudeTry this first:sudo apt-get update
sudo apt-get install python{,3}-pifacerelayplusDebian PackageDownload the debian package from [here](https://github.com/piface/pifacerelayplus/releases) and install with:$ dpkg -i python3-pifacerelayplus-0.2.0-1_all.debYou may need to download and install the latest release of
[pifacecommon](https://github.com/piface/pifacecommon/releases) and reboot.
Change Log
==========v0.2.7Removed unecessary __del__ magic method.v0.2.6simplewebcontrol now supports and/or masks.Changed the relay port query string syntax.v0.2.5simplewebcontrol now supports multiple boards.v0.2.4Fixed bug when using the ‘Relay’ Plus-Board where the ‘relay_port’
property would not be set correctly.Fixed simplewebcontrol to return proper JSON.v0.2.3Added MANIFEST.in with readme and changelog and added setup.py for PyPIv0.2.2Added simplewebcontrol.v0.2.1Fixed bug with default GPIO configs for when there is no ‘Extra Board’.v0.2.0Introduced new way of handling of inputs/outputs on plus-boards: x-port
and y-port.Added MotorForwardReverseError and MotorTooSoonError.v0.1.1Fixed motors.Fixed relay extender (for relay board initialisation).v0.1.0Inital structure.
Package: pifetcher
# pifetcher
A scalable headless data fetching library written with python and message queue service to enable quickly and easily parsing web data in a distributive way.## To install`bash pip install pifetcher `## PYPI Link  [https://pypi.org/project/pifetcher/]## dependencies:
- pyppeteer
- BeautifulSoup4
- boto3## features:event-callback-based interaction between user defined logic and the pre-disigned fetch workerprocess works in batches, library user will be able to capture the event of a batch of works have been finishedeasy to use, only needs to inherit the FetchWorker class and implement the basic call back functionsit’s design to use message queue, enbles more than just one worker to perform data fetching in order to scale the application## how to use:Github: [https://github.com/gavinz0228/pifetcher]
Package: piflib
piflib - computing personal information factors (PIF)InstallationThis library requires Python3. To install, executepip install piflibUsagepiflib expects the data as aPandasDataFrame. Luckily,Pandas supports
a wide rangeof input formats.In this example, we have data in csv format.import pandas as pd
import piflib

dataframe = pd.read_csv('datafile.csv')
cigs = piflib.compute_cigs(dataframe)
csfs = piflib.compute_csfs(dataframe)Thecompute_cigsandcompute_csfsfunctions return a Pandas DataFrame, containing the CIG and CSF values
respectively. The CIG and CSF values appear in the same position as in the input data.You can run and experiment with the tutorials online here:What does it do? How does it work?The documentation can be foundhere.LimitationsPiflib currently only supports discrete feature distributions.CopyrightCopyright 2021 CSIRO's Data61LicensePiflib is released under the Apache-2 license.
Unless required by applicable law or agreed to in writing, software distributed under this license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See thelicensefor the specific language governing permissions and limitations.CitingPiflib is designed, developed and supported byCSIRO's Data61. If you use any part
of this library in your research, please cite it using the following BibTex entry:@misc{piflib,
  author = {CSIRO's Data61},
  title = {piflib - computing personal information factors},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\url{https://github.com/PIFtools/piflib}},
}Thank YouWe want to thank Jakub Nabaglo and Joyce Yu for their contributions to this codebase.
Package: pifttt
# PIFTTTIt stands for "**P**ython **IFTTT**".A simple package to facilitate sending requests to IFTTT's"Maker Webhooks".## Quick startThe one method you're looking for is `pifttt.if_this`. To use it,pass in your key and the name of the event you want to trigger, aswell as any optional values (up to three). For example:```Pythonif_this(key='super-secret',event_name='name of event,value1='So',value2='long',value3='and thanks for all the fish',)```## Return values and exceptionsIn case of a successful response from IFTTT (i.e., a status code of 200),the content of the response will be returned. Otherwise, an exceptionwill be raised. IFTTT is not very strict, therefore there is notmuch where to go wrong (for example, triggering a non-existent eventor not send a value expected by an event will both be allowed).These are the exceptions the package raises:### `HookRequestError(Exception)`A blanket exception raised when something went wrong with the request,but not much information about the error was found. The response fromIFTTT can be found in its `response` property.### `InvalidKey(HookRequestError)`The key sent was not recognized by IFTTT.### `InvalidArgument(Exception)`One of the arguments passed to `if_this` is wrong (probably contains anillegal character).## CustomizationIf you'd like to go a little bit further, you could use the class`IFTTTWebhook(key, event_name)` to customize your requests.Requests are sent from this class with the method`send(value1=None, value2=None, value3=None)`.
Package: pigai-gpt2
Introduction批改网写作助手，根据配置自动生成并提交英语作文。Requirementsgoogle-chromePython3.7+Usage项目依赖 google-chrome 运行，请确保你的计算机已装有谷歌浏览器。拉取 PyPi Packagepipinstallpigai-gpt2跨越次元的相遇fromtypingimportUnion,Listfrompigaiimportrunner# [√] 账号信息username,password="",""# [√] 作文号pids:Union[str,List[str]]=["2107818"]# [*] 班级名全称 错误或不存在不影响程序运行class_name:str="春田花花幼稚园"# [*] 文本词汇量 实际生成量会略多于此值content_length:int=200if__name__=='__main__':runner(username=username,password=password,pids=pids,class_name=class_name,content_length=content_length,save_action_memory=True,check_result=True)Advanced操作历史首次运行后，可在工程目录下的database/action_history.csv中查看格式化的操作历史数据。评测快照首次运行后，程序会保存评测页面二点快照，可将页面中的所有富文本信息保存成.mhtml文件并存储在工程目录下的databse/paper_score/。该格式文件可用主流的浏览器访问。文本长度在src/config.py文件中可修改变量TEXT_LENGTH的数值，其表示文章长度的左区间值，既文本生成后，文章长度会超过20 至 80 个词。TEXT_LENGTH的默认值为 320。
Package: pigconf
PIGCONF Configuration MapperPigconf is a simple config mapper that maps yaml style configurations to configuration classes. It allows strict mapping
of yaml fields to class attributes based on specified keys.InstallationRun the followint to install:pipinstallpigconfQuickstart Examplestudent_conf.ymlstudent:id:1name:"Alice"info:grade:"A"importmapper@mapper.set_attr("grade","student.info.grade",str)@mapper.set_attr("name","student.name",str)@mapper.set_attr(attr_name="id",config_key="student.id",attr_type=int)@mapper.load_config("student_conf.yml")classStudent:pass>>>importmapper
>>>>>>>>>@mapper.set_attr("grade","student.info.grade",str)...@mapper.set_attr("name","student.name",str)...@mapper.set_attr(attr_name="id",config_key="student.id",attr_type=int)...@mapper.load_config("student_conf.yml")...classStudent:
...pass
...>>>s=Student
>>>print(f"Student name: {s.name} with id: {s.id} has the grade: {s.grade}")Studentname:Alicewithid:1hasthegrade:AThe configuration can also be loaded with a config_key argument so that the whole
object under that key is mapped.Example:importmapper@mapper.set_attr("grade","info.grade",str)@mapper.set_attr("name","no_key",str)@mapper.set_attr(attr_name="id",config_key="id",attr_type=int)@mapper.load_config("student_conf.yml",config_key="student")classStudent:passNow the attributes only need the keys under defined under the "student" key in the yaml.Strict MappingThe mapper doesn't allow None values or missing keys. Anything specified as an attribute
key must be defined in the yaml. This simply allows the application to fail during the configuration
mapping phase rather than failing at runtime.>>>importmapper
>>>@mapper.set_attr("grade","info.wrong_key",str)...@mapper.load_config("student_conf.yml","student")...classStudent:
...pass
...Traceback(mostrecentcalllast):File"<stdin>",line3,in<module>File"/Users/anshumanrohella/Documents/Workspace/pigconf/src/mapper.py",line31,indecoratorvalue=_get_value_from_parsed_config(cls._config,config_key)File"/Users/anshumanrohella/Documents/Workspace/pigconf/src/mapper.py",line46,in_get_value_from_parsed_configraiseKeyError(f"Could not find key: {key} in config file.")KeyError:'Could not find key: wrong_key in config file.'ContributeTo install pigconf, along with the tools you need to develop and run tests, run the following in your virtualenv.pipinstall-e.[dev]
Package: pi-gcs
# PI GCS python wrapper[![Build Status][travis]][travislink]  [![Coverage Status][coveralls]][coverallslink]  [![PyPI version][pypiversion]][pypiversionlink]A python wrapper around Physik Instrument General Command Set API.The PI GCS2 library is distributed by PI. This is a Python wrapper around the GCS2 library[travis]:https://travis-ci.com/lbusoni/pi_gcs.svg?branch=master“go to travis”
[travislink]:https://travis-ci.com/lbusoni/pi_gcs[coveralls]:https://coveralls.io/repos/github/lbusoni/pi_gcs/badge.svg?branch=master“go to coveralls”
[coverallslink]:https://coveralls.io/github/lbusoni/pi_gcs[pypiversion]:https://badge.fury.io/py/pi_gcs.svg[pypiversionlink]:https://badge.fury.io/py/pi_gcs
Package: pigen
PiGen : Generators For Digits of PiOverviewA small collection of generators and functions for digits of pi. Maybe
you’ve an art or math project and need to generate a few thousand to
a few million digits of pi?  This will help with that.GeneratorsSpigot’s Algorithm |pigen.spigot_pispigot_pi is a generator function.Useful when you only need a single digit at a time.Not as fast as frac_pi but a classic…frompigenimportspigot_piasspipi_gen=spi()for_inrange(100):# Let's iterate through the first 100 digits of pi.digit=next(pi_gen)# do something with digitFractional Continuation |pigen.frac_pifrac_pi is a generator function.Useful when you only need a single digit at a time.Fastest single digit generator currently in the package.You can pass your own lambda functions for other well behaved
irrational numbers!You can specify the base for output as well, i.e., decimal, hex, etc.frompigenimportfrac_piasfpipi_gen=fpi()for_inrange(100):# Let's iterate through the first 100 digits of pi.digit=next(pi_gen)# do something with digit# We can pass lambdas to get different transcendental numbers.# The golden ratiophi_gen=fpi(lambdaa:1,lambdab:1,base=10)for_inrange(1000):# Let's iterate through the first 1000 digits of phi.digit=next(phi_gen)# do something with digitChudnovsky’s Binary Search |pigen.chudnovsky_pichudnovsky_pi is a regular function.Useful if you need many digits at once.The absolute fastest across the board. If you need a milliondigits or more, this has got you covered.You need only pass the number of digits you’d like to generate.Makes heavy use of gmpy2 and the associated libs.  Very fast but you may need
to install other platform specific dependencies.frompigenimportchudnovsky_piascpibsn=1000000n_pi_digits=cpi(n)# An integer `n` digits long containing digits of piOtherFree software: MIT licenseTODOCLIExamplesCreditsThe Chudnovsky’s BS Algorithm was pulled and updated from an example by
Nick Craig-Wood.History0.1.2 (2020-01-27)First release on PyPI.Completely removed slower Chudnovsky function.
It didn’t generate the correct sequence.
Package: pigeomail
pigeomailA highly efficient and modular mail delivery framework for Python##InstallpipinstallpigeomailHow to usefrompigeomailimportMessage,Mailerif__name__=="__main__":msg=Message()msg.From="pigeomail"msg.To=["xxx@gmail.com"]msg.Cc=[]msg.Subject="Hello, pigeomail is a highly efficient and modular mail delivery framework for Python."msg.Html="""<!DOCTYPE html><html><head><meta charset="utf-8"></head><body><h1>Hello world~</h1><p>pigeomail is a highly efficient and modular mail delivery framework for Python.</p></body></html>"""msg.attachments=["test1.jpg","test2.jpg",]mailer=Mailer(host="xxxx.163.com",port=80,user="username@163.com",pwd="passwd",)mailer.send(msg)# just send your message through the mailer