Saravanan666/pypi-org huggingface dataset:
Package: pyreveal
PyReveal is a Python library that allows users to generate Reveal.js presentations programmatically. With PyReveal, you can easily create slides, set themes, transitions, and even add custom backgrounds like images or videos.FeaturesCreate Reveal.js presentations using Python.Support for slide themes and transitions.Error handling and validation for slide content.Export presentations to HTML.Support for slide backgrounds, including images, videos, and colors.Parallax background support.InstallationpipinstallpyrevealUsagefrompyrevealimportPyReveal,ImageBackgroundpresentation=PyReveal(title="My Presentation",theme="white",transition="slide")presentation.add_slide("Welcome to PyReveal!")bg_image=ImageBackground(image_url="path/to/image.jpg")presentation.add_slide("This slide has a background image!",background=bg_image)presentation.save_to_file("my_presentation.html")For more advanced usage and features, please refer to the documentation.ContributeIssue Tracker:https://github.com/tavallaie/pyreveal/issuesSource Code:https://github.com/tavallaie/pyrevealSupportIf you are having issues, please let us know. You can report issues on the issue tracker mentioned above.LicenseThe project is licensed under the MIT license. See theLICENSEfile for more details.
Package: pyreveng
PyReveng3 is a toolkit for reverse engineering and analysing binary
programs, or for that matter, binary data.The fundamental idea is to build data structures representing the
analysis, available for further programatic spelunking, rather than
just a textual representation where the structure is flattened.Of course, dumping the textual representation in the shape of a
listing is one of the most typical “further programatic spelunkings”
one can do, but it is not limited to only that.Enjoy,Poul-Henning
Package: pyreview
pyreviewpyreviewis a deploy tool for Heroku Review App using Bitbucket Pipelines.Heroku Review App is a great tool to make ephemeral apps in Heroku. The problem
is that this tool only plays nice with Github. Deploying Review apps from a CI
system is frustrating and hard and still in a very early stage of development.This tool is an effort to automate the creation of Review Apps using Bitbucket
Pipelines. It should be easy to fork this project and adapted it to another CI
system (or abstract the CI at all).This is a Work in ProgressThis does the job, but don't expect many flexibility at this point. You are
welcome to contribute by opening a issue or a Pull Request. I will pushing the
guidelines to contribute soon.
Package: pyrevm
pyrevmBlazing-fast Python bindings torevmQuickstartmake install
make testExample UsageHere we show how you can fork from Ethereum mainnet and simulate
a transaction fromvitalik.eth.frompyrevmimport*address="0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"# vitalik.ethaddress2="0xBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"fork_url="https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"# set up an evmevm=EVM(# can fork from a remote nodefork_url=fork_url,# can set tracing to true/falsetracing=True,# can configure the environmentenv=Env(block=BlockEnv(timestamp=100)));vb_before=evm.basic(address)assertvb_before!=0# Execute the txevm.call_raw_committing(caller=address,to=address2,value=10000# data);assertvb_before!=evm.basic(address)assertevm.basic(address2).balance==10000DevelopWe use Poetry for virtual environment management andMaturinas our Rust <> Python FFI build system. The Rust bindings are auto-generated from the macros provided byPyO3.To build the library, runpoetry run maturin developNote: If building for production, do not forget the--releaseflag, else performance will be degraded.BenchmarksTODO
Package: pyrevm-contract
pyrevm_contractMinimal Brownie like contract wrapper for Pyrevmpip install pyrevm_contractinit revmfrompyrevm_contractimportRevm,Contractrevm=Revm("https://eth.llamarpc.com",block_number=5282490)# revm singleton; sets backend for all contractscaller="0x00000000000000000000000000000000000021E8"weth_addr="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"init contract via json file objectweth_abi_path=...withopen(weth_abi_path)asf:abi=json.load(f)weth=Contract(weth_addr,abi)init contract via json abi file pathweth_abi_path=...weth=Contract(weth_addr,abi_file_path=weth_abi_path)create contract abi manuallyfrompyrevm_contractimportABIFunction,ContractABIfuncs=[ABIFunction(name="balanceOf",inputs=["address"],outputs=["uint256"],constant=True,payable=False,),ABIFunction(selector="0xd0e30db0"# support for selector based funcsinputs=[],outputs=[],constant=False,payable=True)]weth=Contract(weth_addr,contract_abi=ContractABI(funcs),)call contractrevm.set_balance(caller,100)# revm cheatcode; sets ether balance of acctweth.balanceOf(caller)# -> 0weth["0xd0e30db0"](value=100,caller=caller)# call via selectorweth.balanceOf(caller)# -> 100
Package: pyrevolt
pyrevoltA Python library to wrap the Revolt API, made to be easy-to-use but powerful and feature rich.Installing pyrevoltPython 3.10 or greater is requiredTo install pyrevolt, you can run the following command:# Linux/macOS commandpython3-mpipinstallpyrevolt# Windowspy-mpipinstallpyrevoltUsing pyrevoltThis shows a very quick example of how to use pyrevolt. As a note, pyrevolt is still under heavy development and this example and the library as a whole may change.importpyrevoltbot=pyrevolt.Bot(prefix="!")@pyrevolt.ReadySimplified()asyncdefonReady()->None:print("Ready!")@bot.on(pyrevolt.GatewayEvent.OnMessage)asyncdefonMessage(message:pyrevolt.Message)->None:print(f"{message.author.username}said:{message.content}")@bot.commands.Command(name="ping")asyncdefping(message:pyrevolt.Message)->None:awaitmessage.Send(content=f"Pong{message.author.username}!",embed=pyrevolt.Embed.Create(title="Pong!",description=f"{message.author.mention}!",colour="#0000ff"),replies=[pyrevolt.Reply(message.messageID,True)])@bot.commands.Command(name="hello",aliases=["hi"])asyncdefhello(message:pyrevolt.Message,name:str)->None:awaitmessage.Send(content=f"Hello{name}!")@hello.ErrorasyncdefhelloError(message:pyrevolt.Message,error:Exception)->None:awaitmessage.Send(content=f"{str(error)}")bot.Run(token="TOKEN")As the library expands, more examples will be added, but we expect users during the very initial development phases to read through the documentation and see how to use the library. If you have any questions, please join the support server and ask for help.Useful InformationCode QualityRepository Information
Package: pyrevolve
CheckpointingThe adjoint computation of an unsteady nonlinear primal function requires the
full primal trajectory in reverse temporal order. Storing this can exceed the
available memory. In that case, Checkpointing can be used to store the state
only at carefully selected points in time. From there, the forward computation
can be restarted to recompute lost sections of the trajectory when they are
needed during the adjoint computation. This is always a tradeoff between memory
and runtime. The classic and provably optimal way to do this for a known number
of time steps isRevolve, and there are other algorithms for optimal online
checkpointing if the number of steps is unknown a priori, or for multistage
checkpointing if there are multiple layers of storage, e.g. memory and hard
drive.PyRevolveThe pyrevolve library contains two parts: crevolve, which is a thin Python
wrapper around a previously publishedC++ implementation, and pyrevolve
itself, which sits on top of crevolve and manages data and computation
management for the user.The C++ files in this package are slightly modified to play more nicely with
Python, but the original is available from the link below. In addition, there
is a C wrapper around the C++ library, to simplify the interface with Python.
This C wrapper is taken fromlibadjoint.InstallationSince PyRevolve is distributed as source, you must have a functional C/C++
compiler in your environment before trying to install PyRevolve. The
installation procedure respects the standard environment variables
like CC/CXX.The simplest installation is through pip by simply doing:pip install pyrevolveIf you would like to have a local development copy that you can edit,
clone the repo and call the following command in the home directory:pip install -e .If you face any installation issues, first check that you really do
have a functional C++ compiler, either available asg++in the path
or pointed to by the environment variableCXX. If this is not the
reason, please raise a issue here or onthisSlack channel.UsageThere are two wrappers: aclassicwrapper that follows the behaviour of Revolve
as described in the papers, and leaves the data mangement, the actual copying
of data, and the calling of operators to the user. An example of how to use it
can be executed by callingpython examples/use_classic.pyThe other,modernisedwrapper, takes care of all this. The user creates a
Revolver object, and passes a forward operator, reverse operator, and
checkpoint operator to it. The Revolver provides two important methods:apply_forward, andapply_reverse. A call toapply_forwardexecutes the
forward computation, while creating the necessary checkpoints for the reverse
computation. After this, a user may also call theapply_reversemethod to
compute the adjoints.For this to work, the user is responsible that the operators have anapply()method that takes argumentst_startandt_end, and that the checkpoint
object has a propertysizeto report the size of one checkpoint, and methodsload(ptr)andsave(ptr)that deep-copy all time-dependent live data into
a location given inptr.An example of this can be found here:python examples/use_modernised.py
Package: pyrew
Welcome to Pyrew, a Python library that provides a way to write shorter and more efficient Python code.InstallationStableRun the following command:pipinstallpyrewAt the top of your file, add the following code:importpyrewpyrew=pyrew.Pyrew()DevelopmentRun the following command:pipinstallgit+https://github.com/AquaQuokka/pyrew.gitAt the top of your file, add the following code:importpyrewpyrew=pyrew.Pyrew()
Package: pyrewind
pyrewindpyrewind es una potente biblioteca de Python diseñada para facilitar la obtención y descarga de vídeos que se han eliminado previamente, así como la descarga de vídeos actuales. pyrewind utiliza herramientas como pytube.InstalaciónpipinstallpyrewindUsoUtiliza la claseYouTubepasando la URL del video como argumento al constructor:fromrewindimportYouTube# Crea una instancia del objeto YouTube con la URL del video deseadoyoutube_obj=YouTube('https://www.youtube.com/watch?v=VIDEO_ID')Accede a las propiedades del video obtenido:print(youtube_obj.title)# Título del videoprint(youtube_obj.publish_date)# Fecha de publicaciónDescarga el video utilizando el método download:youtube_obj.download()No es necesario especificar la ruta ya que la guardaría en un directorio creado por él y el vídeo estaría dentro.ContribuciónLas contribuciones son bienvenidas! Si encuentras algún problema o te gustaría agregar nuevas funciones a PyRewind, siéntete libre de abrir un "issue" o enviar una solicitud de extracción.
Package: pyrexia-stat
pyrexia-statA smart thermostat running on Raspberry Pi, Python, and Node.jsThis is the core thermostat control code that runs on the Pi.Features:Easily runs on 12v DC using either a USB socket (https://a.co/d/b4sLds2) or a step down module (https://a.co/d/25QVf2F)Open source - easy to customized and extendNo cloud requirements -- can be controlled and monitored on your local WIFIAvailable Android client https://github.com/cryptomcgrath/pyrexia-androidCan be controlled and monitored using REST apiIdeal for RV's since it runs on DCHardware:Raspberry Pi Zero 2WShould also work with any Raspberry Pi hardwareSupports any GPIO high and/or low triggered Relay boardsTo control furnace, boiler, and/or A/CAmazon https://a.co/d/4OUekkNSupports DHT22 temperature sensor(s)Using python Adafruit_DHT driver:  sudo pip3 install Adafruit_DHTAmazon https://a.co/d/f59G0ZkOptionally Supports Sensorpush HT.w Bluetooth temperature sensorTo read the temperature in a remote location over bluetoothSensorPush HT.w Wireless Thermometer/Hygrometer Water-Resistant for iPhone/Android. USA Made Indoor/Outdoor Humidity/Temperature/Dewpoint/VPD Monitor/Logger. Smart Sensor with AlertsAmazon https://a.co/d/4TTQPGdSoftware:Raspberry Pi OSpython3Node.jspm2
Package: pyrexpaint
Detailspyrexpaintis a small API for loading .xp files into python programs. So small, there is a single function provided calledload.An .xp file is the custom binary format used by the ASCII art editorREXPaint.Installationpip install pyrexpaintor install from source:git clone https://github.com/mattlink/pyrexpaintpip install ./pyrexpaintUsageSay you have an .xp filehello.xpin the same directory as your program, it can be loaded using:import pyrexpaint
image_layers = pyrexpaint.load("hello.xp")The data structure returned byloadis as follows:@dataclass
class Tile:
    ascii_code: str
    fg_r: str
    fg_g: str
    fg_b: str
    bg_r: str
    bg_g: str
    bg_b: str


@dataclass
class ImageLayer:
    width: int
    height: int
    tiles: List[Tile]


def load(file_name: str) -> List[ImageLayer]:
    ...Run the Ncurses Example:cd ./pyrexpaint/examplespython hello-ncurses.py
Package: pyreydenx
REYDEN-XReyden-X is an automated service for promoting live broadcasts on external sites with integrated system of viewers and views management.WebsiteAPI DocumentationInstallationpipinstallpyreydenxEnvironment VariablesREYDENX_EMAIL - Email (Optional)REYDENX_PASSWORD - Password (Optional)QuickstartfrompyreydenximportClientfrompyreydenx.userimportUserfrompyreydenx.orderimportOrderclient=Client('email','password')print(User.account(client))print(User.balance(client))print(Order.details(client,12345))print(Order.get_orders(client,None))
Package: pyrez
Pyrez: Easiest way to connect to Hi-Rez Studios API[][pyrez-pypi]
[][pyrez-pypi]Pyrezis anopen-sourcewrapper forHi-Rez StudiosAPI that supportsPaladins,Realm RoyaleandSmite.Built withPython- 2.7, 3.5, 3.6, & 3.7 are supported.RequestsDocumentationOfficial Documentation, which shows all available methods and how to use them:Click here!SupportIf you need further help, please join the officialsupport serveronDiscord.RequirementsAccessto Hi-Rez Studios API.UsageimportpyrezdevId=1004authKey='23DF3C7E9BD14D84BF892AD206B6755C'defmain():withpyrez.PaladinsAPI(devId,authKey)aspaladins:print(paladins.getDataUsed())if__name__=='__main__':main()Application ExampleFlaskPyrezAPI- Example of a web application using Flask and Pyrez.LicenseThis project is provided under theMIT License.All information obtained is provided by Hi-Rez Studios API and is thus their property. According to Section 11a of theAPI Terms of Use, you must attribute any data provided as below.Data provided by Hi-Rez. © 2019 Hi-Rez Studios, Inc. All rights reserved.
Package: pyrezfix
Pyrez: Easiest way to connect to Hi-Rez Studios API[][pyrez-pypi]
[][pyrez-pypi]Pyrezis anopen-sourcewrapper forHi-Rez StudiosAPI that supportsPaladins,Realm RoyaleandSmite.Built withPython- 2.7, 3.5, 3.6, & 3.7 are supported.RequestsDocumentationOfficial Documentation, which shows all available methods and how to use them:Click here!SupportIf you need further help, please join the officialsupport serveronDiscord.RequirementsAccessto Hi-Rez Studios API.UsageimportpyrezdevId=1004authKey='23DF3C7E9BD14D84BF892AD206B6755C'defmain():withpyrez.PaladinsAPI(devId,authKey)aspaladins:print(paladins.getDataUsed())if__name__=='__main__':main()Application ExampleFlaskPyrezAPI- Example of a web application using Flask and Pyrez.LicenseThis project is provided under theMIT License.All information obtained is provided by Hi-Rez Studios API and is thus their property. According to Section 11a of theAPI Terms of Use, you must attribute any data provided as below.Data provided by Hi-Rez. © 2019 Hi-Rez Studios, Inc. All rights reserved.
Package: pyrfa
PyRFAPyRFA is a Python API for accessing Refinitiv (Thomson Reuters) market data feeds known as Elektron,
Thomson Reuter Enterprise Platform for Real-time (TREP-RT) or legacy RMDS. It supports subscription
and publication of market data using OMM data message model.FeaturesSubscription forMARKET_PRICE(level 1)Subscription forMARKET_BY_ORDER(order book)Subscription forMARKET_BY_PRICE(market depth)Snapshot/streaming requestMultiple service subscriptionPause and resume subscriptionOMM PostingViewDictionary download or use local filesDirectory requestSymbol list requestTime-series request and decoder for IDN TS1Custom domainMMT_HISTORYwhich can be used for intraday timeseries publishingNon-interactive provider (full-cached) forMARKET_PRICE,MARKET_BY_ORDER,MARKET_BY_PRICE,SYMBOLLIST,HISTORYdomainsInteractive provider forMARKET_PRICEdomainDebug modeLoggingLow-latency modeSubscription outbound NIC bindingInstallationPyRFA supports both Windows and Linux platforms. Simply install fromPyPIusingpip:> pip install pyrfaWindows users might need to installMicrosoft Visual C++ 2010 SP1 Redistributable Package (x64)or(x86).Platform AvailabilityWindowsVersionRelease Date64bit-Windows, Python 3.764bit-Windows, Python 3.664bit-Windows, Python 3.564bit-Windows, Python 3.464bit-Windows, Python 2.764bit-Windows, Python 2.632bit-Windows, Python 2.732bit-Windows, Python 2.68.5.39 Nov 18⚬⚬⚬⚬⚬⚬7.7.017 Mar 17⚬⚬LinuxVersionRelease Date64bit-Linux, Python 3.764bit-Linux, Python 3.664bit-Linux, Python 3.564bit-Linux, Python 3.464bit-Linux/RHEL7, Python 2.764bit-Linux/RHEL6, Python 2.68.5.39 Nov 18⚬⚬⚬⚬⚬⚬Exampleimportpyrfap=pyrfa.Pyrfa()p.createConfigDb("./pyrfa.cfg")p.acquireSession("Session1")p.createOMMConsumer()p.login()p.directoryRequest()p.dictionaryRequest()p.marketPriceRequest("JPY=,EUR=")end=Falsewhilenotend:try:fordatainp.dispatchEventQueue(10):print(data)exceptKeyboardInterrupt:end=TrueOutput:...{'MTYPE':'UPDATE','RIC':'JPY=','SERVICE':'IDN_RDF_SDS','IRGPRC':0.24}{'MTYPE':'UPDATE','ASIA_NETCH':0.7,'SERVICE':'IDN_RDF_SDS','RIC':'JPY='}{'MTYPE':'UPDATE','BID_NET_CH':0.26,'RIC':'JPY=','SERVICE':'IDN_RDF_SDS'}...SupportAvailable support including API documentation, Replay Service guide, changelog, issue tracker:Community support -GitHubPyRFA Enterprise Support- access toprivate GitHubfor Early Access releases, complete documentation and Replay ServiceIssue tracker
Package: pyRFC3339
DescriptionpyRFC3339 parses and generatesRFC 3339-compliant timestamps usingPythondatetime.datetimeobjects.>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime
>>> import pytz
>>> generate(datetime.utcnow().replace(tzinfo=pytz.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=<UTC>)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=<UTC-04:00>)InstallationTo install the latest version fromPyPI:$ pip install pyRFC3339To install the latest development version:$ pip installhttps://github.com/kurtraschke/pyRFC3339/tarball/master#egg=pyRFC3339-devTo build the documentation with Sphinx:$ pip install Sphinx$ python setup.py build_sphinxThe documentation is also available online at:https://pythonhosted.org/pyRFC3339/
Package: pyrfc6266
pyrfc6266A python implementation of RFC 6266 meant to replacehttps://github.com/g2p/rfc6266and its forks as they rely on LEPL.This implementation relies on pyparsing which seems to continue to get updates.Installationpip install pyrfc6266UsageParse a content-disposition header into its components:>>>importpyrfc6266>>>pyrfc6266.parse('attachment; filename="foo.html"')('attachment',[ContentDisposition(name='filename',value='foo.html')])Parse a header into a useful filename:>>>importpyrfc6266>>>pyrfc6266.parse_filename('attachment; filename="foo.html"')'foo.html'Turn a requests response into a filename:>>>importrequests>>>importpyrfc6266>>>response=requests.get('http://httpbin.org/response-headers?Content-Disposition=attachment;%20filename%3d%22foo.html%22')>>>pyrfc6266.requests_response_to_filename(response)'foo.html'LicenseMIT
Package: pyrfd
pyrfdPytorch implementation of RFDCovariance modelProvides an implementation of theSquaredExponentialcovariance model
with anauto_fitfunction, which requires onlyAmodel_factorywhich returns the same butrandomly initializedmodel every time it is calledAlossfunction e.g.torch.nn.functional.nll_losswhich accepts a prediction and a true valuedata, which can be passed totorch.utils.DataLoaderwith different batch size parameters such
that it returns(x,y)tuples when iterated onacsvfilename which acts as the cache for the covariance model ofthis
unique (model, data, loss) combination.Implementation of RFDSuch a covariance model can then be passed toRFDwhich implements the
pytorch optimizer interface. The end result can be used liketorch.optim.AdamExample usagefrommnistSimpleCNN.models.modelM3importModelM3# cf. mnistSimpleCNN directory (example model)importtorchimporttorchvisionastvfrompyrfdimportRFD,SquaredExponentialcov_model=SquaredExponential()cov_model.auto_fit(model_factory=ModelM3,loss=torch.nn.functional.nll_loss,data=tv.datasets.MNIST(root="mnistSimpleCNN/data",train=True,transform=tv.transforms.ToTensor()),cache="cache/CNN3_mnist.csv",# should be unique for (models, data, loss))rfd=RFD(ModelM3().parameters(),covariance_model=cov_model)
Package: pyrfdata
pyrfdataGenerate data for performance testing.Installationpip3 install pyrfdataUsagepyrfdata [COMMAND] [OPTIONS]CommandsGenerate datagenerate,genorgcan be used to generate data.OptionsNumber of parallel processesl:10will cause up to 10 parallel processes to spawn to generate data. Defaults to 1 process.Batch sizes:10000will cause upto 10000 rows to be generated by a process at a time. Defaults to 1000.
Package: pyrff
pyrff: Approximating Gaussian Process samples with Random Fourier FeaturesThis project is a Python implementation of random fourier feature (RFF) approximations [1].It is heavily inspired by the implementations from [2, 3] and generalizes the implementation to work with GP hyperparameters obtained from any GP library.Examples are given as Jupyter notebooks for GPs fitted withPyMC3andscikit-learn:Example_RFF_PyMC3_1DExample_RFF_PyMC3_2DThompson sampling, 1D with sklearnInstallationpyrffis released onPyPI:pip install pyrffUsage and Citingpyrffis licensed under theGNU Affero General Public License v3.0.When usingrobotoolsin your work, please cite thecorresponding software version.@software{pyrff,author={Michael Osthege andKobi Felton},title={michaelosthege/pyrff: v2.0.1},month=dec,year=2020,publisher={Zenodo},version={v2.0.1},doi={10.5281/zenodo.4317685},url={https://doi.org/10.5281/zenodo.4317685}}Head over to Zenodo togenerate a BibTeX citationfor the latest release.ReferencesHernández-Lobato, 2014paper,codePES implementation in Cornell-MOEcodeBradford, 2018paper,code
Package: pyrflink
A Python library for interfacing with RFLink hardware=====================================================This project contains a library and examples/tools for interacting withRFlink 433MHz transceiver.For details regarding the RFLink hardware, see the RFLink websiteat http://www.nemcon.nl/blog2/ .Using this library you can create  your own applications built on top ofthe RFLink tranceiver, create RF repeaters or integrate with Homeautomationsystems.Installation------------.. code-block:: bash$ pip install pyrflinkVersion History---------------Version  Date       Changes--------------------------------------------------------------------------0.0.3    20161208   NEW: allow additional init commands on connect (to enable/disable RFLink protocols, for example)CHANGED: incorrect conversion of subzero temperaturesCHANGED: renaming issuesCHANGED: Changed level of some log messages to debugCHANGED: Improved Roller/Shutter detection0.0.2    20161205   CHANGED: Renamed to pyrflink to prevent clash with rflinkpackage0.0.1    20161205   NEW: Initial version