Saravanan666/pypi-org huggingface dataset:
Package: eso-names
eso_names: Elder Scrolls Universe Names Generator and recommendorIntroduction:Theeso_namesPython package provides two distinct functions,names_generatorandnames_recommendor, designed to assist players and modders of Elder Scrolls universe games in generating character names that are lore-friendly and well-suited for the game's universe.Features:Character Name Generation:Thenames_generatorfunction allows users to generate character names based on specified parameters such as gender, category (race), starting letter, and quantity.Example Usage:fromeso_names.mainimportnames_generatorgenerated_names=names_generator(gender='male',category='Argonian',start_letter='A',quantity=5)Output:['Am-Sora', 'AxKela', 'Ashir-Me', 'Asabilhvoy', 'Az-Katus']Character Name Recommendation:Thenames_recommendorfunction recommends character names by leveraging a database containing 22,000 names from all Elder Scrolls games.Users can specify parameters such as gender, category (race), starting letter, quantity, and similarity thresholds to tailor recommendations.Example Usage:fromeso_names.mainimportnames_recommendorrecommended_names=names_recommendor(gender='male',category='Nord',start_letter='S',quantity=5,similarity_threshold=5,similar_to='Ragnar')Output:['Skeggr', 'Safrid', 'Saergar', 'Svenvar', 'Sigaar']Dependencies:Thenames_generatorfunction requires the loading of the RNN class from theeso_names.raw_modelmodule. Ensure that the RNN class is properly imported before using the generator.fromeso_names.raw_modelimportRNNImportant Notes:The character name generator utilizes a character-level Recurrent Neural Network (RNN) trained on a dataset containing names from all Elder Scrolls games. While it serves as a valuable tool for inspiration, generated names may not always be optimal.Project Goals:The primary goal of this project is to facilitate Elder Scroll games players in creating lore-friendly character names. Additionally, it aims to provide modders with a tool to generate fitting names for their in-game creations.Getting Started:Install theeso_namespackage using the following command:pip install eso_namesImport the required functions in your Python script or Jupyter notebook:fromeso_names.mainimportnames_generator,names_recommendorUtilize the functions as demonstrated in the examples above to generate or recommend character names.Contributing:Contributions to the project are welcome! If you encounter issues or have suggestions for improvements, feel free to open an issue or submit a pull request on theGitHub repository.Disclaimer:This project is not affiliated with Bethesda Softworks or any of the Elder Scrolls game. It is an independent tool created byShubham Patel.License:This project is licensed under theMIT License.Enjoy generating lore-friendly names for your Elder Scrolls characters and creations!
Package: esopipeline
Automaticaly run a data processing pipeline by European Southern Observatory.The function esopipeline will take an instrument descriptor (e.g. gravity)
and run the various esorex recipes on a set of raw frames and static
calibration files.It is equivalent to esoreflex but in the console.INSTALL REQUIREMENTSYou need a
(1) a relatively recent CPL and esorex installed
(2) the instrument recipes installed for: GRAVITY.
(3) a recent python 3Only for GRAVITY for the moment…
Package: esoterrible
Esoterrible 🤔The Worst Code I've Ever WrittenA while ago some friends and I brainstormed some features we would include in a bad, bad,
incredibly bad esoteric programming language. I’ve had a go at implementing some of them
as a Python module and I can confidently say it’s the worst code I’ve ever written.Read MoreEsoterrible can be installed through Pip. Tested with CPython3.6.5and3.7.1pip install esoterribleexample_usage.pyhas examples of the horrible features included.Feel free to throw some garbage PRs onto this fire.
Package: esovalue
ESO-valueReceiving stock options from your company? Wondering what they are worth? ESO-value calculates the value of
Employee Stock Options based on the Hull-White model[1][2].
This library is used in theESO valuation app.InstallationRunpip install esovalueUsagefromesovalue.esoimportvalue_esovalue_eso(strike_price=50,stock_price=50,volatility=0.3,risk_free_rate=0.075,dividend_rate=0.025,exit_rate=0.03,vesting_years=3,expiration_years=10,iterations=1000,m=3)Description of the parameters:strike_price		- Strike price
stock_price		- Current price of the underlying stock
iterations		- More iterations is more precise but requires more memory/CPU
risk_free_rate		- Risk-free interest rate
dividend_rate		- Dividend rate
exit_rate		- Employee exit rate (over a year)
vesting_years		- Vesting period (in years)
expiration_years	- Years until expiration
volatility		- Volatility (standard deviation on returns)
m			- Strike price multiplier for early exercise 
                          (exercise when the strike_price*m >= stock_price)References[1]: Hull, J, and White, A:  How to Value Employee Stock Options Financial Analysts Journal, Vol. 60, No. 1,
January/February 2004, 114-119.[2]: Hull, J. (2018). Options, Futures, and Other Derivatives (Global Edition).
Package: esp32-machine-emulator
ESP32 Machine EmulatorThe purpose of this package is to enable you to test-drive (TDD) your
MicroPython code in an IDE running on your computer.  It seems a lot
of people are test-driving python, but not many are test-driving MicroPython.
That’s understandable, since many MicroPython projects are simple, and
emulating real hardware in a test environment is difficult.The typical approach to emulating hardware is to replicate the hardware
programming interface (the API).  As of this writing, this library emulates
a very small slice of the ESP32 API.  I don’t know if the library will mature.
Hopefully I’ll either flesh it out, someone else will take over, or a
replacement will emerge.If you are unfamiliar with the benefits of TDD or test-driving python, I
encourage you to take some time to Google and learn.  I prefer the pytest
library over the unittest library that comes with python3, but you are free
to test as you choose.Getting StartedTake a look at the examples folder in the GitHub repository.  Like I said,
as of this writing, the library emulates a very small slice of the API,
so if you don’t see an example for something you want to do, the feature
is not available.  Feel free to contact me or fork the repo and send me
a pull request for the feature.Here is the github repo for this project:https://github.com/tflander/esp32-machine-emulatorHere is the project on PyPi:https://pypi.org/project/esp32-machine-emulatorNote that the examples are only in the GitHub repo, and are not part of the
PyPi distribution.Supported FeaturesEmulating sending a GPIO digital out signal, and verifying the signal value.Extending the time library to support sleep_ns() and sleep_ms()Emulating the read pulse value of an input pin, such as that received by
the echo pin of an HCSR04 Ultrasonic Distance Sensor.Full emulation of HCSR04 Ultrasonic Distance Sensor in examples
Package: esp32-magnet
ESP magnetESP32 firmware to trigger the electromagnet.ConnectionGPIO_4<-->DOUT_PINUsageConnect the serial port of ESP32 dev board to a computer, then create a serial connection with following configurationItemValueBaudrate115200Stop1ParityNoneControlNoneAfter the establishment of connection, use following command to control the boardFormatFunctionenablestart the magnetis_enabledjudge if magnet is enableddisabletrigger for onceis_disabledjudge if magnet is disabledrestartrestartget_statuscheck the status
Package: esp32-micropython-i2cLCD
I2C LCD micropython esp32importfrom LCD.lcd import LCD1602

LCD = LCD1602(scl=12, sda=14)
#LCD1602(scl, sda, num_lines=None, num_columns=None, freq=None):printLCD.puts('teste',x=0,y=1)
#y 0~1
#x 0~15print txtfrom time import sleep

LCD.println(['1','2','3','4','5'])

x = 2
while True:
    sleep(1)
    LCD.println(linha=x)
    x+=1

#linha == line for txt(list)for txtfrom time import sleep

LCD.println('1 \n 2 \n 3 \n 4 \n 5')

x = 2
while True:
    sleep(1)
    LCD.println(linha=x)
    x+=1print choicesfrom time import sleep

LCD.escolhas('txtprincipal', 0, ['1','2','3','4','5'])

x = 1
while True:
    sleep(1)
    LCD.escolhas(posicao=x)
    if x == 3:
        print(LCD.escolhas(select=True))
        break
    x+=1lcd clearLCD.clear()lcd print in lineLCD.putsln(['line 0', 'line 1'])especial charfrom time import sleep

b = bytearray([0x04,0x0A,0x04,0x0A,0x04,0x0A,0x04,0x0A])

LCD.char(0,b)

v = ' 1 \n 2 \n 3 \n 4 \n 5 \n '+chr(0)
# or v = ['1','2','3','4','5',chr(0)]

LCD.println(v)

x = 2
while True:
    sleep(1)
    LCD.println(linha=x)
    x+=1

#linha == line for txt(list)lcd hal backlightLCD.hal_backlight()lcd blinkLCD.brilhe(local=[1,1])
# or lcd not blink LCD.brilhe(False)lcd animation for clear lineLCD.apagarlinha(1)
Package: esp32-test-stubs
esp32-test-stubsSample project for testPEP-561Notice: It is only "proof-of-concept" ofPEP-561package sonot for production use,
package can be deleted in the future.Installationpip3installesp32-test-stubsScriptimportmachinemachine.freq()importesp32esp32.NVS()esp32.wake_on_ext0("Test")fromesp.sub_pkgimportsub_pkg_funsub_pkg_fun()fromesp32.sub_pkgimportsub_pkg_functionsub_pkg_function()importuuid# Points to stdlibuuid.uuid4()# Points to stub (mean partial stub, so extent stdlib)# see uuid-stubs and py.typeduuid.uuid6()importupipupip.cleanup()Stubs possible locationsproject root*.pyifiles<package>-stubswith__init__.pyiseePEP-561<package>-stubs/<sub_package>.pyiseestub-only-packagescustom folder likesrc, marked aspackage = [{ include = "*.pyi" , from = "src"}],
under hood all*.pyiwill be moved into package root during package build.CONS:Not recommendedas custom folder does not recognize as stub source before stub package will pack properly.
Also in*.tar.gzstubs not moved properly, so it led to potential errors during stub recognitionNote all of these variants should be explicitly marked inpyproject.tomlinPoetryseepackagesectionPoetry commandsPreparepoetryconfigrepositories.testpypihttps://test.pypi.org/legacy/
poetryconfigpypi-token.testpypi<TOKEN>

poetryconfigrepositories.pypihttps://upload.pypi.org/legacy/
poetryconfigpypi-token.pypi<TOKEN>Publishpoetrypublish--build-rtestpypi
poetrypublish--build-rpypiLinksPEP-561Real world stubs example (Numpy)Poetry project examplesFootnotes
Package: esp8266.py
esp8266.pyESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial.
Could be running on PC/raspberry pi easily.Dependencypython2.7pySerialHardware wiring (Connect ESP8266-01 to RPI)RX    -> TX      VCC   -> 3.3v
GPIO0            RST
GPIO2            CH_PD -> 3.3v
GND   -> ground  TX    -> RXUsage# initialize# After initialization you could use the default password '11111111' to connect# to wifi 'esp8266.py' and connect port 8080 on 192.168.4.1 through telnet/nc.fromesp8266importESP8266esp01=ESP8266(port="/dev/ttyAMA0",baudrate=115200)# response on data receiving@esp01.on_datadefon_data(data,link_id):print'@@@@@@ data arrived:'print'link id:',link_idprintdataesp01.send("pong!\n",link_id)# send dataesp01.send("hello world\n",'0')TODOWSGI api
Package: espaco-exclusivo-package
Espaço Exclusivo - Ampere Consultoria EmpresarialContem métodos e procedimento para acessar os produtos e serviços oferecidos pela Ampere Consultoria.Acesso sem o pacoteA documentação para acesso direto á API pode ser encontrada em:API EE PostmanInstalação do pacoteO código fonte está disponível para download em:Gitlab Ampere Consultoria.
O pacote pode ser instalado usando o gerenciadorpipdo Pythonpip install espaco_exclusivo_packageDescriçãoEste pacote fornece acesso de forma simplicada à API de produtos da Ampere Consultoria.IndiceFile ViewerMeteorologiaFLUXFLUX AutomaticoFLUX HistoricoFLUX GTFLUX EC46FLUX UploadFLUX PersonalizadoFLUX ENA Diária
Package: espaloma-charge
Espaloma ChargeStandalone charge assignment from Espaloma framework.https://doi.org/10.1039/D2SC02739AInstallation$pipinstallespaloma_chargeExamplesOption0: Assign charges to rdkit molecule.>>>fromrdkitimportChem;fromespaloma_chargeimportcharge>>>molecule=Chem.MolFromSmiles("N#N")>>>charge(molecule)array([0.,0.],dtype=float32)Assign charges to your favorite molecule inOption1: Use withopenff-toolkit(installation required)>>>fromopenff.toolkit.topologyimportMolecule>>>fromespaloma_charge.openff_wrapperimportEspalomaChargeToolkitWrapper>>>toolkit_registry=EspalomaChargeToolkitWrapper()>>>molecule=Molecule.from_smiles("N#N")>>>molecule.assign_partial_charges('espaloma-am1bcc',toolkit_registry=toolkit_registry)>>>molecule.partial_charges<Quantity([0.0.],'elementary_charge')>Option2: Use as Command Line Interface to writeantechamber-compatible charges.$espaloma_charge-iin.mol2-oin.crg
$antechamber-fimol2-fomol2-iin.mol2-oout.mol2-crc-cfin.crgReferenceIf you are using this little tool in your pipeline, please consider citing:@Article{D2SC02739A,
author ="Wang, Yuanqing and Fass, Josh and Kaminow, Benjamin and Herr, John E. and Rufa, Dominic and Zhang, Ivy and Pulido, Iván and Henry, Mike and Bruce Macdonald, Hannah E. and Takaba, Kenichiro and Chodera, John D.",
title  ="End-to-end differentiable construction of molecular mechanics force fields",
journal  ="Chem. Sci.",
year  ="2022",
volume  ="13",
issue  ="41",
pages  ="12016-12033",
publisher  ="The Royal Society of Chemistry",
doi  ="10.1039/D2SC02739A",
url  ="http://dx.doi.org/10.1039/D2SC02739A"}
Package: es-pandas
es_pandasRead, write and update large scalepandasDataFrame  withElasticSearch.RequirementsThis package should work on Python3(>=3.4) and ElasticSearch should be version 5.x, 6.x or 7.x.Installation
The package is hosted on PyPi and can be installed with pip:pip install es_pandasDeprecation NoticeSupporting of ElasticSearch 5.x will by deprecated in future version.Usageimport time

import pandas as pd

from es_pandas import es_pandas


# Information of es cluseter
es_host = 'localhost:9200'
index = 'demo'

# crete es_pandas instance
ep = es_pandas(es_host)

# Example data frame
df = pd.DataFrame({'Num': [x for x in range(100000)]})
df['Alpha'] = 'Hello'
df['Date'] = pd.datetime.now()

# init template if you want
doc_type = 'demo'
ep.init_es_tmpl(df, doc_type)

# Example of write data to es, use the template you create
ep.to_es(df, index, doc_type=doc_type, thread_count=2, chunk_size=10000)

# set use_index=True if you want to use DataFrame index as records' _id
ep.to_es(df, index, doc_type=doc_type, use_index=True, thread_count=2, chunk_size=10000)

# delete records from es
ep.to_es(df.iloc[5000:], index, doc_type=doc_type, _op_type='delete', thread_count=2, chunk_size=10000)

# Update doc by doc _id
df.iloc[:1000, 1] = 'Bye'
df.iloc[:1000, 2] = pd.datetime.now()
ep.to_es(df.iloc[:1000, 1:], index, doc_type=doc_type, _op_type='update')

# Example of read data from es
df = ep.to_pandas(index)
print(df.head())

# return certain fields in es
heads = ['Num', 'Date']
df = ep.to_pandas(index, heads=heads)
print(df.head())

# set certain columns dtype
dtype = {'Num': 'float', 'Alpha': object}
df = ep.to_pandas(index, dtype=dtype)
print(df.dtypes)

# infer dtype from es template
df = ep.to_pandas(index, infer_dtype=True)
print(df.dtypes)

# use query_sql parameter if you want to do query in sql

# Example of write data to es with pandas.io.json
ep.to_es(df, index, doc_type=doc_type, use_pandas_json=True, thread_count=2, chunk_size=10000)
print('write es doc with pandas.io.json finished')
Package: esparto
espartois a Python library for building data driven reports with content
from popular analytics packages.DocumentationSource CodeContributingBug ReportsMain FeaturesCreate beautiful analytical reports using idiomatic PythonGenerate content from:MarkdownPandas DataFramesMatplotlibBokehPlotlyDevelop interactively withJupyter NotebooksShare documents as a self-contained webpage or PDFCustomise withCSSandJinjaResponsiveBootstraplayoutBasic Usageimportespartoases# Do some analysispandas_df=...plot_fig=...markdown_str=...# Create a pagepage=es.Page(title="My Report")# Add contentpage["Data Analysis"]["Plot"]=plot_figpage["Data Analysis"]["Data"]=pandas_dfpage["Data Analysis"]["Notes"]=markdown_str# Save to HTML or PDFpage.save_html("my-report.html")page.save_pdf("my-report.pdf")Installationespartois available fromPyPIandConda:pipinstallespartocondainstallesparto-cconda-forgepoetryaddespartoDependenciespython>= 3.6jinja2markdownBeautifulSoupPyYAMLOptionalweasyprint(for PDF output)LicenseMITDocumentationUser guides, documentation, and examples are available on theproject home page.Contributions, Issues, and RequestsFeedback and contributions are welcome - please raise an issue or pull request
onGitHub.ExamplesIris Report -Webpage|PDF|Notebook
Package: espatools
An open-source Python package for simple loading of Landsat imagery as NumPy arrays.
When downloading Landsat imagery fromUSGS Earth Explorer, the datasets contain
many bands (.tiffiles) and a few metadata files (.txtand.xmlfiles).espatoolsis built to parse the.xmlmetadata file to read all of the bands
for that dataset and provide a convenient and intuitive means of accessing that
metadata along side the raw data in a Python environment.espatoolscan be found onGitHubandPyPI.ConnectionsThe package heavily usespropertiesfor the creation of strongly typed objects in a consistent, declarative way.This package implements a way to convert these datasets to aPyVistadataset (vtkImageData).PVGeohas implemented an interface forespatoolsto read Landsat imagery via XML metadata files. Check out PVGeo’sLandsat Readerfor more details.Getting Startedespatoolsis available fromPyPI$pipinstallespatoolsUsageWe thinkespatoolsis easy to use; give it a try and let us know what you think as this is just the alpha-release!First, checkoutthis Jupyter Notebookfor a demonstration of some simple plotting after reading Landsat imagery in a Python environment.And take a look at the.to_pyvista()method onRasterSetobjects to have a 3D dataset of the imagery in PyVista/VTKThen take a look at theLandsat ReaderinPVGeo’s documentation whereespatoolshas an interface for direct use in ParaView.Example False Colorimportespatoolsimportmatplotlib.pyplotasplt# Create the reader to manage I/Oreader=espatools.RasterSetReader(filename='metadata.xml')# Perform the read and yield a raster setraster=reader.read()# Get an RGB color schemecolor=raster.get_rgb('false_a')# Now plot the false color imageplt.imshow(color)The results of the above code yield the following false color image:You can also view the dataset in 3D usingPyVista:mesh=raster.to_pyvista()mesh.plot(scalars='false_a',rgb=True,cpos='xy')
Package: esp-coredump
esp-coredumpA Python-based utility that helps users to retrieve and analyse core dumps. This tool provides two commands for core dumps analysis:info_corefile- prints crashed task’s registers, callstack, list of available tasks in the system, memory regions and contents of memory stored in core dump (TCBs and stacks)dbg_corefile- creates core dump ELF file and runs GDB debug session with this file. User can examine memory, variables and tasks states manually. Note that since not all memory is saved in core dump only values of variables allocated on stack will be meaningfulInstallationesp-coredumpis a stand-alone utility integrated into ESP-IDF.To install theESP-IDFframework please visit thedocumentation.Examplesesp-coredumpcan be used as a CLI tool as well as separate packageBuildtest_appsfor a target, flash and get a base64 text (test_appsfolder)fromesp_coredumpimportCoreDump# Instantiate the coredump objectcoredump=CoreDump(chip='esp32',core="./test/esp32/coredump.b64",core_format='b64',prog='./test_apps/build/test_core_dump.elf')coredump.info_corefile()#  print the info of the test app corefilecoredump.dbg_corefile()#  run GDB debug session with provided ELF fileDocumentationVisit thedocumentationor runesp-coredump -h.ContributingCode Style & Static AnalysisPlease follow these coding standards when writing code foresp-coredump:Pre-commit checkspre-commitis a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for review.To use the tool, first installpre-commit. Then enable thepre-commitandcommit-msggit hooks:python-mpipinstallpre-commit
pre-commitinstall-tpre-commit-tcommit-msgOn the first commitpre-commitwill install the hooks, subsequent checks will be significantly faster. If an error is found an appropriate error message will be displayed.Conventional Commitsesp-coredumpcomplies with theConventional Commits standard. Every commit message is checked withConventional Precommit Linter, ensuring it adheres to the standard.LicenseThis document and the attached source code are released as Free Software under Apache Software License Version 2.0.
Package: esp-cryptoauth-utility
The python utility helps to configure and provision ATECC608 chip connected to an ESP module. Currently the utility is supported for ESP32, ESP32S3, ESP32C3.The esp-cryptoauth-utility ishosted on github.DocumentationVisit onlineesp-cryptoauth-utility documentationor runsecure_cert_mfg.py-h.LicenseThe License for the project can be foundhere
Package: esp-docs
Espressif Documentation Build SystemEsp-docs is a python based wrapper for the documentation building package Sphinx.It is intended to simplify and extend Sphinx's functionality to better suit what is needed for building documentation for Espressif's development frameworksProvides:Functionality for building documentation for multiple targets (e.g. ESP32 and ESP32-C3) from the same rst source files.Sphinx extensions used at EspressifScripts for deploying docsFor a more in-depth guide on how to install, write, and compile documentation please seeESP-Docs User Guide.