Saravanan666/pypi-org huggingface dataset:
Package: pyrocksdb
Python bindings for RocksDB.
Seehttp://pyrocksdb.readthedocs.orgfor a more comprehensive install and usage description.Quick InstallQuick install for debian/ubuntu like linux distributions.$apt-getinstallbuild-essentiallibsnappy-devzlib1g-devlibbz2-devlibgflags-dev$gitclonehttps://github.com/facebook/rocksdb.git$cdrocksdb$makeshared_lib$exportCPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include$exportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`$exportLIBRARY_PATH=${LIBRARY_PATH}:`pwd`$cd../$apt-getinstallpython-virtualenvpython-dev$virtualenvpyrocks_test$cdpyrocks_test$.bin/active$pipinstallpyrocksdbQuick Usage Guide>>>importrocksdb>>>db=rocksdb.DB("test.db",rocksdb.Options(create_if_missing=True))>>>db.put(b'a',b'data')>>>printdb.get(b'a')b'data'
Package: pyrocksdb-cf
Python bindings for RocksDB.
Seehttp://pyrocksdb.readthedocs.orgfor a more comprehensive install and usage description.Quick InstallQuick install for debian/ubuntu like linux distributions.$apt-getinstallbuild-essentiallibsnappy-devzlib1g-devlibbz2-devlibgflags-dev$gitclonehttps://github.com/facebook/rocksdb.git$cdrocksdb$makeshared_lib$exportCPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include$exportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`$exportLIBRARY_PATH=${LIBRARY_PATH}:`pwd`$cd../$apt-getinstallpython-virtualenvpython-dev$virtualenvpyrocks_test$cdpyrocks_test$.bin/active$pipinstallpyrocksdbQuick Usage Guide>>>importrocksdb>>>db=rocksdb.DB("test.db",rocksdb.Options(create_if_missing=True))>>>db.put(b'a',b'data')>>>printdb.get(b'a')b'data'
Package: pyroclient
API ClientClient for thePyronear APIGetting startedPrerequisitesPython 3.6 (or more recent)pipInstallationYou can clone and install the project dependencies as follows:$gitclonehttps://github.com/pyronear/pyro-api.git$pipinstall-epyro-api/client/.UsageImport the clientfrompyroclientimportclientCreate a client object by handling him the API keysAPI_URL="http://pyronear-api.herokuapp.com"CREDENTIALS_LOGIN="George Abitbol"CREDENTIALS_PASSWORD="AStrong Password"api_client=client.Client(API_URL,CREDENTIALS_LOGIN,CREDENTIALS_PASSWORD)Use it to query alerts:#AS A DEVICE:## Create a deviceevent_id=api_client.create_event(lat=10,lon=10).json()["id"]## Create a mediamedia_id=api_client.create_media_from_device().json()["id"]## Create an alert linked to the media and the eventapi_client.send_alert_from_device(lat=10,lon=10,event_id=event_id,media_id=media_id)## Upload an image on the mediadummy_image="https://ec.europa.eu/jrc/sites/jrcsh/files/styles/normal-responsive/"\+"public/growing-risk-future-wildfires_adobestock_199370851.jpeg"image_data=requests.get(dummy_image)api_client.upload_media(media_id=media_id,image_data=image_data.content)## Update your position:api_client.update_my_location(lat=1,lon=2,pitch=3)LicenseDistributed under the Apache 2.0 License. SeeLICENSEfor more information.DocumentationThe full project documentation is availableherefor detailed specifications. The documentation was built withSphinxusing athemeprovided byPradyun Gedam.
Package: pyrocon
#Conversation in pyrogramfrom pyrocon import patchpatch(client, clear, timeout, stop_cmd, placeholder)client: 'Client' required parameter ( Pyrogram Client )clear: 'bool' required parameter set true if you want delete msg after get answer(Default to False)timeout: 'int' optional parameter (Default to 30 sec)stop_cmd: 'str' optional parameter (Default to/cancel)placeholder: 'str' optional parameter (Custom placeholder for Forcereply)============================================================patch.ask(update, text, cquery, filter)update: 'Message/CallbacQuery' required parameter (Where to start conv..)text: 'str' Required parameter (Question to ask)cquery: 'bool' Parameter set True when asking with inline buttons (Default toFalse)filter: Pyrogram filters optional parameter (Default tofilters.text)============================================================#using example:#Create quiz instancefrom pyrocon import patch
  from pyrogram import Client,filters
  
  app = Client(...)
  quiz = patch(app)

  @app.on_message(..)  
  async def _(client,message):
    answer = await quiz.ask(message,text)
    if answer.text:
     print(answer.text)
    await answer.reply("I got answer..")

  app.run()#handle text messagesanswer = await quiz.ask(message,text)
  if answer.text:
    print(answer.text)
  await answer.reply("I got answer..")#handle CallbackQuery / inline buttonsanswer = await quiz.ask(CallbacQuery,text,cquery=True)
  if answer.text:
    print(answer.text)
  await answer.reply("I got answer..")#Using pyrogram filterssingle filterfrom pyrogram import filters

  answer = await quiz.ask(update,text,filter=filters.photo)
  print(answer.photo)multiple filters (same as pyrogram)from pyrogram import filters

  answer = await quiz.ask(update,text,filter=(filters.photo & filters.group))
  print(answer.photo)#Handle any kind of errorsanswer = await quiz.ask(update,text)
  if answer.error:
    print(answer.error)#Handle timeout Errorsanswer = await quiz.ask(update,text)
  if answer.timeout:
    print(answer.timeout)#Handle cancellation Errorsanswer = await quiz.ask(update,text)
  if answer.cancel:
    print(answer.cancel)Facts:#if successful answer is Message object otherwise an error#answer must be in reply to orginal message and should be a text message otherwise message will be ignored
Package: pyrocore
This project provides a collection of tools for the BitTorrent protocol
and especially therTorrent client. They enable you to filter
rTorrent’s item list for displaying or changing selected items, also
creating, inspecting and changing.torrentfiles, and much more.An optional daemon process (pyrotorque) can add flexible queue
management for rTorrent, starting items added in bulk slowly over time
according to customizable rules. The same daemon can also watch one or
more directory trees recursively for new metafiles using inotify,
resulting in instantaneous loading without any polling and no extra
configuration for nested directories.ThePyroScopecommand line utilities arenotthe same as the
sibling projectrTorrent-PS, and they work perfectly fine without it;
the same is true the other way ‘round. It’s just that both
unsurprisingly have synergies if used together, and some featuresdoonly work when both are present.Further information can be found in themain documentation.To get in contact and share your experiences with other users ofPyroScope,
join thepyroscope-usersmailing list or the inofficial##rtorrentchannel onirc.freenode.net.Copyright (c) 2009 - 2017 The PyroScope Project <pyroscope.project@gmail.com>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: pyrodantic
PyrodanticPydanticmodels forGoogle Firestore.Inspired byfireclass.Installationpip install pyrodanticUsagefromgoogle.cloud.firestoreimportClientfrompyrodanticimportDocument,FirestoreIDfirestore_client=Client()classTestDocument(Document):document_id:FirestoreID=Nonetest_string:strtest_int:inttest_default:str='default'classFirestore:collection='test-collection'doc=TestDocument(firestore_client,test_string='foo',test_int=1)# doc == TestDocument(document_id=None, test_string='foo', test_int=1, test_default='default')doc.create()# doc == TestDocument(document_id='4f7be295accc473aa87844ec6f98443c', test_string='foo', test_int=1, test_default='default')doc=TestDocument.get('4f7be295accc473aa87844ec6f98443c',firestore_client=firestore_client)# doc == TestDocument(document_id='4f7be295accc473aa87844ec6f98443c', test_string='foo', test_int=1, test_default='default')docs=list(TestDocument.where('test_string','==','foo',firestore_client).stream())# docs[0] == TestDocument(document_id='4f7be295accc473aa87844ec6f98443c', test_string='foo', test_int=1, test_default='default')docs[0].delete()doc=TestDocument.get('4f7be295accc473aa87844ec6f98443c',firestore_client=firestore_client)# doc == NoneTODOSupport transactionsSupport sub-collections
Package: pyrodeo
PyrodeoPyrodeo is a Python implementation of the isothermal hydrodynamic
solver RODEO  (ROe solver for Disc-Embedded Objects). Its main purpose
is to perform numerical simulations of astrophysical (gas) discs.FeaturesTwo- and three-dimensional inviscid isothermal hydrodynamics using a
Riemann solver.Second order in space and time in regions of smooth flow.Different geometries: Cartesian, Shearing Sheet, cylindrical
coordinates and spherical coordinates.HDF5 outputQuick startPyrodeo can be installed from the command line simply by entering:pip install pyrodeoA simple simulation can be created and run by entering:importpyrodeosim=pyrodeo.Simulation.from_geom('cart')sim.evolve([0.25])Since the standard initial conditions consist of constant density and
pressure and zero velocity, no visible evolution takes place. For more
interesting examples, see the documentation.DocumentationThe full documentation can be found athttp://pyrodeo.readthedocs.orgChangelogVersion 0.0.9Add ‘symmetric’ boundary conditionAllow different boundary conditions inner/outer boundaryRename ‘reflect’ boundary to ‘closed’ boundary and ‘nonreflect’ to ‘nonreflecting’Various small fixesVersion 0.0.8Small fixes in tests and documentationVersion 0.0.73D isothermalSpherical coordinatesLogarithmic radial coordinateVarious small fixesVersion 0.0.6Makesource_funca source term integrator rather than just returning the extra source terms.Move tests inside package.Version 0.0.5Initial release
Package: pyrodraw
OverviewLibrary based onmatplotlib(>=3.3) to draw the pyrochlore lattice (corner-sharing tetrahedra) and configurations of the Spin Ice model.Installation$ pip install pyrodrawBasic usageIt can, and probably should, be executed as a script:python -m pyrodraw [<parameters>...]and follow the instructions which appear on the screen.Depending on the parameters supplied:No arguments: draws only the pyrochlore lattices and adds details such as names to the axes.'+ z': draws the spin ice +z configuration.'ms': draws the saturation configuration with the field at [111], with positives simple monopoles in all Up Tetrahedra.'md': draws the configuration with positive double monopoles in all Up Tetrahedra.Name of a file along with a column number: the data is obtained from it to draw the configuration.It's also possible to import it and use it to draw more specific configurations.Possible general improvementsThe following are things I didn't know how to do it properly by the time I built the library, and for the purpose of the project it didn't worth changing them when I published it.The documentation is not properly done (doesn't follow a docstring convention), and it's in spanish.It probably should useargparsefor managing the arguments.ToDoAdd a circle path as a bottom lid for the arrows.Be possible to annotate the field direction when using the field arrow.
Package: pyroe
pyroeAboutpyroeAlevin-fryis a fast, accurate, and memory frugal quantification tool for preprocessing single-cell RNA-sequencing data. Detailed information can be found in the alevin-frypre-print, andpaper.Thepyroepackage provides useful functions for analyzing single-cell or single-nucleus RNA-sequencing data usingalevin-fry.  The documentation forpyroehas its own dedicated website.  Please visit theReadTheDocs pyroe website here.
Package: pyroengine
PyroEngine: Wildfire detection on edge devicesPyroEngine provides a high-level interface to use Deep learning models in production while being connected to the alert API.Quick TourRunning your engine locallyYou can use the library like any other python package to detect wildfires as follows:frompyroengine.coreimportEnginefromPILimportImageengine=Engine("pyronear/rexnet1_3x")im=Image.open("path/to/your/image.jpg").convert('RGB')prediction=engine.predict(image)SetupPython 3.6 (or higher) andpip/condaare required to install PyroVision.Stable releaseYou can install the last stable release of the package usingpypias follows:pipinstallpyroengineDeveloper installationAlternatively, if you wish to use the latest features of the project that haven't made their way to a release yet, you can install the package from source:gitclonehttps://github.com/pyronear/pyro-engine.git
pipinstall-epyro-engine/.Full docker orchestrationFinally, you will need a.envfile to enable camera & Alert API interactions. Your file should include a few mandatory entries:API_URL=http://my-api.myhost.com
LAT=48.88
LON=2.38
CAM_USER=my_dummy_login
CAM_PWD=my_dummy_pwdAdditionally, you'll need a./datafolder which contains:credentials.json: a dictionary with the IP address of your cameras as key, and dictionary with entrieslogin&passwordfor their Alert API credentialsmodel.onnx: optional, will overrides the model weights download from HuggingFace Hubconfig.json: optional, will overrides the model config download from HuggingFace HubDocumentationThe full package documentation is availableherefor detailed specifications.ContributingPlease refer toCONTRIBUTINGif you wish to contribute to this project.CreditsThis project is developed and maintained by the repo owner and volunteers fromData for Good.LicenseDistributed under the Apache 2 License. SeeLICENSEfor more information.
Package: pyroexr
pyroexrThis is a minimal Python wrapper around the Rustexr crate,
which provides fast loading ofOpenEXRfiles.Note that this project only supports the functionality we currently need ourselves.
For instance, the package assumes you want to load the entire file into memory
and that there is only one layer in the file.
I have no current plans to extend it further, but contributions are of course welcome.InstallationThe package can be installed directly from PyPI:python-mpipinstallpyroexrUsageA file can be opened and its channels printed as follows:importpyroexrimage=pyroexr.load("Ocean.exr")print("Channels",image.channels())Channels ['B', 'G', 'R']Each channel can be accessed as a NumPy array, for instance to plot it in Matplotlib:importmatplotlib.pyplotaspltplt.imshow(image.channel("B"))plt.show()DevelopmentIf you want to develop this package locally, use thematurintool
to build the Rust code and install the Python package in your current environment:maturindevelopYou can also use the maturin tool to build the wheels or publish the package.
See the maturin documentation for more details.
Package: pyrofi
AboutPyRofi wrapsRofiand helps you to build the hierarchical menus with neat navigation. You can also use teWofias the "backend".InstallationMake sure that you have the Rofi or the Wofi installed. Then justpython3 -m pip install --update --user pyrofi(requires Python^3.6).Example#!/usr/bin/env python3frompyrofiimportrun_menudefhello_world(_):print('Hello World!')defdice():importrandomreturn['echo',random.choice('123456')]run_menu({'Calculator':['xcalc'],'Games':{'Rogue':['rogue'],'Angband':['angband']},'Calendar':['ncal','2019'],'Hello World':hello_world,'Dice':dice,})If you want to use Wofi, you will need to addmenu_cmd=pyrofi.WOFI_CMD(or justmenu_cmd='wofi) to therun_menucall.More complex example you can seehereand run it withpython3 -m pyrofi.
Package: pyrofiler
PyrofilerToolset for granular memory and cpu live profilingQuick startContextmanager that measures time of execution# examples/simple_profile.pyimportpyrofilerimporttimewithpyrofiler.timing('Time elapsed'):time.sleep(1)$pythonsimple_profile.pyTime elapsed : 1.001563310623169Decorators for profiling functions# examples/simple_profile_cpu.pyimportpyrofiler@pyrofiler.cpu_util(description='Cpu usage')@pyrofiler.timed('Time elapsed')defsum_series(x,N):returnsum([x**i/iforiinrange(1,N)])sum_series(.3,1000_000)$pythonsimple_profile_cpu.pyTime elapsed : 0.13478374481201172
Cpu usage : 29.4Aggregate the results in common context:# examples/profile_with_context.pyfrompyrofilerimportProfilerimporttimeprof=Profiler()withprof.timing('Time 1'):time.sleep(1)withprof.timing('Time 2'):time.sleep(1.5)print('Profiling data recorded:')print(prof.data)$pythonprofile_with_context.pyTime 1 : 1.0011215209960938
Time 2 : 1.5020403861999512
Profiling data recorded:
{'Time 1': 1.0011215209960938, 'Time 2': 1.5020403861999512}You can use other actions, for example appending results to some list in data.
Check thedocumentationfor more use casesDesignThere are following types of objects in pyrofiler:Measures, which are run as a context managerDecorators, that are based onmeasuresProfilerclass that usesdecoratorsto aggregate dataCallbacksThedecoratorshave an optional argumentcallback,
to which you can pass a function that will handle the data.
The function will be passed profiling results as a first argument,
as well as any other arguments that you provided to originaldecorator.Here, a customspiceargument is provideddefprint_spicy_time(time,spice):print(f'Spice{spice}took{time}seconds')@pyrofiler.timed(spice='spicy',callback=print_spicy_time)defspicy_sleep():time.sleep(10)Similar productsSyrpyhttps://github.com/jeetsukumaran/SyrupyScalenehttps://github.com/emeryberger/scalene… and lots ofothersProblemsEither you have a cli tool that profiles memory and cpu, butno code api for granular dataor you have stuff like decorators andno memory profilingHaving a live dashboard would help also, usehttps://github.com/libvisfor thatFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-03-04)First release on PyPI.
Package: pyrofork
Telegram MTProto API Framework for PythonHomepage•Documentation•Issues•Support Chat•News/ReleasesPyroforkElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrofork!")app.run()Pyroforkis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrofork, you can consider:Become a GitHub sponsor.Key FeaturesReady: Install Pyrofork with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyroforkResourcesCheck out the docs athttps://pyrofork.mayuri.my.idto learn more about Pyrofork, get started right
away and discover more in-depth material for building your client applications.Join the official group athttps://t.me/MayuriChan_Chatand stay tuned for news, updates and announcements.
Package: pyrogen
This package is an Entity-Component-System based framework used to create 2D games.This is an early stage of development, but you can still check if the demo scene runs on your machine. If not, please don't hesitate to create an issue on the github page, joining all useful information such as the version you used, your machine configuration (OS, GPU, OpenGL Driver version), and also the full copy of the terminal output. If it runs, but slowly, please indicate the number of FPS you have (visible in the terminal output also).Installationpyrogen is installable directly from Pypi:pip install pyrogenDocumentationComing soon .... or not ^^Code Examples / TutorialsIf you want to run the very first demo scene, just use the following command :python -m pyrogen.tutorials.dev_test.dev_testCommunityContactRomuald GRIGNONromuald.grignon@gmail.com
Package: pyrogg
What is it?pyrogg is a simple recoding library for Ogg-Vorbis audio files, implemented in Cython.
It reads Vorbis streams from the provided input files and recodes them to the desired
quality level (-1 … 10).  It comes with a handy command line interface.ExampleCommand line usage:$ recode.py -d outputdir --quality=1 --parallel=3 input1.ogg input2.ogg input3.oggPython usage:>>> from pyrogg import VorbisFileRecoder
>>> rec = VorbisFileRecoder("input.ogg")

>>> time = rec.recode("output.ogg", quality=1)Since the time used for decoding is substantially lower than that used for
encoding, you might want to set the following environment variable to avoid
busy waiting OpenMP threads:OMP_WAIT_POLICY=PASSIVEWhy would I use it?It can recode files on the file-system as well as file-like objects.It uses OpenMP to decode and encode an input stream in parallel, as well as
multiprocessing to recode multiple files in parallel.  So it can use
all resources that your machine can provide, which makes it pretty fast.Parallel recoding of separate input files is thread-safe and frees the GIL.Why would I not use it?Currently, error handling isn’t very elaborate, so unexpected errors may
crash your system.  This should be easy to fix with a little work, and
help on this is certainly appreciated.  (Fear not, it’s written in Cython,
not C.)It’s not meant to recode streams on the fly, just files and file-like
objects.  Currently, input files/objects must allow random access through
seek().  This should be fixable.How can I install it?Using pip:pip install pyroggNote that this will do a source build, so you need a properly configured
C compiler on your system that can build Python extension modules, as well
as the library packageslibogg,libvorbis, and their corresponding
development packages.  Most operating systems (including all commonly used
Linux distributions) will allow you to install them via the normal package
management tool.  For the development packages, look for packages calledlibogg-devorlibogg-devel.For Windows and MacOS, however, you need to install them manually.  See here:https://www.xiph.org/downloads/
Package: pyroglancer
Pythonic interface to neuroglancer for displaying neuronal data like
neurons, synapses, meshes (surfaces, volumes), annotations (points) in
the precomputed format.InstallationThe easiest way to install the package is viapip:$ pip3 install pyroglancerThe easiest way to install the latest developments fromGitHubis:$ pip3 install git+git://github.com/SridharJagannathan/pyroglancer@masterDocumentationhttps://SridharJagannathan.github.io/pyroglancerFeaturesFetch and display neurons/neuropil meshes from electron microscopy (EM) datasets like hemibrain, FAFB etc and light microscopy (LM)
neurons in mesh format.Display locally modified neurons or neuropil meshes.Display synapse annotations etcElementsFormatSourceDatasetsneuronskeletons (swc) or volumetric meshesCATMAID,neuprint,vritualflybrainor other locally modified dataEM datasets like FAFB, hemibrain or any other LM dataset like lineage clones etcneuropilsvolumetric meshesCATMAID,neuprintor other locally modified dataFAFB, hemibrainsynapsespoint annotations or precomputed formatneuroglancer layers or other locally modified dataFAFB, hemibrainAcknowledgementsThanks toJeremy Maitin-Shepardfrom google
for inventing the precomputed format and answering many of my queries. The pyroglancer
logo was inspired fromPyPy. The pyroglancer critically depends on
packages likeNAVisfor interfacing with neuron data.Copyright & LicenseCopyright (c) 2021,Sridhar Jagannathan.
3-clause BSD License.