Saravanan666/pypi-org huggingface dataset:
Package: pylef
# pylefCompilamos aqui as bibliotecas de aquisição de dados utilizados nos cursos do Laboratório de Ensino de Física (LEF) do Instituto de Física Gleb Wataghin, UnicampA idéia deste projeto é criar drivers para comunicação com instrumentos utilizados nos cursos do IFGW.Os drivers são implementados utilizandos classes do Python. A comunicação é realizada através do VISA (Virtual Instrument Software Architecture), em particular da biblioteca PyVISA.# RequerimentosO pylef é construído em cima dos seguintes módulos:1. pyvisa2. numpy4. pandaspara instalá-los vá até um prompt de comando como administrador e execute o seguinte comandopip install pyvisa numpy pandas-------------------------# InstalaçãoO pylef também pode ser instalado pelo pip. Abra um prompt como administrador e execute o seguinte comandopip install pylef-------------------------# Instrumentos Suportadososciloscópio TekTronix TBS1062.* [Página do instrumento no fabricante Tektronix] (http://www.tek.com/oscilloscope/tbs1000-digital-storage-oscilloscope-manual)gerador de funções BK 4052.* [Página do instrumento no fabricante BK precision]( http://www.bkprecision.com/products/signal-generators/4052-5-mhz-dual-channel-function-arbitrary-waveform-generator.html)
Package: pylegacy
pylegacyThis library aims to provide backports from Python newer versions into
abandoned Python versions.Thepylegacypackage tree structure resembles that of the Python
standard libraries, i.e.pylegacyconsists ofpylegacy.abc,pylegacy.builtins,pylegacy.os, and so on. If a backport is
available for a piece of missing functionality, it can be used by
importing the functionality from thepylegacynamespace.For example,os.makedirsin Python 2.7 lacks theexist_okargument,
first introduced in Python 3.2. To enable this functionality, one would
replace the following failing code snippet:importosos.makedirs("example_folder",exist_ok=True)# Traceback (most recent call last):#   File "<stdin>", line 1, in <module># TypeError: makedirs() got an unexpected keyword argument 'exist_ok'with the following working code snippet:frompylegacyimportosos.makedirs("example_folder",exist_ok=True)LicenseThepylegacypackage is released under theMITlicense (see theLICENSEfile):Copyright (c) 2021-2024 Víctor Molina García

Permission 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.Significant portions of thepylegacypackage are derivative work of
the Python standard libraries. The Python source code is released under
the terms of thePSF-2.0license and is Copyright (c) 2001-2022 Python
Software Foundation, All rights reserved. A copy of thePSF-2.0license can be found in theLICENSE.PSF-2.0file.
Package: pylegend
PyLegend-- Library is under active development --PyLegend is part ofLegenddata management platform suite. It is a python client library which enables easy and streamlined integration of python clients with Legend ecosystem, providing interactive query building and push-down execution capabilities.Build from sourcePyLegend requires Python 3.8 or higher. We usePoetrytool for dependency management and packaging. To install poetry, follow instructionshere.Runpoetry installto install dependencies. If you intend to contribute, install dev dependencies using the commandpoetry install --with dev.ContributingFor any questions, bugs or feature requests please open anissue.To submit a contribution:Fork it (https://github.com/finos/pylegend/fork)Create your feature branch (git checkout -b feature/fooBar)Read ourcontribution guidelinesandCommunity Code of ConductCommit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestNOTE:Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool (orEasyCLA). Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.Need an ICLA? Unsure if you are covered under an existing CCLA? Emailhelp@finos.orgLicenseCopyright 2023 Goldman SachsDistributed under theApache License, Version 2.0.SPDX-License-Identifier:Apache-2.0
Package: pylegendtestdata
pylegendtestdataTiny Python package to accessLEGEND test data.Install (with pip):$python-mpipinstallpylegendtestdataUsage:>>>fromlegendtestdataimportLegendTestData>>>ldata=LegendTestData()# clone legend-exp/legend-testdata below /tmp>>>ldata.checkout("968c9ba")# optionally checkout a specific version>>>ldata.get_path("orca/fc/L200-comm-20220519-phy-geds.orca")# get absolute path to test file'/tmp/legend-testdata-gipert/data/orca/fc/L200-comm-20220519-phy-geds.orca'>>>ldata.reset()# checkout default branch (main)This Python package layout is based onpyproject-template.
Package: pyLegoMario
pyLegoMariopip install pyLegoMariopyLegoMario is a script that connects to Lego Mario and reads its acceleromter,
tile sensor, and pants data.
To connect, you have to turn Mario on and then press the Bluetooth Button.
See mario_sample.py for a nice sample.
To disconnect you have to await Mario.disconnect() or await Mario.turn_off(),
as well as set Mario.autoReconnect = FalseTL;DR; "just show me how to use it!"The BasicsfrompyLegoMarioimportMario,MarioWindow,run# Initialize Mariomario=Mario()# Create GUIMarioWindow(mario)# call run() at the end of your program to keep the asyncio loop runningrun()Use Mario in Your Own Programs With Callback Functionsdefmy_pants_hook(mario:Mario,powerup:str)->None:print(f"I'm wearing{powerup}pants!")mario.add_pants_hook(my_pants_hook)Use Mario as a Controller in Pygame!importpygamefrompyLegoMarioimportPygameMario,AsyncClockfrompyLegoMarioimportACC_EVENT,PANTS_EVENT,RGB_EVENTpygame.init()mario=PygameMario()# use AsyncClock instead of pygame.time.Clockclock=AsyncClock()screen=pygame.display.set_mode(1200,600)font=pygame.font.SysFont(None,48)whileTrue:clock.tick()pygame.display.update()foreventinpygame.event.get():ifevent.type==RGB_EVENT:screen.fill((0,0,0))# write the current camera value onto the screentext=font.render(event.value,True,(255,255,255))screen.blit(text,(10,10))# no need to call run() here, AsyncClock handles thisYou Can Do a Lot More!Sample scripts can be found in theGithub RepositoryTweet at me:@JackomatrusOn Windows you will need Python 3.9 or higher for Bluetooth sockets to work properly.I tested this on Mac and Windows. I have not tested this on Linux.
Package: pylegos
This project is designed to make building python applications to be used in enterprise systems.
There are many frameworks that exist for creating python web applications and/or APIs using python.  However,
the needs of enterprise level applications are often not met by these frameworks. Namely:API level calls for all operationsCLI to perform automated/scripting tasks against the applicationPyLegos borrows many of the concepts used by other application frameworks.  The framework is somewhat opinionated.  It
currently requires a particular file structure.  In future releases we hope to eliminate this requirement so that the
structure can be adjusted to meet the style of the development team.
Package: pylem
Morphological analyzer for Russian, English and German languages.This is a python wrapper for C++ morphology library that was created in 2000 (many years ago)
for websiteaot.ru.  The original library was written in C++, so we have to
compile it and integrate with python usingpybind11.
The dictionaries are rather outdated, but I use them for some modern projects,
that's why I decided to share the project with other people.License is MIT.The project is distributed in (sources)[https://github.com/sokirko74/pylem], you have to install cmake and modern C++ (17)
compiler to your workstation.InstallNormally you could install the project withpython -m pip install pylembut if it does not work install it using the following steps:download and unpack sourcesrun python setup.py installUsing the libraryTo search wordmotherin the English dictionary one should
write the following code:frompylemimportMorphanHolder,MorphLanguageh=MorphanHolder(MorphLanguage.English)#load dicts from diskprint(h.is_in_dictionary("mother"))Other usages are covered byunittests
Package: pyLemma
# About
Lemma is an ElectroMagnetics Modelling API. Lemma is developed in the hopes that it will be helpful for academics, industry, and anyone else interested in geophysical modelling.Written in C++Test drivenFlexibleFastObject orientedPython bindingsVTK integration## Git
Lemma is hosted on several Git instances. Our main instance runs on Gitea and is athttps://lemmasoftware.org. The project is also mirrored on GitHub.## Team
Lemma is and has been developed by several organisations and people, including: University of Utah, Colorado School of Mines, US Geological Survey.## Platforms
Lemma is tested on Linux (Ubuntu & Arch), Mac OSX and Windows (7&10) platforms.
If you have used Lemma on something else, please let us know.## Getting involved
* Testing code
* Improving documentation
Package: pylemmy
pylemmyTable of ContentsInstallationUsageLicenseInstallationpip install pylemmyUsageSimple example of running a Python function on new posts, as they are created.frompylemmyimportLemmydefprocess_post(post):...lemmy=Lemmy(lemmy_url="http://127.0.0.1:8536",username="lemmy",password="lemmylemmy",user_agent="custom user agent (by u/USERNAME)",)community=lemmy.get_community("test")forpostincommunity.stream.get_posts():process_post(post)Licensepylemmyis distributed under the terms of theMITlicense.
Package: pylemon8
Lemon8 Wrapper for PythonA lightweight, zestful Python library for integrating with the Lemon8 API, providing an intuitive interface for developers to access the Lemon8 social media platform.Getting StartedInstallationPippip install pylemon8From sourcehttps://github.com/shotnothing/pylemon8.gitpythonsetup.pyinstallExample Usagefromlemon8importLemon8lemon8=Lemon8()print(lemon8.feed('foryou').get_items())LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: pylems-py2xml
PyLEMS extension for code traversalThis package is created for code traversal and model's equations and parameters storage. The idea behind it is toautomatically traverse Python code and find the models and its parameters. Then, depending on the found model,alter its default values with the newly-found parameters. Next, create a PyLEMS model supplementing the new values.Finally, create the XML file(s) in the specified folder.Currently supported modelsHindmarshRoseGetting startedSimply fork the project or run the following command:pip install pylems-py2xmlAfter that, the steps are pretty straightforward. Run the following:import pylems_py2xml



pylems_py2xml.main.XML(input_path='examples/50healthy_code.py', output_path='examples')A couple of arguments to be aware of:input_path: path to Python code that includes models (e.g., HindmarshRose, WongWang)output_path: path to the folder where to store results. By default, everything gets stored in theexamplesfolder.units:uid:app:store_numeric:suffix:You can follow the instructionsin this Jupyter notebookWalk-throughHere is an example taken fromexamples/50healthy_code.py:oscilator = models.ReducedSetHindmarshRose(r=[0.006], a=[1.0], b=[3.0], c=[1.0], d=[5.0], s=[4.0], xo=[-1.6], K11=[0.5],

                                           K12=[0.1], K21=[0.15], sigma=[0.3], mu=[2.2],

                                           variables_of_interest=["xi", "alpha"])
Package: pylena
Pylena image processing libraryPylena is the Python interface to the modern C++ image processing libraryPylene. Its aim is to fill the three following requirements:InteractivityGenericityEfficiencyMany image processing libraries succeed to fill these requirements but they are
still limited by the static nature of the C++ language, where the genericity,
based ontemplates, is resolved at compile time. Thus, the goal of this library is to tackle this problem.Supported Python versionCurrently, Pylena is tested and provides wheel for the following Python version:CPython 3.8CPython 3.9CPython 3.10CPython 3.11InstallationPylena is available on thePyPIserver and can be simply
installed withpipby executing the following
command:$ pip install pylenaDocumentationThe documentation is availablehere.ContributingIf you find any bug or have any suggestions, feel free to create a new issuehereor send an email tobaptiste.esteban@epita.fr.LicenceMozilla Public License Version 2.0
Package: pylenium
This is a wrapper around the Selenium Webdriver Python API, which provides a more Pythonic interface. The main differences are in the element selectors and the condition API. Pylenium allows you to dodriver.find_element(css='body')instead ofdriver.find_element(By.CSS_SELECTOR, 'body').Other differences:There is alink_textselector. The conditions and WebElements have also been wrapped to support the new selectors.There are a number of new conditions available such asanyandnot_or_gonethat can be composed with other conditions.It is possible to use normal python callables as conditions.
Package: pylenm
PyLEnMThis package aims to provide machine learning (ML) functions for performing comprehensive soil and groundwater data analysis, and for supporting the establishment of effective long-term monitoring. The package includes unsupervised ML for identifying the spatiotemporal patterns of contaminant concentrations (e.g., PCA, clustering), and supervised ML for evaluating the ability of estimating contaminant concentrations based on in situ measurable parameters, as well as the effectiveness of well configuration to capture contaminant concentration distributions. Currently, the main focus is to analyze historical groundwater datasets and to extract key information such as plume behaviors and controlling (or proxy) variables for contaminant concentrations (Schmidt et al., 2018). This is setting a ground for integrating new technologies such as in situ sensors, geophysics and remote sensing data.This development is a part of the Advanced Long-Term Monitoring Systems (ALTEMIS) project. In this project, we propose to establish the new paradigm of long-term monitoring based on state-of-art technologies – in situ groundwater sensors, geophysics, drone/satellite-based remote sensing, reactive transport modeling, and AI – that will improve effectiveness and robustness, while reducing the overall cost. In particular, we focus on (1) spatially integrative technologies for monitoring system vulnerabilities – surface cap systems and groundwater/surface water interfaces, and (2) in situ monitoring technologies for monitoring master variables that control or are associated with contaminant plume mobility and direction. This system transforms the monitoring paradigm from reactive monitoring – respond after plume anomalies are detected – to proactive monitoring – detect the changes associated with the plume mobility before concentration anomalies occur.The latest package can be downloaded from:https://pypi.org/project/pylenm/More information on the project can be found here:https://altemis.lbl.gov/ai-for-soil-and-groundwater-contamination/--Journal Publication:PyLEnM: A Machine Learning Framework for Long-Term Groundwater Contamination Monitoring StrategiesAurelien O. Meray, Savannah Sturla, Masudur R. Siddiquee, Rebecca Serata, Sebastian Uhlemann, Hansell Gonzalez-Raymat, Miles Denham, Himanshu Upadhyay, Leonel E. Lagos, Carol Eddy-Dilek, and Haruko M. Wainwright
Environmental Science & Technology 2022 56 (9), 5973-5983
DOI: 10.1021/acs.est.1c07440--Demonstration notebooks:1 – Basics2 - Unsupervised learning3 – Water Table Estimation & Well Optimization4 – Tritium Spatial Estimation5 – Proxy Estimation (SC~Tritium)--Demonstration data:The data used in the demonstration notebooks above can be downloadedhere.--Contributors:Aurelien MerayHaruko WainwrightHimanshu UpadhyayMasudur SiddiqueeSavannah SturlaNivedita Patel
Package: pyLense
This is a simple url/link checker APIMade with ❤ using Python3 by Neural ProgrammersUsage and Examples#first we have to import the packages.importpyLense
frompyLense.LenseimportNeuralsurl=" "# your messsage hereep=Neurals(url)result=ep.check()print(result)# Yes -- if the message is url/link --# Nah -- if the message is not a url --#exampleurl="https://t.me/Neuralp"ep=Neurals(url)#pass the the argument hereresult=ep.check()print(result)Join us on telegram to get updatedChannel🙏👉🖤Group
Package: pyleo
PyLeo - Unofficial Lingualeo API python libraryInstallationpipinstallpyleoExample usageCLI tool for upload dictionary (ororo.tv_dict*.csv) from Ororo.tv to LinguaLeopyleoupload-fororo.tv_dict.csv-uyour@email.mail-pYour_passwordWhere:-f- Ororo.tv  dictionary filename-u- LinguaLeo username-p- LinguaLeo passwordImport as Python moduleimportjsonfrompyleo.apiimportLeoApiapi_instance=LeoApi('your@ema.il','password')ifapi_instance.need_auth:api_instance.auth()# Authorize user# add word to LinguaLeo user dictionaryapi_instance.add_word('placebo','Имитация лекарства')# get word translation from LinguaLeotranslation=json.loads(api_instance.get_translations('fake').decode('utf-8'))print(json.dumps(translation,indent=4,sort_keys=True,ensure_ascii=False))sample API response{"_hash":"0000.0","error_msg":"","experienceSkills":null,"meatballs":55,"notify_count":2,"questData":{"leoClothing":0,"meatballs":55,"task_actions_finished":[[1,1]],"task_num":1,"task_num_prev":0,"task_state":2},"userdict3":{"is_user":false,"lang":{"current":"ru","target":"en"},"lemmas":[{"lemma_id":15421,"lemma_value":"FAKE","speech_part":{"code":"Noun","name":"существительное","short_name":"сущ."},"speech_part_id":7},{"lemma_id":15421,"lemma_value":"FAKE","speech_part":{"code":"Verb","name":"глагол","short_name":"глаг."},"speech_part_id":12}],"sound_url":"https://audiocdn.lingualeo.com/v2/1/15421-631152008.mp3","transcription":"feɪk","translations":[{"is_blame":0,"is_owner":false,"is_user":0,"rating":1,"rating_avg":0.206543,"rating_user_vote":0,"source":"","speech_part_id":0,"star":1,"translate_id":29600,"translate_value":"подделка","translate_votes":56991},{"is_blame":0,"is_owner":false,"is_user":0,"rating":0,"rating_avg":0.2,"rating_user_vote":0,"source":"","speech_part_id":0,"star":3,"translate_id":29604,"translate_value":"прикидываться","translate_votes":14627},{"is_blame":0,"is_owner":false,"is_user":0,"rating":0,"rating_avg":0.2,"rating_user_vote":0,"source":"","speech_part_id":0,"star":3,"translate_id":2630670,"translate_value":"мошенничать","translate_votes":9581},{"is_blame":0,"is_owner":false,"is_user":0,"rating":0,"rating_avg":0.2,"rating_user_vote":0,"source":"","speech_part_id":0,"star":3,"translate_id":135960,"translate_value":"фальшивый","translate_votes":4921},{"is_blame":0,"is_owner":false,"is_user":0,"rating":0,"rating_avg":0.2,"rating_user_vote":0,"source":"","speech_part_id":7,"star":3,"translate_id":4021671,"translate_value":"подделка","translate_votes":3951}],"word_count":44926,"word_id":15421,"word_speech_parts":{"12":{"code":"Verb","name":"глагол","short_name":"глаг."},"7":{"code":"Noun","name":"существительное","short_name":"сущ."}},"word_top":3,"word_type":1,"word_value":"fake"},"utcServerTime":1551600000}
Package: pyleptonica
This is a thin ctypes wrapper over the Leptonica
library. (http://www.leptonica.org)
Almost all functions are exposed to Python, correctly anotated, and data
structures used in Leptonica are available as classes from Python.This Library is licensed under the Lesser GNU Public License Version 3 or Later.Leptonica data structures are available as authomaticaly generated Python objects,
transparently calling Leptonica’s constructors and Detrutors when those
exist.Threfore for a new image object (represented in Leptonica as a “PIX” structure).
one just jave to do:
image = leptonica.PIX(640, 480,32)
This will have the same effect than manually calling the constructor as in:image = leptonica.functions.pixCreate(640,480,32)It transposes Leptonica’s extensive inline documentation to Python’s docstrings,
so it is possible to check for help and parameter types
from the Python interpreter, using pydoc or from an IDE.However, whenever a function takes pointers or arrays of pointers as
parameters, these will have to be created by hand using ctypes
facilities before calling the functions. (Except for pointers
to Leptonica data structures: these are translated into fairly high-level
Python objects).This is on an already usable stage, although one might expect some API changes and
inclusion of more “pure python” utility functions. The main behavior of
the Leptonica objetcs should remain the same.To run it, you might not need to have Leptonica source files:
I versioned the generated files as well so that most people just have
to copy the .py files around. If you want to hack the code, or generate
wrappers for other versions of Leptonica, you have to execute
the leptonica_header_parser.py and leptonica_function_parser.py as stand
alone programs, after tunning a config.py from the config_remplate.py
file.There are at this time, two utility functions to convert
Leptonica images to and from Python Imaging Library (PIL) Images.Also, although I have not tested this under windows or Mac OS– it
probably need some tweaks to run (mostly finding the correct libraries
with ctypes) - but otherwise it should plainly work.Have fun!js
-><-