Saravanan666/pypi-org huggingface dataset:
Package: pyblinkpico
RPi-BlinkPico LibraryInstructions and example code for using BlinkPico with MicroPython and RaspberryPI Pico.Matrix DisplayYou can get access of the LED matrix display through the variabledisplay.blink_rate(rate=None)Choose the blink rate of the LEDs from these options:Matrix.NO_BLINK,Matrix.BLINK_SLOW,Matrix.BLINK_MEDIUM, andMatrix.BLINK_FAST.brightness(brightness)Set the value of the brigthness of the LEDs from0to100.fill(value)Set all the LEDs of the displayonif the value is1, oroffif value is0.show()Update the LEDs of the display.clear()Set all pixels off (same as fill(0))auto_show(show=False)Automatically update the LEDs of the display upon changes.NoteThis code is adapted from theAdaFruit Circuitpython library.ExamplesHere an example of how to use the LED display to draw a smily facefrompyblinkpicoimport*importtimedisplay.brightness(50)display.blink_rate(Matrix.NO_BLINK)display.auto_show(True)display.clear()# smileforrowinrange(2,6):display[row,0]=1display[row,7]=1time.sleep_ms(100)forcolumninrange(2,6):display[0,column]=1display[7,column]=1time.sleep_ms(100)display[1,1]=1display[1,6]=1display[6,1]=1display[6,6]=1# eyesdisplay[2,2]=1display[2,5]=1# mouthdisplay[4,2]=1display[4,5]=1display[5,3]=1display[5,4]=1ButtonThere are three buttons available:button_a,button_bandbutton_c.is_pressedReturnsTrueif the specified button is currently being held down, andFalseotherwise.was_pressedReturnsTrueorFalseto indicate if the button was pressed (went from up to down) since the device started or the last time this method was called. Calling this method will clear the press state so that the button must be pressed again before this method will returnTrueagain.get_pressesReturns the running total of button presses, and resets this total to zero before returning.NoteButtons behave as described inthis page.ExamplesHere an example of how to use the buttonsfrompyblinkpicoimport*importtimewhileTrue:print(button_a.is_pressed())print(button_b.is_pressed())print(button_c.is_pressed())time.sleep(2)
Package: pyblinkpico-text
BlinkPico-TextThis library works in combination with theBlinkPicolibrary and it allows to show on the display either a single character or a scrolling string.Available characters are the alphabet lettersa-z/A-Z, digits0-9, space,-,., and,.Example:frompyblinkpico_textimport*character_disp=character()# A single charactercharacter_disp.show('a')# Scrollcharacter_disp.scroll('Hello world')
Package: pybliometrics
pybliometricsEnables large-scale access to Elsevier’s Scopus API from Python.Documentation:https://pybliometrics.readthedocs.ioDevelopment:https://github.com/pybliometrics-dev/pybliometricsExample>>># Document-specific information>>>frompybliometrics.scopusimportAbstractRetrieval>>>ab=AbstractRetrieval("10.1016/j.softx.2019.100263")>>>ab.title'pybliometrics: Scriptable bibliometrics using a Python interface to Scopus'>>>ab.publicationName'SoftwareX'>>>ab.authors[Author(auid=57209617104,indexed_name='Rose M.E.',surname='Rose',given_name='Michael E.',affiliation='60105007'),Author(auid=7004212771,indexed_name='Kitchin J.R.',surname='Kitchin',given_name='John R.',affiliation='60027950')]>>>>>># Author-specific information>>>frompybliometrics.scopusimportAuthorRetrieval>>>au2=AuthorRetrieval(ab.authors[1].auid)>>>au2.h_index34>>>au1=AuthorRetrieval(ab.authors[0].auid)>>>au1.affiliation_current[Affiliation(id=60105007,parent=None,type='parent',relationship='author',afdispname=None,preferred_name='Max Planck Institute for Innovation and Competition',parent_preferred_name=None,country_code='deu',country='Germany',address_part='Marstallplatz 1',city='Munich',state='Bayern',postal_code='80539',org_domain='ip.mpg.de',org_URL='http://www.ip.mpg.de/')]>>>>>># Affiliation information>>>frompybliometrics.scopusimportAffiliationRetrieval>>>aff1=AffiliationRetrieval(au1.affiliation_current[0].id)>>>aff1.author_count98InstallationInstall the stable version from PyPI:pipinstallpybliometricsor the development version from the GitHub repository (requires git on your system):pipinstallgit+https://github.com/pybliometrics-dev/pybliometricsCitationIf pybliometrics helped you getting data for research, please cite our corresponding paper:Rose, Michael E. and John R. Kitchin: “pybliometrics: Scriptable bibliometrics using a Python interface to Scopus”, SoftwareX 10 (2019) 100263.Citing the paper helps the development of pybliometrics, because it justifies funneling resources into the development.  It also signals that you obtained data from Scopus in a transparent and replicable way.Change logPlease seeCHANGES.rst.ContributingPlease seeCONTRIBUTING.rst. For a list of contributors seeAUTHORS.rst.LicenseMIT License; seeLICENSE.
Package: pyblish-3dsmax
pyblish-3dsmaxPyblish for 3ds Max.Note: This only tested in3dsmax-2020.What is included?A set of common plug-ins and functions shared across other integrations - such as getting the current working file. It also visually integrates Pyblish into the File-menu for easy access.Commonplug-insInstallationVia pip installpyblish-3dsmaxwill be installing all depends packages.pip install pyblish_3dsmaxCopy module files to<3dsmax_install_root/python/Lib/site-packages>Copy startup script<root>/startup/pyblish_3dsmax.msto<3dsmax_install_root>/scripts/startup/pyblish_3dsmax.ms.For example:CopyC:\Users\longhao\PycharmProjects\pyblish-3dsmax\startup\pyblish_3dsmax.mstoC:\Program Files\Autodesk\3ds Max 2020\scripts\Startup\pyblish_3dsmax.msPyblish in 3dsmax main MenuBarQuick demo in 3dsmax
Package: pyblish-config
pyblish-configoverwriting attributesto make sure your pipeline doesnt break when updating plugins.
pyblish config only overwrites settings it finds in the settings file
it leaves everything else at default value.example:
a plugin has various attributes. the json only contains a single attribute, node_type = "mesh"
all attributes of the plugin will remain the same except for the node_type.create a config fileseesample_create_configapply a config fileseesample_apply_configexplicitly registering pluginsthe exception to this is the plugins registered.
it will only use plugins matching the plugin names in the settings fileexample:
you have 5 plugins registered. the settings file has 3 plugins listed.
only those 3 plugins will be used.config creator toolSee theconfig creator, a little qt helper tool to help you  create configs. (still in alpha, will have bugs)
Package: pyblish-photoshop
pyblish-photoshopPyblish integration for Adobe Photoshop cs6-2020 (Window only).What is included?A set of common plug-ins and functions shared across other integrations - such as getting the current working file. It also visually integrates Pyblish into the File-menu for easy access.Commonplug-insCommoncommand lineInstallationVia pip installpyblish-photoshopwill be installing all depends packages.pip install pyblish-photoshopInstall pyblish menu into Photoshoppyblish-photoshop install --app-dir "your/photoshop/install/localtion"For example:pyblish-photoshop install --app-dir "C:\Program Files\Adobe\Adobe Photoshop 2020"Usagepyblish-photoshop --helpUsage: pyblish-photoshop [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  gui      Show Pyblish GUI, Default is to use "pyblish_lite".
  install  Install pyblish menu into Photoshop.Launch UIIn Photoshop go to theFiltermenu and you will see thepyblishmenu.
Package: pyblish-simple
pyblish-simpleA Pyblish GUI trying to be more 'intuitive' thanpyblish lite&pyblish-qmlLimitations⚠️ It was designed for validating instances, and currently doesn't show context, export or publish plugins.left pyblish_lite, right pyblish_simpleHow to useUsersCollected instances show on the leftSelect an instance to show relevant validations in the bottom rightSelect a validation to show it's description in the top rightright click an instance or plugin to show it's actions in the menu.colors:🟢green: the validation passed🟠orange: a warning, soft fail, publishing is allowed to continue🔴red: an error, hard fail, publishing is not allowed to continue⚪white: validation did not run⚫grey: validation is disabled but registered (NOT YET IMPLEMENTED)Devsto hook up thefix allbutton: Give your plugins the attributefix.Pyblish simple assumes this is a pyblish action & runs it# code in pyblish simpleifhasattr(plugin,'fix'):pyblish_action=plugin.fixpyblish_action.process(self=pyblish_action,context=self.context,plugin=plugin)avoid context plugins, and use instance plugins instead.installcopy paste the pyblish_simple moduleinstall the dependenciesQt.py& optionallyPyQt5_stylesheetsto launch the UI, run:importpyblish_simplepyblish_simple.show()What's pyblish simple & why was it developed?The standard UI for Pyblish confused artists:it shows which validation failed, but not which instance failed.e.g. Pyblish flags that a vertex is incorrect, but not which one. The artist is frustrated, because they don't know which vertex to fix.it shows a lot of info, overwhelming non-technical users. Artists don't find it intuitive.To solve this, pyblish-simple shows a list of instances.When you select an instance, it only shows the valiations that affected that instance.This UI is much more intuitive for 3D artists.it shows only relevant info for each instance, hiding all other validations. Making the UI less overwhelmingIt's more relatable, because a list of instances is something the 3d artist is used to.e.g. a list of meshes in the scene, a list of materials in the scene, the outliner in 3ds Max, Maya, Unreal, Unity, ...developmentimprove the stylesheet. current dark mode doesn't look as nice as pyblish liteselected color overwrites the color, which is bad UX, fix thisclean up the code. It's in need of some love, since it was quickly put together.it was designed for validating instances, and currently assumes a standard collect, validate, export, publish workflow.research how to show context pluginsresearch how to show export and publish pluginsPR-s are welcome.communityPyblish forum threadPYPIhttps://pypi.org/project/pyblish-simple/
Package: pyblitzdg
blitzdgblitzdg is an open-source library offering discontinuous Galerkin (dg) solvers for common partial differential equations systems using blitz++ for array and tensor manipulations in a C++ environment or NumPy as a Python 3 library.Shallow Water Wave ExampleblitzdgoutputSupport blitzdg:Building From SourceBuild and development support has broadened from linux only to Mac OSX and Windows systems. Tested with GNU make (written to be cross-platform) andg++on linux/MinGW64,clang++on Mac OSX High Sierra, and MSVC on Windows. Our build system depends on the cross-platformcmaketooling for Makefile generation.git clone https://github.com/dsteinmo/blitzdg.gitcd blitzdg && ./pull-deps.shcmake . && make advec1d && ./bin/advec1d(This binary is a 1D advection equation solver.).Run unit tests withmake test.Dependenciescmakeblitz++SuiteSparse (umfpack, cxsparse)LAPACKmetisigloofor BDD-style testing.vtkfor visualization in Paraview.boost-python3for python bindings.boost-numpy3for numpy C++ interoperability.Dependency installation is outlined inpull-deps.sh(tested on Ubuntu and Mac OSX).WindowsOur windows distribution was recently switched from MinGW to MSVC in order to achieve better support for graphics APIs, so support is lacking at the moment. Instructions will be made available here soon.ContributingWe accept pull requests from public forks, and we use pull requests as the primary delivery mechanism of any new code within the base repository.If you add code, please write tests using the igloo testing framework that is included as a project dependency. Your code additions will be subject to peer review and will be run through our Travis-CI continuous integration process.Interested developers should consult theGuidelines for Contributingbefore getting started.MaintainerDerek SteinmoellerLead DevelopersDerek SteinmoellerKillian MillerDocumentationWe actively maintain an interactive set of docs using Doxygen for end-user consumption.The documentation is available on github pages athttps://wqcg.github.io/blitzdgand is kept synchronized with the master branch via automation.LicenseThis project is licensed under theGNU Public License Version 3.Our license choice is driven by the desire to keep this project and any of its derivative works open-source for public consumption by developers, mathematicians, scientists, engineers, and anyone else who might be interested in this project.ContactAny questions regarding the project may be addressed via email to theproject maintainer.
Package: pyblock
pyblockis a python module for performing a reblocking analysis on
serially-correlated data.The algorithms implemented inpyblockare not new; please see the documentation for
references.pyblock is compatible with (and tested on!) python 2.7 and python 3.3-3.4 and should work
on any other version supported bypandas.DocumentationDocumentation and a simple tutorial can be found in the docs subdirectory and onreadthedocs.Installationpyblockcan be used simply by adding to$PYTHONPATH.  Alternatively, it can be
installed using distutils by running:$ pip install /path/to/pyblockwhere/path/to/is the (relative or absolute) path to the directory containingpyblock.  To install an editable version (useful for development work) do:$ pip install -e /path/to/pyblockpyblockcan also be installed from PyPI:$ pip install pyblockpyblockrequires numpy and (optionally) pandas and matplotlib.  Please see the
documentation for more details.LicenseModified BSD license; see LICENSE for more details.Please citepyblock, James Spencer,http://github.com/jsspencer/pyblockif used to
analyse data for an academic publication.AuthorJames Spencer, Imperial College LondonContributingContributions are extremely welcome, either by raising an issue or contributing code.
For code contributions, please try to follow the following points:Divide commits into logical units (e.g. don’t mix feature development with
refactoring).Ensure all existing tests pass.Create tests for new functionality.  I aim for complete test coverage.
(Currently the only function not tested is one that creates plots.)Write nice git commit messages (seeTim Pope’s advice.)Send a pull request!AcknowledgmentsWill Vigor (Imperial College London) pointed out and wrote an early implementation of
the algorithm to detect the optimal reblock length.Tom Poole (Imperial College London) contributed code to handle weighted averages.The HANDE FCIQMC/CCMC development team made several helpful comments and suggestions.
Package: pyblockMesh
#+TITLE: pyblockmesh#+AUTHOR: Vishakh Pradeep Kumar#+EMAIL: grokkingStuff@gmail.comPython Library#+BEGIN_SRC sh :exports results.├── CHANGELOG.md├── CONTRIBUTING.md├── index.org├── LICENSE├── pyblockmesh│   ├── edge.py│   ├── face.py│   ├── hexahedron.py│   ├── __init__.py│   └── vertex.py├── pytest.ini├── README.md├── README.org├── requirements.txt├── script│   └── test├── setup.py└── tests├── helpers│   ├── __init__.py│   └── my_helper.py├── __init__.py├── tests_helper.py└── unit├── __init__.py├── test_example.py└── test_version.py5 directories, 22 files#+END_SRC* Example#+BEGIN_SRC pythonimport pyblockmesh as pbmv0 = pbm.Vertex(-1,-1,-1)v1 = pbm.Vertex( 1,-1,-1)v2 = pbm.Vertex( 1, 1,-1)v3 = pbm.Vertex(-1, 1,-1)v4 = pbm.Vertex(-1,-1, 1)v5 = pbm.Vertex( 1,-1, 1)v6 = pbm.Vertex( 1, 1, 1)v7 = pbm.Vertex(-1, 1, 1)h1 = pbm.Hexahedron([v0,v1,v2,v3,v4,v5,v6,v7],numberOfCells=[3,3,3])h1.add_edge(v0,v1,'line')h1.add_face([v0,v1,v2,v3],name='inlet',patchType='wall')string = pbm.buildBlockMesh()print(string)blockMeshDict = open("blockmeshdict.txt", "w")blockMeshDict.write(string)blockMeshDict.close()#+END_SRC#+RESULTS:: None#+BEGIN_EXAMPLEvertices((-1 -1 -1)(1 -1 -1)(1 1 -1)(-1 1 -1)(-1 -1 1)(1 -1 1)(1 1 1)(-1 1 1))blocks(hex 0 1 2 3 4 5 6 7 ( 3 3 3 ))edges(line 0 1)boundary(inlet{type wall;faces(( 0 3 2 1 ));})#+END_EXAMPLE* RequirementsPackage requirements are handled using pip. To install them do#+BEGIN_SRC shpip install -r requirements.txt#+END_SRC
Package: pyblockpaysio
Blockpays.io Application Programming Interface.This library let integrate your application to our platform then use all service of cripto currencies that us have for youInstall$ pip install pyblockpaysioUsagePHPExample: Checking validity of address BTCTESTfrom pyblockpaysio import functions

functions.setApiKey('miblockpaysapikey')

isvalidaddress = functions.isValidAddress(
    {
        "address":"3LcmURk5uGg6V2PVGwjGUpcujDKBQnfTSG",
        "currencyId":1
    }
)

print(isvalidaddress)Response:{u'status': u'success', u'data': {u'is_valid': True, u'network': 1, u'address': u'3LcmURk5uGg6V2PVGwjGUpcujDKBQnfTSG'}}LicenseMIT ©Labsatoshi
Package: pyblocksim
Pyblocksim aims to mitigate the lack of a tool like Simulink (or scicos)
in the world of python based scientific computing. It aims to enable an low-effort implementation
of a model of a dynamical system which is composed of interconnected blocks such as rational
transfer functions and static nonlinearities. Delay blocks are supported via ring-buffers
and discrete states can also be emulated (e.g. for hysteresis).
Package: pyblockworld
PyBlockWorldEine an Minecraft angelehnte Welt aus Blöcken.InstallationDie Installation erfolgt überpip install pyblockworld.APIfrompyblockworldimportWorld## BEISPIEL 1## Eine Funktion, die beim Drücken der B-Taste aufgerufen werden solldefb_key_pressed(world:World):print("B pressed. Player at",world.player_position())# Erstellen einer neuen Weltworld=World()# Die Funktion für die build-Taste (b) wird zugewiesenworld.build_key_pressed=b_key_pressed# Die Welt wird gestartetworld.run()## BEISPIEL 2## Nun werden beim Drücken der Taste ein paar Blöcke platziert.defb_key_pressed(world:World):# Neue Blöcke können mit setBlock gesetzt werden.# Verfügbare Materialien stehen in World.MATERIALS und umfassen# air, default:brick, default:stone, default:sand, default:grassprint("Block types",World.MATERIALS)x,y,z=world.player_position()# Einen Block platzierenworld.setBlock(x,y,z,"default:brick")# Mehrere Blöcke auf einmal abseits des Spielers platzierenx,y,z=x,y,z+3world.setBlocks(x,y,z,x+3,y+3,z+3,"default:grass")world=World()world.build_key_pressed=b_key_pressedworld.run()QuellenDer Quellcode basiert auf dem Code vonSensorCraft,
der wiederum auf dem Code vonCraftbasiert.Changelog0.3.8Methoden der Klasse World dokumentiert.0.3.5Changelog eingeührtSupport für Python 3.80.3.7PeristentWorld als speicherbare Welt hinzugefügt.Doku aktualisiert: Abschnitt Start entfernt.World.player_position hat das Attribut as_int, um ein Int-Tuple zu erzeugen
Package: pybloomd
bloom-python-driver=========Pybloom provides a Python client library to interface withbloomd servers. The library supports multiple bloomd servers,and automatically handles filter discovery and sharding.Features--------* Provides a simple API for using bloomd* Allows for using multiple bloomd servers- Auto-discovers filter locations- Balance the creation of new filters- Explicitly name the location to make filters* Command pipelining to reduce latencyInstall-------Download and install from source:python setup.py installExample------Using pybloom is very simple, and is similar to using native sets::from pybloom import BloomdClient# Create a client to a local bloomd server, default portclient = BloomdClient(["localhost"])# Get or create the foobar filterfoobar = client.create_filter("foobar")# Set a property and check it existsfoobar.add("Test Key!")assert "Test Key!" in foobarTo support multiple servers, just add multiple servers::from pybloom import BloomdClient# Create a client to a multiple bloomd servers, default portsclient = BloomdClient(["bloomd1", "bloomd2"])# Create 4 filters, should be on different machinesfor x in xrange(4):client.create_filter("test%d" % x)# Show which servers the filters are on by# specifying the inc_server flagprint client.list_filters(inc_server=True)# Use the filtersclient["test0"].add("Hi there!")client["test1"].add("ZING!")client["test2"].add("Chuck Testa!")client["test3"].add("Not cool, bro.")Using pipelining is straightforward as well::from pybloom import BloomdClient# Create a client to a local bloomd server, default portclient = BloomdClient(["localhost"])# Get or create the foobar filterpipe = client.create_filter("pipe").pipeline()# Chain multiple add commandsresults = pipe.add("foo").add("bar").add("baz").execute()assert results[0]assert results[1]assert results[2]
Package: pybloomer
pybloomerpybloomeris a Python 3 compatible fork ofpybloomfiltermmapby@axiak.The goal ofpybloomeris simple: to provide a fast, simple, scalable, correct library for Bloom filters in Python.Why pybloomer?There are a couple reasons to use this module:It natively usesmmaped files.It is fast (seebenchmarks).It natively does the set things you want a Bloom filter to do.QuickstartAfter you install, the interface to use is a cross between a file
interface and an ste interface. As an example:>>>importpybloomer>>>fruit=pybloomer.BloomFilter(100000,0.1,'/tmp/words.bloom')>>>fruit.update(('apple','pear','orange','apple'))>>>len(fruit)3>>>'mike'infruitFalse>>>'apple'infruitTrueTo create an in-memory filter, simply omit the file location:>>>cakes=pybloomer.BloomFilter(10000,0.1)Caveat: it is currently not possible to persist this filter later.DocsCurrent docs are available atpybloomer.rtfd.io.InstallTo install:$pipinstallpybloomerand you should be set.Note to Python 2 to < 3.5 usersThis library is specifically meant for Python 3.5 and above.As of 2020, we strongly advise you to switch to an actively maintained distribution of Python 3. If for any reason your current environment is restricted to Python 2, please seepybloomfiltermmap. Please note that the latter is not actively maintained and will lack bug fixes and new features.History and Futurepybloomfiltermmapis an excellent Bloom filter implementation for Python 2 by@axiakand contributors. I,@prashnts, made initial changes to add support for Python 3 sometime in 2016 as the currentpybloomeronPyPI. Since then, with the help of contributors, there have been incremental improvements and bug fixes while maintaining the API from versions0.4.xand below.Some new features and changes were first introduced in version0.5.0. From this point on, the goal is to reach stability, as well as add a few more APIs to expand upon the use cases. While we can't guarantee that we won't change the current interface, the transition from versions0.4.xand below should be quick one liners. Please open an issue if we broke your build!Suggestions, bug reports, and / or patches are welcome!Contributions and developmentWhen contributing, you should set up an appropriate Python 3 environment and install the dependencies listed inrequirements-dev.txt.
Package installation depends on a generatedpybloomer.cfile, which requires Cython module to be in your current environment.MaintainersDr. Masroor EhsanLicenseSee the LICENSE file. It's under the MIT License.