Saravanan666/pypi-org huggingface dataset:
Package: rizthme
RizthmeRequierementFirst step is to add in your environments variables,
a variables named "TOKEN" with in value, your discord application token.do this with:foo@bar:~$exportTOKEN=<yourtoken>orWrite a .env file at project rootnext, check that the ffmpeg module is installed on your device.foo@bar:~$ffmpeg-versionif notfoo@bar:~$sudoaptinstallffmpeg#orequivalentdependingonyoursystemTo launch the discord clientfoo@bar:~$python3run.pyAutomatically script launchingFor Linux userFor use automatically your virtual environment. (The virtual environment name need to be "venv/")foo@bar:~$makepython-runif you want to use rizthme on docker container you can use make script for thisfoo@bar:~$makebuilddocker-runAnd to delete stop or restart him check Makefile possibilities
Package: rizz-wsgi
Rizz: Python Web Framework for building WSGI appsImplements the Web Server Gateway Interface (WSGI)Rizz is a Python web framework and can be used with any WSGI application server such as Gunicorn.Installationpipinstallrizz-wsgiHow to use itBasic usage:fromrizz_wsgi.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello there"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Rizz WSGI","title":"Best Framework"}).encode()Unit TestsThe recommended way of writing unit tests is withpytest. There are two built in fixtures
that you may want to use when writing unit tests with Rizz WSGI. The first one isappwhich is an instance of the mainAPIclass:deftest_route_overlap_throws_exception(app):@app.route("/")defhome(req,resp):resp.text="Welcome Home."withpytest.raises(AssertionError):@app.route("/")defhome2(req,resp):resp.text="Welcome Home2."The other one isclientthat you can use to send HTTP requests to your handlers. It is based on the famousrequestsand it should feel very familiar:deftest_parameterized_route(app,client):@app.route("/{name}")defhello(req,resp,name):resp.text=f"hey{name}"assertclient.get("http://testserver/matthew").text=="hey matthew"TemplatesThe default folder for templates istemplates. You can change it when initializing the mainAPI()class:app=API(templates_dir="templates_dir_name")Then you can use HTML files in that folder like so in a handler:@app.route("/show/template")defhandler_with_template(req,resp):resp.html=app.template("example.html",context={"title":"Awesome Framework","body":"welcome to the future!"})Static FilesJust like templates, the default folder for static files isstaticand you can override it:app=API(static_dir="static_dir_name")Then you can use the files inside this folder in HTML files:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>{{title}}</title><linkhref="/static/main.css"rel="stylesheet"type="text/css"></head><body><h1>{{body}}</h1><p>This is a paragraph</p></body></html>MiddlewareYou can create custom middleware classes by inheriting from therizz_wsgi.middleware.Middlewareclass and overriding its two methods
that are called before and after each request:fromrizz_wsgi.apiimportAPIfromrizz_wsgi.middlewareimportMiddlewareapp=API()classSimpleCustomMiddleware(Middleware):defprocess_request(self,req):print("Before dispatch",req.url)defprocess_response(self,req,res):print("After dispatch",req.url)app.add_middleware(SimpleCustomMiddleware)
Package: rjdl
ï»؟This package can be used in two different ways:If you want to use it as a downloader only, then you can simply use its CLI.But if you are a more advanced user and want to use this package in your projects, then you can import it in your project and you're good to go.With this package you will be able to save anyMusic,Video (Music Video & RJ-TV Show),Album,PodcastandPlaylistfromRadioJavanto your personal computer.Podcastswill be saved in192 kbpsquality only, while you can choose between256 kbpsand320 kbpsforSongs (Albums & Playlists as well), and480p,720pand1080pforVideosif available.If you are currently living inIran, you need to turn on yourVPNwhile using this package.InstallationUsepip install rjdlto install the latest release of the package. (Of course to be able to usepip, you need python to be installed and added to computer's path first)If you want to install the latest version directly from GitHub, then you can use this:pip install git+git://github.com/reza00farjam/rjdlUsageCommand LineTherjdlas a command, is a well behaved Unix style command line tool that provides you the following optional arguments to use based on the content of your url. You can also list them by runningrjdl -horrjdl --help:usage: rjdl [-h] [-p PATH] [-t TRACKS [TRACKS ...]]
            [-m {256,320} | -v {480p,720p,1080p}] [-d] [-r]
            url

Download Music, Video, Album, Podcast & Playlists from www.RadioJavan.com

positional arguments:
  url                   URL of desired media

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  download path (default: current working directory)
  -t TRACKS [TRACKS ...], --tracks TRACKS [TRACKS ...]
                        track(s) of Album/Playlist to be downloaded, separated
                        by white space (default: all tracks)
  -m {256,320}, --music-quality {256,320}
                        download quality on Music, Album and Playlist URLs
                        (default: 320)
  -v {480p,720p,1080p}, --video-quality {480p,720p,1080p}
                        download quality on Video URLs (default: 720p)
  -d, --disable-download
                        disable auto downloading (show info only)
  -r, --rjdl-version    show rjdl version and exitHow it worksSimply, just pass rjdl a valid url along with your desired options for it and enjoy your download!Example.ScriptThe rjdl as a package, provides enough class and methods to work with RadioJavan for your
development purposes. For a good understanding of what it does and how it works, you can take a look atrjdl documentation.ContributingContributions of all sizes are welcomed and precious. You can follow the steps below for this purpose:Forkthe repository.Make all the changes you want to see in the original repository.Push your changes to a new branch in your fork andcreate a pull requestalong with an explanation of your changes.Also you can help us byreporting bugs and sharing your ideas.Copyright & LicenseCopyright (C) 2020-2021 Reza Farjam <https://github.com/reza00farjam>Licensed under the terms of theMIT License.
Package: rjgtoys-cli
rjgtoys.cli: Command-line tool componentsrjgtoys.cliprovides support for building CLI tools on top of the
standard Pythonargparseparser library.It supports:Creation of 'command languages' in which diverse operations are given names
that are short phrases, such as 'make tea';Modularisation of parser construction, so that commands that share options
can share the code to parse and process them;New options for processing command line arguments, such as comma-separated lists,
and set-valued options;Assistance with producing help.Read the documentation athttp://rjgtoys.readthedocs.org/projects/cli/
Package: rjgtoys-config
rjgtoys.config- A modular configuration data interfaceThis package provides a simple and modular way for programs to access configuration
data.The word 'modular' in the description refers to the way in whichrjgtoys.configallows independent modules or packages to define the structure of their configuration
data, whilst retrieving that data from a single combined source.There is no need for a single, centralised definition of the 'config file format'
for an application as a wholeAn application can be built from packages and modules that userjgtoys.configthat are not aware of each other's configuration requirementsThe structure of the configuration file is itself configurable; the components in
an application do not impose it
Package: rjgtoys-thing
Thing: A Pythondictthat behaves a bit like a JavaScript objectAThingis a subclass ofdictthat behaves a little like
a Javascript object, insofar as 'item' style access -x['foo']- and
'attribute' style access -x.foo- are equivalent, and can
be used interchangeably, subject of course to the limitation imposed
by Python syntax itself, that an attribute name inx.namehas to be
a constant.Read the documentation athttp://rjgtoys.readthedocs.org/projects/thing/
Package: rjgtoys-tkthread
tkthread - Enable threads to interact with tkinterTk (in Python, tkinter) is not thread-safe.   It's not possible
to interact with a tkinter UI from a thread
other than the one in which it is running its event loop.There are a number of workarounds, but they generally boil down to doing
some sort of polling, which either introduces delays, or is wasteful of
CPU resource.This package provides a 'bridge' between threads and tkinter that does
not suffer from either of these problems; threads can run freely, and can
schedule operations to be performed on a tkinter UI.   Those operations
will be picked up with minimal delay and executed asynchronously with
the threads, but without incurring any polling cost.The examples provided demonstrate the difference in CPU cost between a
'polling' solution and the one provided by this package.
Package: rjgtoys-xc
XC: Structured exceptions for PythonXC encourages a structured, disciplined approach to use of exceptions: it reduces the
overhead of declaring exceptions that are specific to a cause,
and that contain information of use to the handler.   That in turn makes it easier
to write concise handlers.A Sphinx extension makes it easy to produce good documentation from properly declared exceptions.XC exceptions can be serialised into standard-compliant, language-independent JSON,
which makes them easy to use in web APIs, even when the consumer is not written in Python.Read the documentation athttp://rjgtoys.readthedocs.org/projects/xc/
Package: rjgtoys-yaml
Yaml: Reading and writing YAMLThis is a thin layer on top ofruamel.yamlthat does YAML I/O with some tricks
that I find useful:It dumps structures with the layout that I like;It preserves order of keys in mappings when dumping them;Mappings are returned as objects that allow both attribute- and item-access;Multiple files can be loaded from a directory, in a single call;YAML source files can reference others, and merge them automatically, using
an!includetag.Read the documentation athttp://rjgtoys.readthedocs.org/projects/yaml/
Package: rjieba
rjieba-pyjieba-rsPython binding.InstallationpipinstallrjiebaUsageimportrjiebaprint(rjieba.cut('我们中出了一个叛徒'))print(rjieba.tag('我们中出了一个叛徒'))PerformanceRunning on MacBook Pro (15-inch, 2018) 2.2 GHz 6-Core Intel Core i7In[1]:importjiebaIn[2]:importcjiebaIn[3]:importrjiebaIn[4]:jieba.initialize()Buildingprefixdictfromthedefaultdictionary...Loadingmodelfromcache/var/folders/8d/h3lyjgz14296j_lw7chgf5hc0000gp/T/jieba.cacheLoadingmodelcost0.695seconds.Prefixdicthasbeenbuiltsuccessfully.In[5]:cjieba.initialize()In[6]:withopen('../jieba-rs/examples/weicheng/src/weicheng.txt')asf:...:txt=f.read()...:In[7]:%timeitlist(jieba.cut(txt))1.1s±10.6msperloop(mean±std.dev.of7runs,1loopeach)In[8]:%timeitcjieba.cut(txt)225ms±3.95msperloop(mean±std.dev.of7runs,1loopeach)In[9]:%timeitrjieba.cut(txt)106ms±2.01msperloop(mean±std.dev.of7runs,10loopseach)LicenseThis work is released under the MIT license. A copy of the license is provided in theLICENSEfile.
Package: rjm
Revit Journal Makerpython libray for writing/reading journal files for Autodesk RevitWriting Journalsimportrjmjournal_maker=rjm.JournalMaker(permissive=True)# creating a new model (template_name is optional)journal_maker.new_model(template_name='My Template')# creating a new template model (template_name is optional)journal_maker.new_template(template_name='My Template for Templates')# creating other typesjournal_maker.new_family(base_rft_file)journal_maker.new_conceptual_mass(base_rft_file)journal_maker.new_titleblock(base_rft_file)journal_maker.new_annotation(base_rft_file)# opening workshared modeljournal_maker.open_workshared_model(model_full_path,central=False,detached=True,keep_worksets=True,audit=False,show_workset_config=1)# opening non-workshared modeljournal_maker.open_model(model_full_path)# ignore missing linksjournal_maker.ignore_missing_links()# add custom entry to journaljournal_maker.add_custom_entry(journal_entry)# execute an addon commandcmdata={}# dict of data to be passed to command in journaljournal_maker.execute_command(tab_name='Add-Ins',panel_name='Panel Name',command_module='Addon Application Namespace',command_class='Command Classname',command_data=cmdata)# execute dynamo definitionjournal_maker.execute_dynamo_definition(definition_path='C:/testdef.dyn',show_ui=True,shutdown=True)# load a familyjournal_maker.import_family(RFA_file_path)# ask journal to export warnings using Revit UIjournal_maker.export_warnings(export_filepath)# ask journal to purge unused warnings using Revit UIjournal_maker.purge_unused(pass_count=3)# sync central modeljournal_maker.sync_model(comment='comment string',compact_central=True,release_borrowed=True,release_workset=True,save_local=False)# saving non-workshared modeljournal_maker.save_model()# closing modeljournal_maker.close_model()# finallyjournal_maker.write_journal(journal_filepath)Reading JournalsUnder Developmentimportrjmjournal_reader=rjm.JournalReader(active_journal_file)# checking to see if the journal has crashed and stoppedjournal_reader.is_stopped()
Package: rjmespath
rjmespath-pyjmespath.rsPython binding.InstallationpipinstallrjmespathUsageimportrjmespathprint(rjmespath.search('foo.bar','{"foo": {"bar": "baz"}}'))PerformanceRunning on MacBook Pro (13-inch, M1, 2020, 16GB RAM)In[1]:importjmespathIn[2]:importrjmespathIn[3]:%timeitjmespath.compile('foo')436ns±0.478nsperloop(mean±std.dev.of7runs,1000000loopseach)In[4]:%timeitrjmespath.compile('foo')354ns±0.583nsperloop(mean±std.dev.of7runs,1000000loopseach)In[5]:%timeitjmespath.search('foo.bar',{"foo":{"bar":"baz"}})2.74µs±10.1nsperloop(mean±std.dev.of7runs,100000loopseach)In[6]:%timeitrjmespath.search('foo.bar','{"foo": {"bar": "baz"}}')1.21µs±12.3nsperloop(mean±std.dev.of7runs,1000000loopseach)LicenseThis work is released under the MIT license. A copy of the license is provided in theLICENSEfile.
Package: rjm.recipe.venv
rjm.recipe.venvThis is a simple zc.buildout recipe that will use the virtualenv
package to turn the buildout root into a sandboxed virtual python
environment.  It is especially useful in conjunction with
gp.recipe.pip, which can then be used to install python packages into
the virtualenv that has been created.Supported Optionsvenv_options:Extra options that will be used when the virtualenv command is
invoked.  These should match exactly what would be used on a
command line.distutils_urls:This option can be set to a list of URLs, each of which should
point to an archive (tarball, zip, etc.) of a python package which
supports simple distutils installation (i.e. ‘python setup.py
install’).  Each of these packages will be installed into the
virtualenv sandbox.  This is useful for installing certain older
packages that do not work with pip, such as egenix-mx-base.Example UsageThis is a very simple buildout file that creates a virtualenv with no
site packages and using distribute.  It then installs egenix-mx-base
using distutils, and the latest version of Pylons and all of its
dependencies using pip:[buildout]
parts =
    venv
    pip

[venv]
recipe = rjm.recipe.venv
venv_options = --no-site-packages --with-distribute
distutils_urls =
    http://downloads.egenix.com/python/egenix-mx-base-3.1.2.tar.gz

[pip]
recipe = gp.recipe.pip
virtualenv = ${buildout:directory}
install = pylons
Package: rjob
rjobDummy simple remote task executorDescriptionUpload local directory to remote servers, executes tasks and collects
results back to local hostRequires at least SystemD 236 on the target hostAuto generated environment variablesEnvironment variableMeaningRESULTDestination directoryDEPLOYMENT_NUMTotal number of deployments (servers)DEPLOYMENT_INDEXDeployment index
Package: rjpo
rjpo-gaussian-samplingThis repository provides a Python implementation of the reversible jump perturbation optimization (RJPO) method presented in[1]for sampling high-dimensional Gaussians. This method avoids matrix factorizations and requires only matrix-vector products related to the precision matrix. The samples generated are inexact but valid in the MCMC sense.In this implementation, we assume that our goal is to sample from the Gaussian $\mathcal{N}(\mu, Q^{-1})$, with $Q \in \mathbb{R}^n$ a SPD precision matrix. We assume the precision matrix is of the formQ = \sum_{i=1}^K L_i^T L_i,where the user providesLinearOperators defining the $L_i$. The $L_i$ need not be square.References[1]C. Gilavert, S. Moussaoui and J. Idier, "Efficient Gaussian Sampling for Solving Large-Scale Inverse Problems Using MCMC," in IEEE Transactions on Signal Processing, vol. 63, no. 1, pp. 70-80, Jan.1, 2015, doi: 10.1109/TSP.2014.2367457.
Package: rjs
rjs===.. image:: https://travis-ci.org/appstore-zencore/rjs.svg?branch=master:target: https://travis-ci.org/appstore-zencore/rjsReids json storage.Install-------::pip install rjsClass & Methods-----1. rjs.JsonStoragea. updateb. getc. deleted. delete_fieldExample-----::from rjs import JsonStorageconnection = make_redis_connect(config)storage = JsonStorage(connection)data1 = {"a": 1,"b": 2,}storage.update(data1)data2 = {"b": 3,"c": 4,}storage.update(data2)data3 = storage.get(key)
Package: rjsmin
rJSmin is a javascript minifier written in python.The minifier is based on the semantics ofjsmin.c by Douglas Crockford.The module is a re-implementation aiming for speed, so it can be used at
runtime (rather than during a preprocessing step). Usually it produces the
same results as the originaljsmin.c. It differs in the following ways:there is no error detection: unterminated string, regex and comment
literals are treated as regular javascript code and minified as such.Control characters inside string and regex literals are left untouched; they
are not converted to spaces (nor to n)Newline characters are not allowed inside string and regex literals, except
for line continuations in string literals (ECMA-5).“return /regex/” is recognized correctly.More characters are allowed before regexes.Line terminators after regex literals are handled more sensibly“+ +” and “- -” sequences are not collapsed to ‘++’ or ‘–’Newlines before ! operators are removed more sensibly(Unnested) template literals are supported (ECMA-6)Comments starting with an exclamation mark (!) can be kept optionallyrJSmin does not handle streams, but only complete strings. (However, the
module provides a “streamy” interface).Since most parts of the logic are handled by the regex engine it’s way faster
than the original python port ofjsmin.cby Baruch Even. The speed factor
varies between about 6 and 55 depending on input and python version (it gets
faster the more compressed the input already is).  Compared to the
speed-refactored python port by Dave St.Germain the performance gain is less
dramatic but still between 3 and 50 (for huge inputs)). See the
docs/BENCHMARKS file for details.rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.Supported python versions are 2.7 and 3.6+.Copyright and LicenseCopyright 2011 - 2023
André Malo or his licensors, as applicable.The whole package (except for the files in the bench/ directory) is
distributed under the Apache License Version 2.0. You’ll find a copy in the
root directory of the distribution or online at:
<http://www.apache.org/licenses/LICENSE-2.0>.BugsNo bugs, of course. ;-)
But if you’ve found one or have an idea how to improve rjsmin, feel free
to send a pull request ongithubor send a mail to <rjsmin-bugs@perlig.de>.Author InformationAndré “nd” Malo <nd perlig.de>
GPG: 0x029C942244325167If God intended people to be naked, they would be born that way.
– Oscar Wilde
Package: rjsonnet
rjsonnet-pyPython bindings to Rustjrsonnetcrates (Rust implementation of Jsonnet language).InstallationpipinstallrjsonnetUsageThis module provides two functions:def evaluate_file(filename: str) -> str: ...def evaluate_snippet(filename: str, src: str) -> str: ...In the latter case, the parameterfilenameis used in stack traces,
because all errors are given with the "filename" containing the code.Keyword arguments to these functions are used to control the virtual machine. They are:max_stack(number)gc_min_objects(number, ignored)gc_growth_trigger(number, ignored)ext_vars(dict, string to string)ext_codes(dict, string to string)tla_vars(dict, string to string)tla_codes(dict, string to string)max_trace(number)import_callback(see example intests/)native_callbacks(see example intests/)preserve_order(bool, preserve object field order during manifestification)The argumentimport_callbackcan be used to pass a callable, to trap the Jsonnetimportandimportstrconstructs.
This allows, e.g., reading files out of archives or implementing library search paths.The argumentnative_callbacksis used to allow execution of arbitrary Python code viastd.native(...).
This is useful so Jsonnet code can access pure functions in the Python ecosystem, such as compression, encryption, encoding, etc.If an error is raised during the evaluation of the Jsonnet code, it is formed into a stack trace and thrown as a pythonRuntimeError.importrjsonnet# evaluate a jsonnet filerjsonnet.evaluate_file("filename.jsonnet")# evalute a jsonnet code snippetrjsonnet.evaluate_snippet('filename','jsonnet code snippet')LicenseThis work is released under the MIT license. A copy of the license is provided in theLICENSEfile.
Package: rkale
rkaleInstallInstall rkale in your project using poetry:poetryaddrkaleUse pip if you want a global installation:pipinstallrkaleConfigurationGlobal~/.config/rkale/rkale.conf:[data]root="path to data folder where datasets are stored"[aliases]wasabi="optional alias for remote in rclone.conf"[rclone]# global flags for rcloneflags=["--transfers 32","--checkers 32"]If aliases are empty the remote name from the project config is used in the
rclone lookup.ProjectConfigure project datasets in the pyproject.toml file:<project path>/pyproject.toml:[[tool.rkale.dataset]]name="dataset_1"remote="remote_1"[[tool.rkale.dataset]]name="dataset_2"remote="remote_2"The remote specified for the dataset must match a remote in therclone.confor an alias in the global rkale configuration.UsagePython interfacefromrkale.configimportdataset_pathsdefdataset_path():returndataset_paths()["dataset_1"]Syncing datasetsSyncs the local datasets to be identical to the remoterkalepsyncSyncs the remote datasets to be identical to the localrkalepsync--upstreamSame as rclone sync but checks differences first and asks for confirmationrkalesync<source><destination>