Saravanan666/pypi-org huggingface dataset:
Package: rippy
rippyReinsurance Modeling and Pricing in Python!Getting StartedInstall rippy from pypi:pip install rippyIntroductionRippy is a simple, fast and lightweight simulation-based reinsurance modeling package. It has two main components:Frequency-Severity, otherwise known as compound distribution simulationRippy contains theFrequencySeverityModelclass to set up and simulate from compound distributions with a variety of frequency and severity distributionsfromrippyimportFrequencySeverityModel,Distributionsclaims=FrequencySeverityModel(Distributions.Poisson(5),Distributions.Pareto(0.5,100000)).generate()Reinsurance contract calculationRippy can then calculate the recoveries of a number of types of reinsurance contract for the simulated claims.fromrippyimportXoLxol_layer=XoL(name="Layer 1",limit=1000000,excess=100000,premium=1000)xol_layer.apply(claims)xol_layer.print_summary()Rippy is based on the scientific python stack of numpy and scipy. It is designed for interoperability with numpy and ndarrays, so for example the simulated claims can be operated on with
numpy ufuncs:importnumpyasnpcapped_claims=np.minimum(claims,2000000)Under the hood/bonnet, rippy represents the simulations of the Frequency-Severity model in sparse storage, keeping two lists of simulation indices and values:sim_indexvalues013231.120432.7278935.1233213.9343843.1......Frequency-Severity simulations can be aggregated (summed within a sim_index), which results in a standardnp.ndarrayaggregate_claims=claims.aggregate()np.array([13663.82,0,78935,12,47957.0,....])Configuring the simulation settingsThe global number of simulations can be changed from theconfigclass (the default is 100,000 simulations)fromrippyimportconfigconfig.n_sims=1000000The global random seed can also be configured from theconfigclassconfig.set_random_seed(123456)Rippy uses thedefault_rngclass of thenumpy.randommodule. This can also be configured using theconfig.rngproperty.Project StatusRippy is currently a proof of concept. There are a limited number of supported distributions and reinsurance contracts. We are working on:Adding more distributions and loss generation typesAdding support for Catastrophe loss generation and reinsurance contractsAdding support for more reinsurance contract types (Surplus, Stop Loss etc)Grouping reinsurance contracts into programs and structuresStratified sampling and Quasi-Monte Carlo methodsGPU supportReporting dashboardsIssuesPlease log issues in githubContributingYou are welcome to contribute pull requests
Package: riptide-all
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Meta PackageInstalling this package will install all Riptide components in the matching version numbers.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-cli
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.CLI ApplicationThis repository contains the CLI application for Riptide. The library used for the CLI isClick.The CLI application uses the Riptide lib package to manage files and to communicate with the container engine backend.It can be installed via pip by installingriptide-cli.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-db-mongo
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Database-Driver: MongoDBThis repository implements the database driver interface of the Riptide library for use
with MongoDB-compatible databases. This allows users to manage MongoDB databases within
Riptide projects via the Riptide CLI.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-db-mysql
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Database-Driver: MySQLThis repository implements the database driver interface of the Riptide library for use
with MySQL-compatible databases. This allows users to manage MySQL databases within
Riptide projects via the Riptide CLI.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-engine-docker
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Engine-Backend: DockerThis repository implements the Riptide engine backend by using the Docker container engine.It uses both the Docker API and the Docker CLI to communicate with Docker. The Docker Host must be installed and
running on the same machine as Riptide. The Docker CLI must also be installed.It can be installed via pip by installingriptide-engine-docker.TestsInside the riptide_engine_docker.tests package are unit tests for the engine backend.riptide_engine_docker.tests.integrationcontains an implementation of the integration
test interface used by the Riptide lib package. To run integration tests for the engine backend,
run the Riptide lib integration tests with this backend installed.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-lib
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Library PackageThis repository contains the library with common code for the Riptide CLI and the Riptide Proxy. Most notably it
contains the interfaces for engine implementations and database drivers and classes for all of the configuration entities
(Apps, Projects, Services, Commands…).It can be installed via pip by installingriptide-lib.TestsInside theriptide.tests packageare unit tests for the library and integration tests. The integration
tests require you to install at least one engine implementation (eg.riptide-engine-docker). The integration
tests test the Riptide Library itself and the specific engine implementations.To run the tests, seerun_tests.sh.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-plugin-php-xdebug
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.Plugin: PHP XdebugThis plugin allows users to toggle the use of Xdebug for PHP based services or commands.Usage via CLI:riptide xdebug [on/off]Sets the flagphp-xdebug.enabled, which can be read from Riptide configuration files to
enable or disable Xdebug.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptide-proxy
Main packages:libproxycliContainer-Backends:engine_dockerDatabase Drivers:db_mysqldb_mongoPlugins:php_xdebugRelated Projects:configcrunchMore:docsrepodocker_imagesmission_controlRiptide is a set of tools to manage development environments for web applications.
It’s using container virtualization tools, such asDockerto run all services needed for a project.It’s goal is to be easy to use by developers.
Riptide abstracts the virtualization in such a way that the environment behaves exactly
as if you were running it natively, without the need to install any other requirements
the project may have.It can be installed via pip by installingriptide-proxy.Proxy ServerThis repository implements a HTTP(s) and WebSocket reverse proxy server for use with Riptide projects.
It supports auto-starting of Riptide projects. Routing of projects is based on hostnames.Ifriptide-mission-controlis installed, a proxy server for it is started atcontrol.riptide.local(where riptide.local is your configured proxy server URL).for-docs BranchThe for-docs branch should always be based on master. It contains only one commit that removes
python-prctl and certauth from the dependencies for Read the Docs, since rtd can’t install them.If anyone knows of a better way to do this, please let me know.DocumentationThe complete documentation for Riptide can be found atRead the Docs.
Package: riptr
riptrText substitution similar totrorsed s//but without the frustration. Uses plain old python regex style.InstallingNow deployed to pypi, install with:pipinstallriptrThis adds theriptrandrtrcli tools to your python environment path.Usageecho"some example text 1234">test.file# default output is stdoutriptr-m"^(.*?)([\d]{2})"-s"\g<1>56"test.file
someexampletext5634# specify patch mode 'p'riptr-m"^(.*?)([\d]{2})"-s"\g<1>56"-optest.file
---
+++
@@-1+1@@
-someexampletext1234+someexampletext5634# or inplaceriptr-m"^(.*?)([\d]{2})"-s"\g<1>56"-oitest.file
cattest.file
someexampletext5634
Package: rir-api
Reverse Image RAG - (RIR)Synopsis:We build an API to retrieval-augment vision-language models with visual context retrieved from the web.Concretely, for a query image and query text (e.g. a question), we leverage reverse image search to find most similar images and their titles / captions.The final product is a VLM-API that allows to automatically leverage reverse-image-search based retrieval augmentation.Usage:pip install rir_apiimportrir_apiapi=rir_api.RIR_API(openai_api_key)image_url="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSgN8RDkURVE8mgOf-n02TqJdC2l1o5cVFA32NpZtuVp8MaFfZY"query_text="What is in this image?"response=api.query_with_image(image_url,query_text)# >> runs reverse image search# >> formats visual context prompt# >> queries VLM with full query(see run.py for minimal example)Reference:@misc{Moor2024,author = {Michael Moor},title = {Reverse Image RAG~(RIR)},year = {2024},publisher = {GitHub},journal = {GitHub Repository},howpublished = {\url{https://github.com/mi92/reverse-image-rag}},}
Package: rir-generator
Room Impulse Response GeneratorPython- and C-basedroom impulse responsegenerator, for use inconvolutional reverb.Official Python port ofhttps://github.com/ehabets/RIR-Generator.Installationpipinstallrir-generatorUsageimportnumpyasnpimportscipy.signalasssimportsoundfileassfimportrir_generatorasrirsignal,fs=sf.read("bark.wav",always_2d=True)h=rir.generate(c=340,# Sound velocity (m/s)fs=fs,# Sample frequency (samples/s)r=[# Receiver position(s) [x y z] (m)[2,1.5,1],[2,1.5,2],[2,1.5,3]],s=[2,3.5,2],# Source position [x y z] (m)L=[5,4,6],# Room dimensions [x y z] (m)reverberation_time=0.4,# Reverberation time (s)nsample=4096,# Number of output samples)print(h.shape)# (4096, 3)print(signal.shape)# (11462, 2)# Convolve 2-channel signal with 3 impulse responsessignal=ss.convolve(h[:,None,:],signal[:,:,None])print(signal.shape)# (15557, 2, 3)
Package: risb
risb - Rotationally invariant slave bosonsDocumentation athttps://thenoursehorse.github.io/risbCopyright (C) 2016-2023 H. L. Nourse and B. J. Powell, 2016-2022 R. H. McKenzieWhat is risb?Tools to solve strongly correlated many-body electronic problems using
rotationally invariant slave-bosons (RISB), an auxilliary particle method.
RISB is like dynamical mean-field theory (DMFT), but solves problems in a
fraction of the time, with hopefully not a fraction of the accuracy.Where to start?If you want to learn how to solve some common strongly correlated lattice
models, and how RISB is implemented, then start with thetutorials.If you want to quickly see a calculation, then start with theexamples/folder in this repository and refer to thehow-to guides.CitationWe kindly request that you cite the following paper if your project uses our code:H. L. Nourse, Ross H. McKenzie, and B. J. Powell Phys. Rev. B103, L081114 (2021)TheTRIQSlibrary should also be cited if any of their library is used:O. Parcollet, M. Ferrero, T. Ayral, H. Hafermann, I. Krivenko, L. Messio, and P. Seth, Comp. Phys. Comm. 196, 398-415 (2015)If the default root DIIS method is used in theSolverclasses you should also cite:M. Chupin, M.-S. Dupuy, G. Legendre and É. Séré, ESAIM: M2AN55, 6, 2785-2825 (2021)Lastly, the appropriate original theory outlined in thedocumentationshould be cited.Dependenciespythonversion> 3.10numpyscipyTRIQSversion3.2.xif using :class:EmbeddingAtomDiagInstallation(Optional) Create avirtual environment.InstallpipinstallrisbUninstallpip uninstall risbDockerThere is aDockerfileanddocker-compose.ymlinside thedockerfolder.
TheDockerfilewill pull theTRIQS docker imagefrom the hub and install risb. Using the image will be the same as outlined in
theinstall instructions.
To connect to theJupyternotebook it islocalhost:8888/?token=put/token/hereYou can find the token by attaching a shell to the container
and runningjupyterserverlistThere is also a developmentDockerfile.devand the correspondingdocker-compose-dev.ymlin order to have a container to develop code. It
installsTRIQSfrom source, and works on
Apple M1/M2 (arm64, aarch64), and any amd64 system.TestsThe tests require a workingTRIQSinstallation.Clone sourcegitclonehttps://github.com/thenoursehorse/risbcdrisbInstall the prerequisitespipinstall-e.[test]Tests are run withpytestDocumentationClone sourcegitclonehttps://github.com/thenoursehorse/risbcdrisbInstall the prerequisitespipinstall-e.[docs]Build the APIsphinx-apidoc-odocs/api--module-first--no-toc--force--separatesrc/risbBuild the documentation and set up a local serversphinx-autobuild-bhtmldocsdocs/_buildAccess through a browser athttp://127.0.0.1:8000.
Package: risc-generator
Here is RISC.RISC is an open-source Python package data generator. It generates look-alike automobile insurance contracts based on
the Quebec regulatory insurance form in French and English.Use RISC to generate look-a-like Quebec Car insurance forms (FPQ1) both in French and English. RISC simulation is
deterministic; thus, it can generate an aligned insurance contract (i.e. same driver data) using an initial seed.
RISC uses a pretrained TVAE model on a private dataset to generate look-a-like car protections.
See ourarticle herefor more detail about RISC implementation and generated theRSICBACdataset specification.RISC was written in Python 3.9 and is compatible with thelatest version of PyTorchandPython >= 3.8(SciPy
seems difficult to build on Python 3.11. Thus, we don't support Python 3.11 for now).Getting Started:fromrisc_generatorimportTVAEFPQ1ContractFakerseed=42n=10# Let's sample 10 insurance English insurance contracts (default configuration).en_fpq1_synthetic_dataset=TVAEFPQ1ContractFaker(seed=seed).sample_contracts(number_sample=n)# Now, let's do it for French contracts.fr_fpq1_synthetic_dataset=TVAEFPQ1ContractFaker(language="fr",seed=seed).sample_contracts(number_sample=n)# Since we have used the same seed, both datasets share the same insuree information.# Use our own TVAE model:fpq1_synthetic_dataset=TVAEFPQ1ContractFaker(tvae_synthetic_data_faker_model_path="a_path_to_a_tvae_.pkl",language="fr",seed=seed).sample_contracts(number_sample=n)# You can also create a new FPQ1ContractFaker using another type of model using our interface.fromrisc_generatorimportFPQ1ContractFaker,ProtectionsFakerclassRuleBaseFPQ1ContractFaker(FPQ1ContractFaker):def__init__(self,language:str="en",seed:int=42):protection_faker=ProtectionsFaker(model=ARuleBaseProtectionFaker())super().__init__(protection_faker,language,seed=seed)InstallationBefore installing RISC, you must have your environment's latest version ofPyTorch.Install the stable version of RISC:pipinstallrisc_generatorInstall the latest development version of RISC:pipinstall-Ugit+https://github.com/GRAAL-Research/risc.git@devCiteUse the following for the article or dataset;@misc{beaucheminrisc,
    title={{RISC: Generating Realistic Synthetic Bilingual Insurance
Contract}},
    author={David Beauchemin and Richard Khoury},
    year={2023},
    eprint={2304.04212},
    archivePrefix={arXiv}
}and this one for the package;@misc{risc,
    author = {David Beauchemin},
    title  = {{RISC: an open-source Python package data generator to generate look-alike automobile insurance contracts based on the Quebec regulatory insurance form in French and English}},
    year   = {2023},
    note   = {\url{https://github.com/GRAAL-Research/risc}}
}Contributing to RISCWe welcome user input, whether it regards bugs found in the library or feature propositions! Make sure to have a
look at ourcontributing guidelinesfor more details on this matter.LicenseRISC is LGPLv3 licensed, as found in
theLICENSE file.
Package: ris.clickatellhttp
Python implementation of the Clickatell HTTP/HTTPS API for sending SMS messages using the Clickatell SMS Gateway as
specified in v2.5.3 -https://www.clickatell.com/downloads/http/Clickatell_HTTP.pdfThis package enables you to easily integrate SMS messaging into your Python application.InstallationYou can install this package via PIPsudo pip install ris.clickatellBasic UsageTo use this package, you need to first register for a Developer Central account athttps://www.clickatell.com. From the
Developer Central portal you will be provided with an API ID, username, and password which are required to use the
client.python
from ris.clickatell import ClickatellClient, ClickatellException# Clickatell settings
CLICKATELL_API_ID = ‘XXXXXX’
CLICKATELL_USERNAME = ‘username’
CLICKATELL_PASSWORD = ‘password’# Message details
message = ‘Hello world!’
recipients = [‘0000000000’, ‘0000000000’]client = ClickatellClient(CLICKATELL_API_ID, CLICKATELL_USERNAME, CLICKATELL_PASSWORD)
client.send(message, recipients)
Package: risclog.zestreleaser.notify
This package provides a plugin for zest.releaser that offers to notify about a
new release in a configured channel (actually onlyKeybaseis supported).To use, add a section to your ~/.pypirc like the following:[risclog.zestreleaser.notify]
keybase = https://bots.keybase.io/webhookbot/<CHANNELID>Free software: MIT licenseFeaturesRun tests:$ ./pytestCreditsThis package was created withCookiecutterand therisclog-solution/risclog-cookiecutter-pypackageproject template.This package usesAppEnvfor running tests inside this package.
Package: riscv-assembler
riscv-assembler DocumentationRISC-V Assembly code assembler package.View the full documentation hereThis package contains tools and functions that can convertRISC-V Assembly code to machine code. The whole process is implemented using Python purely for understandability, less so for efficiency in computation. These tools can be used toconvert given lines of code orwhole filesto machine code. For conversion, output file types are binary, text files, and printing to console. The supported instruction types areR, I, S, SB, U, and UJ. Almost all standard instructions are supported, most pseudo instructions are also supported.Feel free to open an issue or contact me atkayacelebi17@gmail.comwith any questions/inquiries.InstallationThe package can be installed using pip:$ pip install riscv-assemblerIf issues arise try:$ python3 -m pip install riscv-assembler
Package: riscv-model
This is a python model of the RISC-V ISA. It is intended to be a resource for Python-based automated testing and verification.
It is under development and not very useful yet, but can be used to generate random assembler code.Documentation:https://riscv-python-model.readthedocs.io/en/latest/Quick StartFirst install it:pip3 install riscv-modelCreate random assembler sequencesCreate a random assembler sequence:riscv-random-asmYou can tweak the assembler output:usage: riscv-random-asm [-h]
                        [-i {add,sub,sll,slt,sltu,xor,srl,sra,or,and,jalr,addi,slti,sltiu,xori,ori,andi,lb,lh,lw,lbu,lhu,slli,srli,srai,sb,sh,sw,beq,bne,blt,bge,bltu,bgeu,lui,auipc,jal}]
                        [--version]
                        [N]

Generate sequence of assembler instructions.

positional arguments:
  N                     Number of assembler instructions

optional arguments:
  -h, --help            show this help message and exit
  -i {add,sub,sll,slt,sltu,xor,srl,sra,or,and,jalr,addi,slti,sltiu,xori,ori,andi,lb,lh,lw,lbu,lhu,slli,srli,srai,sb,sh,sw,beq,bne,blt,bge,bltu,bgeu,lui,auipc,jal}
                        Restrict to instructions
  --version             Display versionFor example to generate 100 assembler instructions only withadd,orandsltiinstructions:riscv-random-asm 100 -i add -i or -i sltiDisassemble machine codeYou can disassemble a machine code to the assembly code on instruction level:riscv-machinsn-decode hexstring 0x007938b3 0xc9650993You can also directly disassemble object files:riscv-machinsn-decode objfile file.oAutomatically test random assembler sequencesriscv-random-asm-checkgenerates random assembler sequences, compiles them, reads back the machine codes and matches them.
You can use that to test your compiler, but it is also used as sanity check for riscv-model itself.riscv-random-asm-checkIt will by default useriscv32-unknown-elf-gccandriscv32-unknown-elf-objcopy, but you can configure the tools with--compilerand--objcopy.The automated tests will test all instructions, you can again restrict the number of instructions and the instructions:riscv-random-asm-check 1000 -i xorFinally, you can run the checks for the individual instructions seperately (used in combination with the other options:riscv-random-asm-check -s