Saravanan666/pypi-org huggingface dataset:
Package: pymadlib
================================================================================Python wrapper for MADlibSrivatsan Ramanujam <vatsan.cs@utexas.edu>, 3 Jan 2013This currently implements Linear regression, Logistic Regression,SVM (regression & classification), K-Means and LDA algorithms of MADlib.Refer : http://doc.madlib.net/v0.5/ for MADlib's user documentation.================================================================================Dependencies :===============You'll need the python extension : psycopg2 to use PyMADlib.(i)  If you have matplotlib installed, you'll see Matplotlib visualizations for Linear Regression demo.(ii)  If you have installed networkx (http://networkx.github.com/download.html), you'll see a visualization of the k-means demo(iii)  PyROC (https://github.com/marcelcaraciolo/PyROC) is included in the source of this distribution with permission from its developer. You'll see a visualization of the ROC curves for Logistic Regression.Configurations:===============To configure your DB Connection parametersYou should create a file in your home directory : ~/.pymadlib.configthat should look like so :------------------------------------------------------------[db_connection]user = gpadminpassword = XXXXXhostname = 127.0.0.1 (or the IP of your DB server)port = 5432 (the port# of your DB)database = vatsandb (the database you wish to connect to)------------------------------------------------------------INSTALLATION INSTRUCTIONS:===========================1) You may install pymadlib by downloading the source (from PyPI) and then run the following :sudo python setup.py buildsudo python setup.py install(OR)2) If you use easy_install or pip, simply run :sudo easy_install pymadlibRunning the Demos :===================You may run the demo from the extracted directory of pymadlib like so :python example.py(OR)If you installed PyMADlib using instructions in the previous section, then simply runpython -c 'from pymadlib.example import runDemos; runDemos()'Datasets packaged with this installation :=========================================PyMADlib packages publicly available datasets from the UCI machine learning repository and other sources.1) Wine quality dataset from UCI Machine Learning repository : http://archive.ics.uci.edu/ml/datasets/Wine+Quality2) Auto MPG dataset from UCI ML repository : http://archive.ics.uci.edu/ml/datasets/Auto+MPG3) Obama-Romney second presidential debate (2012) transcripts for the LDA models.Installation Issues:=====================Installing pymadlib using distutils should automatically install the dependent library psycopg2, which is required toconnect to a PostGres database (where MADlib is installed on). If you are using Mac OSX 10.6.X you may run into issueswith installing psycopg2.Here are some blogs which discuss the issue and offer solutions:http://hardlifeofapo.com/psycopg2-and-postgresql-9-1-on-snow-leopard/http://www.initd.org/psycopg/articles/2010/11/11/links-about-building-psycopg-mac-os-x/
Package: pymadng
pymadngPython interface to MAD-NG running as subprocessInstall using below, seeThe Python Package Index (PyPi);pip install pymadngFamiliarising yourself with pymadngFirst, we recommend familiarising yourself with MAD-NG, documentation can be foundhere.Then reading through the Low-Level Example Explained on thepymadng documentationshould be sufficient (alongside knowledge of MAD-NG), assuming you are not planning to use any "syntactic sugar". If you plan to use the available pythonic looking code, there are plenty of examples to look at.In the documentation,FODO Examples Explained, is a chapter that goes into detail on what is happening on each line of theFODO example, whileLHC Examplegives an example of loading the LHC and how to grab intermediate results from a match.The only other example that may be of use is theps-twissexample. This is an extremely simple example, extending the FODO example to perform a twiss on the PS sequence.
If anything does not seem fully explained, initially check theAPI Referenceand/or theMAD-NG Documentation, then feel free to open anissueso improvements can be made.DocumentationDocumentation, including explanation of a couple of examples and the limitations of the API can be foundhere.The API reference is also included inthis documentation. You can also compile to documentation yourself by cloning the repository and runningmake htmlin the docs folder.Getting the examples workingYou can run the example withpython3 EXAMPLE_NAME.py
Package: pyMAdot2
pyMAdot2Asynchronous library to controlMA Lighting dot2light console.This library is under developmentRequirementsPython >= 3.10aiohttpInstallpipinstallpyMAdot2Examplefrompymadot2importDot2importasyncioimportaiohttpasyncdefmain():asyncwithaiohttp.ClientSession()assession:awaitrun(session)asyncdefrun(session):console=awaitDot2.create(session,"127.0.0.1","test")awaitconsole.command("Fixture 1")awaitconsole.command("At 100")awaitasyncio.sleep(1)awaitconsole.disconnect()asyncio.run(main())
Package: py-madvr
MadVR Envy Python LibrarySupport for IP based controls for MadVR EnvySupports real time notifications and commandsCommandsCommand structure follows the same in the manualhttps://madvrenvy.com/wp-content/uploads/EnvyIpControl.pdf?r=112aFor things that take values, use a comma ->["KeyPress, MENU"]Not every single command is implemented, such as submenus or changing complicated options. You can use commands for all the typical stuff the remote can do.
Package: py-madvr2
MadVR Envy Python LibrarySupport for IP based controls for MadVR EnvySupports real time notifications and commandsCommandsCommand structure follows the same in the manualhttps://madvrenvy.com/wp-content/uploads/EnvyIpControl.pdf?r=112aFor things that take values, use a comma ->["KeyPress, MENU"]Not every single command is implemented, such as submenus or changing complicated options. You can use commands for all the typical stuff the remote can do.
Package: pymadx
#pymadx#A python package containing both utilities for processing and analysing MADX output.AuthorsL. Nevay
S. Boogert
S. Walker
A. Abramov
W. Shields
J. SnuverinkSetuppip install pymadxOr from source, from the main directory:$ make installor for development where the local copy of the repository is used
and can be reloaded with local changes:$ make developLook in the Makefile for the various pip commands (e.g. for with a venv).$> python
>>> import pymadx
>>> t = pymadx.Data.Tfs("twiss.tfs")Dependenciesmatplotlibnumpypytransport (optional)
Package: pymagento
PyMagentoPyMagentois a Python client for the Magento 2 API. Its goal is to provide an easy-to-use
Pythonic interface to the Magento 2 API, while being lightweight and extendable.Read the docsNote: PyMagento is not affiliated to nor endorsed by Adobe or the Magento team.InstallWe support Python 3.8+.Pippython -m pip install pymagentoPoetrypoetry add pymagentoUsageimportmagentoclient=magento.Magento(base_url="...",token="...",scope="all")product=client.get_product("SKU123")print(magento.get_custom_attribute(product,"description"))fororderinclient.get_orders(status="processing"):print(order["increment_id"],order["grand_total"])For more information,read the docs.Note: not all endpoints are implemented with dedicated methods; you can still call them withclient.get_json_api("/V1/...")forGETendpoints andclient.post_json_api("/V1/...", json=...).LicenseCopyright 2020-2024Bixoto.
Package: pymage-processor
Give a Star! ⭐If you liked my work and want to support me, please give it a star. Thanks!1. The problemWhen I was starting at the IT area, I pick up some website building projects and then I recognize that performance is a really good issue to improove the amout of leads at your site.When we are talking about website performance one of the most important thing is the images, images can be a really good vilain because in some scenarious we use a bad format or a incorrect size.Ideally, we shoud have a single image in some low-size format like WEBP and a common format like JPEG as a fallback, but not only the format is important, if you will open a website at a 1920x1080 pixels screen and the website has a banner image, that image should be 1080 pixels wide, but, if you acess the same site from a smartphone with screen size of 390x844 pixels, doesn't make sense you load an image that are 1080 pixels wide.So, to have a performance optimized website we should have each userd image in multiples formats and sizes.2. What Pymage do?That project was created with the objective to make that process of resize and reformat images easier, with a single command, you create some versions with different sizes and formats from an image.3. Features 💡Resize images.Generate images with multiple sizesChange image formatGenerate images with multiple formatsChange image quality4. Using 📕Install (Requires Python >= 3.8)pipinstallpymage-processorRunningpymageIf, when executing this command, you do not see the help command, refer to the item below.Problem runningThe install process put the app in the ~/.local/bin directory so check if you have that directory in the PATH variable.You can do this by running this command, but you will need to put it in your .bashrc file or equivalent so you don't have to do it every time you open a new terminalexportPATH="$HOME/.local/bin:$PATH"Uninstallpipuninstallpymage-processor5. Run Locally 🚀Clone the projectgitclonehttps://github.com/pymage/pymage.gitORgitclonegit@github.com:pymage/pymage.gitGo to the project directorycdpymageInstall and run virtualenvsudopip3installvirtualenvmkdirvenvwhichpython3virtualenv--python='/path/to/python3'venvsourcevenv/bin/activateInstall dependenciespipinstall-rrequirements.txtRunningpython-msrc.pymage[pathToImage]-f[formats]-w[sizes]-q[quality]Commands# Help!pythonsrc/pymage--help# Outputusage:pymage[image_files][-f][-w][-q]optionalarguments:-h,--helpshowthishelpmessageandexitargs:-f--formatSettheoutputimageformats|-fwebpjpeg-w--widthSettheoutputimagesizes|-w300600900-q--qualitySettheoutputimagequality|-q100-v--versionPrintversioninfoEnjoytheprogram!:)To stop the virtual environment run:deactivateTop remove all dependencies run:rm -r venv6. Running Tests 🧪To run tests, run the following commandsourcevenv/bin/activatepipinstall-rrequirements_dev.txtpytest-s7. Suport and Bugs Report 🚨If you found a bug, have a feature need, feedback or doubt, just open a issue.
Package: pymage-size
pymage_sizeA Python package for getting the dimensions of an image without loading it into memory. No external dependencies either!Installationpymage_size is available from PyPI, so you can install viapip:$pipinstallpymage_sizeUsagefrompymage_sizeimportget_image_sizeimg_format=get_image_size("example.png")width,height=img_format.get_dimensions()
Package: pymagewell
pymagewellpymagewellis a Python library for interfacing with Magewell ProCapture frame grabbers.It is based on (and includes) Magewell's Windows SDK and is therefore Windows only. However, it provides a mock class
that for testing and development that does not depend on the SDK's Windows .dll files, sopymagwellcan also be
installed on macOS and Linux.GitHub pageAPI reference documentationPyPI pageInstallationFrom PyPI:pipinstallpymagewellFrom conda-forge (Windows and macOS only):condainstall-cconda-forgepymagewellExample of useA full working example is provided inexample_script.py.First, create aProCaptureSettingsdataclass:frompymagewellimport(ProCaptureSettings,ImageSizeInPixels,TransferMode,ColourFormat)device_settings=ProCaptureSettings(dimensions=ImageSizeInPixels(1920,1080),color_format=ColourFormat.BGR24,# Color format of captured video framestransfer_mode=TransferMode.LOW_LATENCY,num_lines_per_chunk=64# has effect only in low latency mode)Then create aProCaptureDevice(orMockProCaptureDevicefor testing on a system without a grabber) configured with
your chosen settings:frompymagewellimportProCaptureDevicedevice=ProCaptureDevice(settings=device_settings)Then create aProCaptureDeviceControllerto transfer frames from the device to your PC:frompymagewellimportProCaptureControllercontroller=ProCaptureController(device)Then you can grab frames in a loop using thetransfer_when_ready()method, which will wait until a frame has been
acquired by the device, transfer it from the device to the PC, and return it as aVideoFrameobject. This is a
blocking call.whileTrue:frame=controller.transfer_when_ready()VideoFrameprovides access to the pixels as a Numpy array with itsas_arraymethod. It also provides access to
timestamps (datetime.datetime) describing the frame acquisition process:t1=frame.timestamps.buffering_started# time at which frame started being written to the hardware bufferbuffert2=frame.timestamps.buffering_complete# time at which frame was completely written to the hardware buffert3=frame.timestamps.transfer_started# time at which the software started transferring the frame to PC memoryt4=frame.timestamps.transfer_complete# time by which the whole frame had arrived in PC memoryIn TIMER and NORMAL transfer modes, transfer starts after the full frame has been written to hardware buffer. In
LOW_LATENCY transfer mode, transfer starts while the frame is still being written to hardware memory. This will be
reflected in the timestamps.
Package: pymagi
pymagiDescription:pymagiis a python based client forCyberChefAPI server.pymagiis used to bake cyberchef recipies in python program.Dependencies:You need to run CyberChef API server in the background for pymagi to work.https://github.com/gchq/CyberChef-server#installing- Visit here to know the installation of cyberchef server.Python libraires ==> [requests , json ]Recipies:Currentlypymagican handle the following recepies.- base64 encode/decode 
- morse encode/decode
- base85 encode/decode
- braillie encode/decode
- binary encode/decode
- octal encode/decode
- base32 encode/decode
- base58 encode/decode
- base62 encode/decode
- url encode/decode
- html encode/decodeUsage:Make sure you have python installed on your system.Run the following command.pip install pymagiPython3>>> from pymagi import *
>>> a = morseencode("This_is_test")
>>> a
'- .... .. ... ..--.- .. ... ..--.- - . ... -'
>>> morsedecode(a)
'THIS_IS_TEST'Proof of work:Watch hereAdding extra recipe:Below code is how the package is formed.You can get recipe from cyberchef to create your own function.def exmaple(payload):
	connectioncheck()

	data = json.dumps({"input": payload,"recipe":{"op":"From example","args":["A-Za-z0-9+/=",True]},"outputType":"string"})
	API_ENDPOINT = "http://localhost:3000/bake"
	headers_dict = {"Content-Type":"application/json"}

	# #sending post request and saving response as response object
	r = requests.post(url = API_ENDPOINT, headers=headers_dict,data = data)
  
	# # # # extracting response text 
	value_received = json.loads(r.text)

	value = value_received['value']

	return valueContributionThis is an open source project. Any contribution would be greatly appreciated!
Package: pymagicc
Pymagicc is a Python wrapper around the reduced complexity climate modelMAGICC6. It wraps the CC-BY-NC-SA licensedMAGICC6 binary. Pymagicc itself is AGPL licensed.MAGICC (Model for the Assessment of Greenhouse Gas Induced Climate Change)is widely used in the assessment of future emissions pathways in climate policy analyses,e.g. in the Fifth Assessment Report of theIntergovernmental Panel on Climate Change or to model the physical aspects of climate change in Integrated Assessment Models (IAMs).Pymagicc makes the MAGICC model easily installable and usable from Python and allows for the easy modification of all MAGICC model parameters and emissions scenarios directly from Python.In climate research it can, for example, be used in the analysis of mitigation scenarios, in Integrated Assessment Models, complex climate model emulation, and uncertainty analyses, as well as in climate science education and communication.Seewww.magicc.organdMeinshausen et al. 2011for further information.
Package: pymagick
PY-MAGICK 🪄✨pymagickis a Python module designed to facilitate file manipulation and usage in various formats. The module provides functionalities for reading, writing, and manipulating files of different types, including CSV, JSON, XML, and more. This project aims to offer an intuitive and efficient interface for working with data stored in files, providing powerful tools for common data manipulation operations.Key Features ⚔️File Reading and Writing:The module provides functions to read and write data in files of various formats, including CSV, JSON, XML, etc.Data Manipulation:It allows performing data manipulation operations on files programmatically, such as adding, removing, or modifying data.File Formating: Brings an easy way to format a file at the moment you write it, even after.Intuitive Interface:Offers an intuitive and easy-to-use interface for Python developers, enabling efficient file operations.Support for Various File Formats:In addition to CSV, the module supports file manipulation in a variety of formats, making it highly versatile and useful for a range of applications.Installation 🛠️You can install the module using pip:> pip install pymagickExample Usage 💻Full info example tester file hereTESTER.pyimportosimportpymagickdeftest_handling(file_format,data):output_folder='test-rubish'ifnotos.path.exists(output_folder):os.makedirs(output_folder)output_file=os.path.join(output_folder,f"test{file_format}")print(f"Testing{file_format.upper()}file handling...")file_data=pymagick.convert(data,file_format)print(f"{file_format.upper()}data:")print(file_data)pymagick.write(file_data,output_file)print(f"{file_format.upper()}file '{output_file}' created.")print(f"Formatting{file_format.upper()}file...")pymagick.opformat(output_file)print(f"{file_format.upper()}file formatted.\n")if__name__=="__main__":data={"employees":[{"name":"John","age":30,"city":"New York"},{"name":"Alice","age":25,"city":"Los Angeles"},{"name":"Bob","age":35,"city":"Chicago"}]}test_handling('.csv',[['Name','Age','City'],['John',30,'New York'],['Alice',25,'Los Angeles'],['Bob',35,'Chicago']])test_handling('.json',data)test_handling('.xml',data)...Quick Solve Methods 🏃‍♂️💨Quick Solve:importpymagick"""Quickest way to perform file operations using pymagick module!"""# Example: Read CSV filedata=pymagick.read('data.csv')# Example: Write data to a CSV filepymagick.write('output.csv',data)# Example: Append data to a CSV filepymagick.append('output.csv',new_data)# Example: Convert data to JSON formatjson_data=pymagick.convert(data,'.json')# Example: Format JSON filepymagick.format('output.json')Contribution 🤝Contributions are welcome! If you'd like to contribute to this project, please follow these steps:Fork the repositoryCreate a branch for your new feature (git checkout -b feature/new-feature)Make your changes and commit (git commit -am 'Add new feature')Push the branch (git push origin feature/new-feature)Open a Pull RequestLicenseThis project is licensed under theMIT License.
Package: pymagico
PyMagicLocalexport PYTHONPATH=/path/to/pymagic:$PYTHONPATHDockerBuid localdevelopmentdocker imagebash development.shRundevelopmentimage with local sourcesudo docker run \
  -it \
  --name pymagic --rm \
  -p 5000:5000 \
  -v /home/ermiry/Documents/Work/magic/pymagic:/home/pymagic \
  -e RUNTIME=development \
  -e PORT=5000 \
  -e CERVER_RECEIVE_BUFFER_SIZE=4096 -e CERVER_TH_THREADS=4 \
  -e CERVER_CONNECTION_QUEUE=4 \
  ermiry/pymagic:development /bin/bashHandlepymagicmoduleexport PYTHONPATH=$pwd:$PYTHONPATH
Package: pymagicstrip
pymagicstripPurposeMinimal python library for controlling LED controllers that use the MagicStrip iOS/Android app. These are inexpensive, white labeled controllers available on Amazon, AliExpress, etc.The firmware on these devices is terrible so feature support is spotty.Device SupportThis library only supports RGB LED strips that appear in the MagicStrip app under the name "HTZM". RGBW, RGBWW, etc. devices are not currently supported.Feature SupportFeatureRead PropertySet PropertyNotesPower✅⚠️Device firmware does not have discrete on and off commands. This library can only toggle state.Brightness✅✅Color🚫✅Effects🚫✅Wetechnicallycan read this property, but the device does not report whether it is in solid color mode or effect mode, so the report is useless.Effect Speed🚫✅(See above.)Sound / Music Mode🚫🚫UseThis library is based on the pythonbleaklibrary and does not abstract/wrap all features. You must use bleak directly alongside pymagicstrip.For usage examples, seehttps://github.com/elahd/ha-magicstrip. (Apologies for the lack of clear examples here.)CreditPymagicstrip is heavily based on elupus'Fjäråskupan Bluetooth Control library.MIT LicenseCopyright (c) 2022 Elahd Bar-ShaiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pymaging-psd
This module provides basic PSD support forPymaging.
The license is MIT.Installationpip install pymaging-psdThis module requirespsd-tools,packbitsanddistribute.ContributingDevelopment happens at github and bitbucket:https://github.com/kmike/pymaging-psdhttps://bitbucket.org/kmike/pymaging-psdThe main issue tracker is at github:https://github.com/kmike/pymaging-psd/issuesFeel free to submit ideas, bugs, pull requests (git or hg) or regular patches.Please note that pymaging-psd is a simple wrapper forpsd-toolsand
does almost nothing: it just registers the image format and provides
a distribute entry point. If something doesn’t work, this is likely a bug inpsd-tools(or maybe inPymaging) and should be reported to the
appropriate bug tracker.