Saravanan666/pypi-org huggingface dataset:
Package: python-pycg
PyCG: Toolbox for CG-related visualizations and computationsPyCG is there for people to accelerate their 3D visualizations and computations, aiming at implementing complicated functions with as few lines as possible.
The toolbox is created from the perspective of researchers and would hopefully accelerate your daily pipeline.Installpipinstall-Upython-pycgDONT READ MORE!!!!!! DONT READ MORE!!!! STOP NOW!!!!HAHA. Actually I really want you to read this -- to install a full-fledged version, use:pipinstall-Upython-pycg[all]-fhttps://pycg.huangjh.tech/packages/index.htmlNote that the need for the extra index URL if for ourcustomized version of Open3D,named open3d_pycg_cpu(with support for multi-window camera/light synchronization, animation maker and visualizer, scalar analyzer, etc).For developers, clone this repository and install it if you want to use newest features:gitclone--recursivehttps://github.com/heiwang1997/pycg
pipinstallopen3d_pycg_cpu-fhttps://pycg.huangjh.tech/packages/index.html
pipinstall-e.[all]# Most modern, but some static analyzing tool (e.g. pylance) will fail!#   Now it will create weird __editable__.*.pth files!pythonsetup.pydevelop# Deprecated by the community, but it works better.Using PyCGPyCG contains many submodules which could be easily imported viafrom pycg import xxx.
These different modules span a wide range of functionalities from visualizing 3D assets to creating nice html tables for comparing results.
Please refer to the individual documentation of each submodule to get started.3D Visualizationpycg.visRender 3D Scenespycg.renderHandling 3D Transformationspycg.isometryCompress Videospycg.videoCompress PDF Filespycg.pdfExperiment Utilitiespycg.expManipulating Imagespycg.image... and so on to be added!Gallery
Package: pythonpy-clone
pythonpy cloneThis is a rewrite ofpythonpywith (planned) feature parity and which is more robust. Instead of using regex to attempt to automatically
import all identifiers, it uses a library which I already wrote calledImport Expression Parserto add easy inline imports
e.g.urllib.parse!.quote("a b c").For more information, see thepythonpyREADME andpy --help.Installationpip install pythonpy-clone(or viapipx:pipx install pythonpy-clone)From source:pip install .LicenseBlueOak Model License v1.0.0, seeLICENSE.md.
For rationale, seekemitchell's blog post on the matter.
Package: python-pydantic-responses-python-sdk
python-pydantic-responses-python-sdkA simple API based on python pydantic responses.Table of ContentsRequirementsInstallingGetting StartedAsyncRaw HTTP ResponseReferencepythonpydanticresponses.test.fetchpythonpydanticresponses.test.reserved_wordRequirementsPython >=3.7Installingpipinstallpython-pydantic-responses-python-sdk==1.0.0Getting Startedfrompprintimportpprintfrompython_pydanticimportPythonPydanticResponses,ApiExceptionpythonpydanticresponses=PythonPydanticResponses(api_key="YOUR_API_KEY",)try:# Fetches a JSON value based on input parameterfetch_response=pythonpydanticresponses.test.fetch(input_parameter="inputParameter_example",)print(fetch_response)exceptApiExceptionase:print("Exception when calling TestApi.fetch:%s\n"%e)pprint(e.body)ife.status==400:pprint(e.body["error"])ife.status==500:pprint(e.body["error"])pprint(e.headers)pprint(e.status)pprint(e.reason)pprint(e.round_trip_time)Asyncasyncsupport is available by prependingato any method.importasynciofrompprintimportpprintfrompython_pydanticimportPythonPydanticResponses,ApiExceptionpythonpydanticresponses=PythonPydanticResponses(api_key="YOUR_API_KEY",)asyncdefmain():try:# Fetches a JSON value based on input parameterfetch_response=awaitpythonpydanticresponses.test.afetch(input_parameter="inputParameter_example",)print(fetch_response)exceptApiExceptionase:print("Exception when calling TestApi.fetch:%s\n"%e)pprint(e.body)ife.status==400:pprint(e.body["error"])ife.status==500:pprint(e.body["error"])pprint(e.headers)pprint(e.status)pprint(e.reason)pprint(e.round_trip_time)asyncio.run(main())Raw HTTP ResponseTo access raw HTTP response values, use the.rawnamespace.frompprintimportpprintfrompython_pydanticimportPythonPydanticResponses,ApiExceptionpythonpydanticresponses=PythonPydanticResponses(api_key="YOUR_API_KEY",)try:# Fetches a JSON value based on input parameterfetch_response=pythonpydanticresponses.test.raw.fetch(input_parameter="inputParameter_example",)pprint(fetch_response.body)pprint(fetch_response.body["property_a"])pprint(fetch_response.body["property_b"])pprint(fetch_response.body["property_c"])pprint(fetch_response.headers)pprint(fetch_response.status)pprint(fetch_response.round_trip_time)exceptApiExceptionase:print("Exception when calling TestApi.fetch:%s\n"%e)pprint(e.body)ife.status==400:pprint(e.body["error"])ife.status==500:pprint(e.body["error"])pprint(e.headers)pprint(e.status)pprint(e.reason)pprint(e.round_trip_time)Referencepythonpydanticresponses.test.fetchProvide an input parameter to receive a JSON value with properties.🛠️ Usagefetch_response=pythonpydanticresponses.test.fetch(input_parameter="inputParameter_example",)⚙️ Parametersinput_parameter:strThe input parameter to process.🔄 ReturnTestFetchResponse🌐 Endpoint/simple-endpointget🔙Back to Table of Contentspythonpydanticresponses.test.reserved_wordReserved word in Python🛠️ Usagereserved_word_response=pythonpydanticresponses.test.reserved_word()🔄 ReturnTestReservedWord🌐 Endpoint/reserved-wordget🔙Back to Table of ContentsAuthorThis Python package is automatically generated byKonfig
Package: python-pydebug
PyDebugThis is a simple set of utilities which makes it easier to debug Python objects.
Pydebug respects Django's config. It checks if the decorator is running within a Django
project andDEBUGis set toTrue. If it's set toFalse, it simply returns the function.InstallingYou can install by cloning this repository and runningpip install .within this directory, or
you can install through Pypi, by runningpip install python-pydebug.RequirementsAlthough Pydebug uses Python's standard library, it tried to importDjangoto make sure you are not
within a Django project.LibraryDefaultsCython-IPDBPDBLine-profiler-Line-profilerrequiresCythonto work, ifIPDBis not found, it fallsback to Python's standardPBDlibrary.NOTE:At the moment, it is not possible to addrkern/line_profileras a requirements due to their install process.
Check theirREADMEfor installation instructions.UsagePDBDebuggerfrompydebugimportPDBDebugger@PDBDebugger()defhello_world(a,b):x=a+breturn(a,b)You may tellPDBdebuggerto drop aIPDBshell only when an error occursfrompydebugimportPDBDebugger@PDBDebugger(on_error=True)defhello_world(a,b):x=a+breturn(a,b)DisassembleDebugYou may disassemble a Python function by using theDisassembledebugdecorator.frompydebugimportDisassembledebug@DisassembleDebug()defhello_world(a,b):x=a+breturn(a,b)ProfilerdebugProfilerdebuguses Python's defaultcProfilelibrary.frompydebugimportProfilerDebug@ProfilerDebug()defhello_world(a,b):x=a+breturn(a,b)LineProfilerDebugLineProfilerDebugrequiresline-profilelibrary to work, which also requiresCython.frompydebugimportLineProfilerDebug@LineProfilerDebug()defhello_world(a,b):x=a+breturn(a,b)ObjectInfoDebugObjectInfoDebugprints the arguments which were passed to the function, theperformacecounter (in minutes), theprocesstime (in minutes) and the returned objects by the function.frompydebugimportObjectInfoDebug@ObjectInfoDebug()defhello_world(a,b):x=a+breturn(a,b)TODOsAllow developer to use multiple decorators instead of one decorating the otherShow better profile metricsPlot metrics to an image
Package: python-pydown
#pydownpydown is another "Presentation System in a single HTML page" written by python inspired by [keydown](https://github.com/infews/keydown).Like keydown it uses the [deck.js](http://imakewebthings.github.com/deck.js) and its extentions for the presentation.##Demo[http://isnowfy.github.io/pydown/](http://isnowfy.github.io/pydown/)##Usage###Write your slides in markdownEdit slides.md~~~~!SLIDE# Hello!SLIDE# Another slide!SLIDE left# left~~~~###Generate the html~~~~python main.py slides.md slides~~~~This will make:~~~~| - slides/| - css/| - js/| - index.html~~~~###Slide classesAny text follows !SLIDE will be added to the slide as css classes~~~~!SLIDE left~~~~###Syntax HighlightingFor python<pre>~~~~{python}def test():print 'hello'~~~~</pre>###Markdown syntax[English version](http://daringfireball.net/projects/markdown/syntax)[Chinese version](https://gitcafe.com/riku/Markdown-Syntax-CN/)
Package: python-pygaze
PyGaze - the open-source toolbox for eye trackingCopyright 2013 - 2023, Edwin Dalmaijer, Sebastiaan Mathôt, and contributorsFor more information, see:https://www.pygaze.org/contributorsCitationDalmaijer, E.S., Mathôt, S., & Van der Stigchel, S. (2013). PyGaze: an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments.Behaviour Research Methods. doi:10.3758/s13428-013-0422-2Documentationhttps://pygaze.org/https://osdoc.cogsci.nl/manual/eyetracking/pygaze/Installationpip install python-pygazeLicensePyGaze is open source software and therefore free to use and modify at will.
Warranty, however, is NOT given. If this software fails, causes your computer
to blow up, your spouse to leave you, your toilet to clog and/or the entire
supply of nuclear missles on earth to launch, or anything else that you might
want to blame on us, the author(s) CANNOT IN ANY WAY be held responsible.PyGaze was released under the GNU Public License (version 3), of which you
should have received a copy of together with the software:PyGaze is a Python package for easily creating gaze contingent experiments
or other software (as well as non-gaze contingent experiments/software)
Copyright (C) 2012-2023 Edwin S. Dalmaijer

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>I hope PyGaze proves to be helpful to you!
Package: python-pylls
pylls - Python library to interface Cachet API (cachethq.io)Author:Denis ‘jawa’ Pompilio <denis.pompilio@gmail.com>Contact:Denis ‘jawa’ Pompilio <denis.pompilio@gmail.com>Sources:https://github.com/outini/python-pylls/This package provides a simple python library to interface the Cachet web API.
Please read also:https://docs.cachethq.io/.InstallationViahttps://pypi.python.org:pip install python-pyllsManual installation:python setup.py installDocumentationDocumentation is available online:http://pythonhosted.org/python-pylls/License“GNU GENERAL PUBLIC LICENSE” (Version 2)(see LICENSE file)
Package: python-pylontech
python-pylontechPython lib to talk to pylontech lithium batteries (US2000, US3000, ...) using RS485What is this lib ?This lib is meant to talk to Pylontech batteries using RS485. Sadly the protocol over RS485 is not some fancy thing like MODBUS but their own crappy protocol.How to use this lib ?First of all, you need a USB to RS485 converter. They are many available online for some bucks.Then, you simply need to import the lib and start asking values:>>>importpylontech>>>p=pylontech.Pylontech()>>>print(p.get_values())Container:NumberOfModules=3Module=ListContainer:Container:NumberOfCells=15CellVoltages=ListContainer:3.3063.3073.3053.3053.3063.3053.3043.3053.3063.3063.3073.3073.3083.3073.306NumberOfTemperatures=5AverageBMSTemperature=29.81GroupedCellsTemperatures=ListContainer:29.6129.6129.6129.61Current=-3.5Voltage=49.59Power=-173.565RemainingCapacity=39.5TotalCapacity=50.0CycleNumber=5-->8--SNIP-->8--TotalPower=-525.8022StateOfCharge=0.79>>>print(p.get_system_parameters())Container:CellHighVoltageLimit=3.7CellLowVoltageLimit=3.05CellUnderVoltageLimit=2.9ChargeHighTemperatureLimit=33.41ChargeLowTemperatureLimit=26.21ChargeCurrentLimit=10.2ModuleHighVoltageLimit=54.0ModuleLowVoltageLimit=46.0ModuleUnderVoltageLimit=44.5DischargeHighTemperatureLimit=33.41DischargeLowTemperatureLimit=26.21DischargeCurrentLimit=-10.0Dependenciespython-pylontechneeds python 3.5 or greater (but please, use at least 3.7 or more if possible to be future-proof).This lib depends onpyserialand the awesomeconstructlib.Hardware wiringThe pylontech modules talk using the RS485 line protocol.Pylontech sideThe first DIP switch on the pylontech indicates the line speed. It must be off (0, down position) so that the speed is set to 115200 Bd.The RS485 port is exposed on the pins 7 & 8 on the RJ45 connector namesRS485.Client sideUSB to RS485Any RS485 to USB converter should would. You just have to wire the two pins above to theAandBports (swap them around if it doesn't work). of your converter.I personally use cheap chinese "RS485 to USB" converters worth a couple of bucks each.TCP/IPIf you are using a Ethernet to RS485 bridge, connect as for USB and run the following command (Linux only) for creating a virtual serial port. Then run the python script with adapted serial parameter in the constructor.socat pty,link=$HOME/bat2,waitslave tcp:<IP_ADDRESS>:<PORT>This is tested with an USR-N540Known bugsMixing between US2000 and US3000If you are using US2000 and US3000 batteries, then the main battery must be a US2000. Please see bughttps://github.com/Frankkkkk/python-pylontech/issues/2#issuecomment-915966564for more informationFAQUsing Pylontech LV Hub with multible battery banksIf the LV hub is used the address of the RS485 devices is depending on the battery bank. To read values the specific device address is needed. To scan for devices on a bank you can use thescan_for_batteriesfunction. The max range is 0 to 255.
Package: python-pymacro
PyMacroWelcome topymacro, a python library that you can use to have MACROS inside your python functions.
It uses a decorator to find and replace macros inside of comments with valid python code. It can
be used in the following manner.frompymacroimportmacro@macrodeffunc_with_macro():# DEFINE x 10print(x)The DSL inside the comments is turned into valid python code.
Package: python-pypi-mirror
pypi-mirroris a small script to generate a partial PyPI mirror. It
relies onpipto do the most difficult part of the job (downloading
a package and its dependencies).Why?Because most of the time you don’t need a full PyPI mirror but only a
mirror that contains the packages you use. If you want a full PyPI
mirror you should look atbandersnatch.InstallationYou can installpypi-mirrorusingpip:pipinstallpython-pypi-mirrorOr usingconda:condainstall-cconda-forgepython-pypi-mirrorHow to use it?The script provides several commands to manage your mirror. To find out
which commands are available, type:pypi-mirror--helpEvery command provides its own help message. So for example to get the
help message of thedownloadcommand, type:pypi-mirrordownload--helpThe commands that you will probably use the most are thedownloadcommand and thecreatecommand. For example to create a mirror which
contains therequestspackage and its dependencies, you can type the
following:pypi-mirrordownload-ddownloadsrequestspypi-mirrorcreate-ddownloads-msimpleThe first command will create adownloadsdirectory into the current
directory and usepipto download therequestspackage and its
dependencies into the newly created directory. Then thecreatecommand will create asimpledirectory into the current directory
and will build the mirror inside this newly created directory. You can
add new packages by repeating this sequence of commands.To make your mirror available through HTTP, you can point your HTTP
server of choice to thesimpledirectory. For exemple, type the
following command into the current directory:python3-mhttp.serverIt will start a HTTP server that will serve file from the current
directory (which should contains thedownloadsdirectory and thesimpledirectory). You can then install packages using your brand
new mirror using the following command:pipinstall-ihttp://127.0.0.1:8000/simplerequestsAbout versioningThis package usesemverto manage version numbering. It means that
every times the major number is increased a backward incompatible
change has been introduced in the API (the command line is an API). So
be careful when upgrading to a new major release as it will surely
break your scripts.
Package: python-pypipe
PyPipe is a Python package that provides an easy to use user graphical
interface to pipe processings from different processing packages.Home-page:https://github.com/AGrigis/pypipeAuthor: Antoine Grigis <antoine.grigis@cea.fr>
Author-email:antoine.grigis@cea.frLicense: CeCILL-B
Description: PyPipePyPipe is a Python package that provides an easy to use user graphical interface to pipe processings from different processing packages.Functions exposed in the user graphical interface are defined in a configuration file.Platform: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Package: python-pyproc
pyprocDescriptionTurn a function into a process with a simple decorator.This repo is highly inspired bypython-workerInstallationpipinstallpython-pyprocGuidefrompyprocimportprocess@processdeffunc(x:int)->int:...func(123)@processasyncdeffunc(x:int)->int:...awaitfunc(123)Get Return Valueimporttime@processdeffunc(a:int)->int:# do some worktime.sleep(5)returna+1worker=func(10)# this will await the worker to finished and return the valueworker.result# 11 will return after 5 secondsworker.result# 11 no wait this timeNotesOnly Pass Pickable Types!. Passing Non Pickable Types Like Genrators Will Cause An Error
Package: python-pyq
pyqApply python over stdin, line by line.Usage examplesecho """1
2
3
4
5
6
7""" | pyq '[e for e in args if e and int(e) >= 5]'echo """1
2
3
4
not a digit
5
6
7"""| pyq '[e for e in args if e.isdigit()]'Installpython3 setup.py installRunpython3 -m pyq
Package: python-pySearch
pySearchpySearch is a Python package that enables seamless searching across popular online platforms directly from your code.version:0.1.1InstallationWindows:pip install python-pySearchLinux:sudo pip3 install python-pySearchDevelopersHuzaifa Asim (@huzaifaasim017)ContactIf you have any questions or suggestions, please feel free to reach out to us attoyoureply@gmail.comor throughGitHub issues.ReviewWe would love to hear your feedback on our projects! please leave a reviewhere.LICENSEThis project is licensed under theApache License 2.0to ensure that it remains free and open for everyone.Created with :heart: by TeamHunerOn
Package: python-pysh
PyShA Python package that mimics the Oh-My-ZSH shell. This package creates a colorful ZSH prompt.InstallationTo install PySh onto your system, runpip install python-pyshin your terminal.If the command errors out, trypip install git+git://github.com/Python3-8/python-pysh.If the second command errors out too, clone the GitHub repo for PySh, move thepyshfolder toyour Pythonsite-packagesdirectory, copy thepysh/pysh.pyfile to your Pythonbindirectory,rename thepysh.pyfile in your Pythonbindirectory topysh, and runchmod +x <PYTHON_BIN_DIR>/pyshin your terminal.UsageThe following command on your terminal will run the PySh shell.$pyshContactYou may contact the developer of PySh at:pranav.pooruli@gmail.com
Package: python-pytun
pytunis a Python module which let you create TUN/TAP device very easily.License: MIT (see LICENSE)Installation and DependenciesInstallpytunwithpip installpython-pytunordownload this archive, decompress it and
executepython setup.py install. Aspytunis a C module you will need a
compiler (e.g GCC) and the Python developpement headers installed on your
system (e.g on Debian-like distribution check thatbuild-essentialandpython-devare present). There are no dependencies other than the Python
Standard Library.DocumentationNOTE: On most distributions you will need to be root to create TUN/TAP devices.To create a TUN device:from pytun import TunTapDevice

tun = TunTapDevice()To create a TAP device:from pytun import TunTapDevice, IFF_TAP

tap = TunTapDevice(flags=IFF_TAP)To create a TUN/TAP device with a custom name use thenamekeyword:tun = TunTapDevice(name='mytun')You can get/set some parameters of the device directly:print tun.name
tun.addr = '10.8.0.1'
tun.dstaddr = '10.8.0.2'
tun.netmask = '255.255.255.0'
tun.mtu = 1500If the device is a TAP you can also get/set its MAC address:tap.hwaddr = '\x00\x11\x22\x33\x44\x55'
print tap.hwaddrTo make the device persistent:tun.persist(True)To bring up the device:tun.up()To bring down the device:tun.down()To enable/disable the queue associated with the device (works only if
it has been created with IFF_MULTI_QUEUE):tun.mq_attach() # enable the queue
tun.mq_attach(False) # disable the queueTo read/write to the device, use the methodsread(size)andwrite(buf):buf = tun.read(tun.mtu)
tun.write(buf)To close the device:tun.close()You can also useTunTapDeviceobjects with all functions that expect afileno()method (e.gselect())
Package: python-pytuntap
TUN/TAP package for Linux and Windows================================``pytuntap`` is a Python module for you create TUN/TAP device very easily.It canbe work both on Linux and WindowsLicense: MIT (see LICENSE)Installation and Dependencies-----------------------------Install ``pytuntap`` with ``pip install python-pytuntap``As ``pytuntap`` is python wrapper for tuntap driver on Linux , and openvpn driver onWindows. If you use it on windows, you should install openvpn's tap driver first.please refer to openvpn ,how to install it .Documentation-------------NOTE: On most distributions you will need to be root to create TUN/TAP devices.To create a TUN device::from tuntap import TunTaptun = TunTap(nic_type="Tun",nic_name="tun0")To create a TAP device::聽  from tuntap import TunTaptap = TunTap(nic_type="Tap",nic_name="tap0")To config device:tap.config(ip="192.168.1.10",mask="255.255.255.0",gateway="192.168.1.254")You can get some parameters of the device directly::print(tun.name,tun.ip,tun.mask)If the device is a TAP you can also get/set its MAC address::print(tap.mac)To read/write to the device, use the methods ``read(size)`` and``write(buf)``::buf = tun.read(size)tun.write(buf)To close the device::tun.close()you can also use ``TunTapDevice`` objects with all functions that expect a``tun.handle`` method (e.g ``select()``)
Package: python_q4m
This module is simple Q4M operation wrapper developed by pixiv Inc. for asynchronous upload systemSimple example of usage is followings>>> from python_q4m.q4m import *
>>> class QueueTable(Q4M):
>>>     def __init__(self, con):
>>>         super(self.__class__, self).__init__(con)
>>>         self.table   = 'queue_table'
>>>         self.columns = ['id',
>>>                         'msg',
>>>                        ]
>>> try:
>>>    con = MySQLdb.connect(host='localhost',
>>>                          db=dbname,
>>>                          user=username,
>>>                          passwd=password,
>>>                         )
>>>    q = QueueTable(con)
>>>    q.enqueue([1, 'msg'])
>>>    while q.wait() == 0:
>>>        time.sleep(1);
>>>     res = q.dequeue()
>>>     print res['id']
>>>     print res['msg']
>>>     q.end()
>>>     con.close()
>>> except MySQLdb.Error, e:
>>>     print 'Error %d: %s' % (e.args[0], e.args[1])
>>>     q.abort()
>>>     con.close()And it is necessary to create following table for above example.CREATE TABLEqueue_table(idint(11) NOT NULL,msgtext NOT NULL) ENGINE=QUEUE;