Saravanan666/pypi-org huggingface dataset:
Package: openlut
openlut - OSS tools for practical color management.Dev Repo(Please submit Issues here):https://git.sofusrose.com/so-rose/openlutMirror Repo:https://www.github.com/so-rose/openlutPyPi Package:https://pypi.python.org/pypi/openlutWhat is it?openlut is a practicalcolor management library/toolthat aims to simplify and unify all the various methods of making accurate color transformations.Supported transforms include:1D and 3D LUTsColor MatricesGamma FunctionCDL TransformIt's built on my own color pipeline needs - I needed a simple but close-to-the-math solutions that dealt not with images, but with float arrays.As a tool, its main feature is that it's exceptionally easy to import, transform, and then save not only images, but also transforms.DocumentationDocs can be found athttps://sofusrose.com/openlut. They're a work in progress for now (ColMap is 100% documented).InstallationCheck Versions: Ensure you have Python 3.5+ installed.Get System Dependencies- needing to do this is an unfortunate side effect of PyPi.On Debian/Ubuntu:sudo apt-get install python3-pip gcc libmagickwand-devOn Mac:brew install python3 gcc imagemagickEnsure Core Python Packages are Up To Date: Simply runpip3 install --user -U pip setuptools wheelto do so.Install OpenLUT: Runpip3 install --user openlut.This may take awhile, as it must compile the C++ Extension.DevelopmentClone the Repository: This is easy enough to do - just rungit clone https://www.github.com/so-rose/openlut.Compile Openlut: Again, very easy - just run./build <TARGET>, where<TARGET>is some build target as listed in./build -l.TroubleshootingPip doesn't work: If Python is installed, but pip won't run, try runningcurl https://bootstrap.pypa.io/get-pip.py | python3Doesn't work on Windows: I'm unsure of how pip compiles C Extensions on Windows, and have little willpower to investigate. If
you need Windows support, PM me and I'll see what I can do about it.Something's broken...: There may be several bugs. If you start an Issue, then I can investigate.I Want To Contribute!Contributions are welcome! Let me know if you have any questions or issues.
Package: openly-core
OpenlyOpenly is a Python API wrapper for simple access to the Rently Smart Home API.DISCLAIMER: Rently is a registered trademark of Consumer 2.0 Inc., which I'm not affiliated to.
This is not an official wrapper.Rently provides a publicly available documentation, which was very helpful to create this library:Rently API DocumentationShoutout to Rently's engineering team who provide us with very interesting reads on their blog:Rently Engineering BlogInstallation:globe_with_meridians:Coming soon- For now, clone the repo and install from local files usingpiporpoetryUse the package managerpipto install the library.pipinstallopenly-coreUsagefromopenlyimportRentlyCloudcloud=RentlyCloud("BASE URL HERE","BASE LOGIN URL HERE")# Login to retrieve your tokencloud.login(username,password)# Set username and password here# Retrieve the list of hubscloud.get_hubs()# Retrieve information about a single hubcloud.get_hubs()# Retrieve the list of devices in a hubcloud.get_devices("HUB ID")# Set hub id hereImplementationThe library currently supports the following devices:HubDimmerLeak SensorLockSwitchThermostatEach device is represented by a class that implements the actions supported by the API. Example:# Retrieve the door lockdoor=cloud.get_device("DEVICE ID HERE")# Call the device locking actiondoor.lock()# Call the device unlocking actiondoor.unlock()# Retrieve the switchswitch=cloud.get_device("DEVICE ID HERE")# Call the device `on` actionswitch.on()# Call the device `off` actionswitch.off()More information about each device can be found in the corresponding class inopenly/devices.
Some resources or actions might not be supported currently. I will work on adding them gradually.ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.LicenseRefer toLICENSEfile
Package: open-mafia-engine
Open Mafia EngineThe Open Mafia Engine is a flexible, open-source game engine for Mafia-like games.See theWikipedia articlefor information on what Mafia/Werewolf is.The Open Mafia Engine actually allows a much broader type of game to be played,
with custom roles and very intricate "setups". Most of these custom roles come
from either "real-life" games or online forums such asMafiaScumandBay12Games Mafia Subforum.FeaturesEvent-based architecture, which allows for very complex interactions.Many built-in abilities, victory conditions, etc.
(Not "many" yet, but we're working on it!)Games are defined declaratively or using an parametrized GameBuilder.Open source & extensible.InstallingInstall the latest stable version, with recommended dependencies, via pip:pip install open_mafia_engine[recommended]See thedev docsto install for local
development (using Poetry).Getting startedThis example starts a 5-player "test" mafia game (1 mafioso vs 4 townies):importopen_mafia_engine.apiasmafiabuilder=mafia.GameBuilder.load("test")players=['Alice','Bob','Charlie','Dave','Eddie']game=builder.build(players)Example ApplicationThis repository includes an example text-based Mafia app, runnable like:mafia-cli# orpython-mopen_mafia_engine.example.cliThis is what the UI looks like:
Package: openmairie.devtools
openmairie.devtoolsopenMairie Developer ToolsContentsopenmairie.devtoolsIntroductionInstallationom-logo specificsAvailable commandsChangelog1.1.0 (2023-10-08)1.0.0 (2022-05-10)0.4.0 (2018-04-10)0.3.1 (2018-01-10)0.3.0 (2018-01-10)0.2.2 (2017-11-25)0.2.1 (2017-11-24)0.2.0 (2017-11-24)0.1 (2017-11-23)ContributorsIntroductionopenmairie.devtools is a collection of command-line programs to handle tasks onopenMairie Frameworkbased projects.
Mainly initialize environment, run tests, release a project, …InstallationYou just needpippip install openmairie.devtoolsom-logo specificsFor PNG rendering, Inkskape should be available.
On Debian-based OS (Ubuntu, etc)sudo apt-get install inkscapeFor other OS, please visithttps://inkscape.org/en/releaseYou should have the right font (Caviar Dream) available on your system.
Get it therehttps://www.fontsquirrel.com/fonts/download/Caviar-DreamsAvailable commandsom-tests: should be run from thetestsfolder of your project and
allow you to initialize your test environment, to run all tests suites or to
run only one tests suite.om-svnexternals: should be run from the root of your project and allow
you to export the externals props find in EXTERNALS.txt files. Useful when
you are mirroring your SVN project to GIT.om-logo: this command allows you to generate SVG and PNG logo for your
openMairie application, according to design’s guideline available herehttp://www.openmairie.org/communaute/ressources-graphiques/openmairie-identite-visuelle.pdfFull documentation is available from the help
commandom-logo --helpChangelog1.1.0 (2023-10-08)Use robot and not pybot command anymore.
[flohcim]1.0.0 (2022-05-10)Python 3 support only.
[flohcim, tiazma]0.4.0 (2018-04-10)Add ‘additional_sql’ option config to om-tests.
[flohcim]0.3.1 (2018-01-10)Removed unnecessary jinja2 env options
[tiazma]0.3.0 (2018-01-10)Added om-logo, application logo generation
[tiazma]0.2.2 (2017-11-25)Remove the externals was breaking travis CI.
[flohcim]0.2.1 (2017-11-24)Filename of EXTERNALS.txt file parsed was missing.
[flohcim]0.2.0 (2017-11-24)Add om-svnexternals script.
[flohcim]0.1 (2017-11-23)Initial release as a python package.
[flohcim, fmichon, jymadier, mbroquet, nhaye, NHaye, nmeucci, oc1n, softime,
stimezouaght, tiazma]ContributorsFlorent Michon <flohcim@gmail.com> [flohcim][fmichon]Grégory Malvolti <gmalvolti@atreal.fr> [gmalvolti]Jean-Yves Madier de Champvermeil <> [jymadier]Matthias Broquet <mbroquet@atreal.fr> [mbroquet][tiazma]Nicolas Haye <> [nhaye][NHaye]Nicolas Meucci <> [nmeucci][oc1n]Sofien Timezouaght <> [softime][stimezouaght]
Package: open-marquesote
open-marquesoteMinimal PyQtWebEngine web browser useful to serve python web apps in desktop.Live sample can be found atCacao Accounting Desktop,
just replace the app to be served with your own project, please note that we recomend theWaitressWSGI server
since it is croos plataform,Gunicornolny runs in Unix.Example# example.pyimportsubprocessimporttimefromsysimportargv,executablefromflaskimportFlaskfromPyQt5.QtWidgetsimportQApplicationfromopen_marquesoteimportMainWindowfromwaitressimportserveflaskapp=Flask(__name__)@flaskapp.route("/")defapp():return"A python web app running like desktop app."defserver():try:serve(flaskapp,threads=2,port=9889)exceptOSError:# If the server was started before and is still running there will be a OSError: [Errno 98] Address already in use# Since the server is already up and running we pass this error.passdefbrowser():time.sleep(5)# Give 5 seconds to the WSGI server to start.browser=QApplication(argv)window=MainWindow(url="http://127.0.0.1:9889/",appname="Python web in Desktop")browser.exec_()defrun():subprocess.Popen([executable,"-c","import example; example.server()"],stderr=subprocess.DEVNULL,stdout=subprocess.DEVNULL,)subprocess.Popen([executable,"-c","import example; example.browser()"])if__name__=="__main__":run()pipinstall-rrequirements.txt
pipinstallflask
pythonexample.pyLicenseCopyright 2017 Martin Fitzpatrick
Copyright 2020 William Moreno ReyesPermission 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: open-mastermind
open-mastermindTerminal-based python of classic board gameMastermind®to get the gameInstall withpipfrom the command line:pip install open-mastermindAnd run with this command:mastermindAlthough written in Python3.7, it's compatible back to Python2.7.example game playEach puzzle contains 4 boxes. Each turn you choose from 6 colors.Can you guess the puzzle before your turns run out?Color choices: r g y b m wExample turn: rybgResponse:◍  :  correct color in correct position○  :  correct color in incorrect position_  :  incorrect colorThe order of the response tiles is sorted and does not necessarily match the position of the colored tiles.Type !h during gameplay to read these instructions.Type !q during gameplay to quit and show the solution.2-player modeSolutions can be hashed and shared with other players. To generate a code for the solutionred-green-yellow-blue(rgyb):mastermind rgyb

> Your code to play rgyb is 20419Then share the code20419with the other player, who plays the desired game like this:mastermind 20419It'sserverlessand also on the honor system. Codes are generated on the fly based on the16-bit CRC value.to get the codeClone the repository, then install the requirements (currently only the non-standard python librarycolorama, which prints a colorful terminal.)git clone https://github.com/philshem/open-mastermind.git
cd open-mastermind
pip install -r requirements.txtAnd to play from your downloaded code:python mastermind.pychange the game parametersEdit the fileparams.pyto:more pieces to guessmore/fewer turns per gamenew colorsdifferent emoji playing pieces
Package: open-mastr
open-mastrA package that provides an interface for downloading and processing the Marktstammdatenregister (MaStR)LicenseDocumentationTestsPublicationData PublicationDevelopmentCommunityIntroductionDocumentationInstallationPyPIGitHubExamples of UsageCollaborationLicense and CitationSoftwareDataIntroductionTheMarktstammdatenregister (MaStR)is a German register
provided by the German Federal Network Agency (Bundesnetzagentur / BNetza) that keeps track of all power and gas units located in Germany.The MaStR data can bebrowsed and filteredonlinetaken fromdaily provided dumpsbe accessed via theweb serviceThe python packageopen-mastrprovides an interface for accessing the data.It contains methods to download and parse the xml files (bulk) and the SOAP web service (API).In this repository we are developing methods to analyze, validate and enrich the data.We want to collect and compile post processing scripts to improve data quality.DocumentationThe documentation is inMaterial for Mkdocsmarkdown format in thedocsub-folder of the repository.Find thedocumentationhosted on ReadTheDocs.The original API documentation can be found on theWebhilfe des Marktstammdatenregisters.If you are interested in browsing the MaStR online, check out the privately hostedMarktstammdatenregister.dev.Also see thebundesAPI/Marktstammdaten-APIfor another implementation.InstallationIt is recommended to use a virtual python environment, for examplecondaorvirtualenv.The package is intended to be used withPython >=3.8.PyPIInstall the current release ofopen-mastrwithpip:pipinstallopen-mastrGitHubFor development, clone this repository manually.gitclonegit@github.com:OpenEnergyPlatform/open-MaStR.gitcdopen-MaStRSetup the conda environment withcondaenvcreate-fenvironment.ymlInstall the package withpipinstall"open_mastr[dev]"Examples of UsageIf you want to see your project in this list, write anIssueor add
changes in aPull Request.PV- und WindflächenrechnerWasserstoffatlasEE-Status AppCollaborationEveryone is invited to develop this repository with good intentions.Please follow the workflow described in theCONTRIBUTING.md.License and CitationSoftwareThis repository is licensed under theGNU Affero General Public License v3.0 or later(AGPL-3.0-or-later).SeeLICENSE.mdfor rights and obligations.See theCite this repositoryfunction orCITATION.cfffor citation of this repository.Copyright:open-MaStR©Reiner Lemoine Institut©fortiss|AGPL-3.0-or-laterDataThe data has the licenseDatenlizenz Deutschland – Namensnennung – Version 2.0(DL-DE-BY-2.0)Copyright:Marktstammdatenregister- © Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen |DL-DE-BY-2.0
Package: openmc-cell-segmenter
Segments OpenMC cells into smaller cells.Specify the type of segmentation pane desired (XPlane, YPlane, ZPlane or ZCylinder) and the number of segments and obtain segmented cells.InstallYou will need to have OpenMC installed then you can use pip to install this package.pipinstallopenmc-cell-segmenterExample scriptsExample Python scripts can be found in theexamples folder.Example outputsIn this animation we see an S shaped cell that has been segmented first with XPlanes, YPlanes, ZPlanes and ZCylinders colored by cell.MotivationCell segmentation has a variety of use cases.
However, this package was originally made for redefining CSG geometry for cell based shutdown dose rate simulations where separate cells are needed to capture the variation in neutron activation across large cells.
Package: openmc-cylindrical-mesh-plotter
openmc_cylindrical_mesh_plotterPlots R-Z or Phi-R slices of OpenMC cylindrical mesh talliesInstallationopenmc_cylindrical_mesh_plotter is available on PyPipipinstallopenmc_cylindrical_mesh_plotterInstall with the optional Graphical User Interface (GUI)pipinstallopenmc_cylindrical_mesh_plotter[gui]API UsageSee theexamplesfolder for example scriptsGraphical User Interface UsageOnce installed you should be able to type the following command from the terminal and the GUI will launch in a browser window.openmc_cylindrical_mesh_plotter
Package: openmc-dagmc-wrapper
OpenMC DAGMC WrapperThe openmc-dagmc-wrapper python package extends OpenMC base classes and adds
convenience features aimed as easing the use of OpenMC with DAGMC for
fixed-source simulations.The openmc-dagmc-wrapper is built around the assumption that a DAGMC geometry
in the form of a h5m is used as the simulation geometry. This allows several
aspects of openmc simulations to be simplified and automated.Additional convenience is available when making tallies as standard tally types
are added which automated the application of openmc.Filters and openmc.scores
for standard tallies such as neutron spectra, effective dose, heating, TBR and
others.Further simplifications are access by using additional packages from thefusion-neutronics-workflowIf you are looking for an easy neutronics interface for performing simulations
of fusion reactors this package was built for you.:point_right:Documentation:point_right:Docker images:point_right:Installation:point_right:Examples
Package: openmc-data
OpenMC Data ScriptsThis repository contains a collection of scripts for generating HDF5 data
libraries and xml chain files that can be used with OpenMC. Some of these
scripts convert existing ACE libraries (such as those produced by LANL) whereas
generate scripts use NJOY to process ENDF files directly.Another source of data libraries for OpenMC is theWindowed Multipole Libraryrepository which enables on-the-fly Doppler broadening to an arbitrary temperature.PrerequisitesYou should have already installed OpenMC, see thedocsfor installation instructions.InstallationCurrently the package can be installed from this temporary repository.pipinstallopenmc_dataUsageOnce installed several scripts are available in your terminal that are able to
download and process nuclear data.The scripts accept input arguments, to find out the input arguments available
for a particular script run the script name with--helpafter the name.
For example:convert_endf --helpSome scripts (mainly the generate scripts) require NJOY to be installed and
added to your path.A few categories of scripts are available:Scripts that produce h5 cross section files:Convert ACE files to h5 filesGenerate h5 file from ENDF filesDownload h5 filesScripts that produce xml chain files:Generate xml chain files from ENDF files:Download xml chain files:Other scripts that don't fall into either category.Produce Cross Section FilesConvert cross sectionsScript nameLibraryReleaseProcessed byconvert_mcnp70ENDF/BVII.0LANLconvert_mcnp71ENDF/BVII.1LANLconvert_endfENDF/BVII.1NNDCconvert_lib80xENDF/BVIII.0LANLconvert_fendlFENDL3.2b3.2a3.23.1d3.1a3.13.02.1convert_jeff32JEFF3.2convert_jeff33JEFF3.3convert_tendlTENDL2015201720192021Generate cross sectionsScript nameLibraryReleaseProcessed bygenerate_cendlCENDL3.13.2generate_endfENDF/BVII.1VIII.0NNDCgenerate_fendlFENDL3.2b3.2a3.23.1d3.1a3.0generate_jendlJENDL4.05.0Download cross sectionsScript nameLibraryReleaseProcessed bydownload_endfENDF/BVII.1VIII.0NNDCdownload_tendlTENDL20192021Produce Depletion Chain filesGenerate chain filesScript nameLibraryReleasegenerate_endf_chainENDF/BVII.1VIII.0generate_jeff_chainJEFF3.3generate_serpent_fissqgenerate_tendl_chainTENDL20192021generate_endf71_chain_caslENDF/BDownload chain filesScript nameLibraryReleaseBranching optionsdownload_endf_chainENDF/BVII.1VIII.0NoneSFRPWROther scriptsScript nameDescriptionconvert_tendl_randDownload random TENDL libraries from PSI and convert it to a HDF5 library for use with OpenMC. Only certain nuclides are available from PSI. This script generates a cross_sections_tendl.xml file with random TENDL evaluations plus a standard library located in 'OPENMC_CROSS_SECTIONS'sample_sandyThis scripts generates random (gaussian) evaluations of a nuclear data file following its covariance matrix using SANDY, and converts them to HDF5 for use in OpenMC. Script generates a cross_sections_sandy.xml file with the standard library plus the sampled evaluations.make_comptonmake_stopping_powersadd_branching_ratiosadd branching ratios for n,gamma reactions to a preexisting chain files.reduce_chaincombine_librariesCombines multiple cross_section.xml files into a single cross_section.xml.
Package: openmc-data-to-json
This is a minimal Python package that provides both command line and API
interfaces for converting OpenMC h5 nuclear data files into JSON files for each
reaction.This is useful for building a nuclear data database where JSON files are
commonly accepted inputs. This tool is used for the generation of thexsplot.comdatabase.Python API usageExtracting a single reaction from the h5 file using the API and saving as a
CSV or JSON file.importopenmc_data_to_jsonasodjodj.cross_section_from_h5_to_file(input='Li6.h5',output='tritium_production.json',reaction='(n,Xt)',format='json'# csv is also acceptable)It is also possible to return the h5 info as a dictionary with keys for
'cross section', 'energy', 'element' and other info on the nucliusimportopenmc_data_to_jsonasodjreaction=odj.cross_section_from_h5_to_dict(input='Be9.h5',reaction='(n,2n)')A h5 file can be checked for reactions to see if particular reactions existimportopenmc_data_to_jsonasodjreaction=odj.reactions_in_h5(input='Fe56.h5',reaction='(n,g)')Command line usageAnother use of this program is to extract reactions using the command line tool.openmc-data-to-json-iBe9.h5-r(n,2n)-omy_reaction.jsonthe-ior--inputargument specifies the input h5 filethe-oor--outputargument specifies the output json filenamethe-ror--reactionargument specifies the reactions to extract.InstallationThe easiest way to install is to use the PyPi distribution.pipinstallopenmc_data_to_json
Package: openmc-depletion-plotter
Extends OpenMC to provides convenient plotting methods.
This is done by Monkey Patching OpenMC to provide additional functionality to the base classes.
One benefit of this is the user can continue to work with the familiar OpenMC classes and they simply get additional functionality.
Another benefit is that if any of these functions ever become popular enough to include in OpenMC then it could be done with a simple copy paste into the existing class structure.
Plotly figures or MatPlotLib figures are returned for user customization.:point_right:API ExamplesInstallThe openmc_depletion_plotter package can be installed from PyPi with the terminal command.pipinstallopenmc_depletion_plotterGraphical User InterfaceOnce installed you can then used the API or launch the GUI.
To launch the GUI type the following command in the terminal and the browser should open with the GUI.openmc_depletion_plotterPlotting pulse scheduleAll the Integrator classes have been extended to include a.plot_pulse_schedule()method.This method plots the source rate as a function of time.This is useful when wanting to visually display a pulse schedule used in an depletion / activation study.Additional methods providedopenmc.deplete.PredictorIntegrator.plot_pulse_schedule()openmc.deplete.CECMIntegrator.plot_pulse_schedule()openmc.deplete.CF4Integrator.plot_pulse_schedule()openmc.deplete.CELIIntegrator.plot_pulse_schedule()openmc.deplete.EPCRK4Integrator.plot_pulse_schedule()openmc.deplete.LEQIIntegrator.plot_pulse_schedule()openmc.deplete.SICELIIntegrator.plot_pulse_schedule()openmc.deplete.SILEQIIntegrator.plot_pulse_schedule()Plotting activation or atoms as a function of timeTheopenmc.deplete.Results()class has been extended to include aplot_atoms_vs_time()method and aplot_activity_vs_timemethod.These methods plot atoms or activity as a function of time.
These plots optionally include a breakdown of the dominant nuclides.
Matplotlib or Plotly backends are available.Additional methods providedopenmc.deplete.Results.plot_atoms_vs_time()openmc.deplete.Results.plot_activity_vs_time()Plotting activation or atoms on an isotope chartTheopenmc.Material()class has been extended to include aplot_isotope_chart_of_activity()method andplot_isotope_chart_of_atoms()method.This method plots the material atoms or the material activity on an isotope chart.I started making isotope plots back in 2010 so nice to finally distribute this :smile:Additional methods providedopenmc.Material.plot_isotope_chart_of_atoms()openmc.Material.plot_isotope_chart_of_activity()