Saravanan666/pypi-org huggingface dataset:
Package: rayter
RayterRayter is a program for generating player ratings from a number of games,
with the results stored in a file.It can be used in the form as a command line program, or as a Python library.Installing Rayterpip install rayterRunning Rayter Command Line Toolrayter games_file.txtUsing Rayter as a libraryRayter can be used as a python library>>>fromrayter.raterimportrate_single_game,SCORE_TYPE_HIGH_SCORE>>>scores=[100,74,93]>>>ratings=[1889,1400,1662]>>>rating_changes=rate_single_game(scores,ratings,score_type=SCORE_TYPE_HIGH_SCORE)>>>rating_changes[-1.7346441947565552,-1.3906367041198422,3.1252808988764116]Rayter file formatThe rayter file format expected by the Rayter Command Line Tool is designed
to be easily created by hand using a text editor. Here is an example for a
file containing two games of Hearts:score_type lowscore

game 2011-12-24 22:00
Jessica     95
Hugo        77
Jonatan     89
Jakob       103

game 2011-12-24 23:19
Hugo        107
Jonatan     96
Peter       65
Jakob       70score_type lowscoremeans that in this game the goal is to have as
low score as possible. The options forscore_typearelowscore,highscore(the default, if score_type is not specified), andwinner_takes_all(used for games with binary results, e.g. Chess).Number of whitespace characters doesn't matter.The format of the timestamp is year-month-day hour:minute, where hour
is from 0 to 23. The timestamp is currently not used more than as an
identifier of the game.Rayter AlgorithmEvery player starts with a rating of 1000. The sum of all ratings will
always be 1000 * the number of players in the league. So if one player
gets +60 rating in a game, and all other players lose rating, the sum
of their rating change will be -60.If a player with a rating of 1200 is playing against an opponent with
a rating of 1000, the first player is expected to get 20% more points
than the second one. That means that if the first player scores 240
points in the game, and the second player scores 200, the rating
change of both players will be 0, since 240 divided by 200 equals 1200
divided by 1000.Example:Here are some results in a made-up card game:game 2011-12-24 23:19
Dahlia        27
John          15
Ahmed         14
Lei           10

game 2011-12-25 21:12
John          23
Dahlia        10
Lei           4
Ahmed         4After the first game, the ratings will look like this:Name             Games   Rating    Delta
Dahlia               1     1032       32
John                 1      995       -5
Ahmed                1      992       -8
Lei                  1      980      -20When the second game was played, the ratings changed to this:Name             Games   Rating    Delta
John                 2     1058       62
Dahlia               2     1029       -3
Ahmed                2      962      -30
Lei                  2      951      -30For the full details see therate_single_game()function inrater.py.
Package: rayter-generator
rayter-generatorA static site generator for game ranking leagues.DevelopingThis is more a set of notes than a full-fledged guide.Get startedpip install -e .rayter-generate-website --games-path <path to games folder> --output <output folder>python3 -m http.server 8000in output folder.When done with changeCommit change.Bump version in pyproject.toml and commit.git tag <same version>Push commits and tag.Wait forhttps://github.com/rayter-org/rayter-generator/actionsto build.Optionally: ask someone to code review.Click "Run workflow" onhttps://github.com/<your user>/<your games repo>/actions/workflows/build.yml.Go to  to see the result.
Package: raytf
The raytf framework provides a simple interface to support distributed training on ray,
including tensorflow/pytorch/mxnet. Now tensorflow has been supported,
others will be included in later.Quick StartOnly tested under Python3.6 versionInstall the latest ray version:pip install rayInstall the latest raytf:pip install raytfGit clone this project:git clonehttps://github.com/zuston/raytf.gitEnter the example folder and execute the python script file, like the following command.cdraytfcdexamplepythonmnist.pyHow to Usefromraytf.raytf_driverimportDriver# When you using it in local single machine# ray.init()tf_cluster=Driver.build(resources={'ps':{'cores':2,'memory':2,'gpu':2,'instances':2},'worker':{'cores':2,'memory':2,'gpu':2,'instances':6},'chief':{'cores':2,'memory':2,'gpu':2,'instances':1}},event_log='/tmp/opal/4',resources_allocation_timeout=10)tf_cluster.start(model_process=process,args=None)This training code will be attached to the existed perm-Ray cluster. If
you want to debug, you can useray.init()to init Ray cluster in
local.When you specify the event_log in tf builder, sidecar tensorboard will
be started on one worker.GANG scheduler has been supported.Besides raytf provides the
configuration of timeout for waiting resources
which is shown in above code. Theresources_reserved_timeoutunit is secHow to build and deploy<Requirement>python-mpip install twinepython setup.py bdist\_wheel--universalpython-mpip install xxxxxx.whltwine upload dist/*TipsTo solve the problem of Python module importing on Ray perm-cluster,
this project must use Ray 1.5+ version, refer to this
RFC(https://github.com/ray-project/ray/issues/14019)This project is only be tested by Tensorflow estimator training
Package: raytils
raytilsSuite ofmyutility packages for Python.DocumentationPlease refer to thedocumentationfor installation instructions and API usage.Citing RaytilsIf you use raytils in your research please use the following BibTeX entry and any BibTeX entries for used functions.@misc{rk2020raytils,author={Raymond Kirk},title={raytils},howpublished={\url{https://github.com/RaymondKirk/raytils}},year={2020}}
Package: raytools
raytools (0.1.7)working with hdr images, numpy and coordinate transformations for lighting simulation (basic libraries for raytraverse).
Installs with a command line tool for calculating daylight metrics from angular fisheye images (similar to evalglare).Free software: Mozilla Public License 2.0 (MPL 2.0)Documentation:https://raytools.readthedocs.io/en/latest/.InstallationRaytools requires MacOS or Linux operating system with python >=3.7. For
windows you can consider using docker (https://www.docker.com/products/docker-desktop/).
raytools can be installed in the python:3.9 container.The easiest way to install raytools is with pip:pip install --upgrade pip
pip install raytoolsor if you have cloned this repository:cd path/to/this/file
pip install .Note: raytools depends on a small subset of Radiance executables
(rcalc, vwrays, getinfo, pvalue). If these are not available in the $PATH at
the time of installation, then those precompiled (macos or linux) binaries will
be installed to the same bin/ as the current python (and raytools), which could be
in a virtualenv. This avoids overriding the existing install of these programs,
but it does require that you make sure that the enviroment at installation is the same as
when using raytools.Getting StartedAfter installation, the raytools executable should be available from the command line.
See “raytools –help” and “raytools metric –help” for usage.History0.1.0 (2023-01-06)First release on PyPI.basic library and image metric CLI split off from raytraverse
Package: raytracemrt
raytracemrtPython codes to calculate the Mean Radiant Temperature from thermal scans and geometry point cloudGetting startedThese instructions on written for Python on windows.Install Python 3.11 (https://www.python.org/)Create a virtual environment with 'py -m venv ray' this will create a virtual environment in the directory ray of your current directory (https://realpython.com/python-virtual-environments-a-primer/#deactivate-it)Activate the environment ray\Scripts\activate'pip install raytracemrt'download the example file here: 'https://github.com/chenkianwee/raytracemrt/tree/main/example/ply' right click on the file and 'save link as'execute the program with the example with these parameters:raytracemrt -s your/directory/example1_therm.ply -x 0 0 1.5 -d 4 5 3.5 -z 0.3 -g 0.5 0.5 1 0.5go to the directory where you have downloaded the example file. All the results will be in a folder called 'example1_therm_result'.the folder will have 5 folders to store all the intermediate results. Check the mrt folder to get the mrt results.
Package: ray-voxel-overlap
Estimate the euclidean overlap passed by a ray within a rectangular volume
cell (voxel).For a given, rectangular space partitioning in 3D, and a given ray the
overlap of all voxels with the ray is estimated.
The figure shows a ray and its overlap with voxels.
A brown overlap with voxel3, a red overlap with voxel0, a purple
overlap with voxel4, and a green overlap with voxel5. The ray is
defined by its support and direction vectors. The space-partitioning is
defined by its bin-edges.Installpipinstallray_voxel_overlapInterfaceThere is one core function:importray_voxel_overlapray_voxel_overlap.estimate_overlap_of_ray_with_voxels?"""
Returns the voxel indices and overlap distances for one single ray
(defined by support and direction) with voxels defined by the bin_edges
in x,y and z.

support         3D support vector of ray.

direction       3D direction vector of ray.

x_bin_edges     voxel bin edge positions in x.

y_bin_edges     voxel bin edge positions in y.

z_bin_edges     voxel bin edge positions in z.
"""There are two more functions:2ndray_voxel_overlap.estimate_system_matrix()Create a system-matrix using scipy.sparse matrix which can be used for
iterative tomographic reconstructions.3rdray_voxel_overlap.estimate_overlap_of_ray_bundle_with_voxels()Average the overlap of multiple rays representing a single read-out-channel.
This is useful when a single ray is not representative enough for the
geometry sensed by a read-out-channel in your tomographic setup, e.g. when
there is a narrow depth-of-field.Tomographic system-matriximportnumpyasnpimportray_voxel_overlapasrvonp.random.seed(0)N_RAYS=100supports=np.array([np.random.uniform(-2.5,2.5,N_RAYS),np.random.uniform(-2.5,2.5,N_RAYS),np.zeros(N_RAYS)]).Tdirections=np.array([np.random.uniform(-0.3,0.3,N_RAYS),np.random.uniform(-0.3,0.3,N_RAYS),np.ones(N_RAYS)]).Tnorm_directions=np.linalg.norm(directions,axis=1)directions[:,0]/=norm_directionsdirections[:,1]/=norm_directionsdirections[:,2]/=norm_directionsN_X_BINS=8N_Y_BINS=13N_Z_BINS=7system_matrix=rvo.estimate_system_matrix(supports=supports,directions=directions,x_bin_edges=np.linspace(-100.,100.,N_X_BINS+1),y_bin_edges=np.linspace(-100.,100.,N_Y_BINS+1),z_bin_edges=np.linspace(0.,200.,N_Z_BINS+1),)How it is doneTo be fast, the production-code is written inCand wrapped incython.
But for development, there is apythonimplementation.AuthorsSebastian A. Mueller,ETH-Zurich, Switzerland (2014-2019),MPI-Heidelberg, Germany (2019-)
Package: rayyan-sdk
Rayyan Python SDKA Python SDK forRayyan, the popular systematic reviews platform.
It is a wrapper around theHTTP APIsof Rayyan.InstallationTo install the latest stable release of Rayyan Python SDK, execute the following command:pipinstallrayyan-sdkFor the nightly builds, execute the following command:pipinstall-ihttps://test.pypi.org/simple/rayyan-sdkUsageTo use the SDK, you need to have a credentials file in JSON format like the one below.
You can retrieve such file by signing in to your Rayyan account
(create a free account if you don't have one) and visiting My Account page.// creds.json{"access_token":"9c2b0fe74ab7cd8d1227cd2fd","refresh_token":"b40e325a1a7f53831ec3c09fffc7"}Import Rayyan main class and pass the credentials file to it like this:rayyan=Rayyan("cred.json")Note: The credentials file should be kept secret and not shared with anyone.
It acts as a password to your Rayyan account.To get the authenticated user info:user=rayyan.user.get_info()DocumentationThe full documentation for Rayyan Python SDK is available in thedocsfolder on GitHub.
You can also find a Juptyer notebook with examples inrayyan-api.ipynb.DevelopmentTo build Rayyan Python SDK from source, execute the following command in a terminal:gitclonehttps://github.com/rayyansys/rayyan-python-sdkcdrayyan-python-sdk
pythonsetup.pydevelopSupportIf you have any questions or problems with the SDK,
please check existing issues onGitHub,
or open a new issue if needed.
For questions about Rayyan itself, please use the RayyanHelp Center.
Package: razator-utils
Razator UtilsA pypi package for personal use. Containing common functions I use.Free software: GNU General Public License v3Documentation:https://razator-utils.readthedocs.io.FeaturesEasy logging functionsbatchify- function to easily group iterablescamel_to_snake- function to convert camelCase to snake_caseflatten_dict- take a nested dictionary and make it a single level dictionaryCreditsThis package was created withCookiecutterand my ownrazator73/cookiecutter-pypackagea fork ofaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-08-10)First release on PyPI.Has easy log functionsbatchifyfunctioncamel_to_snakefunction
Package: raze
RAZE is a free collection of Python modules intended as an extension to thestandard libraries.The target Python version is 2.4.* coalesce - Utilities for selecting the first "usable" value in a sequence.* container - Extended container types and utilities.* enumeration - Base class for user-defined enumeration types.* func - Function utils and functional programming tools.* import_ - Delayed import for combatting circular dependencies.* logging_ - Extensions to the standard logging module.* misc - Miscellaneous helper/utility classes and functions.* namestyle - Convert identifier names between conventions.* net - Networking support classes.* optparse_ - Free-form option parser.* password - Password generation and strength testing.* path - Extensions and helpers to the standard os.path module.* phonetic - NATO phonetic alphabet utilities.* property_ - Extensions to the standard property type.* singleton - Enforced singleton pattern.* test - Bootstrapping function for running Raze doctests.* threading_ - Extensions to the standard threading module.* transform - Multi-step transformations of multiple values.* visitor - Classes for simple implementation of the visitor pattern.
Package: razemax
Razemax✉️ Async communications using AWS SNS + SQS for Python services ✨DocumentationIn-Memory event managerShow me the codefromrazemax.event_managerimportEventManagerclassNorthKoreaThreatCreatedEvent:def__init__(self,id,target):self.id=idself.target=targetdeftrump_subscriber(event:NorthKoreaThreatCreatedEvent):print(f"North korea will attack us or{event.target}!")EventManager.subscribe(trump_subscriber,NorthKoreaThreatCreatedEvent)EventManager.trigger(NorthKoreaThreatCreatedEvent(0,"Mexico"))Result:North korea will attack us or Mexico!Trigger subscribers from SQSPreconditionsSQS queue has to be subscribed to SNS topic before running the consumerCodefromrazemax.consumersimportMessageConsumerfromrazemax.driversimportSQSDriverfromrazemax.event_managerimportEventManagerfromrazemax.publisherimportSNSMessagePublisherdefkp_message_to_event(message):# Highly recommended to use Marshmallow to validatereturnNorthKoreaThreatCreatedEvent(message.body['id'],message.body['target_name'])mapper={'KPThreatCreated':kp_message_to_event}aws_settings={'region_name':"",'aws_access_key_id':"",'aws_secret_access_key':"",'endpoint_url':""}queue_driver=SQSDriver.build("korea-threats-queue",aws_settings)MessageConsumer(mapper,EventManager,queue_driver).process_message()publisher=SNSMessagePublisher.build(aws_settings,'korea-topic')publisher.publish('KPThreatCreated',{'id':21,'target_name':'Portugal'})Result:North korea will attack us or Portugal!Installing (TODO)pip install git@github.com/transporterRunning the testsTo run end to end tests do:make unit-tests
make integration-testsAuthorsJairo Vadillo (@jairovadillo)LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: razer-chroma-keyboard
What is this library ?This library allows a python application or script to change the keys backlight colors of a razer chroma compatible keyboard.
A demo is also available.How to install ?Installhttps://www.razer.com/fr-fr/synapse-3.Create an environment and activate it if you want to (optionnal).Executepip install razer-chroma-keyboardHow to test ?Executepython -m razer_chroma_keyboard. You should see promptly (in less than 3 seconds) the result on your keyboard.How to use as a library ?Import withimport razer_chroma_keyboard. For this example, alsoimport time.
Prepare your (R, G, B) color tuples matrix. So you know the dimensions, you can use this black matrix and modify it :m = [[(0, 0, 0) for _ in range(22)] for _ in range(6)].
Then you can use a with statement (to allow fine control of the connection) like this :with razer_chroma_keyboard.razerServerChromaConnection() as connection :
    connection.apply_chroma_custom(m)
    while True: time.sleep(1)The second line is because, when the with statement is left, the connection will be stopped, and the keyboard will back to it's previous state after a moment (if another software controls it).
Example of full code to turn the whole keyboard into a specific color :import razer_chroma_keyboard
import time

def change_color(color: tuple[int, int, int] = (50, 50, 50)):
    m = [[color for _ in range(22)] for _ in range(6)]
    with razer_chroma_keyboard.razerServerChromaConnection() as connection :
        connection.apply_chroma_custom(m)
        while True: time.sleep(1)

change_color((255, 191, 0)) #  Amber yellow.
Package: razorback
razorbackAn open source python library for magnetotelluric robust processing.It provides robust (M-estimator, Bounded Influence) and multi-remote methods for MT.How to citeIf you use this software in a scientific publication, we'd very much appreciate if you could cite the following paper:Smaï, F., and Wawrzyniak, P., 2020.
Razorback, an open source Python library for robust processing of magnetotelluric data.
Frontiers in Earth Science.https://doi.org/10.3389/feart.2020.00296InstallingJust usepipto get razorback and all its dependencies:pip install razorbackTutorialsGet the tutorials and their attached data by cloning the repository with its submodules:git clone --recursive https://github.com/brgm/razorback.gitYou will find the tutorials in./docs/source/tutorials/DependenciesPython >= 3.6NumpyScipyDaskSupported PlatformsLinux, Windows, MacOSRunning testsTo run the tests, clone the repository and run pytest in the main directory:pytestDocumentationhttps://razorback.readthedocs.io
Package: razorbird
RazorbirdRazorbird is a WSGI application server for Python.
Well, or just me trying to learn some Rust.Needless to say, do not use it for anything serious.
Apart from being hampered by my poor Rust skills, it has serious flaws:Request is buffered in memory without any restrictions.Response is not streamed but concatenated to a byte string.Single process/single threaded cause I haven't found out how to make Tokio
threads work with PyO3.The server is always (hardcoded) bound tohttp://127.0.0.1:8000.Signal handling is an example of horrible duct taping.Patches welcome!InstallationI have been lazy to upload wheels, so you'll need access to a functional Rust
environment withcargo,rustcetc. Then just install from sdist:$ pip install razorbirdUsageDon't.Well, if you'd really like to give it a spin, just run$ razorbird your.module.nameyour.module.nameshould contain a WSGI callable namedapplication,apporapi, but that is customizable from the command line.
Package: razorpay
Razorpay Python ClientPython bindings for interacting with the Razorpay APIThis is primarily meant for merchants who wish to perform interactions with the Razorpay API programatically.Installation$pipinstallrazorpayUsageYou need to setup your key and secret using the following:
You can find your API keys athttps://dashboard.razorpay.com/#/app/keys.importrazorpayclient=razorpay.Client(auth=("<YOUR_API_KEY>","<YOUR_API_SECRET>"))App DetailsAfter setting up client, you can set your app details before making any request
to Razorpay using the following:client.set_app_details({"title":"<YOUR_APP_TITLE>","version":"<YOUR_APP_VERSION>"})For example, you can set the title toDjangoand version to1.8.17. Please ensure
that both app title and version are strings.Supported ResourcesAccountAddonItemCustomerTokenFundOrderPaymentsSettlementsRefundsInvoiceSubscriptionsPayment LinksSmart CollectRouteQR CodeEmandateCardsPaper NACHUPIRegister Emandate and Charge First Payment TogetherRegister NACH and Charge First Payment TogetherPayment VerificationProduct ConfigurationStakeholderWebhookBugs? Feature requests? Pull requests?All of those are welcome. You canfile issuesorsubmit pull requestsin this repository.
Package: razorpay.alohomora
Razorpay’s Secret Credential management system.Installationalohomora is distributed via PyPi:pipinstallrazorpay.alohomoraWhat?Alohomora is an opinionated project that relies on our conventions to
intelligently fetch secrets at run-time.We don’t do our own crypto. We rely on these libraries instead:https://github.com/fugue/credstashThis is how the template file looks in our app
repository:# {{ alohomora_managed }}
DB_PASSWORD      = {{ lookup('db_password') }}
APP_ENV          = {{ env }}
ENV_DEBUG        = {{ ENV['DEBUG'] }}
APP_NAME         = {{ app }}This repo runs directly on the same template and generates the
equivalent file as the output.The steps it follows are the following:Figure out the tables from which to read. All secrets are stored in acredstash-env-apptable structure in dynamoDB.Fetch all secrets from that table using credstashRender the template with the secrets using jinjaHow it Works?Alohomora expects the secrets for any application to be stored in a
table calledcredstash-{env}-{app}. The IAM roles for this table
must be configured by you. Once you try to render a template, alohomora
will do the following:Read the entire table and decrypt all secrets and cache them locally.Render the template with these files and 3 extra variables:env,app, andENVvariables.ENVis same asos.environinside the jinja template.Configuration?Alohomora is designed to be a zero-config solution.We perform a few transforms on the arguments that are passed:Change bothappandenvto lowercaseReplaceproductionwithprodin theenvnameIgnore anything after-in the environment. Sobeta-birdiebecomesbetaUsagePlease see the wiki regarding alohomora binary usage.LICENSEalohomorais released under the same license as credstash.
Package: raztools
Very simple library that allows you to do some basic commands such as login page,clear terminal and other things.Useful commands:MakeLogin(‘USERNAME’,’PASSWORD’) #for creating a login pagecleart() #for clearing the chatsurefile(example.txt)wait(2)#wait x secondsclose() #close the programWorks with all platforms.(windows , linux etc.)Change Log0.0.1 (07/09/2020)First release